/* =============================================
   Alumni SMKN 1 Karawang
   Tema: Warm Lime + Olive Ink
   (selaras dengan proyek "Tumbuhin")
   ============================================= */

:root {
    --lime: #CFFF74;
    --lime-soft: #E4FFA8;
    --lime-deep: #B4E84E;
    --ink: #2F3A1D;
    --ink-soft: #4A5A33;
    --ink-mute: #7A8A66;
    --paper: #FFFFFF;
    --bg: #F6F7F2;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --shadow: 0 18px 40px -18px rgba(47, 58, 29, .45);
    --shadow-sm: 0 10px 30px -20px rgba(47, 58, 29, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-bottom: 20px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: none; }

::selection { background: var(--lime); color: var(--ink); }

.container {
    width: min(1160px, 92vw);
    margin-inline: auto;
}

/* ---------------- NAV ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 247, 242, .82);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    color: var(--ink);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--lime);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0;
    flex: none;
}

/*
 * Logo biasanya gambar horizontal (lambang + tulisan school's own),
 * jadi JANGAN dipaksa jadi kotak 36x36.
 * Biarkan lebarnya mengikuti gambar,tinggi dibatasi.
 */
.brand-logo {
    height: 34px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 8px;
    flex: none;
    display: block;
}

.brand-preview .brand-logo { height: 32px; }

/* Kalau admin memilih sembunyikan tulisan, pakai ikon saja */
.brand.is-icon-only .brand-text { display: none; }

.brand-preview {
    font-size: .92rem;
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--surface, #fff);
    border: 2px dashed var(--lime-deep);
    border-radius: var(--radius-sm);
}

.logo-preview > span:first-child {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-mute);
}

.brand-text { color: var(--ink); }
.brand-text strong { font-weight: 800; }

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .9rem;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: .2s;
    white-space: nowrap;
}

.main-nav a:hover { background: var(--lime-soft); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }

.user-chip {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 14px;
    background: var(--lime-soft);
    border-radius: var(--radius-pill);
}

/* ---------------- BUTTONS ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font: inherit;
    background: var(--ink);
    color: var(--lime);
    font-weight: 700;
    font-size: .92rem;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    transition: .2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(47, 58, 29, .6);
    text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btn-ghost { background: var(--lime); color: var(--ink); }
.btn-ghost:hover { background: var(--lime-deep); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--lime);
    border-color: var(--ink);
}

.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------------- LAYOUT ---------------- */
.main-content { padding: 28px 0 60px; min-height: 58vh; }

/* ---------------- HERO ---------------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    margin-top: 28px;
    border-radius: var(--radius-xl);
    background: var(--lime);
    color: var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-copy { padding: 56px 56px 60px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--lime);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    display: block;
    color: var(--ink);
    opacity: .55;
}

.hero p {
    margin: 0;
    max-width: 36ch;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: rgba(47, 58, 29, .35);
}

.hero .btn-outline:hover {
    background: var(--ink);
    color: var(--lime);
    border-color: var(--ink);
}

/* Tombol utama di hero: olive solid + teks lime (bukan lime di atas lime) */
.hero .btn:not(.btn-outline) {
    background: var(--ink);
    color: var(--lime);
    box-shadow: 0 12px 26px -12px rgba(47, 58, 29, .7);
}

.hero .btn:not(.btn-outline):hover {
    background: #24301A;
    color: var(--lime-soft);
}

.hero-art {
    position: relative;
    background: var(--ink);
    border-radius: 28px;
    margin: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.hero-art::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(207, 255, 116, .28), transparent 70%);
}

.hero-art-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--lime);
    padding: 2rem;
}

.hero-art-inner strong {
    display: block;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.hero-art-inner span {
    display: block;
    margin-top: 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .7;
}

/* ---------------- SECTION HEAD ---------------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 0 22px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -.03em;
    font-weight: 800;
}

.section-head p {
    margin: 0;
    color: var(--ink-mute);
    font-weight: 500;
    font-size: .95rem;
}

/* ---------------- GRID & CARD ---------------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }

.card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    text-align: left;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ink);
    transition: transform .18s, box-shadow .22s, border-color .22s;
}

/* Sapuan cahaya lime saat hover */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(207, 255, 116, .55) 50%, transparent 65%);
    background-size: 220% 100%;
    background-position: 150% 0;
    transition: opacity .2s;
}

.card:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; animation: sweep .85s ease; }

@keyframes sweep {
    from { background-position: 170% 0; }
    to { background-position: -70% 0; }
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: .25s;
}

.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }

.card h3 { margin: 0; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-mute); font-size: .88rem; font-weight: 500; }

.card-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .85rem;
    color: var(--ink);
}

/* ---------------- STATS ---------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.stat {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}

.stat span {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-mute);
}

/* ---------------- PAGE HEAD ---------------- */
.page-head { margin: 48px 0 26px; }

.page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -.035em;
    font-weight: 800;
}

.crumb { margin: 0 0 12px; font-size: .86rem; font-weight: 600; }
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--ink); }

.muted { color: var(--ink-soft); font-weight: 500; }

/* ---------------- EMPTY STATE ---------------- */
.empty-state {
    background: var(--paper);
    border: 2px dashed var(--lime-deep);
    border-radius: var(--radius-lg);
    padding: 56px 24px;
    text-align: center;
    color: var(--ink-mute);
    font-weight: 600;
}

.empty-state .btn { margin-top: 18px; }

/* ---------------- FORMS ---------------- */
.auth-wrap {
    max-width: 470px;
    margin: 48px auto 0;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-wrap h1 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    letter-spacing: -.03em;
    font-weight: 800;
}

.form { display: grid; gap: 18px; margin-top: 26px; }

/*
 * Field form SELALU pakai class="field".
 * Jangan andalkan position label di DOM, karena kalau labelnya
 * dipindah ke dalam kotak/card, selector posisi akan gagal
 * dan label turun jadi inline ( infamous "meler" ).
 */
.form .field {
    display: grid;
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.form .field > span.field-hint {
    font-weight: 500;
    font-size: .78rem;
    color: var(--ink-mute);
}

.form input,
.form select,
.form textarea {
    font: inherit;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    padding: 13px 16px;
    background: var(--paper);
    border: 2px solid rgba(47, 58, 29, .16);
    border-radius: var(--radius-sm);
    transition: border-color .18s, box-shadow .18s;
}

.form input::placeholder { color: var(--ink-mute); }

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(207, 255, 116, .45);
}

/* Input file: tetap kelihatan jelas */
.form input[type="file"] {
    padding: 10px;
    background: var(--surface-2, #f7fdf5);
    border-style: dashed;
    border-color: var(--lime-deep);
    cursor: pointer;
}

.form input[type="file"]::file-selector-button {
    font: inherit;
    font-weight: 700;
    font-size: .85rem;
    color: var(--ink);
    background: var(--lime);
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    margin-right: 12px;
    cursor: pointer;
}

/* Input yang menampilkan kode / URL (bukan placeholder) */
.form input.has-value {
    font-weight: 700;
    color: var(--ink);
}

.form select option { background: var(--paper); color: var(--ink); }

.auth-alt {
    margin: 24px 0 0;
    font-size: .87rem;
    font-weight: 600;
    text-align: center;
    color: var(--ink-mute);
}

/* ---------------- FLASH ---------------- */
.flash {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid;
}

.flash-success { background: var(--lime-soft); border-color: var(--lime-deep); color: var(--ink); }
.flash-error { background: #FFEBE9; border-color: #F3B5AF; color: #8C2F26; }
.flash-info { background: #EAF3FF; border-color: #B6D3F7; color: #1F4C8C; }

/* ---------------- PROSE ---------------- */
.prose { max-width: 740px; margin-top: 48px; }

.prose h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -.035em;
    font-weight: 800;
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.prose ul { padding-left: 1.1rem; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; font-weight: 500; }
.prose p { color: var(--ink-soft); font-weight: 500; }

.prose code,
.empty-state code {
    background: var(--lime-soft);
    border: 1px solid var(--lime-deep);
    padding: 2px 7px;
    border-radius: 7px;
    font-size: .85em;
    font-weight: 700;
    color: var(--ink);
}

/* ---------------- ERROR PAGE ---------------- */
.error-page { text-align: center; padding: 64px 0; }

.error-page h1 {
    margin: 0;
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--lime);
    -webkit-text-stroke: 2px var(--ink);
}

.error-page p {
    color: var(--ink-mute);
    font-weight: 600;
    margin: 12px 0 28px;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
    background: var(--ink);
    color: var(--lime);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 44px 0 28px;
}

.footer-inner strong { color: var(--lime); font-weight: 800; font-size: 1.05rem; }

.footer-inner p {
    margin: 6px 0 0;
    font-size: .88rem;
    color: rgba(207, 255, 116, .65);
    font-weight: 500;
}

.footer-nav { display: flex; gap: 22px; align-items: flex-start; }

.footer-nav a {
    color: rgba(207, 255, 116, .8);
    font-weight: 600;
    font-size: .88rem;
}

.footer-nav a:hover { color: var(--lime); }

.footer-bottom {
    border-top: 1px solid rgba(207, 255, 116, .18);
    padding: 18px 0 30px;
}

.footer-bottom small {
    color: rgba(207, 255, 116, .5);
    font-weight: 600;
}

/* ---------------- GOOGLE BUTTON ---------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--ink-mute);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--line, rgba(47, 58, 29, .1));
    border-radius: 2px;
}

.btn-google {
    background: var(--paper);
    color: var(--ink);
    border: 2px solid rgba(47, 58, 29, .16);
}

.btn-google:hover {
    background: var(--bg);
    border-color: var(--ink-mute);
    box-shadow: none;
}

/* ---------------- TABS ---------------- */
.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tab {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: .86rem;
    box-shadow: var(--shadow-sm);
    transition: .2s;
}

.tab:hover { background: var(--lime-soft); color: var(--ink); }

.tab.is-active { background: var(--ink); color: var(--lime); }

/* ---------------- TABLE ---------------- */
.table-wrap {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

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

.table th {
    text-align: left;
    padding: 16px 18px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border-bottom: 2px solid var(--bg);
    white-space: nowrap;
}

.table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--bg);
    font-size: .9rem;
    font-weight: 500;
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2, #f7fdf5); }

.table td strong { display: block; font-weight: 700; }
.table td small { display: block; color: var(--ink-mute); font-size: .8rem; }

.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }

/* ---------------- BADGE ---------------- */
.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.badge-pending { background: #FFF6D9; color: #8A6400; }
.badge-active { background: var(--lime-soft); color: var(--ink); }
.badge:empty { display: none; }
.badge-rejected { background: #FFEBE9; color: #8C2F26; }
.badge-google { background: #EEF3FF; color: #2B4C9B; }

/* ---------------- PANEL ---------------- */
.panel {
    background: var(--paper);
    border: 2px solid var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

/* Cegah isi kotak meluber keluar */
.box,
.upload-item,
.form { min-width: 0; }

.field-static {
    display: grid;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-soft);
    min-width: 0;
}

.field-static code {
    background: var(--bg);
    border: 2px solid var(--bg);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    word-break: break-all;
    color: var(--ink);
}

.field-static small { font-weight: 500; color: var(--ink-mute); }

.btn-danger {
    background: #FFEBE9;
    color: #8C2F26;
}

.btn-danger:hover { background: #FFD9D5; }

/* ---------------- BOX (setting group) ---------------- */
.box {
    background: var(--bg);
    border: 2px solid var(--lime-soft);
    border-radius: var(--radius-md);
    padding: 22px;
    display: grid;
    gap: 16px;
}

.box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.box-head strong { font-weight: 800; font-size: .98rem; }

/* ---------------- RADIO (toggle aktif / nonaktif) ---------------- */
.radio-group { display: grid; gap: 10px; }

.form-hint-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: -2px;
}

.radio {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 12px !important;
    padding: 14px 16px;
    background: var(--paper);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    transition: .18s;
}

.radio:hover { border-color: var(--lime-deep); }

.radio:has(input:checked) {
    border-color: var(--ink);
    background: var(--lime-soft);
}

.radio input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    flex: none;
    margin: 2px 0 0;
    border: 2px solid var(--ink-mute);
    border-radius: 50%;
    background: var(--paper);
    padding: 0;
    cursor: pointer;
    transition: .18s;
}

.radio input[type="radio"]:checked {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: inset 0 0 0 4px var(--lime);
}

.radio:has(input:checked) input[type="radio"] { border-color: var(--ink); }

.radio span { display: block; }

.radio strong {
    display: block;
    font-weight: 800;
    font-size: .92rem;
    color: var(--ink);
}

.radio small {
    display: block;
    font-weight: 500;
    font-size: .82rem;
    color: var(--ink-mute);
    margin-top: 2px;
}

/* Radio biasa (bukan toggle di dalam .radio) tetap bulat */
.form input[type="radio"] { border-radius: 50%; }

/* ---------------- UPLOAD ---------------- */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.upload-item { display: grid; gap: 12px; align-content: start; min-width: 0; }

.upload-item .field { display: grid; }

.upload-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
    border: 2px solid var(--lime-soft);
    border-radius: var(--radius-sm);
}

.upload-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line, rgba(47, 58, 29, .12));
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-item .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.checkline {
    display: flex !important;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    margin: 0;
}

.checkline input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid var(--ink-mute);
    border-radius: 5px;
    background: var(--paper);
    padding: 0;
    cursor: pointer;
    transition: .18s;
}

.checkline input[type="checkbox"]:checked {
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: inset 0 0 0 3px var(--lime);
}

/* ---------------- NAVIGASI ADMIN ---------------- */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 0;
}

.admin-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    border: 2px solid rgba(47, 58, 29, .12);
    color: var(--ink);
    font-weight: 700;
    font-size: .86rem;
    box-shadow: var(--shadow-sm);
    transition: .2s;
}

.admin-nav-back:hover {
    background: var(--lime);
    border-color: var(--lime);
    transform: translateY(-1px);
    text-decoration: none;
}

.admin-nav-current {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--lime);
    font-weight: 700;
    font-size: .86rem;
}

.admin-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
}

.admin-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    border: 2px solid transparent;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: .86rem;
    box-shadow: var(--shadow-sm);
    transition: .2s;
}

.admin-tab:hover { background: var(--lime-soft); color: var(--ink); text-decoration: none; }

.admin-tab.is-active {
    background: var(--ink);
    color: var(--lime);
    border-color: var(--ink);
}

/* ---------------- NAV IKON (PC) ---------------- */
.main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.main-nav .nav-link .ico { flex: none; }

.main-nav .nav-link.is-active {
    background: var(--ink);
    color: var(--lime);
}

/* ---------------- TAB BAR GOOEY (mobile) ---------------- */
.tabbar {
    --indicator-x: 0px;
    --ink-c: #2F3A1D;
    --lime-c: #CFFF74;
    --paper-c: #FFFFFF;

    display: none;
    position: fixed;
    z-index: 70;
    left: 50%;
    /* Nempel ke bawah layar, seperti pattern nav mobile pada umumnya.
       Ruang bawah berasal dari padding DI DALAM bar (safe-area iPhone),
       bukan dari jaraknya ke layar. */
    bottom: 0;
    transform: translateX(-50%);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px;
    overflow: hidden;
    background: var(--paper-c);
    box-shadow: 0 -6px 22px -10px rgba(47, 58, 29, .38);
    -webkit-tap-highlight-color: transparent;
}

.tabbar ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.tabbar li { --icon-circle: 0px; }
.tabbar li.is-active { --icon-circle: 13px; }

.tabbar a,
.tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 46px;
    padding: 7px 0;
    color: var(--ink-c);
    background: none;
    border: 0;
    font: inherit;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    -webkit-appearance: none;
}

.tabbar a .ico,
.tabbar button .ico { display: block; overflow: visible; width: 19px; height: 19px; }

.tabbar a:hover,
.tabbar button:hover { text-decoration: none; }

/* Lingkaran lime di belakang ikon aktif (efek goo) */
.tabbar a::before,
.tabbar button::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 32px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--lime-c);
    clip-path: circle(var(--icon-circle) at 50% 30%);
    transition: clip-path .35s ease;
    z-index: 0;
}

.tabbar a .ico,
.tabbar button .ico,
.tabbar .tab-label { position: relative; z-index: 1; }

.tabbar .tab-label { line-height: 1.1; }

.tabbar-indicator {
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 52px;
    transform: translateX(var(--indicator-x));
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
    opacity: 0;
}

.tabbar.has-active .tabbar-indicator { opacity: 1; }

.tabbar-indicator svg { display: block; width: 46px; height: 52px; }

/* ---------- Sheet menu ---------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(47, 58, 29, .45);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s ease;
}

.sheet-backdrop.is-open { opacity: 1; }

.sheet {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 0;
    width: min(460px, 94vw);
    transform: translate(-50%, 100%);
    background: var(--paper);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 14px 22px 26px;
    box-shadow: 0 -18px 50px -20px rgba(47, 58, 29, .5);
    transition: transform .32s cubic-bezier(.32, .72, 0, 1);
    max-height: 86vh;
    overflow-y: auto;
}

.sheet.is-open { transform: translate(-50%, 0); }

.sheet-handle {
    display: block;
    width: 46px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(47, 58, 29, .18);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sheet-head strong { font-weight: 800; font-size: 1.05rem; }

.sheet-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink-soft);
    background: var(--bg);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    transition: .2s;
}

.sheet-item:hover { border-color: var(--lime-deep); background: var(--mint-soft, var(--lime-soft)); text-decoration: none; }

.sheet-item.is-active { border-color: var(--ink); background: var(--lime-soft); }

.sheet-ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    background: var(--lime);
    color: var(--ink);
}

.sheet-item strong { display: block; font-weight: 800; font-size: .92rem; }

.sheet-item small { display: block; font-size: .76rem; color: var(--ink-mute); font-weight: 500; }

.sheet-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--bg);
}

.sheet-foot form { margin: 0; }

/* Body dapat ruang untuk tab bar di mobile */
@media (max-width: 900px) {
    body { padding-bottom: 78px; }
    .tabbar { display: block; }
    .main-nav { display: none; }
}

@media (min-width: 901px) {
    .tabbar, .sheet, .sheet-backdrop { display: none !important; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
    .header-inner { height: auto; padding: 12px 0; gap: 10px; flex-wrap: wrap; }
    .brand-text { font-size: .95rem; }
    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 2px;
    }
    .main-nav a { padding: 8px 13px; font-size: .85rem; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 36px 26px 30px; }
    .hero-art { min-height: 200px; margin: 0 14px 14px; }
    .auth-wrap { padding: 28px 24px; }
    .section-head { margin: 44px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}