:root { --bg: #fff7f3; --card: #ffffff; --text: #334155; --muted: #7c8798; --primary: #f4a7b9; --primary-dark: #b85c72; --secondary: #a7c7e7; --mint: #b8e0d2; --cream: #fff1c9; --lavender: #d8c7ff; --soft: #ffe4ec; --line: #f0dfe5; --radius: 18px;
} * { box-sizing: border-box;
} html { scroll-behavior: smooth;
} body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: radial-gradient(circle at top left, rgba(216, 199, 255, .28), transparent 28%), radial-gradient(circle at top right, rgba(184, 224, 210, .30), transparent 25%), var(--bg); color: var(--text); line-height: 1.65;
} a { color: inherit; text-decoration: none;
} button,
input,
select { font: inherit;
} .hero { background: linear-gradient(135deg, #ffd6e0, #d8c7ff, #a7c7e7); color: #334155; padding: 56px 22px 44px;
} .hero-inner,
.container { max-width: 1180px; margin: 0 auto;
} .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); font-size: 14px; margin-bottom: 18px; font-weight: 700;
} h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -1.4px;
} .hero p { max-width: 830px; color: #475569; font-size: 18px; margin: 0 0 24px;
} .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
} .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
} .btn-primary { background: #ffffff; color: #b85c72; box-shadow: 0 8px 20px rgba(184, 92, 114, 0.16);
} .btn-secondary { color: #475569; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.42);
} .container { padding: 28px 22px 64px;
} .section { margin-top: 34px;
} .section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px;
} .section-title h2 { margin: 0; font-size: 28px; letter-spacing: -0.4px;
} .section-title p { margin: 6px 0 0; color: var(--muted); max-width: 760px;
} .grid { display: grid; gap: 16px;
} .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr));
} .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr));
} .card,
.day-card,
.timeline-item { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
} .card { padding: 20px;
} .stat { background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.76); padding: 16px; border-radius: 18px;
} .stat strong { display: block; font-size: 26px; line-height: 1.1;
} .stat span { color: #64748b; font-size: 14px;
} .level-card h3 { margin: 0 0 8px; font-size: 22px;
} .code,
.day-level { display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); color: var(--primary-dark); font-weight: 800;
} .code { padding: 4px 10px; font-size: 13px; margin-bottom: 12px;
} .level-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0;
} .chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 13px; font-weight: 600;
} table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
} th,
td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
} th { background: #f4a7b9; color: #ffffff; font-size: 14px;
} .level-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px;
} .level-tab { appearance: none; border: 1px solid #f0dfe5; background: rgba(255,255,255,.86); color: #475569; border-radius: 999px; padding: 10px 15px; cursor: pointer; font-weight: 800; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; user-select: none; pointer-events: auto;
} .level-tab:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
} .level-tab.active { background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; border-color: rgba(184, 92, 114, .20);
} .result-info { color: var(--muted); margin: 0 0 14px; font-weight: 700;
} .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 0; z-index: 10; box-shadow: 0 8px 20px rgba(15,23,42,.06);
} input,
select { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #ffffff; color: var(--text); font-size: 14px;
} input { flex: 1 1 260px;
} .day-list { display: grid; gap: 12px;
} .day-card { padding: 18px;
} .day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px;
} .day-title { font-size: 19px; font-weight: 800; margin: 0;
} .day-level { padding: 5px 10px; font-size: 13px; white-space: nowrap;
} .day-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px;
} .mini-box { background: #f9fafb; border: 1px solid #eef2f7; border-radius: 14px; padding: 12px;
} .mini-box strong { display: block; margin-bottom: 4px; font-size: 13px; color: #111827; text-transform: uppercase; letter-spacing: .4px;
} .mini-box p { margin: 0; color: #4b5563; font-size: 14px;
} .note { background: #fff1c9; border: 1px solid #f8d98b; border-radius: var(--radius); padding: 18px; color: #7c5a13;
} .footer { margin-top: 42px; padding: 24px; text-align: center; color: var(--muted);
} @media (max-width: 980px) { .grid-3, .grid-4, .day-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
} @media (max-width: 640px) { .grid-3, .grid-4, .day-body { grid-template-columns: 1fr; } .hero { padding-top: 38px; } .filters { position: static; } .level-tab { flex: 1 1 130px; justify-content: center; }
} /* ===================================================== PATCH 08 - FINAL TAB STYLE OVERRIDE Tujuan: menghilangkan tampilan default button browser. ===================================================== */ .level-tabs { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; margin: 20px 0 18px !important; padding: 10px !important; background: rgba(255, 255, 255, .74) !important; border: 1px solid rgba(240, 223, 229, .96) !important; border-radius: 999px !important; box-shadow: 0 12px 28px rgba(148, 116, 130, .10) !important;
} .level-tab,
button.level-tab { appearance: none !important; -webkit-appearance: none !important; border: 0 !important; outline: none !important; min-height: 44px !important; padding: 11px 18px !important; border-radius: 999px !important; background: transparent !important; color: #64748b !important; cursor: pointer !important; font-weight: 800 !important; letter-spacing: .2px !important; line-height: 1 !important; box-shadow: none !important; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important; user-select: none !important; pointer-events: auto !important; font-family: inherit !important; font-size: 14px !important;
} .level-tab:hover,
button.level-tab:hover { transform: translateY(-1px) !important; color: #b85c72 !important; background: rgba(255, 228, 236, .72) !important;
} .level-tab:focus,
button.level-tab:focus { outline: none !important;
} .level-tab:focus-visible,
button.level-tab:focus-visible { box-shadow: 0 0 0 4px rgba(167, 199, 231, .45) !important;
} .level-tab.active,
button.level-tab.active { color: #7f3f52 !important; background: linear-gradient(135deg, #ffd6e0, #d8c7ff) !important; box-shadow: 0 10px 22px rgba(184, 92, 114, .18), inset 0 1px 0 rgba(255, 255, 255, .75) !important;
} @media (max-width: 640px) { .level-tabs { border-radius: 22px !important; } .level-tab, button.level-tab { flex: 1 1 130px !important; text-align: center !important; }
} /* ===================================================== PATCH 09 - INTERACTIVE HTML JS CSS Progress, checklist, expand/collapse, and action buttons. ===================================================== */ .progress-panel { margin: 18px 0 16px; padding: 18px; background: linear-gradient(135deg, rgba(255, 214, 224, .70), rgba(216, 199, 255, .58), rgba(184, 224, 210, .48)); border: 1px solid rgba(240, 223, 229, .96); border-radius: 24px; box-shadow: 0 14px 32px rgba(148, 116, 130, .12);
} .progress-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px;
} .progress-label { display: block; color: #64748b; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px;
} .progress-summary strong { display: block; font-size: clamp(18px, 3vw, 25px); color: #334155;
} .progress-percent { min-width: 74px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: rgba(255, 255, 255, .75); color: #b85c72; font-size: 22px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
} .progress-bar { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.70); border: 1px solid rgba(255,255,255,.85);
} .progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f4a7b9, #d8c7ff, #a7c7e7); transition: width .28s ease;
} .progress-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
} .soft-action { appearance: none; -webkit-appearance: none; border: 0; min-height: 42px; padding: 10px 15px; border-radius: 999px; background: #ffffff; color: #64748b; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(148, 116, 130, .10); transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
} .soft-action:hover { transform: translateY(-1px); color: #b85c72; background: #fff7fb; box-shadow: 0 12px 24px rgba(148, 116, 130, .14);
} .soft-action.danger:hover { color: #be123c; background: #fff1f2;
} .day-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease; overflow: hidden;
} .day-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
} .day-card.completed { border-color: rgba(184, 224, 210, .95); background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(240, 253, 250, .86));
} .day-card.completed .day-title { color: #64748b;
} .day-card.completed .day-title::after { content: " ✓"; color: #16a34a;
} .day-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
} .complete-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border-radius: 999px; background: #f8fafc; border: 1px solid #eef2f7; color: #475569; font-weight: 800; font-size: 13px; cursor: pointer;
} .complete-toggle input { flex: 0 0 auto; min-height: auto; width: 16px; height: 16px; accent-color: #b8e0d2;
} .detail-toggle { appearance: none; border: 0; min-height: 36px; padding: 8px 12px; border-radius: 999px; background: #ffe4ec; color: #b85c72; font-size: 13px; font-weight: 900; cursor: pointer;
} .day-card.collapsed .day-body { display: none;
} .day-preview { display: none; color: #64748b; margin: 6px 0 0;
} .day-card.collapsed .day-preview { display: block;
} .empty-state { text-align: center; padding: 30px;
} .empty-state strong { display: block; font-size: 20px; margin-bottom: 6px;
} @media (max-width: 640px) { .progress-summary { align-items: flex-start; } .progress-actions, .filters { gap: 8px; } .soft-action { flex: 1 1 150px; } .day-head { align-items: flex-start; } .day-actions { width: 100%; } .complete-toggle, .detail-toggle { flex: 1 1 130px; justify-content: center; }
} /* ===================================================== PATCH 10 - MYSQL + NOTION STYLE LESSON CARDS ===================================================== */ .lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
} .lesson-card { position: relative; display: flex; flex-direction: column; min-height: 245px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .88); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(148, 116, 130, .08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
} .lesson-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(148, 116, 130, .13);
} .lesson-card.completed { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,253,250,.88)); border-color: rgba(184, 224, 210, .95);
} .lesson-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px;
} .lesson-day { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #fff1c9; color: #7c5a13; font-size: 13px; font-weight: 900;
} .lesson-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 900;
} .lesson-status.started { background: #e0f2fe; color: #0369a1;
} .lesson-status.done { background: #dcfce7; color: #15803d;
} .lesson-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25;
} .lesson-card p { margin: 0; color: #64748b; font-size: 14px;
} .lesson-mini-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0;
} .lesson-mini-meta span { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 800;
} .lesson-open { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 14px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; font-weight: 900; box-shadow: 0 10px 20px rgba(184, 92, 114, .14);
} .lesson-page .hero { display: none;
} .lesson-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; color: #64748b; font-weight: 800;
} .lesson-nav a { display: inline-flex; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--line); color: #b85c72;
} .lesson-hero-card { display: grid; grid-template-columns: 1.5fr 320px; gap: 22px; align-items: stretch; padding: 24px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,214,224,.72), rgba(216,199,255,.56), rgba(167,199,231,.44)); border: 1px solid rgba(240, 223, 229, .95); box-shadow: 0 18px 42px rgba(148, 116, 130, .14);
} .lesson-hero-card h2 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.7px;
} .lesson-hero-card p { max-width: 780px; color: #475569; font-size: 18px;
} .lesson-cover,
.lesson-cover-placeholder { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.74); box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
} .lesson-cover-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.72), transparent 30%), linear-gradient(135deg, #fff1c9, #ffe4ec, #d8c7ff); color: #7f3f52;
} .lesson-cover-placeholder span { font-size: 44px; font-weight: 900;
} .lesson-cover-placeholder strong { margin-top: 6px;
} .notion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px;
} .notion-card { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.90); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(148, 116, 130, .08);
} .notion-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
} .notion-icon { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff1c9; font-weight: 900;
} .notion-card h3 { margin: 0; font-size: 19px;
} .notion-card p { margin: 0; color: #475569;
} .notion-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; margin: 6px 0 12px; border: 1px solid #eef2f7;
} .block-grammar .notion-icon { background: #ffe4ec; color: #b85c72;
} .block-practice .notion-icon { background: #e0f2fe; color: #0369a1;
} .block-task .notion-icon { background: #dcfce7; color: #15803d;
} .block-tip .notion-icon { background: #fef3c7; color: #a16207;
} .lesson-navigation-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px;
} .nav-lesson-card { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.88); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(148, 116, 130, .08);
} .nav-lesson-card.next { text-align: right;
} .nav-lesson-card span { display: block; color: #94a3b8; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
} .nav-lesson-card strong { display: block; margin-top: 4px; color: #b85c72;
} @media (max-width: 980px) { .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lesson-hero-card { grid-template-columns: 1fr; } .notion-grid { grid-template-columns: 1fr; }
} @media (max-width: 640px) { .lesson-grid, .lesson-navigation-bottom { grid-template-columns: 1fr; } .lesson-nav { flex-direction: column; align-items: flex-start; } .lesson-card { min-height: auto; }
} /* ===================================================== PATCH 11 - LOGIN / REGISTER AUTH STYLE ===================================================== */ .user-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.76); color: #475569; font-weight: 900;
} .auth-body { min-height: 100vh; background: radial-gradient(circle at top left, rgba(216, 199, 255, .40), transparent 28%), radial-gradient(circle at bottom right, rgba(184, 224, 210, .42), transparent 30%), linear-gradient(135deg, #fff7f3, #ffe4ec);
} .auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px;
} .auth-card { width: min(100%, 460px); padding: 30px; border-radius: 30px; background: rgba(255,255,255,.88); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 24px 70px rgba(148, 116, 130, .18);
} .auth-brand { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; font-size: 22px; font-weight: 900; box-shadow: 0 12px 26px rgba(184, 92, 114, .14);
} .auth-card h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.7px;
} .auth-card p { margin: 0 0 20px; color: #64748b;
} .auth-alert { padding: 12px 14px; margin-bottom: 16px; border-radius: 16px; background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; font-weight: 800;
} .auth-form { display: grid; gap: 14px;
} .auth-form label { display: grid; gap: 7px;
} .auth-form label span { color: #475569; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px;
} .auth-form input { width: 100%; min-height: 48px; border-radius: 16px; border: 1px solid var(--line); background: #ffffff; padding: 0 14px; color: #334155;
} .auth-form input:focus { outline: none; border-color: #d8c7ff; box-shadow: 0 0 0 4px rgba(216,199,255,.28);
} .auth-submit { appearance: none; border: 0; min-height: 50px; border-radius: 18px; margin-top: 4px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; font-weight: 900; cursor: pointer; box-shadow: 0 14px 28px rgba(184, 92, 114, .16);
} .auth-switch { margin-top: 18px; color: #64748b; text-align: center; font-weight: 700;
} .auth-switch a { color: #b85c72; font-weight: 900;
} @media (max-width: 640px) { .auth-card { padding: 24px; border-radius: 24px; }
} /* ===================================================== PATCH 12 - PUBLIC PROMO LANDING PAGE ===================================================== */ .promo-nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 22px; background: rgba(255, 255, 255, .80); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(240, 223, 229, .88);
} .promo-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: #334155;
} .promo-logo span { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52;
} .promo-nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 800; color: #64748b;
} .promo-nav-links a { padding: 9px 12px; border-radius: 999px;
} .promo-login { background: #fff7f3; color: #b85c72 !important;
} .promo-register { background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52 !important; box-shadow: 0 10px 22px rgba(184, 92, 114, .14);
} .promo-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 64px 22px 36px;
} .promo-badge { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: #fff1c9; color: #7c5a13; font-weight: 900; margin-bottom: 16px;
} .promo-hero h1 { margin: 0 0 16px; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -1.8px; color: #334155;
} .promo-hero p { max-width: 760px; color: #64748b; font-size: 18px; margin: 0;
} .promo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
} .promo-actions.center { justify-content: center;
} .promo-cta-primary,
.promo-cta-secondary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; font-weight: 900;
} .promo-cta-primary { background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; box-shadow: 0 14px 28px rgba(184, 92, 114, .16);
} .promo-cta-secondary { background: rgba(255,255,255,.88); border: 1px solid var(--line); color: #64748b;
} .promo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px;
} .promo-stats div { padding: 16px; border-radius: 22px; background: rgba(255,255,255,.76); border: 1px solid var(--line);
} .promo-stats strong { display: block; color: #b85c72; font-size: 25px;
} .promo-stats span { color: #64748b; font-weight: 800; font-size: 13px;
} .promo-preview-card { padding: 22px; border-radius: 30px; background: rgba(255,255,255,.88); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 26px 70px rgba(148, 116, 130, .16);
} .preview-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px;
} .preview-top span,
.preview-top em { padding: 6px 10px; border-radius: 999px; font-style: normal; font-weight: 900; font-size: 13px;
} .preview-top span { background: #fff1c9; color: #7c5a13;
} .preview-top em { background: #dcfce7; color: #15803d;
} .promo-preview-card h2 { margin: 0 0 14px; font-size: 28px;
} .preview-note { padding: 14px; border-radius: 18px; background: #f8fafc; border: 1px solid #eef2f7; margin-top: 10px;
} .preview-note strong { display: block; margin-bottom: 4px;
} .preview-note p { margin: 0; font-size: 14px;
} .promo-section { max-width: 1180px; margin: 0 auto; padding: 54px 22px;
} .promo-section-title { max-width: 740px; margin-bottom: 24px;
} .promo-section-title span { color: #b85c72; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; font-size: 13px;
} .promo-section-title h2 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.8px;
} .promo-section-title p { margin: 0; color: #64748b; font-size: 17px;
} .promo-card-grid,
.promo-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
} .promo-material-card,
.promo-feature { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.88); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(148, 116, 130, .08);
} .material-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #fff1c9, #ffe4ec); color: #7f3f52; font-size: 23px; font-weight: 900; margin-bottom: 14px;
} .promo-material-card h3,
.promo-feature strong { margin: 0 0 8px; font-size: 20px; color: #334155;
} .promo-material-card p,
.promo-feature p { margin: 0; color: #64748b;
} .level-section { background: rgba(255,255,255,.36); border-block: 1px solid rgba(240, 223, 229, .76); max-width: none;
} .level-section .promo-section-title,
.level-section .promo-level-list { max-width: 1180px; margin-left: auto; margin-right: auto;
} .promo-level-list { display: grid; gap: 12px;
} .promo-level-list div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.90); border: 1px solid var(--line);
} .promo-level-list strong { color: #b85c72; font-size: 18px;
} .promo-level-list span { color: #64748b;
} .promo-final-cta { margin: 36px auto 72px; max-width: 980px; text-align: center; padding: 42px 24px; border-radius: 34px; background: linear-gradient(135deg, rgba(255,214,224,.76), rgba(216,199,255,.62), rgba(167,199,231,.45)); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 24px 70px rgba(148, 116, 130, .16);
} .promo-final-cta h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px);
} .promo-final-cta p { margin: 0; color: #64748b; font-size: 17px;
} @media (max-width: 980px) { .promo-hero { grid-template-columns: 1fr; } .promo-card-grid, .promo-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
} @media (max-width: 680px) { .promo-nav { align-items: flex-start; flex-direction: column; } .promo-nav-links { width: 100%; } .promo-nav-links a { flex: 1 1 auto; text-align: center; } .promo-stats, .promo-card-grid, .promo-feature-grid { grid-template-columns: 1fr; } .promo-level-list div { grid-template-columns: 1fr; } .promo-hero { padding-top: 38px; }
} /* ===================================================== PATCH 13 - REGISTER VALIDATION UI ===================================================== */ .field-message { display: block; min-height: 18px; margin-top: 2px; font-size: 12px; font-weight: 800; color: #94a3b8;
} .field-message.is-error { color: #be123c;
} .field-message.is-success { color: #15803d;
} .field-message.is-warning { color: #b45309;
} .auth-form input.field-error { border-color: #fecdd3; background: #fff1f2; box-shadow: 0 0 0 4px rgba(254, 205, 211, .35);
} .auth-form input.field-success { border-color: #bbf7d0; background: #f0fdf4; box-shadow: 0 0 0 4px rgba(187, 247, 208, .32);
} .password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px;
} .password-meter span { height: 7px; border-radius: 999px; background: #e2e8f0; transition: background .18s ease, transform .18s ease;
} .password-meter span.active { transform: scaleY(1.15);
} .password-meter span.active[data-score="1"] { background: #fb7185;
} .password-meter span.active[data-score="2"] { background: #fbbf24;
} .password-meter span.active[data-score="3"] { background: #a7c7e7;
} .password-meter span.active[data-score="4"] { background: #86efac;
} .auth-submit.is-disabled,
.auth-submit:disabled { opacity: .58; cursor: not-allowed; filter: grayscale(.15); box-shadow: none;
} /* ===================================================== PATCH 14 - LANDING HERO IMAGE ===================================================== */ .promo-hero-visual { position: relative; min-height: 430px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 28px 76px rgba(148, 116, 130, .20); background: #fff;
} .promo-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(51,65,85,.48) 100%), radial-gradient(circle at top right, rgba(255, 214, 224, .20), transparent 38%); pointer-events: none;
} .promo-hero-visual img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; display: block;
} .hero-floating-note { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.92); backdrop-filter: blur(16px); box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
} .hero-floating-note span { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #fff1c9; color: #7c5a13; font-size: 12px; font-weight: 900; margin-bottom: 8px;
} .hero-floating-note strong { display: block; color: #7f3f52; font-size: 34px; line-height: 1; margin-bottom: 8px;
} .hero-floating-note p { margin: 0; color: #475569; font-size: 14px;
} @media (max-width: 980px) { .promo-hero-visual { min-height: 360px; } .promo-hero-visual img { min-height: 360px; }
} @media (max-width: 640px) { .promo-hero-visual { min-height: 300px; border-radius: 26px; } .promo-hero-visual img { min-height: 300px; } .hero-floating-note { left: 14px; right: 14px; bottom: 14px; padding: 14px; border-radius: 20px; } .hero-floating-note strong { font-size: 28px; }
} /* ===================================================== PATCH 15 - OPTIMIZED HERO IMAGE WEBP ===================================================== */ .promo-hero-visual picture { display: block; width: 100%; height: 100%;
} .promo-hero-visual picture img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; display: block;
} /* ===================================================== PATCH 16 - STUDENT VIEW + DAY 1 MATERIAL ===================================================== */ .day-one-section { padding-top: 32px;
} .day-one-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch;
} .day-one-main-card,
.day-one-note { background: rgba(255,255,255,.90); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(148, 116, 130, .10);
} .day-one-main-card { padding: 24px; border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; background: radial-gradient(circle at top right, rgba(216, 199, 255, .34), transparent 34%), rgba(255,255,255,.92);
} .day-one-top { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
} .day-one-top span,
.day-one-top em { display: inline-flex; padding: 6px 11px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 900;
} .day-one-top span { background: #fff1c9; color: #7c5a13;
} .day-one-top em { background: #dcfce7; color: #15803d;
} .day-one-main-card h3 { margin: 0 0 12px; color: #334155; font-size: clamp(26px, 4vw, 38px); line-height: 1.1;
} .day-one-main-card p { margin: 0 0 22px; color: #64748b; font-size: 16px;
} .day-one-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
} .day-one-note { padding: 18px; border-radius: 24px;
} .day-one-note strong { display: block; color: #334155; font-size: 18px; margin-bottom: 8px;
} .day-one-note p { margin: 0; color: #64748b;
} @media (max-width: 900px) { .day-one-layout, .day-one-note-grid { grid-template-columns: 1fr; } .day-one-main-card { min-height: auto; }
} /* ===================================================== PATCH 17 - FULL DAY 1 MATERIAL SECTION ===================================================== */ .day-one-full { display: grid; gap: 18px;
} .day-one-intro-card,
.day-one-topic-card,
.day-one-tips-card { padding: 24px; border-radius: 28px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(148, 116, 130, .10);
} .day-one-intro-card { background: radial-gradient(circle at top right, rgba(216, 199, 255, .36), transparent 32%), radial-gradient(circle at bottom left, rgba(184, 224, 210, .30), transparent 32%), rgba(255,255,255,.94);
} .day-one-badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #fff1c9; color: #7c5a13; font-size: 13px; font-weight: 900; margin-bottom: 12px;
} .day-one-intro-card h3,
.day-one-topic-card h3,
.day-one-tips-card h3 { margin: 0 0 12px; color: #334155; font-size: clamp(24px, 4vw, 36px); line-height: 1.14;
} .day-one-intro-card p,
.day-one-topic-card p,
.day-one-tips-card p { color: #64748b; font-size: 16px;
} .day-one-table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 20px; border: 1px solid var(--line);
} .day-one-table { min-width: 760px; border: 0; border-radius: 0;
} .day-one-table th { background: linear-gradient(135deg, #f4a7b9, #d8c7ff);
} .day-one-table td { background: rgba(255,255,255,.96);
} .day-one-table small { color: #64748b;
} .day-one-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
} .vocab-pill-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px;
} .vocab-pill-grid div { display: grid; gap: 4px; padding: 14px; border-radius: 20px; background: #f8fafc; border: 1px solid #eef2f7;
} .vocab-pill-grid strong { color: #b85c72;
} .vocab-pill-grid span { color: #334155; font-size: 20px; font-weight: 900;
} .vocab-pill-grid em { color: #64748b; font-style: normal; font-size: 13px;
} .tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
} .tips-grid div { padding: 18px; border-radius: 22px; background: #fff1c9; border: 1px solid #f8d98b;
} .tips-grid strong { display: block; color: #7c5a13; font-size: 18px; margin-bottom: 6px;
} @media (max-width: 980px) { .vocab-pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .day-one-card-grid, .tips-grid { grid-template-columns: 1fr; }
} @media (max-width: 560px) { .vocab-pill-grid { grid-template-columns: 1fr; }
} /* ===================================================== PATCH 18 - DAY 1 BUNNY WEBP IMAGE ===================================================== */ .day-one-inline-visual { margin: 20px 0 22px; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.86); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 18px 40px rgba(148, 116, 130, .12);
} .day-one-inline-visual picture { display: block; width: 100%;
} .day-one-inline-visual img { width: 100%; display: block; object-fit: cover;
} @media (max-width: 640px) { .day-one-inline-visual { border-radius: 22px; margin: 16px 0 18px; }
} /* ===================================================== PATCH 19 - FORCE SHOW DAY 1 IMAGE ===================================================== */ .day-one-hero-image { display: block !important; width: 100% !important; margin: 20px 0 24px !important; padding: 0 !important; border-radius: 28px !important; overflow: hidden !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} .day-one-hero-image picture { display: block !important; width: 100% !important;
} .day-one-hero-image img { display: block !important; width: 100% !important; height: auto !important; max-height: 520px !important; object-fit: cover !important;
} @media (max-width: 640px) { .day-one-hero-image { border-radius: 22px !important; margin: 16px 0 20px !important; } .day-one-hero-image img { max-height: none !important; }
} /* ===================================================== PATCH 20 - INLINE BASE64 DAY 1 IMAGE Gambar ditanam langsung di index.php agar tidak gagal karena path assets. ===================================================== */ .day-one-hero-image.inline-image { display: block !important; width: 100% !important; margin: 20px 0 24px !important; padding: 0 !important; border-radius: 28px !important; overflow: hidden !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} .day-one-hero-image.inline-image img { display: block !important; width: 100% !important; height: auto !important; max-height: 520px !important; object-fit: cover !important;
} @media (max-width: 640px) { .day-one-hero-image.inline-image { border-radius: 22px !important; margin: 16px 0 20px !important; } .day-one-hero-image.inline-image img { max-height: none !important; }
} /* ===================================================== PATCH 21 - DAY 1 IMAGE ON LESSON PAGE Target page: lesson.php?id=1 ===================================================== */ .lesson-day1-visual-card { position: relative !important; display: block !important; margin: 20px 0 22px !important; border-radius: 30px !important; overflow: hidden !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} .lesson-day1-visual-card picture { display: block !important; width: 100% !important;
} .lesson-day1-visual-card img { display: block !important; width: 100% !important; height: auto !important; max-height: 540px !important; object-fit: cover !important;
} .lesson-day1-visual-caption { position: absolute !important; left: 18px !important; right: 18px !important; bottom: 18px !important; z-index: 2 !important; padding: 16px !important; border-radius: 22px !important; background: rgba(255,255,255,.90) !important; border: 1px solid rgba(255,255,255,.95) !important; backdrop-filter: blur(14px) !important; box-shadow: 0 16px 38px rgba(15, 23, 42, .16) !important;
} .lesson-day1-visual-caption span { display: inline-flex !important; padding: 5px 10px !important; border-radius: 999px !important; background: #fff1c9 !important; color: #7c5a13 !important; font-size: 12px !important; font-weight: 900 !important; margin-bottom: 7px !important;
} .lesson-day1-visual-caption strong { display: block !important; color: #334155 !important; font-size: 20px !important; line-height: 1.2 !important;
} .lesson-day1-visual-caption p { margin: 6px 0 0 !important; color: #64748b !important; font-size: 14px !important;
} @media (max-width: 640px) { .lesson-day1-visual-card { border-radius: 24px !important; } .lesson-day1-visual-caption { position: static !important; border-radius: 0 !important; box-shadow: none !important; } .lesson-day1-visual-card img { max-height: none !important; }
} /* ===================================================== PATCH 22 - MOVE DAY 1 IMAGE AFTER INTRO MATERIAL CARD Target: lesson.php?id=1 ===================================================== */ .notion-card.block-image { grid-column: 1 / -1 !important; padding: 0 !important; overflow: hidden !important; border-radius: 28px !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} .notion-card.block-image .notion-card-head { padding: 18px 20px 0 !important; margin-bottom: 12px !important;
} .notion-card.block-image .notion-image { display: block !important; width: 100% !important; max-height: 520px !important; object-fit: cover !important; border-radius: 0 !important; border: 0 !important; margin: 0 !important;
} .notion-card.block-image p { padding: 16px 20px 20px !important; color: #64748b !important;
} @media (max-width: 640px) { .notion-card.block-image { border-radius: 22px !important; } .notion-card.block-image .notion-image { max-height: none !important; }
} /* ===================================================== PATCH 27 - COMPACT LESSON HEADER + SIDEBAR MATERIAL Target: /lesson/day-... ===================================================== */ .lesson-body { background: radial-gradient(circle at top left, rgba(216, 199, 255, .20), transparent 28%), radial-gradient(circle at top right, rgba(184, 224, 210, .22), transparent 24%), #fff7f3;
} .compact-site-header { position: sticky; top: 0; z-index: 80; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(240, 223, 229, .92); backdrop-filter: blur(18px); box-shadow: 0 10px 26px rgba(148, 116, 130, .08);
} .compact-brand { display: inline-flex; align-items: center; gap: 10px; color: #334155; font-weight: 900;
} .compact-brand span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52;
} .compact-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
} .compact-nav a,
.compact-nav span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(240, 223, 229, .92); color: #64748b; font-weight: 800; font-size: 13px;
} .compact-nav a { color: #b85c72;
} .lesson-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; max-width: 1500px; margin: 0 auto; padding: 18px; gap: 18px;
} .lesson-sidebar { position: sticky; top: 82px; height: calc(100vh - 104px); overflow: hidden; display: flex; flex-direction: column; border-radius: 26px; background: rgba(255,255,255,.88); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 16px 38px rgba(148, 116, 130, .10);
} .sidebar-head { padding: 18px 18px 12px; border-bottom: 1px solid #f1e7ec;
} .sidebar-head strong { display: block; color: #334155; font-size: 18px;
} .sidebar-head span { display: block; color: #94a3b8; font-size: 13px; font-weight: 800;
} .sidebar-progress-mini { padding: 14px 18px; border-bottom: 1px solid #f1e7ec;
} .sidebar-progress-mini > div:first-child { display: flex; justify-content: space-between; align-items: center; color: #64748b; font-weight: 800; font-size: 13px; margin-bottom: 8px;
} .sidebar-progress-mini strong { color: #b85c72;
} .mini-progress-bar { height: 9px; border-radius: 999px; overflow: hidden; background: #f1f5f9;
} .mini-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f4a7b9, #d8c7ff, #a7c7e7);
} .sidebar-lesson-list { overflow-y: auto; padding: 10px;
} .sidebar-lesson-list a { display: grid; gap: 3px; padding: 11px 12px; border-radius: 16px; color: #475569; border: 1px solid transparent;
} .sidebar-lesson-list a:hover { background: #fff7fb;
} .sidebar-lesson-list a.active { background: linear-gradient(135deg, #ffe4ec, #f0eaff); border-color: rgba(184, 92, 114, .15); box-shadow: 0 8px 18px rgba(184, 92, 114, .10);
} .sidebar-lesson-list a.done { background-image: linear-gradient(90deg, rgba(220,252,231,.52), rgba(255,255,255,0));
} .side-day { color: #b85c72; font-size: 12px; font-weight: 900;
} .sidebar-lesson-list strong { font-size: 13px; line-height: 1.25;
} .sidebar-lesson-list em { color: #94a3b8; font-size: 12px; font-style: normal; font-weight: 800;
} .lesson-content { min-width: 0;
} .mobile-lesson-bar { display: none;
} .lesson-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #94a3b8; font-weight: 800; font-size: 14px;
} .lesson-breadcrumb a { color: #b85c72;
} .lesson-compact-title { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 22px; margin-bottom: 16px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,214,224,.70), rgba(216,199,255,.52), rgba(167,199,231,.38)); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 16px 38px rgba(148, 116, 130, .12);
} .lesson-compact-title h1 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; letter-spacing: -.8px;
} .lesson-compact-title p { margin: 0; color: #64748b; font-size: 16px; max-width: 820px;
} .compact-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 260px;
} .compact-meta span { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.76); color: #64748b; font-size: 12px; font-weight: 900; border: 1px solid rgba(255,255,255,.88);
} .lesson-narrow-grid { grid-template-columns: repeat(2, minmax(0, 1fr));
} .lesson-narrow-grid .notion-card.block-image { grid-column: 1 / -1;
} .lesson-page .hero { display: none !important;
} @media (max-width: 1100px) { .lesson-shell { grid-template-columns: 280px minmax(0, 1fr); } .lesson-narrow-grid { grid-template-columns: 1fr; } .lesson-compact-title { grid-template-columns: 1fr; } .compact-meta { justify-content: flex-start; max-width: none; }
} @media (max-width: 820px) { .compact-site-header { position: static; align-items: flex-start; flex-direction: column; } .lesson-shell { display: block; padding: 12px; } .mobile-lesson-bar { display: flex; position: sticky; top: 0; z-index: 75; gap: 8px; margin-bottom: 12px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 12px 26px rgba(148, 116, 130, .10); } .mobile-lesson-bar button, .mobile-lesson-bar a { flex: 1; min-height: 40px; border: 0; border-radius: 14px; background: #ffe4ec; color: #b85c72; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .mobile-lesson-bar a { background: #f8fafc; color: #64748b; } .lesson-sidebar { display: none; position: fixed; inset: 12px; z-index: 100; top: 12px; height: auto; max-height: calc(100vh - 24px); } .lesson-sidebar.open { display: flex; } .lesson-breadcrumb { display: none; } .lesson-compact-title { padding: 18px; border-radius: 24px; } .lesson-compact-title h1 { font-size: 29px; }
} /* ===================================================== PATCH 30 - RENDER HTML CONTENT IN LESSON ===================================================== */ .lesson-html-content { color: #475569; line-height: 1.75;
} .lesson-html-content p { margin: 0 0 12px;
} .lesson-html-content h2,
.lesson-html-content h3,
.lesson-html-content h4 { color: #334155; line-height: 1.22; margin: 18px 0 10px;
} .lesson-html-content h2:first-child,
.lesson-html-content h3:first-child,
.lesson-html-content h4:first-child { margin-top: 0;
} .lesson-html-content ul,
.lesson-html-content ol { margin: 10px 0 14px; padding-left: 22px;
} .lesson-html-content li { margin: 5px 0;
} .lesson-html-content blockquote { margin: 14px 0; padding: 14px 16px; border-left: 5px solid #f4a7b9; border-radius: 14px; background: #fff7fb; color: #64748b;
} .lesson-html-content table { width: 100%; border-collapse: collapse; margin: 14px 0; background: #ffffff; overflow: hidden; border-radius: 16px;
} .lesson-html-content th,
.lesson-html-content td { border: 1px solid #eef2f7; padding: 10px 11px; text-align: left; vertical-align: top;
} .lesson-html-content th { background: #ffe4ec; color: #7f3f52;
} .lesson-html-content img { max-width: 100%; height: auto; display: block; border-radius: 18px; margin: 14px 0; border: 1px solid #eef2f7;
} .lesson-html-content a { color: #b85c72; font-weight: 900; text-decoration: underline;
} .lesson-html-content code { background: #f8fafc; padding: 2px 6px; border-radius: 7px; color: #b85c72;
} .lesson-html-content pre { white-space: pre-wrap; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 16px; padding: 14px; overflow-x: auto;
} /* ===================================================== PATCH 31 - CLEAN IMAGE BLOCK IN LESSON Target: /lesson/day-1-mengenal-bahasa-jepang - Hapus judul/caption image block - Tampilkan gambar penuh tanpa crop ===================================================== */ .notion-card.block-image { grid-column: 1 / -1 !important; padding: 0 !important; overflow: hidden !important; border-radius: 28px !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} .notion-card.block-image .notion-card-head,
.notion-card.block-image .lesson-html-content,
.notion-card.block-image p { display: none !important;
} .notion-card.block-image .notion-image { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; object-fit: contain !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important;
} @media (max-width: 640px) { .notion-card.block-image { border-radius: 22px !important; }
} /* ===================================================== PATCH 32 - IMAGE SIDE BY SIDE WITH INTRO CARD Target: /lesson/day-1-mengenal-bahasa-jepang - Image card no longer full-width - Image appears beside intro card - If image is missing, next cards move up ===================================================== */ .lesson-narrow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: dense !important; align-items: start !important;
} /* Override previous full-width image block rules */
.lesson-narrow-grid .notion-card.block-image,
.notion-card.block-image { grid-column: auto !important; align-self: start !important; padding: 0 !important; overflow: hidden !important; border-radius: 28px !important; background: #ffffff !important; border: 1px solid rgba(240, 223, 229, .96) !important; box-shadow: 0 18px 42px rgba(148, 116, 130, .14) !important;
} /* Image block remains clean: no title, no text */
.notion-card.block-image .notion-card-head,
.notion-card.block-image .lesson-html-content,
.notion-card.block-image p { display: none !important;
} /* Show full image, not cropped */
.notion-card.block-image .notion-image { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; object-fit: contain !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important;
} /* Make the welcome card and image visually balanced */
.lesson-narrow-grid .notion-card:first-child { min-height: 100% !important;
} @media (max-width: 1100px) { .lesson-narrow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
} @media (max-width: 760px) { .lesson-narrow-grid { grid-template-columns: 1fr !important; } .notion-card.block-image { border-radius: 22px !important; }
} /* ===================================================== PATCH 33 - SITE LOGO WEBP Logo kucing belajar Jepang di semua halaman peserta. ===================================================== */ .hero-logo { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 28px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.88); box-shadow: 0 16px 34px rgba(148, 116, 130, .14); display: grid; place-items: center; overflow: hidden;
} .hero-logo img { width: 76px; height: 76px; object-fit: contain; display: block;
} .promo-logo img,
.compact-brand img,
.auth-brand img { display: block; object-fit: contain;
} .promo-logo img { width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); padding: 3px;
} .compact-brand img { width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); padding: 3px;
} .auth-brand { overflow: hidden;
} .auth-brand img { width: 58px; height: 58px;
} @media (max-width: 640px) { .hero-logo { width: 76px; height: 76px; border-radius: 24px; } .hero-logo img { width: 66px; height: 66px; }
} /* ===================================================== PATCH 34 - SITE TITLE BRANDING Nama website: Mulai Baca: Belajar Bahasa Jepang ===================================================== */ .promo-logo strong,
.compact-brand strong,
.admin-brand strong { line-height: 1.15;
} .hero h1 { max-width: 980px; margin-left: auto; margin-right: auto;
} /* ===================================================== PATCH 35 - LOGIN JS VALIDATION UI Target: /auth/login ===================================================== */ .password-input-wrap { position: relative; display: flex; align-items: center;
} .password-input-wrap input { padding-right: 92px !important;
} .password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 7px 11px; border: 0; border-radius: 999px; background: #fff7fb; color: #b85c72; font-size: 12px; font-weight: 900; cursor: pointer;
} .password-toggle:hover { background: #ffe4ec;
} .field-message { display: block; min-height: 18px; margin-top: 2px; font-size: 12px; font-weight: 800; color: #94a3b8;
} .field-message.is-error { color: #be123c;
} .field-message.is-success { color: #15803d;
} .field-message.is-warning { color: #b45309;
} .auth-form input.field-error { border-color: #fecdd3; background: #fff1f2; box-shadow: 0 0 0 4px rgba(254, 205, 211, .35);
} .auth-form input.field-success { border-color: #bbf7d0; background: #f0fdf4; box-shadow: 0 0 0 4px rgba(187, 247, 208, .32);
} .auth-submit.is-disabled,
.auth-submit:disabled { opacity: .58; cursor: not-allowed; filter: grayscale(.15); box-shadow: none;
} /* ===================================================== PATCH 39 - AUDIO EMBED IN LESSON CONTENT ===================================================== */ .lesson-html-content audio,
.notion-card audio { display: block; width: 100%; margin: 14px 0; border-radius: 999px;
} .lesson-html-content audio::-webkit-media-controls-panel { background: #fff7fb;
} /* ===================================================== PATCH 41 - LOGOUT SUCCESS MESSAGE ===================================================== */ .auth-alert-success { background: #f0fdf4 !important; border-color: #bbf7d0 !important; color: #15803d !important;
} /* ===================================================== PATCH 43 - AUTH LOGO LINK TO HOME Login/Register logo bisa diklik ke halaman home. ===================================================== */ .auth-brand-link { display: inline-grid !important; place-items: center !important; text-decoration: none !important; cursor: pointer !important; transition: transform .16s ease, box-shadow .16s ease;
} .auth-brand-link:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px rgba(148, 116, 130, .16);
} .auth-brand-link:focus-visible { outline: 4px solid rgba(216, 199, 255, .55); outline-offset: 4px;
} /* ===================================================== PATCH 44 - INDEX FOOTER COPYRIGHT ===================================================== */ .promo-footer { padding: 28px 20px; text-align: center;
} .promo-footer-copyright { max-width: 1180px; margin: 0 auto; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(240, 223, 229, .96); color: #64748b; font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px rgba(148, 116, 130, .08);
} /* ===================================================== PATCH 45 - FLASH CARDS ===================================================== */ .flashcards-page { padding-top: 24px; padding-bottom: 48px;
} .flashcards-hero,
.flashcard-study,
.flashcard-grid-list,
.flashcard-empty-state,
.dashboard-flashcard-cta { border-radius: 30px; background: rgba(255,255,255,.90); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 18px 42px rgba(148, 116, 130, .12);
} .flashcards-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 24px; margin-bottom: 18px; background: radial-gradient(circle at top right, rgba(216,199,255,.36), transparent 32%), rgba(255,255,255,.92);
} .flashcards-hero span,
.dashboard-flashcard-cta span { color: #b85c72; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .45px;
} .flashcards-hero h1,
.dashboard-flashcard-cta h2 { margin: 7px 0 8px; color: #334155; font-size: clamp(28px, 4vw, 44px); line-height: 1.08;
} .flashcards-hero p,
.dashboard-flashcard-cta p { margin: 0; color: #64748b; max-width: 720px;
} .flashcard-filter { display: flex; align-items: end; gap: 10px; flex-wrap: wrap;
} .flashcard-filter label { display: grid; gap: 6px;
} .flashcard-filter label span { color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase;
} .flashcard-filter select { min-height: 42px; border: 1px solid #f0dfe5; border-radius: 14px; padding: 0 12px; background: #fff;
} .flashcard-filter button,
.flashcard-filter a,
.dashboard-flashcard-cta a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 10px 15px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; font-weight: 900; cursor: pointer;
} .flashcard-filter a { background: #f8fafc; color: #64748b;
} .flashcard-study { padding: 22px; margin-bottom: 18px;
} .flashcard-study-top { display: grid; gap: 10px; margin-bottom: 18px;
} .flashcard-study-top > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-weight: 900;
} .flashcard-study-top strong { color: #b85c72;
} .flashcard-progress { height: 10px; border-radius: 999px; overflow: hidden; background: #f1f5f9;
} .flashcard-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f4a7b9, #d8c7ff, #a7c7e7);
} .flashcard-stage { position: relative; min-height: 430px;
} .flashcard-item { display: none;
} .flashcard-item.active { display: block;
} .flashcard-flip { width: 100%; min-height: 430px; position: relative; border: 0; padding: 0; background: transparent; perspective: 1200px; cursor: pointer;
} .flashcard-face { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 28px; border-radius: 28px; background: radial-gradient(circle at top left, rgba(255,214,224,.45), transparent 34%), radial-gradient(circle at bottom right, rgba(216,199,255,.38), transparent 34%), #ffffff; border: 1px solid rgba(240, 223, 229, .96); backface-visibility: hidden; transition: transform .45s ease; overflow-y: auto;
} .flashcard-back { transform: rotateY(180deg); background: radial-gradient(circle at top right, rgba(184,224,210,.42), transparent 34%), radial-gradient(circle at bottom left, rgba(167,199,231,.32), transparent 34%), #ffffff;
} .flashcard-item.is-flipped .flashcard-front { transform: rotateY(180deg);
} .flashcard-item.is-flipped .flashcard-back { transform: rotateY(360deg);
} .flashcard-chip { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #fff1c9; color: #7c5a13; font-size: 13px; font-weight: 900;
} .flashcard-face h2 { margin: 0; color: #334155; font-size: clamp(34px, 6vw, 78px); line-height: 1.05; text-align: center;
} .flashcard-face p { margin: 0; color: #64748b; font-size: 20px; font-weight: 800; text-align: center;
} .flashcard-face img { max-width: min(100%, 420px); max-height: 210px; object-fit: contain; border-radius: 22px;
} .flashcard-face audio { width: min(100%, 420px);
} .flashcard-face em { color: #94a3b8; font-size: 13px; font-style: normal; font-weight: 800;
} .flashcard-example { max-width: 720px; color: #475569; line-height: 1.7; text-align: center;
} .flashcard-back a { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px; border-radius: 999px; background: #fff7fb; color: #b85c72; font-weight: 900;
} .flashcard-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px;
} .flashcard-controls button { min-height: 42px; border: 0; border-radius: 999px; padding: 10px 16px; background: #f8fafc; color: #64748b; font-weight: 900; cursor: pointer;
} .flashcard-controls button:not(:disabled):hover { background: #ffe4ec; color: #b85c72;
} .flashcard-controls button:disabled { opacity: .45; cursor: not-allowed;
} .flashcard-grid-list { padding: 22px;
} .flashcard-grid-list h2 { margin: 0 0 14px; color: #334155;
} .flashcard-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
} .flashcard-mini { border: 1px solid #f0dfe5; border-radius: 18px; background: #fff; padding: 13px; text-align: left; cursor: pointer;
} .flashcard-mini.active { background: #fff1f5; border-color: #f4a7b9;
} .flashcard-mini strong { display: block; color: #334155; margin-bottom: 5px;
} .flashcard-mini span { color: #94a3b8; font-size: 12px; font-weight: 900;
} .flashcard-empty-state { padding: 26px; text-align: center; color: #64748b;
} .flashcard-empty-state h1,
.flashcard-empty-state h2 { color: #334155; margin-top: 0;
} .dashboard-flashcard-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; margin: 18px 0; background: radial-gradient(circle at top right, rgba(255,214,224,.42), transparent 32%), rgba(255,255,255,.92);
} @media (max-width: 980px) { .flashcards-hero, .dashboard-flashcard-cta { align-items: flex-start; flex-direction: column; } .flashcard-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
} @media (max-width: 640px) { .flashcards-page { padding-top: 14px; } .flashcard-stage, .flashcard-flip { min-height: 390px; } .flashcard-face { padding: 20px; border-radius: 22px; } .flashcard-face h2 { font-size: 38px; } .flashcard-mini-grid { grid-template-columns: 1fr; }
} /* ===================================================== PATCH 46 - FLASH CARD LESSON LINK + AUDIO PLAYER ===================================================== */ .flashcard-lesson-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 999px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52 !important; font-weight: 900; text-decoration: none !important; box-shadow: 0 10px 22px rgba(148, 116, 130, .12);
} .flashcard-lesson-link.front-link { margin-top: 4px;
} .flashcard-mini-wrap { display: grid; gap: 7px;
} .flashcard-mini-wrap .flashcard-mini { width: 100%;
} .flashcard-mini-actions { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; border-radius: 999px; background: #fff7fb; color: #b85c72; font-size: 12px; font-weight: 900; border: 1px solid #f0dfe5;
} .flashcard-face audio { width: min(100%, 440px); margin: 4px 0;
} /* ===================================================== PATCH 47 - FLASHCARD LIST CLEAN + HEADER MATERI MENU - Daftar flash card tidak lagi menampilkan tombol Masuk Materi. - Akses materi dipindahkan ke menu header: Materi. ===================================================== */ .flashcard-mini-actions { display: none !important;
} .flashcard-mini-grid > .flashcard-mini { width: 100%;
} /* ===================================================== PATCH 48 - STUDENT DASHBOARD QUICK MENU Target: /dashboard ===================================================== */ .student-dashboard-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0;
} .student-menu-card { position: relative; overflow: hidden; min-height: 132px; padding: 18px; border-radius: 26px; background: radial-gradient(circle at top right, rgba(216,199,255,.35), transparent 38%), rgba(255,255,255,.92); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 16px 36px rgba(148, 116, 130, .10); color: #334155; display: grid; align-content: start; gap: 7px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
} .student-menu-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(148, 116, 130, .16); border-color: rgba(244, 167, 185, .55);
} .student-menu-card span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); font-size: 22px;
} .student-menu-card strong { color: #334155; font-size: 20px; line-height: 1.1;
} .student-menu-card em { color: #64748b; font-style: normal; font-size: 13px; font-weight: 800;
} .student-menu-card.logout { background: radial-gradient(circle at top right, rgba(255,241,201,.55), transparent 38%), rgba(255,255,255,.92);
} .student-menu-card.logout span { background: linear-gradient(135deg, #fff1c9, #ffd6e0);
} @media (max-width: 980px) { .student-dashboard-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
} @media (max-width: 560px) { .student-dashboard-menu { grid-template-columns: 1fr; } .student-menu-card { min-height: 112px; }
} /* ===================================================== PATCH 49 - RELATED FLASH CARDS IN LESSON DETAIL Target: /lesson/day-... ===================================================== */ .lesson-flashcard-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 20px 22px; border-radius: 28px; background: radial-gradient(circle at top right, rgba(255,214,224,.46), transparent 34%), radial-gradient(circle at bottom left, rgba(216,199,255,.30), transparent 34%), rgba(255,255,255,.92); border: 1px solid rgba(240, 223, 229, .96); box-shadow: 0 16px 38px rgba(148, 116, 130, .10);
} .lesson-flashcard-cta span { display: inline-flex; margin-bottom: 7px; color: #b85c72; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .45px;
} .lesson-flashcard-cta h2 { margin: 0 0 6px; color: #334155; font-size: clamp(22px, 3vw, 32px); line-height: 1.12;
} .lesson-flashcard-cta p { margin: 0; color: #64748b; max-width: 760px;
} .lesson-flashcard-cta a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 17px; background: linear-gradient(135deg, #ffd6e0, #d8c7ff); color: #7f3f52; font-weight: 900; box-shadow: 0 12px 26px rgba(148, 116, 130, .12);
} @media (max-width: 760px) { .lesson-flashcard-cta { align-items: flex-start; flex-direction: column; padding: 18px; border-radius: 24px; } .lesson-flashcard-cta a { width: 100%; }
}


/* =====================================================
   PATCH 50 - REMOVE MYSQL PROGRESS TEXT
   Dashboard peserta tidak menampilkan istilah teknis database.
   ===================================================== */

.dashboard-page [data-dev-label],
.dashboard-page .mysql-progress-label {
  display: none !important;
}


/* =====================================================
   PATCH 54 - KIDS JAPANESE WORKSHEETS
   ===================================================== */

.worksheets-page,
.worksheet-detail-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.worksheets-hero,
.worksheet-note-box,
.worksheet-card,
.worksheet-detail-toolbar,
.worksheet-paper {
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(240, 223, 229, .96);
  box-shadow: 0 18px 42px rgba(148, 116, 130, .10);
}

.worksheets-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top right, rgba(255,214,224,.46), transparent 34%),
    radial-gradient(circle at bottom left, rgba(184,224,210,.30), transparent 34%),
    rgba(255,255,255,.92);
}

.worksheets-hero span,
.worksheet-detail-toolbar span {
  color: #b85c72;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .45px;
}

.worksheets-hero h1,
.worksheet-detail-toolbar h1 {
  margin: 7px 0 8px;
  color: #334155;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.worksheets-hero p,
.worksheet-detail-toolbar p {
  margin: 0;
  color: #64748b;
  max-width: 760px;
}

.worksheet-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.worksheet-filter label {
  display: grid;
  gap: 6px;
}

.worksheet-filter label span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.worksheet-filter select {
  min-height: 42px;
  border: 1px solid #f0dfe5;
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
}

.worksheet-filter button,
.worksheet-filter a,
.worksheet-card-actions a,
.worksheet-toolbar-actions a,
.worksheet-toolbar-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.worksheet-filter a,
.worksheet-card-actions a.secondary,
.worksheet-toolbar-actions a {
  background: #f8fafc;
  color: #64748b;
}

.worksheet-note-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #64748b;
}

.worksheet-note-box strong {
  color: #b85c72;
}

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

.worksheet-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  align-content: start;
}

.worksheet-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1c9, #ffd6e0);
  font-size: 28px;
}

.worksheet-card span {
  color: #b85c72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.worksheet-card h2 {
  margin: 6px 0 8px;
  color: #334155;
  font-size: 22px;
  line-height: 1.15;
}

.worksheet-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.worksheet-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worksheet-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.worksheet-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worksheet-paper {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: #ffffff;
  color: #1f2937;
}

.worksheet-paper-head {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px dashed #d8e2ef;
  margin-bottom: 20px;
}

.worksheet-paper-head strong {
  color: #334155;
  font-size: 20px;
}

.worksheet-paper-head span {
  color: #64748b;
  font-weight: 800;
}

.worksheet-name-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #475569;
  font-weight: 800;
}

.print-sheet h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 32px;
}

.print-sheet p {
  color: #475569;
  font-size: 18px;
}

.sheet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.sheet-badge {
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff1c9;
  color: #7c5a13;
  font-size: 32px;
  font-weight: 900;
}

.tracing-row {
  display: grid;
  grid-template-columns: 72px 80px repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.kana-big {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
}

.kana-romaji {
  font-size: 22px;
  font-weight: 900;
  color: #64748b;
}

.trace-box,
.write-box {
  min-height: 82px;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #94a3b8;
}

.trace-box.dotted {
  color: transparent;
  -webkit-text-stroke: 1px #94a3b8;
}

.write-box {
  background:
    linear-gradient(#ffffff 49%, #e2e8f0 50%, #ffffff 51%);
}

.matching-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 24px 0;
}

.matching-list {
  display: grid;
  gap: 14px;
}

.matching-list div {
  min-height: 54px;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px;
  font-size: 22px;
  font-weight: 800;
}

.worksheet-answer-space {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 800;
}

.sakura-coloring {
  position: relative;
  width: min(100%, 560px);
  height: 430px;
  margin: 20px auto;
}

.sakura-center,
.petal {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid #111827;
  background: #ffffff;
  font-size: 42px;
  font-weight: 900;
}

.sakura-center {
  left: 50%;
  top: 50%;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.petal {
  width: 150px;
  height: 120px;
  border-radius: 70% 70% 70% 18%;
}

.p1 { left: 205px; top: 34px; transform: rotate(-20deg); }
.p2 { left: 330px; top: 125px; transform: rotate(54deg); }
.p3 { left: 280px; top: 270px; transform: rotate(128deg); }
.p4 { left: 112px; top: 270px; transform: rotate(204deg); }
.p5 { left: 65px; top: 120px; transform: rotate(286deg); }

.coloring-instruction {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.coloring-instruction p {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  margin: 0;
  font-weight: 800;
}

.dot-canvas {
  position: relative;
  height: 440px;
  border: 3px solid #111827;
  border-radius: 22px;
  background: #ffffff;
  margin: 20px 0;
}

.dot-point {
  position: absolute;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 3px solid #111827;
  border-radius: 50%;
  background: #ffffff;
  font-weight: 900;
}

.dot-word {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.circle-question {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
}

.circle-question strong {
  font-size: 26px;
}

.circle-question div {
  display: flex;
  gap: 18px;
}

.circle-question span {
  width: 92px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid #111827;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 900;
}

.cut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px dashed #111827;
  margin-top: 20px;
}

.cut-grid div {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed #111827;
  font-size: 26px;
  font-weight: 900;
  padding: 12px;
}

.cut-grid small {
  font-size: 15px;
  color: #64748b;
}

.student-menu-card.worksheet span {
  background: linear-gradient(135deg, #b8e0d2, #ffd6e0);
}

@media (max-width: 980px) {
  .worksheets-hero,
  .worksheet-detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tracing-row {
    grid-template-columns: 60px 60px repeat(2, 1fr);
  }

  .matching-columns,
  .coloring-instruction {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .worksheet-grid {
    grid-template-columns: 1fr;
  }

  .worksheet-paper {
    padding: 18px;
  }

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

  .circle-question {
    grid-template-columns: 1fr;
  }

  .cut-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .no-print,
  .compact-topbar,
  .site-footer,
  .lesson-footer-nav,
  .promo-footer {
    display: none !important;
  }

  .container,
  .worksheet-detail-page {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .worksheet-paper {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    padding: 14mm !important;
  }

  .print-sheet {
    break-inside: avoid;
  }

  @page {
    size: A4;
    margin: 10mm;
  }
}


/* =====================================================
   PATCH 56 - WORKSHEET WRITE, DOWNLOAD, PRINT
   - Hilangkan nama/kelas
   - Bisa tulis langsung
   - Bisa download HTML
   - Bisa print / save PDF
   ===================================================== */

.clean-worksheet-head {
  border-bottom: 2px dashed #d8e2ef;
}

.clean-worksheet-head span {
  display: inline-flex;
  margin-top: 4px;
}

.editable-write,
.editable-line {
  outline: none;
  cursor: text;
}

.editable-write {
  color: #111827 !important;
  font-size: 36px !important;
  font-weight: 900;
  background:
    linear-gradient(#ffffff 49%, #e2e8f0 50%, #ffffff 51%) !important;
}

.editable-write:empty::before {
  content: attr(data-placeholder);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.editable-write:focus,
.editable-line:focus {
  box-shadow: 0 0 0 4px rgba(216, 199, 255, .35);
  border-color: #d8c7ff !important;
}

.editable-line {
  display: inline-flex;
  min-width: 72px;
  min-height: 30px;
  border-bottom: 3px solid #111827;
  padding: 0 8px;
  color: #111827;
}

.circle-option {
  cursor: pointer;
  user-select: none;
  transition: background .16s ease, outline .16s ease, transform .16s ease;
}

.circle-option:hover {
  background: #fff7fb;
  transform: translateY(-1px);
}

.circle-option.selected {
  outline: 6px solid #f4a7b9;
  outline-offset: 3px;
  background: #fff1f5;
}

.worksheet-toolbar-actions button#worksheetDownloadBtn {
  background: linear-gradient(135deg, #b8e0d2, #d8c7ff);
  color: #3f5f58;
}

@media print {
  .editable-write:empty::before {
    content: "";
  }

  .circle-option.selected {
    outline: 5px solid #111827 !important;
    outline-offset: 3px !important;
    background: #ffffff !important;
  }

  .clean-worksheet-head span {
    display: none;
  }
}


/* =====================================================
   PATCH 57 - WORKSHEET FREE PEN + JPEG EXPORT
   ===================================================== */

.worksheet-paper-shell {
  max-width: 980px;
  margin: 0 auto;
}

.worksheet-draw-note {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7fb;
  border: 1px dashed #f0cddd;
  color: #7f3f52;
  font-weight: 800;
}

.worksheet-toolbar-stack {
  display: grid;
  gap: 10px;
}

.worksheet-draw-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #fffafc;
  border: 1px solid #f0dfe5;
}

.draw-tool,
.secondary-tool {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #e8d6df;
  background: #ffffff;
  color: #64748b;
  font-weight: 900;
  cursor: pointer;
}

.draw-tool.active {
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52;
  border-color: transparent;
}

.draw-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #f0dfe5;
}

.draw-size-wrap span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.draw-size-wrap input[type="range"] {
  width: 110px;
}

.draw-colors {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  outline: 1px solid #d8e2ef;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.color-swatch.active {
  outline: 3px solid #f4a7b9;
  transform: scale(1.08);
}

.worksheet-paper {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.worksheet-draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  cursor: crosshair;
  touch-action: none;
}

.write-box,
.trace-box,
.circle-question span,
.matching-list div,
.cut-grid div {
  position: relative;
  z-index: 1;
}

.worksheet-toolbar-actions button#worksheetDownloadBtn {
  background: linear-gradient(135deg, #b8e0d2, #d8c7ff);
  color: #3f5f58;
}

@media (max-width: 980px) {
  .worksheet-toolbar-stack {
    width: 100%;
  }

  .worksheet-draw-tools {
    width: 100%;
  }
}

@media print {
  .worksheet-draw-note,
  .worksheet-toolbar-stack {
    display: none !important;
  }
}


/* =====================================================
   PATCH 58 - WORKSHEET COLOR PEN PALETTE
   Menambahkan Color Pen dan warna Pink/Yellow/Blue sesuai instruksi coloring.
   ===================================================== */

.selected-color-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #f0dfe5;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.color-swatch.pink {
  box-shadow: 0 0 0 3px rgba(255, 105, 180, .18);
}

.color-swatch.yellow {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .18);
}

.color-swatch.blue {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.draw-colors::before {
  content: "Color:";
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-right: 2px;
}

@media (max-width: 640px) {
  .selected-color-label {
    width: 100%;
    justify-content: center;
  }
}


/* =====================================================
   PATCH 59 - MOUNT FUJI DOT-TO-DOT WEBP
   Ganti dot-to-dot Mount Fuji ke gambar WEBP baru
   ===================================================== */

.dot-image-sheet .worksheet-image-frame {
  margin: 18px auto 0;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.worksheet-main-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mount-fuji-frame {
  overflow: hidden;
}


/* =====================================================
   PATCH 60 - WORKSHEET CLEANUP + 2 DRAW LAYERS
   ===================================================== */

.worksheet-card-actions.single-action {
  display: grid;
}

.worksheet-card-actions.single-action a {
  width: 100%;
}

.worksheet-draw-tools.is-hidden {
  display: none !important;
}

.worksheet-toolbar-actions.compact-actions {
  justify-content: flex-end;
}

#openFreeDrawBtn {
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52;
}

#openFreeDrawBtn.is-active {
  opacity: .72;
  cursor: default;
}

#colorPenToolBtn.active {
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52;
}

#penToolBtn.active {
  background: linear-gradient(135deg, #b8e0d2, #a7c7e7);
  color: #31545d;
}

.worksheet-paper {
  position: relative;
}

.worksheet-draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.worksheet-color-canvas {
  z-index: 8;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.worksheet-pen-canvas {
  z-index: 10;
  pointer-events: none;
}

.worksheet-color-canvas.active-layer,
.worksheet-pen-canvas.active-layer {
  pointer-events: auto;
}

.worksheet-main-image {
  position: relative;
  z-index: 9;
  pointer-events: none;
}

.dot-image-sheet .worksheet-image-frame {
  position: relative;
  z-index: 9;
}

.worksheet-draw-note {
  display: none;
}

body.free-draw-open .worksheet-draw-note {
  display: block;
}

.mount-fuji-frame {
  max-width: 100%;
}

@media (max-width: 760px) {
  .worksheet-toolbar-actions.compact-actions {
    justify-content: stretch;
  }

  .worksheet-toolbar-actions.compact-actions > * {
    width: 100%;
  }
}


/* =====================================================
   PATCH 61 - AUTO FREE DRAW + NEW MOUNT FUJI ACTIVITY
   ===================================================== */

.worksheet-draw-tools {
  display: flex;
}

body.free-draw-open .worksheet-draw-note {
  display: block;
}

.worksheet-toolbar-actions.compact-actions > * {
  min-width: 180px;
}

.worksheet-card-actions.single-action a {
  text-align: center;
}

.mount-fuji-frame .worksheet-main-image {
  width: 100%;
  height: auto;
}


/* =====================================================
   PATCH 62 - FIX DOWNLOAD JPEG
   Export JPEG memakai canvas langsung + toBlob.
   ===================================================== */

.worksheet-color-canvas {
  z-index: 10 !important;
  mix-blend-mode: multiply;
}

.worksheet-pen-canvas {
  z-index: 11 !important;
}

.worksheet-main-image,
.dot-image-sheet .worksheet-image-frame {
  position: relative;
  z-index: 8 !important;
}

#worksheetDownloadBtn:disabled {
  opacity: .7;
  cursor: wait;
}


/* =====================================================
   PATCH 63 - LESSON RELATED RESOURCES + QUIZ
   ===================================================== */

.lesson-related-resources,
.quiz-hero-card,
.quiz-result-card,
.quiz-question-card,
.quiz-empty-state {
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(240, 223, 229, .96);
  box-shadow: 0 16px 38px rgba(148, 116, 130, .10);
}

.lesson-related-resources {
  padding: 22px;
  margin: 0 0 16px;
}

.related-resources-head span,
.quiz-hero-card span,
.quiz-question-card > span {
  color: #b85c72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.related-resources-head h2,
.quiz-hero-card h1,
.quiz-question-card h2 {
  margin: 6px 0 8px;
  color: #334155;
  line-height: 1.12;
}

.related-resources-head p,
.quiz-hero-card p,
.related-resource-card p {
  margin: 0;
  color: #64748b;
}

.related-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-resource-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #f0dfe5;
  background: #fff;
  color: #334155;
  transition: transform .16s ease, box-shadow .16s ease;
}

.related-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(148, 116, 130, .13);
}

.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  font-size: 24px;
}

.related-resource-card span {
  color: #b85c72;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-resource-card strong {
  display: block;
  margin: 5px 0 6px;
  color: #334155;
  font-size: 18px;
}

.quiz-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.quiz-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 22px;
  margin-bottom: 16px;
}

.quiz-hero-card a,
.quiz-submit-row button,
.quiz-submit-row a,
.quiz-empty-state a {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52;
  font-weight: 900;
  cursor: pointer;
}

.quiz-result-card {
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.quiz-result-card h2 {
  margin: 8px 0 4px;
  color: #334155;
  font-size: 46px;
}

.quiz-question-form {
  display: grid;
  gap: 14px;
}

.quiz-question-card {
  padding: 20px;
}

.quiz-option-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f0dfe5;
  border-radius: 18px;
  background: #fff;
}

.quiz-option strong {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1c9;
  color: #7c5a13;
}

.quiz-option.correct-option {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.quiz-option.wrong-option {
  border-color: #fecdd3;
  background: #fff1f2;
}

.quiz-explanation {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
}

.quiz-submit-row {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.quiz-empty-state {
  padding: 28px;
  text-align: center;
}

@media (max-width: 900px) {
  .related-resource-grid {
    grid-template-columns: 1fr;
  }

  .quiz-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =====================================================
   PATCH 64 - RESPONSIVE MOBILE ALL PUBLIC PAGES
   Landing, dashboard, lesson, worksheet, flashcard, quiz, auth
   ===================================================== */

img,
video,
canvas,
svg {
  max-width: 100%;
}

table {
  min-width: 640px;
}

.table-responsive,
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero,
  .promo-hero {
    padding: 34px 18px 30px;
  }

  .hero-inner,
  .container,
  .promo-section {
    max-width: 100%;
  }

  .grid-4,
  .hero-stats,
  .promo-card-grid,
  .worksheet-grid,
  .flashcard-mini-grid,
  .student-dashboard-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

  .promo-hero {
    grid-template-columns: 1fr !important;
  }

  .lesson-main,
  .lesson-layout,
  .lesson-detail-layout,
  .lesson-narrow-grid,
  .notion-grid {
    grid-template-columns: 1fr !important;
  }

  .lesson-sidebar,
  .lesson-side-nav {
    position: static !important;
    width: 100% !important;
  }

  .worksheets-hero,
  .worksheet-detail-toolbar,
  .flashcards-hero,
  .dashboard-flashcard-cta,
  .lesson-flashcard-cta,
  .lesson-resource-card,
  .quiz-hero {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Phone */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
    line-height: 1.58;
  }

  .container {
    padding: 16px 14px 42px !important;
  }

  h1 {
    font-size: clamp(28px, 9vw, 38px) !important;
    letter-spacing: -0.8px;
  }

  h2,
  .section-title h2,
  .promo-section-title h2 {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }

  /* Header peserta */
  .compact-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .compact-brand {
    width: 100%;
    justify-content: center;
  }

  .compact-brand img {
    width: 38px !important;
    height: 38px !important;
  }

  .compact-nav {
    width: 100%;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .compact-nav a,
  .compact-nav span {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px !important;
    background: #fff7fb;
    border: 1px solid #f0dfe5;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  /* Landing page nav */
  .promo-nav {
    position: sticky;
    top: 0;
    z-index: 101;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px !important;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
  }

  .promo-logo {
    justify-content: center;
  }

  .promo-nav-links {
    display: flex !important;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .promo-nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px !important;
    background: #fff7fb;
    border: 1px solid #f0dfe5;
    font-size: 13px;
  }

  .promo-hero,
  .promo-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .promo-hero-content,
  .promo-hero-visual,
  .promo-material-card,
  .card,
  .day-card,
  .lesson-card,
  .worksheet-card,
  .flashcard-study,
  .flashcard-grid-list,
  .auth-card {
    border-radius: 20px !important;
  }

  .promo-actions,
  .hero-actions,
  .worksheet-card-actions,
  .worksheet-toolbar-actions,
  .quiz-actions,
  .auth-switch {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .promo-actions a,
  .hero-actions a,
  .worksheet-card-actions a,
  .worksheet-toolbar-actions a,
  .worksheet-toolbar-actions button,
  .quiz-actions a,
  .quiz-actions button,
  .auth-submit,
  .btn {
    width: 100%;
  }

  /* General grids */
  .grid,
  .grid-3,
  .grid-4,
  .hero-stats,
  .promo-card-grid,
  .worksheet-grid,
  .student-dashboard-menu,
  .lesson-grid,
  .flashcard-mini-grid,
  .quiz-card-grid,
  .lesson-resource-grid {
    grid-template-columns: 1fr !important;
  }

  .section-title,
  .day-head,
  .progress-summary,
  .lesson-topline,
  .lesson-actions,
  .level-meta {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .filters {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .filters input,
  .filters select,
  input,
  select,
  textarea {
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  /* Dashboard menu */
  .student-menu-card {
    min-height: 104px !important;
    padding: 15px !important;
  }

  .student-menu-card span {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
  }

  .student-menu-card strong {
    font-size: 18px !important;
  }

  /* Lesson detail */
  .lesson-compact-title,
  .notion-card,
  .lesson-flashcard-cta,
  .lesson-resource-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .lesson-compact-title h1 {
    font-size: 26px !important;
  }

  .lesson-html-content table,
  .notion-card table,
  .quiz-result table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .lesson-footer-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lesson-footer-nav a,
  .lesson-footer-nav button {
    width: 100%;
  }

  /* Flashcards */
  .flashcards-hero,
  .flashcard-study,
  .flashcard-grid-list {
    padding: 16px !important;
  }

  .flashcard-stage,
  .flashcard-flip {
    min-height: 360px !important;
  }

  .flashcard-face {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .flashcard-face h2 {
    font-size: clamp(32px, 12vw, 54px) !important;
  }

  .flashcard-controls {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .flashcard-controls button {
    width: 100%;
  }

  /* Worksheet */
  .worksheets-page,
  .worksheet-detail-page {
    padding-top: 14px !important;
  }

  .worksheets-hero,
  .worksheet-detail-toolbar,
  .worksheet-paper {
    border-radius: 20px !important;
    padding: 16px !important;
  }

  .worksheet-paper-shell {
    max-width: 100%;
  }

  .worksheet-paper {
    overflow: hidden;
  }

  .worksheet-draw-tools {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 10px !important;
  }

  .draw-tool,
  .secondary-tool,
  .draw-size-wrap,
  .selected-color-label {
    width: 100%;
    justify-content: center;
  }

  .draw-size-wrap,
  .draw-colors,
  .selected-color-label {
    grid-column: 1 / -1;
  }

  .draw-colors {
    justify-content: center;
  }

  .sheet-title-row,
  .matching-columns,
  .coloring-instruction,
  .worksheet-name-row {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  .tracing-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .kana-big {
    font-size: 38px !important;
  }

  .trace-box,
  .write-box {
    min-height: 64px !important;
    font-size: 34px !important;
  }

  .circle-question {
    grid-template-columns: 1fr !important;
  }

  .circle-question div {
    flex-wrap: wrap;
  }

  .circle-question span {
    width: 72px !important;
    height: 58px !important;
    font-size: 28px !important;
  }

  .cut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cut-grid div {
    min-height: 96px !important;
    font-size: 21px !important;
  }

  .sakura-coloring {
    transform: scale(.72);
    transform-origin: top center;
    height: 320px !important;
    margin-bottom: 0 !important;
  }

  .dot-canvas {
    height: 340px !important;
  }

  /* Quiz */
  .quiz-page,
  .quiz-detail-page {
    padding-top: 14px !important;
  }

  .quiz-question-card,
  .quiz-option,
  .quiz-result-card {
    border-radius: 18px !important;
  }

  .quiz-option {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
  }

  /* Auth */
  .auth-body {
    min-height: 100svh;
    padding: 16px !important;
  }

  .auth-shell {
    width: 100%;
    min-height: calc(100svh - 32px);
    display: grid;
    align-items: center;
  }

  .auth-card {
    width: 100% !important;
    max-width: 460px !important;
    padding: 20px !important;
    margin: 0 auto;
  }

  .auth-brand img {
    max-width: 88px !important;
  }

  .password-input-wrap {
    display: grid !important;
    grid-template-columns: 1fr auto;
  }

  /* Tables */
  table {
    min-width: 680px;
  }

  .worksheet-paper table,
  .lesson-html-content table,
  .notion-card table {
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .compact-nav a,
  .compact-nav span,
  .promo-nav-links a {
    font-size: 12px;
    padding: 7px 10px !important;
  }

  .worksheet-draw-tools {
    grid-template-columns: 1fr !important;
  }

  .draw-tool,
  .secondary-tool {
    min-height: 38px;
  }

  .color-swatch {
    width: 30px !important;
    height: 30px !important;
  }

  .flashcard-stage,
  .flashcard-flip {
    min-height: 330px !important;
  }

  .flashcard-face h2 {
    font-size: 34px !important;
  }
}

/* Landscape phone */
@media (max-width: 900px) and (orientation: landscape) {
  .hero,
  .promo-hero {
    min-height: auto;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .auth-shell {
    align-items: start;
  }

  .flashcard-stage,
  .flashcard-flip {
    min-height: 300px !important;
  }
}


/* =====================================================
   PATCH 65 - HOME WRITING SYSTEM RESPONSIVE
   Target: Home section "1. Sistem Penulisan: Tiga Huruf Utama + Satu Pendukung"
   ===================================================== */

.home-writing-system-section,
.home-writing-system-title {
  max-width: 100%;
}

.home-writing-system-section table,
.home-writing-system-table,
.home-writing-system-title ~ table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.home-writing-system-section th,
.home-writing-system-section td,
.home-writing-system-table th,
.home-writing-system-table td,
.home-writing-system-title ~ table th,
.home-writing-system-title ~ table td {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 768px) {
  /* Supaya tabel sistem penulisan tidak melebar keluar layar */
  .home-writing-system-section,
  .home-writing-system-title {
    overflow-x: hidden;
  }

  .home-writing-system-section table,
  .home-writing-system-table,
  .home-writing-system-title ~ table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible;
  }

  .home-writing-system-section thead,
  .home-writing-system-table thead,
  .home-writing-system-title ~ table thead {
    display: none;
  }

  .home-writing-system-section tbody,
  .home-writing-system-section tr,
  .home-writing-system-section td,
  .home-writing-system-table tbody,
  .home-writing-system-table tr,
  .home-writing-system-table td,
  .home-writing-system-title ~ table tbody,
  .home-writing-system-title ~ table tr,
  .home-writing-system-title ~ table td {
    display: block;
    width: 100% !important;
  }

  .home-writing-system-section tr,
  .home-writing-system-table tr,
  .home-writing-system-title ~ table tr {
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(240, 223, 229, .96);
    box-shadow: 0 10px 24px rgba(148, 116, 130, .08);
  }

  .home-writing-system-section td,
  .home-writing-system-table td,
  .home-writing-system-title ~ table td {
    padding: 8px 0 !important;
    border: 0 !important;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-writing-system-section td:first-child,
  .home-writing-system-table td:first-child,
  .home-writing-system-title ~ table td:first-child {
    color: #b85c72;
    font-size: 18px;
    font-weight: 900;
  }

  .home-writing-system-section td:nth-child(2)::before,
  .home-writing-system-table td:nth-child(2)::before,
  .home-writing-system-title ~ table td:nth-child(2)::before {
    content: "Jumlah: ";
    color: #94a3b8;
    font-weight: 900;
  }

  .home-writing-system-section td:nth-child(3)::before,
  .home-writing-system-table td:nth-child(3)::before,
  .home-writing-system-title ~ table td:nth-child(3)::before {
    content: "Fungsi: ";
    color: #94a3b8;
    font-weight: 900;
  }

  .home-writing-system-section td:nth-child(4)::before,
  .home-writing-system-table td:nth-child(4)::before,
  .home-writing-system-title ~ table td:nth-child(4)::before {
    content: "Contoh: ";
    color: #94a3b8;
    font-weight: 900;
  }

  /* Jika bagian ini memakai grid/card, paksa menjadi 1 kolom */
  .home-writing-system-section .grid,
  .home-writing-system-section .grid-2,
  .home-writing-system-section .grid-3,
  .home-writing-system-section .grid-4,
  .home-writing-system-section .cards,
  .home-writing-system-section .promo-card-grid {
    grid-template-columns: 1fr !important;
  }

  .home-writing-system-section h2,
  .home-writing-system-section h3,
  .home-writing-system-title {
    font-size: clamp(22px, 7vw, 30px) !important;
    line-height: 1.16 !important;
  }
}


/* =====================================================
   PATCH 66 - COMPACT DASHBOARD HERO
   Dashboard tidak lagi memakai hero landing yang panjang.
   ===================================================== */

.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 224, .36), transparent 28%),
    radial-gradient(circle at top right, rgba(216, 199, 255, .28), transparent 30%),
    #fffafc;
}

.dashboard-page {
  padding-top: 18px !important;
}

.dashboard-compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 224, .42), transparent 38%),
    radial-gradient(circle at bottom left, rgba(184, 224, 210, .32), transparent 34%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(240, 223, 229, .96);
  box-shadow: 0 18px 42px rgba(148, 116, 130, .10);
}

.dashboard-hero-copy span {
  display: inline-flex;
  margin-bottom: 7px;
  color: #b85c72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.dashboard-hero-copy h1 {
  margin: 0 0 7px;
  color: #334155;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.dashboard-hero-copy p {
  margin: 0;
  color: #64748b;
  max-width: 720px;
}

.dashboard-hero-progress {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(240, 223, 229, .96);
}

.dashboard-hero-progress strong {
  color: #b85c72;
  font-size: 34px;
  line-height: 1;
}

.dashboard-hero-progress span {
  color: #64748b;
  font-weight: 900;
  font-size: 13px;
}

.dashboard-mini-progress {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.dashboard-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4a7b9, #d8c7ff, #a7c7e7);
}

.dashboard-short-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(240, 223, 229, .88);
  color: #64748b;
  box-shadow: 0 10px 24px rgba(148, 116, 130, .06);
}

.dashboard-short-note strong {
  color: #b85c72;
}

.dashboard-page .student-dashboard-menu {
  margin-top: 0;
  margin-bottom: 16px;
}

.dashboard-page #roadmap {
  margin-top: 16px;
}

/* Biar roadmap tidak terlalu mendominasi setelah hero dipendekkan */
.dashboard-page #roadmap .card.level-card {
  padding: 16px;
}

.dashboard-page #roadmap .card.level-card h3 {
  margin-top: 8px;
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .dashboard-page {
    padding-top: 12px !important;
  }

  .dashboard-compact-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-hero-progress {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .dashboard-mini-progress {
    grid-column: 1 / -1;
  }

  .dashboard-short-note {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .dashboard-compact-hero {
    padding: 16px;
  }

  .dashboard-hero-copy h1 {
    font-size: 28px !important;
  }

  .dashboard-hero-progress strong {
    font-size: 30px;
  }
}


/* =====================================================
   PATCH 67 - STUDENT CHANGE PASSWORD PAGE
   Klik nama peserta di header untuk ganti password.
   ===================================================== */

.student-name-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid #f0dfe5;
  color: #b85c72 !important;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}

.student-name-link:hover {
  background: linear-gradient(135deg, #ffd6e0, #d8c7ff);
  color: #7f3f52 !important;
}

.account-password-page {
  padding-top: 20px !important;
  padding-bottom: 50px !important;
}

.account-password-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,214,224,.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(216,199,255,.28), transparent 34%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(240, 223, 229, .96);
  box-shadow: 0 18px 42px rgba(148, 116, 130, .10);
}

.account-password-head {
  margin-bottom: 18px;
}

.account-password-head span {
  display: inline-flex;
  margin-bottom: 7px;
  color: #b85c72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.account-password-head h1 {
  margin: 0 0 8px;
  color: #334155;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.account-password-head p {
  margin: 0;
  color: #64748b;
}

.account-password-form {
  margin-top: 18px;
}

.account-password-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.account-password-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
  text-decoration: none;
}

#changePasswordSubmit.is-disabled,
#changePasswordSubmit:disabled {
  opacity: .58;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .account-password-card {
    padding: 18px;
    border-radius: 22px;
  }

  .account-password-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-password-actions a,
  .account-password-actions button {
    width: 100%;
  }
}


/* =====================================================
   PATCH 68 - REMOVE DUPLICATE STUDENT NAME
   Header peserta hanya menampilkan 1 nama akun yang bisa diklik.
   ===================================================== */

.compact-nav .student-name-link + .student-name-link {
  display: none !important;
}


/* =====================================================
   PATCH 69 - DIFFERENT HEADER STYLE
   Menu utama, profile, dan logout dibedakan bentuknya.
   ===================================================== */

.compact-nav {
  align-items: center;
}

.compact-nav .nav-main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #efd9e1;
  background: #fffdfd;
  color: #b85c72 !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(148, 116, 130, .04);
  transition: all .18s ease;
}

.compact-nav .nav-main-link:hover,
.compact-nav .nav-main-link.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fff6fa, #fffefe);
  border-color: #efcbd7;
  box-shadow: 0 10px 22px rgba(184, 92, 114, .10);
}

.compact-nav .nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid #dbe7f5;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  color: #64748b !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(100, 116, 139, .08);
}

.compact-nav .nav-account-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e8f0ff, #f3f7ff);
  border-color: #c7d7ee;
  color: #475569 !important;
}

.compact-nav .nav-account-link::before {
  content: "👤";
  margin-right: 8px;
  font-size: 14px;
}

.compact-nav .nav-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid #f2d3d8;
  background: linear-gradient(135deg, #fff6f7, #fffafa);
  color: #b85c72 !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(184, 92, 114, .06);
}

.compact-nav .nav-logout-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffeef2, #fff8f9);
  border-color: #eab8c4;
}

.compact-nav .nav-logout-link::before {
  content: "↪";
  margin-right: 8px;
  font-size: 14px;
}

.compact-nav .student-name-link + .student-name-link,
.compact-nav > span {
  display: none !important;
}

@media (max-width: 768px) {
  .compact-nav .nav-main-link,
  .compact-nav .nav-account-link,
  .compact-nav .nav-logout-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .compact-nav .nav-account-link,
  .compact-nav .nav-logout-link {
    border-radius: 14px;
  }
}


/* =====================================================
   PATCH 71 - LONG LESSON CARD FULL WIDTH
   Card panjang seperti "Latihan Membaca" dibuat full width.
   ===================================================== */

.notion-grid.lesson-narrow-grid {
  align-items: start;
}

.notion-card-full {
  grid-column: 1 / -1 !important;
  width: 100%;
}

.notion-card-full .lesson-html-content,
.notion-card-full .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.notion-card-full table {
  width: 100%;
  min-width: 760px;
}

.notion-card-full th,
.notion-card-full td {
  vertical-align: top;
}

@media (min-width: 901px) {
  .notion-grid.lesson-narrow-grid {
    grid-auto-flow: row dense;
  }

  .notion-grid.lesson-narrow-grid .notion-card:not(.notion-card-full) {
    align-self: start;
  }
}

@media (max-width: 900px) {
  .notion-card-full {
    grid-column: auto !important;
  }

  .notion-card-full table {
    min-width: 680px;
  }
}


/* =====================================================
   PATCH 72 - LESSON TABLE HORIZONTAL SCROLL
   Tabel materi panjang scroll samping di dalam card, bukan keluar layar.
   ===================================================== */

.lesson-content,
.lesson-shell,
.notion-grid,
.notion-card,
.notion-card-full,
.lesson-html-content,
.table-responsive {
  min-width: 0;
  max-width: 100%;
}

.notion-card {
  overflow: hidden;
}

.lesson-html-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.lesson-html-content.table-responsive,
.notion-card .table-responsive,
.notion-card-full .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.lesson-html-content table,
.notion-card table,
.notion-card-full table {
  width: max-content;
  min-width: 720px;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
}

.lesson-html-content th,
.lesson-html-content td,
.notion-card th,
.notion-card td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.lesson-html-content.table-responsive table {
  margin-bottom: 4px;
}

.lesson-html-content.table-responsive::after {
  content: "Geser tabel ke samping →";
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7fb;
  color: #b85c72;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #f0dfe5;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .lesson-shell,
  .lesson-content,
  .notion-grid.lesson-narrow-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .notion-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .lesson-html-content table,
  .notion-card table,
  .notion-card-full table {
    min-width: 680px;
  }
}

@media (max-width: 480px) {
  .lesson-html-content table,
  .notion-card table,
  .notion-card-full table {
    min-width: 640px;
  }

  .lesson-html-content th,
  .lesson-html-content td,
  .notion-card th,
  .notion-card td {
    padding: 12px 14px !important;
    font-size: 14px;
    line-height: 1.5;
  }
}
