/* =============================================================
   CodingMa situs publik — CSS sendiri, tema gelap.
   Hanya untuk website/codingma. Tidak memakai CSS admin_panel.
   ============================================================= */

html.cm-site {
	/* Aksen: kayu hangat / tembaga */
	--myryda-blue-1: #e8c9a8;
	--myryda-blue-2: #d3a274;
	--myryda-blue-3: #b8814f;
	--myryda-blue-4: #97663d;
	--myryda-theme-color: #f6ece1;
	--myryda-thead-bg: #f0e3d4;

	--bg: #f6ece1;
	--bg-2: #efe1d2;
	--qaf-bg-soft: #f2e6d9;
	--qaf-bg-mid: #e9dac9;
	--qaf-bg-deep: #dfcdb8;
	--menu-dropdown-bg: #efe1d2;
	--menu-dropdown-bg-sub: #f6ece1;
	--menu-dropdown-border: #dcc6ae;

	--ink: #3f2d1f;
	--muted: #7a6350;
	--line: #e0cbba;
	--teal: var(--myryda-blue-2);
	--gold: var(--myryda-blue-3);
	--card: #fbf6ef;

	--font: "Poppins", sans-serif;
	--mono: "Poppins", ui-monospace, sans-serif;

	--shadow-blue: rgba(120, 78, 45, 0.16);
	--shadow-blue-soft: rgba(120, 78, 45, 0.10);
	--border-radius: 10px;

	/* Motif papan kayu — nyaris tak terlihat, hanya tekstur halus */
	--wood-grain:
		repeating-linear-gradient(90deg,
			rgba(140, 96, 58, 0.012) 0px,
			rgba(140, 96, 58, 0) 3px,
			rgba(255, 255, 255, 0.05) 7px,
			rgba(140, 96, 58, 0.01) 12px,
			rgba(140, 96, 58, 0) 22px),
		repeating-linear-gradient(90deg,
			rgba(160, 116, 72, 0.014) 0px,
			rgba(160, 116, 72, 0) 48px,
			rgba(120, 82, 48, 0.018) 56px,
			rgba(120, 82, 48, 0) 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html.cm-site body {
	margin: 0;
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.2;
	background-color: var(--bg);
	background-image:
		var(--wood-grain),
		radial-gradient(900px 460px at 85% -10%, rgba(216, 168, 120, 0.20), transparent 60%),
		radial-gradient(700px 380px at 5% 15%, rgba(184, 129, 79, 0.14), transparent 55%),
		linear-gradient(180deg, #fbf4ea 0%, var(--bg) 46%, #efe2d3 100%);
	background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV (top_menu) — bar kayu gelap ===== */
.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 7vw;
	background:
		var(--wood-grain),
		linear-gradient(180deg, #f7ece0 0%, #ecdfd0 100%);
	color: #4a3527;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 18px -10px rgba(120, 78, 45, 0.5);
	border: 0;
	box-shadow: none;
}
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1rem; color: #4a3527; }
.nav-links { display: flex; gap: 16px; align-items: center; font-size: 0.85rem; color: #5b4433; }
.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; }

/* ===== Pemilih bahasa (bendera) di menu atas ===== */
.lang-switch { display: inline-flex; align-items: center; margin-left: 2px; }
.lang-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid var(--menu-dropdown-border);
	background: rgba(255, 253, 250, 0.6);
	opacity: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}
.lang-link:hover { background: var(--qaf-bg-mid); transform: translateY(-1px); }
.lang-link .flag {
	display: block;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(74, 53, 39, 0.35);
}

/* ===== TOMBOL — pill, biru MYRYDA ===== */
.nav-cta, .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 10px 16px;
	background: var(--myryda-blue-3);
	color: #fffdfa;
	font-weight: 700;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--myryda-blue-4); transform: translateY(-1px); }
.nav-cta {
	padding: 4px 10px;
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1.2;
	background: #e3d2be;
	color: #4a3527;
}
.nav-cta:hover { background: var(--myryda-blue-2); }
.btn-ghost {
	background: rgba(255, 253, 250, 0.6);
	color: #6b4f39;
	border: 1px solid var(--menu-dropdown-border);
}
.btn-ghost:hover { background: var(--qaf-bg-mid); }

/* Google button — putih (tetap) */
.btn-google {
	width: 100%;
	height: 48px;
	background: #fff;
	color: #1f1f1f;
	gap: 12px;
	font-weight: 700;
	letter-spacing: -0.02em;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn-google:hover { background: #f7f7f7; }
.btn-google-logo { width: 22px; height: 22px; flex: 0 0 22px; display: block; }

/* ===== HERO / SECTION ===== */
.hero, .section { padding: 72px 7vw; }
.hero {
	display: grid;
	grid-template-columns: 1.05fr 1.15fr;
	gap: 48px;
	align-items: center;
	padding-top: 36px;
}
.kicker {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--myryda-blue-2);
}
h1 { font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.02em; margin: 8px 0 8px; }
.lede { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 38rem; }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.frame {
	border-radius: 8px;
	overflow: hidden;
	border: 0;
	box-shadow: none;
}
.frame img { width: 100%; height: auto; }

.section h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.03em; margin: 6px 0 8px; }

/* Kepala section: judul di kiri, paragraf pembuka di kanan. */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px 56px;
	align-items: end;
}
.section-head h2 { margin: 6px 0 0; }
.section-head .lede { max-width: 34rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card {
	background:
		var(--wood-grain),
		linear-gradient(180deg, #fffdfa 0%, var(--card) 100%);
	border: 1px solid var(--line);
	border-radius: var(--border-radius);
	padding: 22px;
	box-shadow: 0 10px 24px -16px rgba(120, 78, 45, 0.5), 0 2px 6px -4px rgba(120, 78, 45, 0.25);
}
.card h3 { color: #3f2d1f; }
.card.featured {
	border-color: var(--myryda-blue-2);
	background:
		var(--wood-grain),
		linear-gradient(180deg, #fffdfa 0%, #f6e6d2 100%);
	box-shadow: 0 14px 30px -18px rgba(120, 78, 45, 0.6);
}
.card h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.card p, .fine { color: var(--muted); }
.price { font-size: 1.9rem; letter-spacing: -0.04em; margin: 8px 0; }
.price span { font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }
.card.featured {
	border: 0;
	box-shadow: none;
}
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 28px; }
.split .frame img { width: 100%; height: 420px; object-fit: cover; object-position: center; }

/* ===== AUTH (login/register) — panel biru MYRYDA ===== */
.auth-page {
	background:
		radial-gradient(820px 420px at 88% -8%, rgba(216, 168, 120, 0.20), transparent 58%),
		radial-gradient(640px 360px at 8% 12%, rgba(184, 129, 79, 0.13), transparent 52%),
		var(--bg);
}
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px 72px; }
html:has(.auth-page-login),
.auth-page-login { height: 100%; overflow: hidden; }
.auth-page-login { height: 100dvh; display: flex; flex-direction: column; }
.auth-page-login .nav { flex: 0 0 auto; padding: 8px 24px; flex-direction: row; align-items: center; }
.auth-page-login .nav-links { flex-wrap: nowrap; }
.auth-page-login .auth-wrap {
	flex: 1;
	min-height: 0;
	width: 100%;
	padding: 16px 20px 16px 7vw;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
}
.auth-page-login .auth-shell {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: 1fr min(440px, 100%);
	gap: 40px;
	align-items: stretch;
}
.auth-page-login .auth-card {
	width: 100%;
	height: 100%;
	justify-self: end;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 24px;
}
.auth-page-login .auth-card h1 { margin: 0 0 22px; font-size: 2rem; }
.auth-shell {
	width: min(920px, 100%);
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 28px;
	align-items: stretch;
}
.auth-aside { display: flex; flex-direction: column; justify-content: center; padding: 28px 8px 28px 12px; }
.auth-aside img { width: 56px; height: 56px; margin-bottom: 22px; }
.auth-aside h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	letter-spacing: -0.045em;
	line-height: 1.05;
	margin: 10px 0 14px;
}
.auth-card {
	width: min(440px, 100%);
	background:
		var(--wood-grain),
		linear-gradient(180deg, #fbf6ef 0%, #f3e8db 100%);
	border: 0;
	border-radius: 12px;
	padding: 32px 28px 28px;
	box-shadow: 0 14px 34px -18px rgba(120, 78, 45, 0.55);
	color: var(--ink);
}
.auth-shell .auth-card { justify-self: end; }
.auth-card-logo { width: 40px; height: 40px; margin-bottom: 18px; }
.auth-card h1 { font-size: 2rem; margin: 8px 0 10px; }
.auth-card .fine a { color: #a8703f; }
.auth-foot { margin: 22px 0 0; }
label { display: block; font-size: 0.85rem; margin: 14px 0 6px; color: var(--muted); }
input, select {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: #fffdfa;
	color: var(--ink);
	padding: 12px 12px;
	font: inherit;
}
input:focus, select:focus {
	outline: none;
	border-color: var(--myryda-blue-3);
	box-shadow: 0 0 0 3px rgba(184, 129, 79, 0.18);
}
.stack { display: grid; gap: 10px; margin-top: 8px; }
.stack .btn { width: 100%; height: 48px; margin-top: 8px; }
.error { background: rgba(190, 70, 70, 0.10); color: #8c2f2f; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.ok { color: var(--myryda-blue-2); }
.or {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 22px 0 8px;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span { white-space: nowrap; }
footer.site {
	padding: 56px 7vw 36px;
	color: var(--muted);
	border-top: 1px solid var(--line);
}
.site-foot-cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 40px;
}
.site-foot-cols p {
	margin: 0 0 14px;
	color: #5b4433;
	font-size: 0.92rem;
	font-weight: 500;
}
.site-foot-cols nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.site-foot-cols a {
	color: var(--muted);
	font-size: 0.92rem;
}
.site-foot-cols a:hover { color: var(--ink); }
.site-foot-bar {
	margin: 48px 0 0;
	font-size: 0.85rem;
}

.docs { max-width: none; }
.docs .lede { max-width: none; }
.docs h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.docs h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin-top: 2.2rem; }
.docs h3 { margin: 1.4rem 0 0.4rem; letter-spacing: -0.03em; }
.docs p, .docs li { color: var(--muted); }
.docs a { color: #a8703f; }
.docs ul { padding-left: 1.2rem; }
.docs .toc { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 22px 0 8px; }
.license {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--ink);
	background: #fffdfa;
	border: 1px solid var(--line);
	border-radius: var(--border-radius);
	padding: 18px 16px;
}
.license p {
	margin: 0 0 0.9rem;
	color: var(--ink);
	max-width: none;
}
.license p:last-child { margin-bottom: 0; }

/* ===== LOGIN SPLIT ===== */
.login-split { position: relative; height: 100dvh; overflow: hidden; background: var(--bg); --line-soft: var(--line); }
.login-split input,
.login-split select {
	border: 1px solid var(--line-soft);
}
.login-split input:focus,
.login-split select:focus {
	border-color: var(--myryda-blue-3);
	box-shadow: none;
}
.login-split .or::before,
.login-split .or::after { background: var(--line-soft); height: 1px; }
.login-back {
	position: absolute;
	z-index: 5;
	top: 16px;
	left: 16px;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	width: auto;
	height: auto;
	white-space: nowrap;
	color: #7a5b42;
	background: none;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	opacity: 0.8;
}
.login-back svg { display: block; flex: 0 0 auto; }
.login-back:hover { opacity: 1; background: none; }
.login-split-main { height: 100%; display: grid; grid-template-columns: 380px 1fr; }
.login-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 32px;
	background:
		var(--wood-grain),
		linear-gradient(180deg, #f7ece0 0%, #ecdfd0 100%);
	border: 0;
	border-right: 1px solid var(--line);
}
.login-mark { width: 40px; height: 40px; margin: 0 auto 16px; }
.login-panel h1 { font-size: 1.45rem; margin: 0 0 4px; letter-spacing: -0.04em; text-align: center; }
.login-lead { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.login-panel .btn-google { height: 40px; font-size: 0.9rem; box-shadow: none; }
.login-panel .or { margin: 14px 0 6px; }
.login-form { margin-top: 0; gap: 0; }
.login-form label { margin: 10px 0 4px; font-size: 0.78rem; }
.login-form input { padding: 9px 11px; border-radius: 8px; font-size: 0.92rem; }
.login-form .btn { height: 40px; margin-top: 14px; font-size: 0.92rem; }
.login-foot { margin: 14px 0 0; font-size: 0.85rem; text-align: center; }
.login-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 36px 48px 28px;
	background:
		radial-gradient(700px 320px at 70% 0%, rgba(216, 168, 120, 0.18), transparent 60%),
		#f4e8db;
}
.login-slides { width: min(820px, 100%); position: relative; }
.login-slide { display: none; margin: 0; }
.login-slide.is-on { display: block; }
.login-slide img {
	width: 100%;
	height: min(52vh, 460px);
	object-fit: cover;
	border-radius: 8px;
	border: 0;
}
.login-slide figcaption { text-align: center; margin-top: 18px; }
.login-slide strong { display: block; font-size: 1.15rem; letter-spacing: -0.03em; }
.login-slide span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.login-dots { display: flex; gap: 8px; margin-top: 16px; }
.login-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: rgba(184, 129, 79, 0.22);
	cursor: pointer;
}
.login-dots button.is-on { width: 22px; background: var(--myryda-blue-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
	.login-split { height: auto; overflow: auto; }
	.login-split-main { grid-template-columns: 1fr; }
	.login-stage { padding: 20px 16px 28px; }
	.login-slide img { height: 220px; }
	.hero, .split, .grid-3, .auth-shell, .site-foot-cols { grid-template-columns: 1fr; }
	.section-head { grid-template-columns: 1fr; gap: 10px; }
	.section-head .lede { max-width: none; }
	.split .frame img { height: 240px; }
	.auth-aside { display: none; }
	.auth-shell .auth-card { justify-self: center; }
	.nav { padding: 8px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
	.nav-links { flex-wrap: wrap; gap: 14px 18px; }
}

body.gcb { min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; }
.gcb-card { width: min(420px, 100%); text-align: center; padding: 36px 32px 28px; }
.gcb-card .mark { width: 48px; height: 48px; margin: 0 auto 16px; }
.gcb-card h1 { margin: 0 0 8px; font-size: 1.45rem; }
.gcb-card p { margin: 0; }
.gcb-card .spin { width: 28px; height: 28px; margin: 18px auto 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--myryda-blue-1); animation: gcb-turn .8s linear infinite; }
@keyframes gcb-turn { to { transform: rotate(360deg); } }
html.cm-site .hero h1.hero-title {
	font-size: 1.75rem;
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 650;
	margin: 8px 0 14px;
}
.gcb-card a.btn, .gcb-card a.home { margin-top: 22px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: .92rem; }
.gcb-card a.home { margin-left: 8px; background: transparent; color: #6b4f39; border: 1px solid var(--line); }

/* ===== Tombol WhatsApp mengambang (pojok kiri bawah) ===== */
.wa-bubble {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 22px -6px rgba(37, 211, 102, 0.55);
	transition: transform .18s ease, box-shadow .18s ease;
}
.wa-bubble:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 12px 26px -6px rgba(37, 211, 102, 0.65);
}
@media (max-width: 640px) {
	.wa-bubble { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
