/* ── Brand palette — NgajiKita (Hijau & Emas) ────────────────────────── */
:root {
	/* Green palette */
	--green:          #2E7D32;
	--green-dark:     #1B5E20;
	--green-mid:      #388E3C;
	--green-light:    #4CAF50;
	--green-soft:     #E8F5E9;
	--green-tint:     #F1F8F1;

	/* Gold palette */
	--gold:           #B8960A;
	--gold-dark:      #8B6914;
	--gold-light:     #D4AF37;
	--gold-bright:    #F5C518;
	--gold-soft:      #FDF8E8;

	/* Emerald accent */
	--emerald:        #00796B;
	--emerald-light:  #26A69A;
	--emerald-soft:   #E0F2F1;

	/* Neutral */
	--ink:            #0D1F0E;
	--ink-80:         rgba(13, 31, 14, .8);
	--muted:          #4A6349;
	--line:           #D4E8D4;
	--soft:           #F4F9F4;
	--panel:          #FFFFFF;
	--shadow:         0 20px 48px rgba(46, 125, 50, .09);
	--shadow-lg:      0 32px 72px rgba(46, 125, 50, .14);

	/* Semantic palette (kept for backward compat) */
	--primary:        var(--green-light);
	--primary-dark:   var(--green-dark);
	--coral:          #D97706;
	--coral-dark:     #B45309;
	--coral-light:    #F59E0B;
	--sky:            var(--emerald-light);
	--sky-dark:       var(--emerald);
	--sky-light:      #80CBC4;
	--lavender:       #7C6BAE;
	--lavender-light: #B9AEDD;
	--red:            #C0392B;
	--blue:           var(--emerald-light);
	--amber:          var(--gold);
	--violet:         #7C6BAE;

	/* Gradient shortcuts */
	--grad-brand:   linear-gradient(135deg, var(--green) 0%, var(--gold) 50%, var(--emerald-light) 100%);
	--grad-coral:   linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
	--grad-sky:     linear-gradient(135deg, var(--green-light), var(--green-dark));
}

/* ── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
	background: var(--soft);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
}

/* ── Header / Nav ────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.92);
	border-bottom: 1px solid rgba(46, 125, 50, .12);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.nav {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	font-weight: 900;
}

.brand img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.brand span {
	display: block;
	font-size: 19px;
	line-height: 1;
	background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold) 60%, var(--green-mid) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.brand small {
	display: block;
	color: var(--gold);
	font-size: 10px;
	font-weight: 700;
	margin-top: 4px;
	-webkit-text-fill-color: var(--gold);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
}

.nav-links a {
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--muted);
	transition: background .15s, color .15s;
}

.nav-links a:hover {
	background: var(--green-soft);
	color: var(--green-dark);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 20px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: #23334a;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}

.btn:hover {
	border-color: var(--green-light);
	background: var(--green-soft);
	transform: translateY(-1px);
}

.btn-primary {
	background: linear-gradient(135deg, var(--green-light), var(--green-dark));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 24px rgba(46,125,50,.30);
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
	box-shadow: 0 12px 32px rgba(46,125,50,.42);
	transform: translateY(-2px);
}

.btn-coral {
	background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 24px rgba(184,150,10,.30);
}

.btn-coral:hover {
	box-shadow: 0 12px 32px rgba(184,150,10,.42);
	transform: translateY(-2px);
}

/* btn-gold alias */
.btn-gold {
	background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 24px rgba(184,150,10,.30);
}

.btn-gold:hover {
	box-shadow: 0 12px 32px rgba(184,150,10,.42);
	transform: translateY(-2px);
}

.btn-light {
	background: rgba(255,255,255,.9);
	border-color: rgba(255,255,255,.6);
	backdrop-filter: blur(8px);
}

.btn-light:hover {
	background: var(--green-soft);
	border-color: var(--green-light);
	color: var(--green-dark);
}

.btn-small {
	min-height: 34px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 12px;
	gap: 5px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	min-height: calc(100vh - 72px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(155deg, #fff 0%, var(--green-tint) 40%, var(--gold-soft) 100%);
}

/* Animated background mesh */
.hero::before {
	content: '';
	position: absolute;
	inset: -40%;
	background:
		radial-gradient(ellipse 60% 50% at 70% 45%, rgba(76,175,80,.15) 0%, transparent 65%),
		radial-gradient(ellipse 45% 40% at 20% 60%, rgba(212,175,55,.10) 0%, transparent 60%),
		radial-gradient(ellipse 35% 35% at 55% 10%, rgba(155,143,192,.14) 0%, transparent 55%);
	animation: meshShift 14s ease-in-out infinite alternate;
}

@keyframes meshShift {
	0%   { transform: translate(0,0) scale(1); }
	50%  { transform: translate(2%,1.5%) scale(1.03); }
	100% { transform: translate(-1%,2%) scale(1.01); }
}

/* Logo watermark right side */
.hero::after {
	content: '';
	position: absolute;
	right: -2%;
	top: 50%;
	transform: translateY(-50%);
	width: min(680px, 56vw);
	height: min(680px, 56vw);
	background-image: url("../img/logo-header.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: .09;
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 2;
	padding: 90px 0 110px;
	width: 100%;
}

/* Eyebrow pill */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(46,125,50,.10), rgba(212,175,55,.10));
	border: 1.5px solid rgba(46,125,50,.25);
	color: var(--sky-dark);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--grad-brand);
	flex-shrink: 0;
}

.hero h1 {
	margin: 22px 0 0;
	max-width: 780px;
	font-family: 'Amiri', Georgia, serif;
	font-size: clamp(44px, 7.5vw, 82px);
	line-height: .96;
	font-weight: 900;
	letter-spacing: -.02em;
	color: var(--ink);
}

.hero h1 em {
	font-style: italic;
	font-weight: 300;
	background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold) 60%, var(--green-mid) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero p {
	margin: 24px 0 0;
	max-width: 580px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.8;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

/* Hero stat cards */
.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 48px;
	max-width: 760px;
}

.hero-stat {
	background: rgba(255,255,255,.85);
	border: 1.5px solid rgba(46,125,50,.2);
	border-radius: 14px;
	padding: 18px 16px;
	box-shadow: 0 8px 28px rgba(15,28,46,.07);
	backdrop-filter: blur(10px);
	transition: transform .2s, box-shadow .2s;
}

.hero-stat:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(15,28,46,.1);
}

.hero-stat strong {
	display: block;
	font-family: 'Amiri', serif;
	font-size: 28px;
	line-height: 1;
	background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold) 60%, var(--green-mid) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-stat span {
	display: block;
	margin-top: 7px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.white { background: #fff; }
.section.tinted { background: linear-gradient(180deg, var(--soft) 0%, #EBF4FA 100%); }

.section-head {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
	gap: 28px;
	align-items: end;
	margin-bottom: 36px;
}

.section-head h2 {
	margin: 0;
	font-family: 'Amiri', serif;
	font-size: clamp(32px, 4.5vw, 52px);
	line-height: 1.06;
	font-weight: 900;
}

.section-head p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.8;
}

/* ── Grid & Cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	background: var(--panel);
	border: 1.5px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 8px 28px rgba(15,28,46,.06);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 48px rgba(15,28,46,.11);
	border-color: rgba(46,125,50,.3);
}

.card h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
}

.card p {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.card-actions { margin-top: 18px; }

/* Colored top accent line → replaced with icon circle */
.card-topline {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.card.red   .card-topline { background: rgba(212,175,55,.12);  color: var(--gold-dark); }
.card.blue  .card-topline { background: rgba(76,175,80,.12); color: var(--sky); }
.card.green .card-topline { background: rgba(30,138,104,.1);  color: var(--green); }
.card.amber .card-topline { background: rgba(192,117,32,.1);  color: var(--amber); }
.card.violet .card-topline { background: rgba(155,143,192,.12); color: var(--lavender); }

/* Card color underline (small) */
.card.red   { border-top: 3px solid var(--coral); }
.card.blue  { border-top: 3px solid var(--sky); }
.card.green { border-top: 3px solid var(--green); }
.card.amber { border-top: 3px solid var(--amber); }
.card.violet { border-top: 3px solid var(--lavender); }

.teacher-avatar {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px;
	min-height: 48px;
	max-width: 48px;
	max-height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
	border: 2px solid #fff;
	background: linear-gradient(135deg, var(--green-light), var(--gold));
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(46,125,50,.18);
}

.teacher-avatar-sm {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	min-height: 40px;
	max-width: 40px;
	max-height: 40px;
	font-size: 12px;
}

.teacher-avatar-lg {
	width: 66px !important;
	height: 66px !important;
	min-width: 66px;
	min-height: 66px;
	max-width: 66px;
	max-height: 66px;
	font-size: 18px;
}

.teacher-avatar-xl {
	width: 92px !important;
	height: 92px !important;
	min-width: 92px;
	min-height: 92px;
	max-width: 92px;
	max-height: 92px;
	font-size: 24px;
}

.catalog-teacher-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	min-width: 0;
}

.catalog-teacher-head h3 {
	margin: 0;
	min-width: 0;
	line-height: 1.3;
}

.catalog-teacher-title {
	margin: 4px 0 0 !important;
	font-weight: 700;
}

/* ── Feature band ────────────────────────────────────────────────────── */
.feature-band {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
	background: linear-gradient(135deg, #fff 60%, #EEF7FC);
	border: 1.5px solid var(--line);
	border-radius: 24px;
	padding: 56px 48px;
	box-shadow: var(--shadow-lg);
}

.feature-media {
	aspect-ratio: 4/3;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(46,125,50,.12) 0%, rgba(212,175,55,.12) 50%, rgba(38,166,154,.12) 100%),
		repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(46,125,50,.04) 24px, rgba(46,125,50,.04) 25px);
	border: 2px solid rgba(76,175,80,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	position: relative;
	overflow: hidden;
}

.feature-media::after {
	content: '🧠';
	font-size: 80px;
	opacity: .5;
}

.check-list {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	display: grid;
	gap: 12px;
}

.check-list li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #3A4A5E;
}

.check-list li::before {
	content: '';
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--green-light), var(--green-dark));
	margin-top: 2px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center;
}

/* ── CTA Section ─────────────────────────────────────────────────────── */
.section.cta {
	background: linear-gradient(135deg, var(--ink) 0%, #1A2E45 100%);
	position: relative;
	overflow: hidden;
}

.section.cta::before {
	content: '';
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(ellipse 50% 60% at 80% 50%, rgba(76,175,80,.15) 0%, transparent 60%),
		radial-gradient(ellipse 40% 50% at 10% 50%, rgba(212,175,55,.10) 0%, transparent 60%);
}

.cta-panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) auto;
	gap: 40px;
	align-items: center;
}

.cta-panel h2 {
	margin: 0;
	font-family: 'Amiri', serif;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
	color: #fff;
}

.cta-panel p {
	margin: 12px 0 0;
	color: rgba(255,255,255,.6);
	font-size: 15px;
	line-height: 1.75;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
	background: var(--ink);
	color: rgba(255,255,255,.55);
	font-size: 14px;
	border-top: none;
}

.footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
	gap: 56px;
	padding: 56px 0 40px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand-name {
	font-family: 'Amiri', serif;
	font-size: 26px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 14px;
	background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold) 60%, var(--green-mid) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.footer-brand p {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255,255,255,.45);
	max-width: 300px;
}

.footer-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-col-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: rgba(255,255,255,.35);
	margin-bottom: 4px;
}

.footer-col a {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255,255,255,.55);
	transition: color .15s;
}

.footer-col a:hover {
	color: rgba(255,255,255,.9);
}

.footer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: 22px 0;
	font-size: 13px;
}

.footer-tagline {
	font-style: italic;
	color: rgba(255,255,255,.3);
	font-size: 12px;
}

@media (max-width: 1080px) {
	.footer-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 720px) {
	.footer-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.footer-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

/* ── Auth pages ──────────────────────────────────────────────────────── */
.auth-page {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	gap: 26px;
	align-items: center;
	padding: 34px;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.auth-copy h1 {
	margin: 16px 0 0;
	font-family: 'Amiri', serif;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.02;
}

.auth-copy p {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
	max-width: 620px;
}

.auth-panel {
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 18px;
	padding: 32px;
	box-shadow: var(--shadow);
}

.auth-panel h2 { margin: 0; font-size: 24px; }
.auth-panel form { margin-top: 22px; }

/* ── Form elements ───────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }

.input, .select, .textarea {
	width: 100%;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	transition: border-color .15s, box-shadow .15s;
}
.input, .select { height: 44px; padding: 0 14px; }
.textarea { min-height: 110px; padding: 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
	outline: 3px solid rgba(46,125,50,.2);
	border-color: var(--sky);
}

/* ── Badges & pills ──────────────────────────────────────────────────── */
.badge {
	display: inline-flex; align-items: center;
	min-height: 24px; padding: 3px 10px;
	border-radius: 999px;
	background: #EEF2F7; color: #334155;
	font-size: 11px; font-weight: 800;
}
.badge.success { background: #E4F5EE; color: var(--green); }
.badge.warn    { background: #FFF4D9; color: var(--amber); }
.badge.danger  { background: #FFF0EE; color: #B42318; }

.meta-pill {
	display: inline-flex; align-items: center;
	min-height: 30px; padding: 0 12px;
	border-radius: 999px;
	background: rgba(46,125,50,.10);
	color: var(--green-dark);
	font-size: 12px; font-weight: 800;
}

/* ── Alert ───────────────────────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 14px; border: 1.5px solid; font-size: 14px; }
.alert-danger  { background: #FFF1EF; border-color: #FFD0CC; color: #B42318; }
.alert-success { background: #E7F6EE; border-color: #CBE9D8; color: #176247; }

.public-flash {
	background: #fff;
	border-bottom: 1px solid rgba(46,125,50,.10);
	padding: 14px 0 0;
}

/* ── Client shell ────────────────────────────────────────────────────── */
.client-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.client-sidebar {
	background: linear-gradient(180deg, var(--green-dark) 0%, #1A4F1E 60%, #153D18 100%);
	padding: 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: auto;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 0 32px rgba(13, 31, 14, .18);
}

/* Sidebar brand */
.client-sidebar .brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 20px 18px;
	border-bottom: 1px solid rgba(255,255,255,.09);
	flex-shrink: 0;
}

.client-sidebar .brand img {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: contain;
	background: rgba(255,255,255,.12);
	padding: 4px;
}

.client-sidebar .brand span {
	font-size: 17px;
	font-weight: 900;
	background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 60%, #fff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.client-sidebar .brand small {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255,255,255,.45);
	-webkit-text-fill-color: rgba(255,255,255,.45);
	margin-top: 3px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* Sidebar nav */
.client-nav {
	margin: 14px 0 0;
	padding: 0 12px;
	display: grid;
	gap: 2px;
	flex: 1;
}

.client-nav > a,
.client-nav-group > a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 10px 13px;
	border-radius: 10px;
	color: rgba(255,255,255,.65);
	font-size: 13.5px;
	font-weight: 700;
	transition: background .15s, color .15s;
	position: relative;
}

.client-nav > a:hover,
.client-nav-group > a:hover {
	background: rgba(255,255,255,.10);
	color: #fff;
}

.client-nav > a.active,
.client-nav-group.active > a.active {
	background: rgba(255,255,255,.15);
	color: #fff;
	box-shadow: inset 3px 0 0 var(--gold-bright);
}

/* Nav group */
.client-nav-group {
	display: grid;
	gap: 2px;
}

/* Subnav */
.client-subnav {
	display: grid;
	gap: 1px;
	padding: 2px 0 6px 14px;
	margin-left: 13px;
	border-left: 1.5px solid rgba(255,255,255,.12);
}

.client-subnav a {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 10px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 8px;
	color: rgba(255,255,255,.50);
	transition: background .15s, color .15s;
}

.client-subnav a:hover {
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.85);
}

.client-subnav a.active {
	background: rgba(212,175,55,.18);
	color: var(--gold-bright);
}

/* Sidebar footer area */
.client-sidebar::after {
	content: '';
	display: block;
	height: 20px;
	flex-shrink: 0;
}

/* ── Main area ───────────────────────────────────────────────────────── */
.client-main {
	min-width: 0;
	background: #F3F7F3;
}

/* ── Topbar ──────────────────────────────────────────────────────────── */
.client-topbar {
	height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 28px;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid rgba(46,125,50,.10);
	position: sticky;
	top: 0;
	z-index: 4;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 2px 12px rgba(13,31,14,.06);
}

.client-topbar > div:not(.nav-actions) strong {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--ink);
	line-height: 1.2;
}

.client-topbar .auth-help {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
	font-weight: 500;
}

.client-topbar .nav-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.client-topbar .nav-actions .btn {
	min-height: 36px;
	padding: 0 16px;
	font-size: 13px;
}

/* ── Content area ────────────────────────────────────────────────────── */
.client-content {
	padding: 28px;
	max-width: 1440px;
}

/* ── Client hero banner ──────────────────────────────────────────────── */
.client-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--green-dark) 0%, #2A6B30 50%, var(--green-mid) 100%);
	border-radius: 18px;
	padding: 32px 36px;
	margin-bottom: 22px;
	color: #fff;
	box-shadow: 0 16px 48px rgba(46,125,50,.28);
}

.client-hero::before {
	content: '';
	position: absolute;
	inset: -30%;
	background:
		radial-gradient(ellipse 55% 50% at 90% 50%, rgba(212,175,55,.20) 0%, transparent 60%),
		radial-gradient(ellipse 40% 40% at 10% 60%, rgba(76,175,80,.15) 0%, transparent 55%);
	pointer-events: none;
}

.client-hero > * { position: relative; z-index: 1; }

.client-hero h1 {
	margin: 0;
	font-family: 'Amiri', serif;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
	color: #fff;
	font-weight: 900;
}

.client-hero h1 em {
	font-style: italic;
	color: var(--gold-bright);
}

.client-hero p {
	margin: 10px 0 0;
	color: rgba(255,255,255,.72);
	line-height: 1.7;
	font-size: 14.5px;
	max-width: 520px;
}

/* ── Mobile menu toggle ──────────────────────────────────────────────── */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.mobile-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

body.client-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.client-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.client-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Floating WhatsApp */
.whatsapp-float {
	position: fixed;
	left: 20px;
	right: auto;
	bottom: 24px;
	z-index: 118;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.whatsapp-float-label {
	background: var(--ink);
	color: #fff;
	padding: 6px 12px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity .2s, transform .2s;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-within .whatsapp-float-label {
	opacity: 1;
	transform: translateX(0);
}

.whatsapp-float-btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 8px 28px rgba(37,211,102,.45);
	transition: transform .2s, box-shadow .2s;
	text-decoration: none;
}

.whatsapp-float-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 12px 36px rgba(37,211,102,.55);
}

/* Floating booking chat */
.booking-chat-widget {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 120;
	font-family: inherit;
}

body.has-whatsapp-float .booking-chat-widget {
	bottom: 22px;
}

.booking-chat-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 104px;
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--green-light), var(--green-dark));
	color: #fff;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 16px 36px rgba(46,125,50,.32);
}

.booking-chat-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 42px rgba(46,125,50,.38);
}

.booking-chat-toggle b {
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--gold-bright);
	color: var(--ink);
	font-size: 12px;
	line-height: 1;
}

.booking-chat-panel {
	position: absolute;
	right: 0;
	bottom: 58px;
	display: none;
	width: min(380px, calc(100vw - 32px));
	max-height: min(620px, calc(100vh - 110px));
	overflow: hidden;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(13,31,14,.20);
}

.booking-chat-panel.is-open {
	display: grid;
	grid-template-rows: auto auto auto minmax(180px, 1fr) auto auto;
}

.booking-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 15px;
	background: var(--green-tint);
	border-bottom: 1px solid var(--line);
}

.booking-chat-header strong,
.booking-chat-header span {
	display: block;
}

.booking-chat-header strong {
	font-size: 15px;
}

.booking-chat-header span {
	color: var(--muted);
	font-size: 12px;
	margin-top: 3px;
}

.booking-chat-header button {
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-weight: 900;
	cursor: pointer;
}

.booking-chat-conversation {
	display: grid;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}

.booking-chat-conversation label {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
}

.booking-chat-conversation select {
	width: 100%;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
	font-size: 13px;
	padding: 0 10px;
}

.booking-chat-meta {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.45;
}

.booking-chat-messages {
	display: grid;
	align-content: start;
	gap: 9px;
	padding: 14px;
	overflow: auto;
	background: #f8fbf7;
}

.booking-chat-empty {
	padding: 18px;
	color: var(--muted);
	text-align: center;
	font-size: 13px;
}

.booking-chat-message {
	display: grid;
	justify-items: start;
	gap: 4px;
}

.booking-chat-message.is-mine {
	justify-items: end;
}

.booking-chat-bubble {
	max-width: 84%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	color: var(--ink);
	font-size: 13px;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.booking-chat-message.is-mine .booking-chat-bubble {
	border-color: transparent;
	border-radius: 14px 14px 4px 14px;
	background: var(--green);
	color: #fff;
}

.booking-chat-message span {
	color: var(--muted);
	font-size: 11px;
}

.booking-chat-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.booking-chat-form textarea {
	min-height: 44px;
	max-height: 110px;
	resize: vertical;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 11px;
	font-size: 13px;
	line-height: 1.4;
}

.booking-chat-form .btn {
	min-height: 44px;
	padding: 0 14px;
	border-radius: 10px;
}

.booking-chat-alert {
	padding: 0 14px 12px;
	color: var(--red);
	font-size: 12px;
}

/* ── Stats ───────────────────────────────────────────────────────────── */
/* ── Stat cards ──────────────────────────────────────────────────────── */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.stat-card {
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	padding: 20px 18px 18px;
	box-shadow: 0 4px 18px rgba(46,125,50,.07);
	position: relative;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--green-light), var(--gold));
	border-radius: 16px 16px 0 0;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(46,125,50,.13);
}

.stat-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--green-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	margin-bottom: 14px;
}

.stat-card span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.stat-card strong {
	display: block;
	font-family: 'Amiri', serif;
	font-size: 34px;
	line-height: 1;
	margin-top: 6px;
	background: linear-gradient(135deg, var(--green-dark), var(--gold));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ── Panel / Portal grid ─────────────────────────────────────────────── */
.portal-grid {
	display: grid;
	grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
	gap: 18px;
	align-items: start;
}

.portal-grid.single { grid-template-columns: 1fr; }
.mt-18 { margin-top: 18px; }

.panel {
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(46,125,50,.06);
	overflow: hidden;
}

.panel-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(135deg, #fff 70%, var(--green-tint));
}

.panel-title h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--ink);
}

.panel-title p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* ── Table ───────────────────────────────────────────────────────────── */
.table-wrap { overflow: auto; }

table { width: 100%; min-width: 680px; border-collapse: collapse; }

th {
	text-align: left;
	padding: 11px 16px;
	background: var(--green-soft);
	color: var(--green-dark);
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 1.5px solid var(--line);
}

td {
	text-align: left;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	vertical-align: middle;
	color: var(--ink);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--green-tint); }

/* ── List ────────────────────────────────────────────────────────────── */
.list { display: grid; gap: 0; padding: 0; }

.list-item {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	background: #fff;
	transition: background .15s;
}

.list-item:last-child { border-bottom: none; }

a.list-item:hover { background: var(--green-tint); }

.list-item strong {
	display: block;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--ink);
}

.list-item span {
	display: block;
	color: var(--muted);
	font-size: 12.5px;
	margin-top: 4px;
	line-height: 1.55;
}

.article-list {
	display: grid;
	gap: 0;
	background: #fff;
}

.article-list-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.article-list-item:last-child {
	border-bottom: none;
}

.article-list-item:hover {
	background: var(--green-tint);
}

.article-list-copy {
	min-width: 0;
}

.article-meta {
	color: var(--green-dark);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 7px;
}

.article-list-item h3 {
	margin: 0;
	color: var(--ink);
	font-size: 17px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0;
}

.article-list-item h3 a:hover {
	color: var(--green-dark);
}

.article-list-item p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.65;
	max-width: 820px;
}

.article-hero {
	padding-bottom: 34px;
}

.article-hero .article-meta {
	color: rgba(255, 255, 255, .86);
	margin-top: 18px;
	margin-bottom: 0;
}

.article-panel {
	max-width: 980px;
}

.article-public-layout {
	display: grid;
	gap: 18px;
	max-width: 980px;
	margin: 0 auto;
}

.public-article-panel {
	width: 100%;
}

.article-public-head {
	padding: 32px 30px 10px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(135deg, #fff 72%, var(--green-tint));
}

.article-public-head h1 {
	margin: 0;
	color: var(--ink);
	font-family: 'Amiri', serif;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.12;
	font-weight: 900;
	letter-spacing: 0;
}

.article-public-head p {
	margin: 14px 0 0;
	max-width: 760px;
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.78;
}

.article-body {
	padding: 28px 30px 34px;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.86;
	overflow-wrap: anywhere;
}

.article-body > *:first-child {
	margin-top: 0;
}

.article-body > *:last-child {
	margin-bottom: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre {
	margin: 0 0 1.15em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
	margin: 1.55em 0 .55em;
	color: var(--green-dark);
	line-height: 1.28;
	letter-spacing: 0;
}

.article-body h2 {
	font-size: 24px;
}

.article-body h3 {
	font-size: 20px;
}

.article-body h4 {
	font-size: 18px;
}

.article-body ul,
.article-body ol {
	padding-left: 1.4em;
}

.article-body blockquote {
	border-left: 4px solid var(--green);
	background: var(--green-tint);
	padding: 12px 16px;
	color: var(--ink);
}

.article-body a {
	color: var(--green-dark);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 20px 0;
}

/* Notif list item */
.list-item-notif {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	transition: background .15s;
}

.list-item-notif:last-child { border-bottom: none; }
.list-item-notif:hover { background: var(--green-tint); }

.list-item-notif-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green-light);
	flex-shrink: 0;
	margin-top: 5px;
}

.list-item-notif strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.list-item-notif span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* Quick action item */
.quick-action-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	transition: background .15s;
	cursor: pointer;
}

.quick-action-item:last-child { border-bottom: none; }
.quick-action-item:hover { background: var(--green-tint); }

.quick-action-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--green-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
	transition: background .15s, transform .15s;
}

.quick-action-item:hover .quick-action-icon {
	background: var(--green-light);
	transform: scale(1.08);
}

.quick-action-text strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.quick-action-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.quick-action-arrow {
	margin-left: auto;
	color: var(--muted);
	font-size: 16px;
	transition: transform .15s, color .15s;
}

.quick-action-item:hover .quick-action-arrow {
	transform: translateX(3px);
	color: var(--green-dark);
}

.empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 13.5px;
}

.empty-icon {
	font-size: 32px;
	display: block;
	margin-bottom: 10px;
	opacity: .5;
}

/* ── Client hero (dashboard banner) ──────────────────────────────────── */
.client-hero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 26px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(245,197,24,.18);
	border: 1px solid rgba(245,197,24,.35);
	color: var(--gold-bright);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 12px;
}

.client-hero h1 {
	margin: 0 0 8px;
	font-family: 'Amiri', serif;
	font-size: clamp(22px, 2.8vw, 32px);
	line-height: 1.15;
	color: #fff;
	font-weight: 900;
}

.client-hero p {
	margin: 0;
	color: rgba(255,255,255,.68);
	font-size: 14px;
	line-height: 1.7;
	max-width: 540px;
}

.client-hero,
.client-hero h1,
.client-hero h2,
.client-hero h3,
.client-hero p,
.client-hero .eyebrow {
	color: #fff !important;
}

.client-hero p {
	color: rgba(255,255,255,.88) !important;
}

.client-hero .eyebrow {
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.34);
}

.client-hero .eyebrow::before {
	background: #fff;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.form-section-title {
	margin: 8px 0 0;
	padding-top: 18px;
	border-top: 1.5px solid var(--line);
}

.form-section-title h3 {
	margin: 0;
	font-size: 16px;
}

.form-section-title p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}

.inline-help-link {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	color: var(--green-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.qris-current {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 10px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #FAFCFE;
}

.qris-current img {
	width: 70px;
	height: 70px;
	border-radius: 10px;
	object-fit: cover;
	border: 1.5px solid var(--line);
	background: #fff;
}

.qris-current a {
	color: var(--green-dark);
	font-size: 13px;
	font-weight: 800;
}

/* Teacher portal */
.teacher-register-page {
	grid-template-columns: minmax(0, .92fr) minmax(520px, 560px);
	align-items: start;
	padding-top: 28px;
	padding-bottom: 28px;
}

.teacher-auth .auth-copy {
	position: sticky;
	top: 34px;
}

.field-group {
	display: grid;
	gap: 14px;
}

.field-group.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	padding: 5px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #F7FBF7;
}

.segmented-control label {
	min-width: 0;
	margin: 0;
}

.segmented-control input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.segmented-control span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: background .15s, color .15s, box-shadow .15s;
}

.segmented-control input:checked + span {
	background: #fff;
	color: var(--green-dark);
	box-shadow: 0 6px 18px rgba(46,125,50,.12);
}

.segmented-fit {
	max-width: 520px;
}

.teacher-hero {
	background: linear-gradient(135deg, #fff 45%, var(--gold-soft));
}

.teacher-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.module-video-section {
	margin-bottom: 18px;
}

.teacher-module-video-panel {
	overflow: hidden;
}

.teacher-module-video-shell {
	display: grid;
	place-items: center;
	padding: 18px;
	background: #0F172A;
}

.teacher-module-video {
	width: min(100%, 360px);
	aspect-ratio: 9 / 16;
	border: 0;
	border-radius: 8px;
	background: #000;
	box-shadow: 0 18px 42px rgba(15, 23, 42, .28);
}

.teacher-checklist {
	display: grid;
	gap: 10px;
	padding: 16px;
}

.checklist-item {
	display: grid;
	gap: 6px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: #FAFCFE;
}

.checklist-item::before {
	content: '';
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--line);
	justify-self: end;
	margin-bottom: -24px;
}

.checklist-item.done::before {
	border-color: var(--green);
	background: var(--green);
	box-shadow: inset 0 0 0 4px #fff;
}

.checklist-item strong {
	font-size: 14px;
}

.checklist-item span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
	padding-right: 28px;
}

.teacher-form-grid {
	align-items: start;
}

.panel-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 0 16px 16px;
}

.service-option {
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 16px;
	background: #FAFCFE;
}

.service-option p {
	margin: 12px 0 14px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.toggle-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: center;
	cursor: pointer;
}

.toggle-card input {
	width: 22px;
	height: 22px;
	accent-color: var(--green);
}

.toggle-card span {
	display: grid;
	gap: 3px;
}

.toggle-card strong {
	font-size: 15px;
}

.toggle-card small {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.availability-board {
	display: grid;
	gap: 10px;
	padding: 16px;
}

.timezone-field {
	max-width: 320px;
}

.availability-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 14px;
	background: #fff;
}

.availability-row .field {
	margin-bottom: 0;
}

.day-toggle {
	align-self: start;
	margin-top: 8px;
}

.availability-day-body,
.availability-slots {
	display: grid;
	gap: 10px;
}

.availability-slot-row {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(140px, 1fr) auto;
	gap: 12px;
	align-items: end;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #FAFCFE;
}

.availability-slot-actions {
	display: flex;
	align-items: end;
	justify-content: flex-end;
}

.availability-add-slot,
.availability-remove-slot {
	min-height: 40px;
	padding: 0 14px;
	font-size: 13px;
}

.split-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.compact-list .empty {
	padding: 20px;
}

.schedule-row {
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
	gap: 10px;
	align-items: center;
}

.schedule-row span {
	margin-top: 0;
}

.file-input {
	height: auto;
	min-height: 44px;
	padding: 10px 14px;
}

.teacher-sidebar-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 2px 4px;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: linear-gradient(135deg, #fff 0%, var(--green-tint) 100%);
}

.teacher-sidebar-profile strong,
.teacher-sidebar-profile span {
	display: block;
	min-width: 0;
}

.teacher-sidebar-profile strong {
	font-size: 14px;
	line-height: 1.35;
}

.teacher-sidebar-profile span {
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.35;
}

.topbar-identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.topbar-identity > div:last-child {
	min-width: 0;
}

.profile-photo-upload {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: #FAFCFE;
}

.profile-photo-copy {
	display: grid;
	gap: 8px;
	min-width: 0;
	width: 100%;
}

/* ── Course / learn ──────────────────────────────────────────────────── */
.course-hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.course-summary { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.course-title { font-family: 'Amiri', serif; font-size: clamp(36px,5vw,58px); line-height: 1.05; margin: 18px 0 0; }
.course-intro { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 760px; }
.course-price { font-family: 'Amiri', serif; font-size: 34px; line-height: 1; font-weight: 900; margin: 0 0 12px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.curriculum { display: grid; gap: 12px; margin-top: 24px; }
.curriculum-section { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.curriculum-section h3 { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.lesson-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row strong { display: block; font-size: 14px; }
.lesson-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.learn-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 18px; align-items: start; }
.learn-sidebar { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); position: sticky; top: 88px; overflow: hidden; }
.learn-sidebar-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.progress-bar { height: 8px; background: #E8EEF4; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-light), var(--green-dark)); border-radius: inherit; }
.learn-nav { display: grid; max-height: calc(100vh - 230px); overflow: auto; }
.learn-nav a { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.learn-nav a.active { background: rgba(46,125,50,.10); color: var(--green-dark); font-weight: 800; }
.learn-nav .learn-section-label { pointer-events: none; background: #F6F9FC; font-weight: 800; }
.learn-player { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.lesson-media { aspect-ratio: 16/9; background: #0F172A; display: grid; place-items: center; color: #fff; padding: 20px; text-align: center; }
.lesson-media iframe, .lesson-media video { width: 100%; height: 100%; border: 0; }

/* ── Mobile nav toggle ───────────────────────────────────────────────── */
.mobile-menu-toggle {
	display: none; width: 42px; height: 42px;
	border: 1.5px solid var(--line); border-radius: 10px;
	background: #fff; align-items: center; justify-content: center;
	flex-direction: column; gap: 5px; cursor: pointer; flex: 0 0 auto;
	transition: background .15s;
}
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--ink); }
.mobile-menu-toggle:hover { background: var(--green-soft); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.nav-links { display: none; }
	.grid.three, .grid.four, .hero-stats, .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.section-head, .feature-band, .cta-panel, .portal-grid, .course-hero, .learn-layout { grid-template-columns: 1fr; }
	.teacher-register-page { grid-template-columns: 1fr; }
	.teacher-auth .auth-copy { position: relative; top: auto; }
	.availability-row,
	.availability-slot-row { grid-template-columns: 1fr; }
	.availability-row .day-toggle { grid-column: auto; }
	.client-shell { grid-template-columns: 1fr; }
	.mobile-menu-toggle { display: inline-flex; }
	.client-shell { grid-template-columns: 1fr; }
	.mobile-menu-toggle { display: inline-flex; }
	.client-sidebar {
		position: fixed; top: 66px; left: 0; right: auto;
		z-index: 40; height: calc(100vh - 66px); max-height: calc(100vh - 66px);
		border-radius: 0; box-shadow: 4px 0 40px rgba(13,31,14,.28);
		transform: translateX(-100%); opacity: 0; pointer-events: none;
		transition: opacity .22s ease, transform .22s ease;
		width: 272px;
	}
	.client-menu-open .client-sidebar { transform: translateX(0); opacity: 1; pointer-events: auto; }
	.course-summary, .learn-sidebar { position: relative; top: auto; }
	.course-summary, .learn-sidebar { position: relative; top: auto; }
}

@media (max-width: 720px) {
	.container { width: min(100% - 28px, 1160px); }
	.nav { height: auto; padding: 12px 0; align-items: flex-start; flex-direction: column; }
	.nav-actions, .hero-actions { width: 100%; }
	.btn, .nav-actions .btn { width: 100%; }
	.hero { background-position: center top 20px; background-size: 320px; }
	.hero::after { display: none; }
	.hero-inner { padding: 60px 0 80px; }
	.grid.three, .grid.four, .hero-stats, .stat-grid, .form-grid { grid-template-columns: 1fr; }
	.auth-page { grid-template-columns: 1fr; padding: 20px; }
	.field-group.two, .field-group.three, .availability-row, .availability-slot-row, .schedule-row { grid-template-columns: 1fr; }
	.availability-row .day-toggle { grid-column: auto; }
	.availability-slot-actions { justify-content: stretch; }
	.panel-actions { flex-direction: column; }
	.split-list-item { align-items: stretch; flex-direction: column; }
	.profile-photo-upload,
	.catalog-teacher-head { align-items: flex-start; }
	.profile-photo-upload { flex-direction: column; }
	.client-topbar { height: auto; padding: 14px 18px; align-items: center; gap: 12px; }
	.client-topbar .nav-actions { gap: 6px; }
	.client-content { padding: 16px; }
	.article-list-item { grid-template-columns: 1fr; align-items: stretch; }
	.article-list-item .btn { width: 100%; }
	.article-public-layout { gap: 14px; }
	.article-public-head { padding: 24px 18px 8px; }
	.article-public-head h1 { font-size: 30px; }
	.article-body { padding: 22px 18px 28px; font-size: 15px; line-height: 1.78; }
	.article-body h2 { font-size: 21px; }
	.article-body h3 { font-size: 18px; }
}

/* ── Catalog page ────────────────────────────────────────────────────── */
.catalog-hero {
	padding: 60px 0 40px;
	background: linear-gradient(135deg, #fff 0%, var(--green-tint) 100%);
	border-bottom: 1px solid var(--line);
}
.catalog-hero h1 {
	font-family: 'Amiri', serif;
	font-size: clamp(36px, 5vw, 60px);
	margin: 0 0 10px;
}
.catalog-filters {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-bottom: 28px;
}
.filter-pill {
	display: inline-flex; align-items: center; min-height: 34px;
	padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--line); background: #fff;
	font-size: 13px; font-weight: 700; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.filter-pill:hover, .filter-pill.active {
	border-color: var(--green); background: rgba(46,125,50,.08); color: var(--green-dark);
}
.filter-pill:hover, .filter-pill.active {
	border-color: var(--green); background: rgba(46,125,50,.08); color: var(--green-dark);
}

/* ??? TEACHER FILTER BAR ??????????????????????????????????????? */
.teacher-filter {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 14px;
	align-items: end;
	padding: 18px 20px;
	margin: 0 0 32px;
	border-radius: 18px;
	border: 1.5px solid var(--line);
	background: linear-gradient(180deg, #ffffff 0%, var(--green-tint) 100%);
	box-shadow: 0 12px 30px rgba(46,125,50,.07);
}
.teacher-filter-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 6px;
}
.teacher-filter-field label {
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.teacher-filter-field .select {
	min-height: 44px;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	background: #fff;
	color: var(--ink);
	font-weight: 700;
	padding: 0 14px;
	transition: border-color .15s, box-shadow .15s;
}
.teacher-filter-field .select:focus {
	outline: 0;
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(46,125,50,.12);
}
.teacher-filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}
.teacher-filter-actions .btn {
	min-height: 44px;
	padding: 0 20px;
}
.teacher-filter-summary {
	grid-column: 1 / -1;
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--green-dark);
	background: rgba(46,125,50,.08);
	border-radius: 10px;
	padding: 8px 12px;
}
@media (max-width: 880px) {
	.teacher-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.teacher-filter-actions {
		grid-column: 1 / -1;
	}
}
@media (max-width: 540px) {
	.teacher-filter {
		grid-template-columns: 1fr;
	}
}

.teacher-catalog-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0 auto;
}

.teacher-search-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 0;
	border-radius: 24px;
	background: #fff;
	box-shadow: none;
	overflow: hidden;
	transition: transform .18s ease;
}

.teacher-search-card:hover {
	transform: translateY(-2px);
}

.teacher-card-media {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border-radius: 24px;
	background: var(--green-soft);
}

.teacher-card-photo,
.teacher-card-initials {
	width: 100%;
	height: 360px;
	border-radius: 24px;
	object-fit: cover;
	background: linear-gradient(135deg, var(--green-light), var(--gold));
	box-shadow: none;
}

.teacher-card-initials {
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 40px;
	font-weight: 900;
}

.teacher-card-media::after {
	content: '';
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
	pointer-events: none;
}

.teacher-card-overlay {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	z-index: 1;
	color: #fff;
}

.teacher-card-overlay h3 {
	margin: 0;
	font-size: 28px;
	line-height: 1.08;
	font-weight: 900;
	text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.teacher-card-overlay span {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 800;
	text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.teacher-card-favorite {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(0,0,0,.26);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
}

.teacher-card-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 14px 2px 0;
}

.teacher-card-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: #F0ECFF;
	color: #635BFF;
	font-size: 13px;
	font-weight: 900;
}

.teacher-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	justify-content: space-between;
	margin-top: 0;
	color: var(--ink);
	font-size: 14px;
	font-weight: 800;
}

.teacher-card-rating {
	color: var(--ink);
}

.teacher-card-title {
	display: none;
}

.teacher-card-copy {
	margin: 8px 0 0;
	color: #303A32;
	font-size: 15px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.teacher-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	padding-top: 0;
}

.teacher-card-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 10px;
	border: 1.5px solid rgba(46,125,50,.18);
	border-radius: 999px;
	background: rgba(46,125,50,.07);
	color: var(--green-dark);
	font-size: 12px;
	font-weight: 800;
}

.teacher-card-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px 2px 0;
	border-left: 0;
}

.teacher-card-price span,
.teacher-card-price small,
.teacher-card-note {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.teacher-card-price strong {
	display: inline;
	margin-top: 0;
	color: var(--ink);
	font-size: 17px;
	line-height: 1.1;
	font-weight: 900;
}

.teacher-card-price small {
	display: inline;
	color: var(--ink);
	font-size: 15px;
}

.teacher-card-side .btn {
	width: 100%;
	justify-content: center;
}

.teacher-card-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.reservation-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.reservation-modal.open {
	display: flex;
}

.reservation-modal-open {
	overflow: hidden;
}

.reservation-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15,28,46,.48);
	backdrop-filter: blur(5px);
}

.reservation-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: calc(100vh - 44px);
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	padding: 24px;
	box-shadow: var(--shadow-lg);
}

.reservation-dialog-sm {
	width: min(100%, 420px);
}

.reservation-dialog h3 {
	margin: 0;
	font-size: 22px;
}

.reservation-dialog p {
	margin: 8px 0 18px;
	color: var(--muted);
	line-height: 1.6;
}

.reservation-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.reservation-auth-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.reservation-address-action,
.reservation-phone-action {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #F8FBF8;
	margin-bottom: 12px;
}

.reservation-address-action strong,
.reservation-address-action span,
.reservation-phone-action strong,
.reservation-phone-action span {
	display: block;
}

.reservation-address-action strong,
.reservation-phone-action strong {
	font-size: 14px;
	color: var(--ink);
}

.reservation-address-action span,
.reservation-phone-action span {
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.reservation-gps-panel {
	display: grid;
	gap: 8px;
	margin: 14px 0 16px;
	padding: 12px;
	border: 1.5px dashed rgba(46,125,50,.28);
	border-radius: 10px;
	background: var(--green-tint);
}

.reservation-gps-panel [data-address-hint],
.reservation-address-coords {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.reservation-address-alert {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}

.reservation-address-alert.success {
	background: #EEF8EF;
	color: #176329;
	border: 1px solid #C8E6CC;
}

.reservation-address-alert.info {
	background: #F2F7FF;
	color: #244A7A;
	border: 1px solid #D6E6FF;
}

.reservation-address-alert.error {
	background: #FFF0EE;
	color: #A61B12;
	border: 1px solid #FFD5CF;
}

.reservation-address-actions {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	margin-top: 14px;
}

@media (max-width: 900px) {
	.teacher-catalog-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.teacher-card-photo,
	.teacher-card-initials {
		height: 320px;
	}

	.teacher-card-side .btn {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.teacher-catalog-list {
		grid-template-columns: 1fr;
	}

	.teacher-card-photo,
	.teacher-card-initials {
		height: 340px;
	}

	.teacher-card-overlay h3 {
		font-size: 26px;
	}

	.teacher-card-side {
		flex-direction: column;
		align-items: stretch;
	}

	.teacher-card-side .btn {
		width: 100%;
	}

	.reservation-auth-actions {
		grid-template-columns: 1fr;
	}

	.reservation-address-action,
	.reservation-phone-action,
	.reservation-address-actions {
		grid-template-columns: 1fr;
	}
}

/* ── Scroll animations ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.card, .hero-stat, .feature-band {
		animation: fadeUp .5s ease both;
	}
	@keyframes fadeUp {
		from { opacity: 0; transform: translateY(18px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}

/* Teacher detail */
.teacher-detail-hero {
	background: linear-gradient(135deg, #fff 0%, var(--green-tint) 100%);
	border-bottom: 1px solid var(--line);
	padding: 42px 0;
}

.teacher-detail-grid {
	display: grid;
	grid-template-columns: minmax(260px, 380px) minmax(0, 1fr) minmax(280px, 340px);
	gap: 28px;
	align-items: center;
}

.teacher-detail-photo {
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--green-light), var(--gold));
	box-shadow: var(--shadow-lg);
}

.teacher-detail-photo img,
.teacher-detail-photo div {
	width: 100%;
	aspect-ratio: 4 / 5;
	display: grid;
	place-items: center;
	object-fit: cover;
	color: #fff;
	font-size: 54px;
	font-weight: 900;
}

.teacher-detail-kicker {
	display: inline-flex;
	min-height: 30px;
	align-items: center;
	padding: 0 12px;
	border-radius: 999px;
	background: #FFF3C4;
	color: #8A6400;
	font-size: 12px;
	font-weight: 900;
}

.teacher-detail-intro h1 {
	margin: 16px 0 18px;
	font-family: 'Amiri', serif;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.05;
}

.teacher-detail-name strong,
.teacher-detail-name span {
	display: block;
}

.teacher-detail-name strong {
	font-size: 22px;
}

.teacher-detail-name span {
	margin-top: 5px;
	color: var(--muted);
	font-weight: 700;
}

.teacher-detail-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.teacher-detail-stats span,
.teacher-detail-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid var(--line);
	font-size: 13px;
	font-weight: 800;
}

.teacher-detail-reserve,
.teacher-detail-summary {
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 18px;
	padding: 20px;
	box-shadow: var(--shadow);
}

.teacher-detail-price {
	margin-bottom: 16px;
}

.teacher-detail-price span,
.teacher-detail-price small {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.teacher-detail-price strong {
	display: block;
	margin: 4px 0;
	font-size: 28px;
}

.teacher-detail-form {
	display: grid;
	gap: 12px;
}

.teacher-detail-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.teacher-detail-main {
	display: grid;
	gap: 26px;
}

.teacher-detail-main section {
	background: #fff;
	border-bottom: 1.5px solid var(--line);
	padding-bottom: 24px;
}

.teacher-detail-main h2 {
	margin: 0 0 12px;
	font-size: 26px;
}

.teacher-detail-main p,
.teacher-detail-list {
	color: #425244;
	line-height: 1.75;
	margin: 0;
}

.teacher-detail-list {
	padding-left: 18px;
}

.teacher-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.teacher-detail-summary {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 10px;
}

.teacher-detail-summary strong,
.teacher-detail-summary span {
	display: block;
}

.teacher-detail-summary span {
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.booking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	min-width: 260px;
}

.booking-actions form {
	margin: 0;
}

.booking-actions .btn {
	white-space: nowrap;
}

.booking-actions .btn:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.booking-actions-compact {
	gap: 6px;
	min-width: 220px;
}

.booking-actions-compact .btn,
.booking-actions-compact form {
	width: auto;
}

.booking-schedule {
	display: grid;
	gap: 4px;
	min-width: 150px;
}

.booking-schedule strong,
.booking-schedule span {
	display: block;
}

.booking-schedule strong {
	color: var(--ink);
	font-size: 14px;
	line-height: 1.35;
}

.booking-schedule span {
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.booking-address-card {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #F8FBF8;
	margin-top: 10px;
}

.booking-address-card span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.booking-address-card strong {
	color: var(--ink);
	font-size: 14px;
	line-height: 1.55;
}

.booking-address-actions {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	margin-top: 14px;
}

.teacher-popup-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #F8FBF8;
	margin: 12px 0;
}

.teacher-popup-head strong,
.teacher-popup-head span {
	display: block;
}

.teacher-popup-head strong {
	color: var(--ink);
	font-size: 16px;
}

.teacher-popup-head span {
	margin-top: 3px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.teacher-popup-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.rating-options {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.rating-options label {
	display: block;
}

.rating-options input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rating-options span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.rating-options input:checked + span {
	border-color: var(--gold);
	background: var(--gold-soft);
	color: var(--gold-dark);
}

.report-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.report-tabs .active {
	background: var(--green-soft);
	border-color: var(--green-light);
	color: var(--green-dark);
}

.report-panel {
	display: none;
	border-top: 1.5px solid var(--line);
	padding-top: 14px;
}

.report-panel.active {
	display: block;
}

.learning-report-form {
	display: grid;
	gap: 12px;
}

.learning-report-list {
	display: grid;
	gap: 10px;
}

.booking-meet-guide {
	display: grid;
	gap: 6px;
	max-width: 900px;
	color: #425244;
	line-height: 1.6;
}

.booking-meet-guide strong {
	color: var(--ink);
}

.booking-link-form {
	display: grid;
	gap: 6px;
	width: min(100%, 460px);
	margin: 0;
	flex-basis: 100%;
}

.booking-link-form label {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
}

.booking-link-row {
	display: grid;
	grid-template-columns: minmax(190px, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.btn-danger-soft {
	background: #FFF0EE;
	color: #B42318;
	border-color: #FFD5CF;
}

.btn-danger-soft:hover {
	background: #FFE1DC;
}

.payment-warning {
	border: 1.5px solid #F7D48C;
	border-radius: 8px;
	background: #FFF8E8;
	color: #6A4A00 !important;
	padding: 12px;
	font-weight: 700;
}

.payment-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}

.payment-detail-item {
	border: 1.5px solid var(--line);
	border-radius: 8px;
	padding: 12px;
	background: #F8FBF8;
}

.payment-detail-item span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.payment-detail-item strong {
	display: block;
	margin-top: 4px;
	color: var(--ink);
}

.payment-qris {
	display: grid;
	gap: 10px;
}

.payment-qris img {
	width: min(100%, 360px);
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #fff;
	justify-self: center;
}

.achievement-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.achievement-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 800;
}

.achievement-tabs a.active,
.achievement-tabs a:hover {
	border-color: rgba(46,125,50,.22);
	background: rgba(46,125,50,.10);
	color: var(--green-dark);
}

.achievement-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.achievement-grid .achievement-chart-panel:first-child:last-child {
	grid-column: 1 / -1;
}

.achievement-chart {
	display: grid;
	gap: 12px;
	padding: 16px;
}

.achievement-bar-row {
	display: grid;
	grid-template-columns: minmax(170px, .9fr) minmax(160px, 1.2fr) auto;
	gap: 10px;
	align-items: center;
}

.achievement-bar-label strong,
.achievement-bar-label span {
	display: block;
}

.achievement-bar-label strong {
	font-size: 13px;
	color: var(--ink);
}

.achievement-bar-label span {
	margin-top: 3px;
	font-size: 12px;
	color: var(--muted);
}

.achievement-bar-track {
	height: 12px;
	border-radius: 999px;
	background: #EEF4EF;
	overflow: hidden;
}

.achievement-bar-fill {
	height: 100%;
	min-width: 8px;
	border-radius: inherit;
	background: var(--green);
}

.achievement-bar-fill.achievement-tahsin {
	background: var(--gold);
}

.achievement-bar-fill.achievement-murajaah {
	background: #2F7EC7;
}

.achievement-bar-value {
	min-width: 74px;
	text-align: right;
	font-size: 12px;
	font-weight: 800;
	color: #334155;
}

.achievement-list {
	display: grid;
	gap: 12px;
	padding: 16px;
}

.achievement-item {
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: #FAFCFE;
}

.achievement-item-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.achievement-item h3 {
	margin: 8px 0 0;
	font-size: 17px;
}

.achievement-item p {
	margin: 6px 0 0;
	color: var(--muted);
	line-height: 1.6;
}

.achievement-detail-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.achievement-detail-grid div {
	border: 1.5px solid var(--line);
	border-radius: 8px;
	padding: 10px;
	background: #fff;
}

.achievement-detail-grid span {
	display: block;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--muted);
}

.achievement-detail-grid strong {
	display: block;
	margin-top: 5px;
	color: var(--ink);
}

.achievement-note {
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #fff;
	padding: 10px;
	color: #425244 !important;
}

@media (max-width: 1080px) {
	.teacher-detail-grid,
	.teacher-detail-content {
		grid-template-columns: 1fr;
	}

	.teacher-detail-photo {
		max-width: 460px;
	}

	.teacher-detail-summary {
		position: relative;
		top: auto;
	}
}

@media (max-width: 640px) {
	.booking-actions {
		min-width: 220px;
	}

	.booking-actions .btn,
	.booking-actions form {
		width: 100%;
	}

	.booking-link-row {
		grid-template-columns: 1fr;
	}

	.booking-address-actions {
		grid-template-columns: 1fr;
	}

	.teacher-popup-grid {
		grid-template-columns: 1fr;
	}

	.rating-options {
		grid-template-columns: 1fr;
	}

	.payment-detail-grid {
		grid-template-columns: 1fr;
	}

	.achievement-grid,
	.achievement-detail-grid {
		grid-template-columns: 1fr;
	}

	.achievement-bar-row {
		grid-template-columns: 1fr;
	}

	.achievement-bar-value {
		text-align: left;
	}
}

/* ═══════════════════════════════════════════════════════
   PATCH — Mobile Responsive Improvements
   ═══════════════════════════════════════════════════════ */

body { overflow-x: hidden; }

@media (max-width: 1100px) {
	.nav-actions .btn-ghost-green { display: none; }
}

@media (max-width: 960px) {
	.nav-links { display: none; }
}

@media (max-width: 768px) {
	.nav-actions { display: none; }

	/* Section head: single column */
	.section-head { grid-template-columns: 1fr !important; gap: 12px; }

	/* Feature band */
	.feature-band {
		grid-template-columns: 1fr !important;
		padding: 32px 24px !important;
		gap: 28px !important;
	}

	/* Cards */
	.grid.three,
	.grid.four { grid-template-columns: 1fr !important; }

	/* CTA */
	.cta-panel { grid-template-columns: 1fr !important; }
	.cta-panel .hero-actions { flex-direction: column !important; min-width: unset !important; }
	.cta-panel .hero-actions .btn { width: 100%; justify-content: center; }

	/* Sections spacing */
	.section { padding: 56px 0; }

	/* Teacher join grid */
	.teacher-join-grid {
		grid-template-columns: 1fr !important;
		gap: 32px !important;
		padding: 36px 24px !important;
		border-radius: 18px;
	}
}

@media (max-width: 480px) {
	.hero { overflow-x: hidden; }
	.hero-inner { padding: 52px 0 72px; }
	.hero h1 { font-size: clamp(30px, 9vw, 44px) !important; }
	.hero p  { font-size: 15px !important; }
	.hero-actions .btn { flex: 1 1 140px; justify-content: center; }
	.hero-stats,
	.hero-stats-custom { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
	.hero-stat { padding: 14px 12px; }
}

@media (max-width: 560px) {
	.whatsapp-float {
		left: 12px;
		right: auto;
		bottom: 14px;
	}

	.whatsapp-float-label {
		display: none;
	}

	body.has-whatsapp-float .booking-chat-widget {
		bottom: 12px;
	}

	.booking-chat-widget {
		right: 12px;
		bottom: 12px;
		left: 12px;
		display: flex;
		justify-content: flex-end;
	}

	.booking-chat-panel {
		right: 0;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 88px);
	}

	.booking-chat-form {
		grid-template-columns: 1fr;
	}

	.booking-chat-form .btn {
		width: 100%;
	}
}
