/* ============================================================
   app.css — Media AI Teks Pidato
   RESPONSIVE: mobile-first, all breakpoints
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --hijau-1:      #0d2b1e;
    --hijau-2:      #1a4731;
    --hijau-3:      #2d6a4f;
    --hijau-4:      #52b788;
    --hijau-5:      #95d5b2;
    --kuning:       #f4c430;
    --kuning-muda:  #fff9e6;
    --bg:           #f7f9f7;
    --bg-page:      #f0f7f3;
    --putih:        #ffffff;
    --teks:         #1a2b22;
    --teks-2:       #4a6358;
    --border:       #dceade;
    --sidebar-w:    240px;
    --card-radius:  20px;
    --shadow-sm:    0 2px 8px rgba(26, 71, 49, 0.07);
    --shadow-md:    0 6px 24px rgba(26, 71, 49, 0.10);

    /* Responsive spacing */
    --page-px:      40px;
    --page-py:      36px;
    --topbar-px:    32px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--teks);
   
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--hijau-1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--hijau-4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.sidebar-logo p {
    font-size: 10px;
    color: var(--hijau-5);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.sidebar-section {
    padding: 16px 12px 8px;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 8px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item.active {
    background: var(--hijau-3);
    color: white;
}

.nav-item .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nav-item.active .nav-icon {
    background: var(--hijau-4);
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--kuning);
    color: var(--hijau-1);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.mode-select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mode-select:focus {
    outline: none;
    border-color: var(--hijau-4);
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hijau-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--hijau-1);
    flex-shrink: 0;
}

.sidebar-footer .user-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.sidebar-footer .user-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.page-content {
    padding: var(--page-py) var(--page-px);
    flex: 1;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--putih);
    border-bottom: 1px solid var(--border);
    padding: 14px var(--topbar-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.breadcrumb {
    font-size: 12px;
    color: var(--teks-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb span {
    color: var(--hijau-3);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.input-kode {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    width: 120px;
    color: black;
    transition: border-color 0.2s;
}

.input-kode:focus {
    outline: none;
    border-color: var(--hijau-4);
}

.input-kode::placeholder {
    color: #303130;
}

.btn-login {
    background: none;
    border: none;
    color: var(--teks);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.btn-login:hover {
    color: var(--hijau-3);
    background: #e8f5ee;
}

.btn-signup {
    background: var(--hijau-3);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.btn-signup:hover {
    background: var(--hijau-2);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--teks);
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.15s;
}

.menu-toggle:hover {
    background: #e8f5ee;
}

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    backdrop-filter: blur(2px);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    margin-bottom: 28px;
}

.page-header .page-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kuning);
    color: var(--hijau-1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: var(--hijau-1);
    margin-bottom: 6px;
}

.page-header p {
    font-size: 14px;
    color: var(--teks-2);
}

/* ============================================================
   CONTENT GRID
   ============================================================ */
.content-grid,
.latihan-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.latihan-grid {
    grid-template-columns: 1fr 320px;
}

/* ============================================================
   EDITOR CARD
   ============================================================ */
.editor-card {
    background: var(--putih);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.editor-card-top {
    background: var(--hijau-1);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot       { width: 11px; height: 11px; border-radius: 50%; }
.dot-r     { background: #ff6b6b; }
.dot-y     { background: #f4c430; }
.dot-g     { background: #52b788; }

.editor-card-top .file-name {
    margin-left: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.editor-body {
    padding: 22px;
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--hijau-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-label::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--hijau-4);
    border-radius: 2px;
    flex-shrink: 0;
}

textarea#text {
    width: 100%;
    min-height: 260px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: var(--teks);
    resize: vertical;
    background: #fafcfb;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

textarea#text:focus {
    outline: none;
    border-color: var(--hijau-4);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.12);
    background: white;
}

textarea#text::placeholder {
    color: #b0bfb5;
    font-style: italic;
}

.editor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.editor-meta small {
    font-size: 12px;
    color: #9aab9f;
}

.progress-wrap {
    margin-top: 10px;
}

.progress-bar-bg {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--hijau-4);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}

/* ============================================================
   TOMBOL ANALISIS
   ============================================================ */
.btn-analisis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    background: linear-gradient(135deg, var(--hijau-3), var(--hijau-1));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-analisis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3);
}

.btn-analisis:active {
    transform: translateY(0);
}

.btn-analisis.loading {
    opacity: 0.8;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   PANEL KANAN
   ============================================================ */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--putih);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
}

.info-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hijau-1);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title .ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    font-size: 13px;
    color: var(--teks-2);
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tips-list li::before {
    content: '✓';
    color: var(--hijau-4);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.aspek-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aspek-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.aspek-item:hover {
    background: #f0faf4;
    border-color: var(--hijau-5);
}

.aspek-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.aspek-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--teks);
}

.aspek-sub {
    font-size: 11px;
    color: var(--teks-2);
}

.shortcut-card {
    background: linear-gradient(135deg, var(--hijau-2), var(--hijau-1));
    border-radius: 16px;
    padding: 20px;
}

.shortcut-card .sc-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sc-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.sc-key {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
}

/* ============================================================
   HASIL ANALISIS
   ============================================================ */
.hasil-section {
    margin-top: 24px;
    display: none;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hasil-card {
    background: var(--putih);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.hasil-card-header {
    background: linear-gradient(135deg, var(--hijau-2), var(--hijau-1));
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hasil-card-header .h-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-icon {
    width: 38px;
    height: 38px;
    background: var(--kuning);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.h-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: white;
    margin-bottom: 2px;
}

.h-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-salin {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-salin:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hasil-body {
    padding: 28px;
}

/* Output markdown styles */
#output {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.85;
    color: #1a2b22;
    margin: 0;
}

#output h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hijau-1);
    background: linear-gradient(135deg, #e8f5ee, #f0faf4);
    border-left: 4px solid var(--hijau-4);
    padding: 10px 16px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0 12px;
}

#output h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hijau-2);
    margin: 18px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#output h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hijau-4);
    border-radius: 50%;
    flex-shrink: 0;
}

#output ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#output ul li {
    font-size: 13.5px;
    color: #3a4f42;
    padding: 8px 14px 8px 38px;
    background: #fafcfb;
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    line-height: 1.7;
}

#output ul li::before {
    content: '→';
    position: absolute;
    left: 14px;
    color: var(--hijau-4);
    font-weight: 700;
}

#output ol {
    padding: 0;
    margin: 6px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: item;
    list-style: none;
}

#output ol li {
    font-size: 13.5px;
    color: #3a4f42;
    padding: 10px 14px 10px 44px;
    background: #fafcfb;
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    line-height: 1.7;
    counter-increment: item;
}

#output ol li::before {
    content: counter(item);
    position: absolute;
    left: 12px;
    width: 22px;
    height: 22px;
    background: var(--hijau-3);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

#output strong {
    color: var(--hijau-1);
    font-weight: 700;
}

#output em {
    color: var(--teks-2);
    font-style: italic;
}

#output p {
    margin: 8px 0;
    color: #3a4f42;
    font-size: 13.5px;
    line-height: 1.8;
}

#output hr {
    border: none;
    border-top: 1.5px dashed var(--border);
    margin: 20px 0;
}

#output blockquote {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border-left: 4px solid var(--kuning);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 12px 0;
    font-style: italic;
    color: #5a4a00;
    font-size: 13.5px;
    line-height: 1.8;
}

/* ============================================================
   HALAMAN PIDATO
   ============================================================ */
.pidato-wrapper {
    max-width: 900px;
    margin: auto;
}

.pidato-wrapper h2 {
    margin-bottom: 20px;
}

.pidato-card {
    background: white;
    padding: 36px 40px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pidato-card h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    text-decoration: underline;
}

.pidato-section {
    margin-bottom: 20px;
}

.pidato-section h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.pidato-section p {
    font-size: 14px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 10px;
    color: #333;
}

.btn-lanjut {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ============================================================
   HALAMAN HOME
   ============================================================ */
.home-wrapper {
    max-width: 800px;
    margin: auto;
}

.home-wrapper h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.home-wrapper p {
    text-align: justify;
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 16px;
}

.home-wrapper h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #222;
}

.home-wrapper hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.petunjuk-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.petunjuk-list li {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    padding: 4px 0;
    text-align: justify;
}

.petunjuk-list li span {
    font-weight: 700;
}

.btn-mulai {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-mulai:hover {
    background: #43a047;
}

.home-center {
    text-align: center;
}

/* ============================================================
   MATERI HERO HEADER
   ============================================================ */
.materi-hero {
    background: linear-gradient(135deg, var(--hijau-2) 0%, var(--hijau-3) 60%, #3a7d5e 100%);
    border-radius: 24px;
    padding: 40px 44px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.materi-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.materi-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 80px;
    width: 160px;
    height: 160px;
    background: rgba(244, 211, 94, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.materi-hero .page-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(244, 211, 94, 0.18);
    border: 1px solid rgba(244, 211, 94, 0.35);
    color: var(--kuning);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.materi-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.materi-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.materi-hero .hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   MATERI GRID & NAV
   ============================================================ */
.materi-grid {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 28px;
    align-items: start;
}

.materi-nav {
    background: var(--putih);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.materi-nav-header {
    background: var(--hijau-1);
    padding: 14px 18px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.materi-nav a {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 18px;
    text-decoration: none;
    font-size: 12.5px;
    color: var(--teks-2);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    line-height: 1.5;
}

.materi-nav a:last-child {
    border-bottom: none;
}

.materi-nav a:hover {
    background: #f5faf7;
    color: var(--hijau-2);
}

.materi-nav a.aktif {
    background: linear-gradient(90deg, #e5f5ec, #f0faf4);
    color: var(--hijau-1);
    font-weight: 600;
    border-left: 3px solid var(--hijau-4);
}

.nav-letter {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--border);
    color: var(--teks-2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 1px;
}

.materi-nav a.aktif .nav-letter {
    background: var(--hijau-4);
    color: #fff;
}

/* ============================================================
   MATERI CARDS
   ============================================================ */
.materi-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.materi-card {
    background: var(--putih);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.materi-card:hover {
    box-shadow: var(--shadow-md);
}

.materi-card-header {
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, #f7fbf9, #fff);
}

.card-letter-badge {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--hijau-1);
    color: var(--kuning);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
}

.materi-card-header h3 {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hijau-1);
    line-height: 1.4;
}

.materi-card-body {
    padding: 24px 26px;
}

.materi-card-body p {
    font-size: 14px;
    color: var(--teks-2);
    line-height: 1.85;
    margin-bottom: 14px;
}

/* ============================================================
   SUB LABELS
   ============================================================ */
.sub-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hijau-1);
    margin: 22px 0 10px;
}

.sub-label::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--hijau-4);
    border-radius: 3px;
    flex-shrink: 0;
}

.sub-label-sm {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hijau-3);
    margin: 14px 0 8px;
    padding-left: 13px;
    border-left: 3px solid var(--border);
}

/* ============================================================
   LISTS
   ============================================================ */
.list-custom {
    list-style: none;
    padding: 0;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: list-counter;
}

.list-custom li {
    font-size: 14px;
    color: var(--teks-2);
    line-height: 1.7;
    padding: 10px 14px 10px 40px;
    background: #f7fbf9;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: relative;
}

.list-custom li::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    position: absolute;
    left: 12px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--hijau-4);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-bullet {
    list-style: none;
    padding: 0;
    margin-bottom: 14px;
}

.list-bullet li {
    font-size: 14px;
    color: var(--teks-2);
    line-height: 1.7;
    padding: 9px 14px 9px 36px;
    position: relative;
    margin-bottom: 6px;
    background: #f7fbf9;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.list-bullet li::before {
    content: '→';
    position: absolute;
    left: 13px;
    top: 9px;
    color: var(--hijau-4);
    font-size: 13px;
    font-weight: 700;
}

.list-bullet li strong {
    color: var(--hijau-1);
}

/* ============================================================
   TABLE — responsive scroll wrapper
   ============================================================ */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: 12px;
}

.materi-table {
    width: 100%;
    min-width: 480px; /* prevents squish on mobile */
    border-collapse: collapse;
    font-size: 13.5px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.materi-table thead tr {
    background: var(--hijau-1);
    color: #fff;
}

.materi-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.3px;
}

.materi-table tbody tr {
    transition: background 0.15s;
}

.materi-table tbody tr:nth-child(even) {
    background: #f5faf7;
}

.materi-table tbody tr:hover {
    background: #e8f5ee;
}

.materi-table tbody td {
    padding: 11px 16px;
    color: var(--teks-2);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

/* ============================================================
   QUOTE
   ============================================================ */
.pidato-quote {
    background: linear-gradient(135deg, #f0f9f4, #e8f5ee);
    border-left: 4px solid var(--hijau-4);
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--teks-2);
    line-height: 1.85;
    font-style: italic;
    position: relative;
}

.pidato-quote::before {
    content: '"';
    font-family: 'Lora', serif;
    font-size: 52px;
    color: var(--hijau-4);
    opacity: 0.25;
    position: absolute;
    top: -8px;
    left: 12px;
    line-height: 1;
}

.pidato-quote em {
    font-weight: 700;
    font-style: italic;
    color: var(--hijau-3);
    background: rgba(82, 183, 136, 0.15);
    padding: 0 3px;
    border-radius: 3px;
}

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
    background: var(--kuning-muda);
    border: 1px solid #f0d050;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #5a4a10;
    line-height: 1.7;
    display: flex;
    gap: 10px;
}

.info-box .info-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   STRUKTUR CARDS
   ============================================================ */
.struktur-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.struktur-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.struktur-card-top {
    padding: 12px 16px;
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.struktur-card-top.pembukaan { background: #2d6a4f; }
.struktur-card-top.isi       { background: #1a4731; }
.struktur-card-top.penutup   { background: #3a7d5e; }

.struktur-card-body {
    padding: 14px 16px;
    background: #fff;
}

.struktur-card-body p {
    font-size: 12.5px;
    color: var(--teks-2);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================================
   CONTOH TERPADU
   ============================================================ */
.contoh-terpadu-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contoh-terpadu-title {
    background: var(--hijau-1);
    padding: 13px 20px;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contoh-bagian {
    border-bottom: 1px solid var(--border);
}

.contoh-bagian:last-child {
    border-bottom: none;
}

.contoh-bagian-label {
    padding: 8px 20px;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--border);
}

.pembukaan-label  { background: #dcfce7; color: #166534; }
.isi-label-badge  { background: #dbeafe; color: #1e40af; }
.penutup-label    { background: #fef9c3; color: #92400e; }

.contoh-bagian-text {
    padding: 16px 20px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--teks-2);
    background: #fafcfb;
}

/* ============================================================
   METODE CARDS
   ============================================================ */
.metode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.metode-card {
    background: linear-gradient(135deg, #f5faf7, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
}

.metode-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--hijau-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.metode-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hijau-1);
    margin-bottom: 4px;
}

.metode-card p {
    font-size: 12.5px;
    color: var(--teks-2);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: #f7fbf9;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--hijau-1);
    color: var(--kuning);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
}

.step-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--hijau-1);
    margin-bottom: 5px;
}

.step-body p {
    font-size: 13px;
    color: var(--teks-2);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================================
   SIMPATI LIST
   ============================================================ */
.simpati-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.simpati-item {
    background: #f5faf7;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--teks-2);
    line-height: 1.6;
    display: flex;
    gap: 10px;
}

.simpati-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--hijau-4);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ============================================================
   KARAKTERISTIK BOXES
   ============================================================ */
.karakteristik-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.karakteristik-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.karakteristik-box-header {
    padding: 10px 16px;
    background: var(--hijau-1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.karakteristik-box ul {
    list-style: none;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #fff;
}

.karakteristik-box ul li {
    font-size: 12.5px;
    color: var(--teks-2);
    line-height: 1.65;
    padding-left: 16px;
    position: relative;
}

.karakteristik-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hijau-4);
    font-weight: 700;
    font-size: 11px;
}

/* ============================================================
   PENANDA ITEMS
   ============================================================ */
.penanda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 14px;
}

.penanda-item {
    display: flex;
    gap: 12px;
    background: #f7fbf9;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
}

.penanda-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--hijau-3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 1px;
}

.penanda-item p {
    font-size: 13px;
    color: var(--teks-2);
    line-height: 1.65;
    margin-bottom: 0;
}

.penanda-item strong {
    color: var(--hijau-1);
}

/* ============================================================
   ISTILAH GRID
   ============================================================ */
.istilah-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.istilah-item {
    background: var(--putih);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.istilah-item .term {
    font-size: 14px;
    font-weight: 700;
    color: var(--hijau-1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.istilah-item .term::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--kuning);
    border-radius: 50%;
    flex-shrink: 0;
}

.istilah-item .def {
    font-size: 12.5px;
    color: var(--teks-2);
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — BREAKPOINTS
   ============================================================ */

/* --- 1280px: Large desktop — default layout holds --- */

/* --- 1024px: Small laptop / tablet landscape --- */
@media (max-width: 1024px) {
    :root {
        --sidebar-w: 220px;
        --page-px:   28px;
    }

    .materi-grid {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

/* --- 960px: Tablet landscape / small laptop, collapse right panel --- */
@media (max-width: 960px) {
    :root {
        --page-px: 24px;
    }

    .content-grid,
    .latihan-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        order: -1;
    }

    /* Show shortcut card as horizontal scroll row on tablet */
    .right-panel .info-card,
    .right-panel .shortcut-card {
        max-width: 100%;
    }
}

/* --- 900px: Materi grid collapse, 2-col grids → 1-col --- */
@media (max-width: 900px) {
    .materi-grid {
        grid-template-columns: 1fr;
    }

    /* Sticky nav becomes horizontal on tablet */
    .materi-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--card-radius);
        scrollbar-width: none;
    }

    .materi-nav::-webkit-scrollbar {
        display: none;
    }

    .materi-nav-header {
        display: none;
    }

    .materi-nav a {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid var(--border);
        white-space: nowrap;
        gap: 4px;
        min-width: 80px;
        font-size: 11px;
    }

    .materi-nav a:last-child {
        border-right: none;
    }

    .materi-nav a.aktif {
        border-left: none;
        border-bottom: 3px solid var(--hijau-4);
        background: linear-gradient(180deg, #f0faf4, #e5f5ec);
    }

    .nav-letter {
        margin-top: 0;
    }

    .metode-grid,
    .simpati-list,
    .karakteristik-grid,
    .istilah-grid {
        grid-template-columns: 1fr;
    }

    .struktur-cards {
        grid-template-columns: 1fr;
    }
}

/* --- 768px: Tablet portrait --- */
@media (max-width: 768px) {
    :root {
        --page-px:   20px;
        --page-py:   24px;
        --topbar-px: 20px;
    }

    .pidato-card {
        padding: 24px 20px;
    }

    .materi-hero {
        padding: 28px 24px;
    }

    .materi-card-header {
        padding: 14px 18px;
    }

    .materi-card-body {
        padding: 18px;
    }

    .hasil-body {
        padding: 20px;
    }

    .editor-body {
        padding: 16px;
    }
}

/* --- 700px: Mobile landscape + small tablet — sidebar slides out --- */
@media (max-width: 700px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w);
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar {
        padding: 12px 16px;
    }

    .page-content {
        padding: 20px 16px;
    }

    /* Hide topbar auth buttons on small screens, keep hamburger */
    .btn-login {
        display: none;
    }

    .input-kode {
        width: 80px;
        font-size: 12px;
        padding: 7px 10px;
    }

    .materi-hero {
        padding: 24px 18px;
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .materi-hero h1 {
        font-size: 1.5rem;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    .hasil-card-header {
        padding: 14px 16px;
    }
}

/* --- 480px: Mobile portrait --- */
@media (max-width: 480px) {
    :root {
        --page-px: 14px;
        --page-py: 18px;
    }

    .topbar {
        padding: 10px 14px;
    }

    .topbar-right {
        gap: 6px;
    }

    .btn-signup {
        font-size: 12px;
        padding: 7px 12px;
    }

    .input-kode {
        width: 70px;
        font-size: 12px;
    }

    .materi-hero {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .materi-hero h1 {
        font-size: 1.35rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-header h2 {
        font-size: 1.25rem;
    }

    .editor-body {
        padding: 14px;
    }

    textarea#text {
        min-height: 200px;
        font-size: 13.5px;
        padding: 12px;
    }

    .btn-analisis {
        padding: 12px;
        font-size: 13.5px;
    }

    .info-card {
        padding: 16px;
    }

    .hasil-body {
        padding: 16px;
    }

    #output h2 {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .materi-card-header {
        padding: 12px 14px;
        gap: 10px;
    }

    .materi-card-header h3 {
        font-size: 0.95rem;
    }

    .materi-card-body {
        padding: 14px;
    }

    .pidato-card {
        padding: 20px 14px;
    }

    .step-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .metode-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .metode-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .contoh-bagian-text {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Stack shortcut card keys on very small screens */
    .sc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* --- 360px: Very small phones --- */
@media (max-width: 360px) {
    :root {
        --page-px: 12px;
    }

    .btn-signup {
        display: none;
    }

    .materi-hero h1 {
        font-size: 1.2rem;
    }

    .materi-card-header h3 {
        font-size: 0.9rem;
    }

    .editor-body {
        padding: 12px;
    }

    textarea#text {
        min-height: 180px;
        padding: 10px;
    }
}

/* ============================================================
   AUTH STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

.auth-page-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--teks);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-image: radial-gradient(circle, rgba(82,183,136,0.15) 1px, transparent 1px);
    background-size: 28px 28px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--putih);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(13,43,30,0.04),
        0 12px 40px rgba(13,43,30,0.10);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-header {
    background: linear-gradient(135deg, var(--hijau-1) 0%, var(--hijau-3) 100%);
    padding: 32px 32px 28px;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(244,196,48,0.08);
    pointer-events: none;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--kuning);
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.auth-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 28px 32px 32px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f8ef;
    border: 1px solid #a8dfc0;
    color: #27ae60;
}

.alert-error {
    background: #fdf0ee;
    border: 1px solid #f0b9b3;
    color: #c0392b;
}

.alert-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--teks-2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--teks);
    background: #fafcfb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
-webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--hijau-4);
    box-shadow: 0 0 0 4px rgba(82,183,136,0.12);
    background: var(--putih);
}

.form-input::placeholder {
    color: #b0c4b8;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9ab8a8;
    pointer-events: none;
}

.input-wrap .form-input {
    padding-left: 40px;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--hijau-3), var(--hijau-1));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,106,79,0.30);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--teks-2);
}

.auth-footer a {
    color: var(--hijau-3);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer a:hover {
    color: var(--hijau-4);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #c0d4c8;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Auth responsive */
@media (max-width: 480px) {
    .auth-page-body {
        padding: 16px 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-header {
        padding: 24px 22px 22px;
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    .auth-body {
        padding: 22px 22px 26px;
    }
}

@media (max-width: 360px) {
    .auth-header h2 {
        font-size: 1.25rem;
    }

    .auth-body {
        padding: 18px 18px 22px;
    }

    .form-input {
        font-size: 13px;
    }
}
/* ============================================================
   FINAL AUTH RESPONSIVE
   ============================================================ */

.auth-page-body {
    font-family: 'Plus Jakarta Sans', sans-serif;

    background: var(--bg);

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    overflow-x: hidden;
}

.auth-card {
    width: 100%;
    max-width: 420px;

    background: white;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.05),
        0 12px 30px rgba(0,0,0,0.08);
}

/* TABLET */
@media (max-width: 768px) {

    .auth-card {
        max-width: 100%;
    }

    .auth-header {
        padding: 24px 20px;
    }

    .auth-body {
        padding: 20px;
    }
}

/* MOBILE */
@media (max-width: 480px) {

    .auth-page-body {
        padding: 14px;

        align-items: flex-start;

        padding-top: 40px;
    }

    .auth-card {
        width: 100%;

        border-radius: 18px;
    }

    .auth-header {
        padding: 22px 18px;
    }

    .auth-body {
        padding: 18px;
    }

    .auth-header h2 {
        font-size: 1.25rem;
    }

    .auth-header p {
        font-size: 12px;
    }

    .form-input {
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px;
    }
}

/* ============================================================
   HALAMAN HASIL SISWA
   ============================================================ */

.kelas-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 18px;

    margin-top: 18px;
}

.kelas-link {
    text-decoration: none;
}

.kelas-card {
    position: relative;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    cursor: pointer;

    border: 1px solid transparent;

    overflow: hidden;
}

.kelas-card:hover {
    transform: translateY(-4px);

    border-color: rgba(45,106,79,0.12);

    box-shadow:
        0 10px 28px rgba(45,106,79,0.12);
}

.kelas-icon {
    width: 58px;
    height: 58px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    margin-bottom: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(45,106,79,0.12),
            rgba(64,145,108,0.08)
        );
}

.kelas-title {
    font-size: 16px;
    font-weight: 700;

    color: var(--hijau-1);

    margin-bottom: 6px;

    line-height: 1.4;
}

.kelas-kode {
    font-size: 13px;

    color: var(--teks-2);
}

.kelas-kode strong {
    color: var(--hijau-3);
}

.kelas-action {
    margin-top: 16px;

    font-size: 13px;
    font-weight: 600;

    color: var(--hijau-4);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state-card {
    background: white;

    border-radius: 22px;

    padding: 40px 24px;

    text-align: center;

    box-shadow:
        0 4px 18px rgba(15,23,42,0.05);
}

.empty-icon {
    font-size: 42px;

    margin-bottom: 14px;
}

.empty-state-card p {
    color: var(--teks-2);

    margin: 0;
}

.empty-state-card a {
    color: var(--hijau-3);

    text-decoration: none;

    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

    .kelas-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .kelas-card {
        border-radius: 18px;
    }

    .kelas-title {
        font-size: 15px;
    }

    .kelas-kode,
    .kelas-action {
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    .kelas-grid {
        gap: 12px;
    }

    .kelas-card {
        padding: 18px;
    }

    .kelas-icon {
        width: 52px;
        height: 52px;

        font-size: 24px;
    }

    .kelas-title {
        font-size: 14px;
    }

    .kelas-kode {
        line-height: 1.6;
    }

    .kelas-action {
        margin-top: 14px;
    }
}