/* ==========================================================================
   Lestari Psychology Care — gaya bersama (modern, tenang, sage)
   ========================================================================== */

:root {
    --bg: #F7F8F5;
    --bg-wash: #EFF4EF;
    --surface: #FFFFFF;
    --surface-2: #FBFCFA;
    --line: #E6EAE3;
    --line-strong: #D6DED4;
    --ink: #1F2A24;
    --muted: #64736A;
    --sage: #4C7A5E;
    --sage-dark: #3B6249;
    --sage-soft: #EAF1EB;
    --sage-tint: #F3F7F3;
    --amber: #B4791F;
    --amber-soft: #FBF1DF;
    --red: #B4453F;
    --red-soft: #FBEBEA;
    --green: #3F7A57;
    --green-soft: #E8F3EC;
    --gray-soft: #EFF1EF;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(20, 32, 24, .05);
    --shadow: 0 1px 2px rgba(20, 32, 24, .04), 0 14px 32px -22px rgba(20, 32, 24, .28);
    --shadow-lg: 0 2px 4px rgba(20, 32, 24, .04), 0 26px 50px -28px rgba(20, 32, 24, .32);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.ic { flex: 0 0 auto; vertical-align: -3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* ------------------------------------------------------------- header nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--sage); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -10px rgba(60, 99, 73, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.brand-static:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.site-nav a { color: var(--muted); font-size: .93rem; font-weight: 500; padding: 6px 0; }
.site-nav a:hover { color: var(--sage-dark); text-decoration: none; }
.site-nav a.is-active { color: var(--sage-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--sage); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sage-soft); color: var(--sage-dark);
    padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600;
}
.nav-toggle {
    display: none; margin-left: auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 11px; padding: 9px; color: var(--ink); cursor: pointer;
}

/* --------------------------------------------------------------- tombol */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 12px;
    padding: 11px 18px; font: inherit; font-size: .92rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: .16s ease;
    background: var(--surface); color: var(--ink);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 10px 20px -14px rgba(60, 99, 73, .95); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-soft { background: var(--sage-soft); color: var(--sage-dark); }
.btn-soft:hover { background: #E1EBE3; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--sage); color: var(--sage-dark); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #F7DEDC; }
.btn-dark { background: #26312B; color: #fff; }
.btn-dark:hover { background: #1B231F; }
.btn-sm { padding: 8px 13px; font-size: .84rem; border-radius: 10px; gap: 6px; }
.btn-lg { padding: 14px 24px; font-size: .98rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- kartu */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 26px;
}
.card-flat { box-shadow: none; }
.card-tint { background: var(--sage-tint); border-color: #E1EAE2; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-roomy { gap: 26px; }

/* --------------------------------------------------------------- hero */

.hero { background: linear-gradient(180deg, var(--bg-wash), var(--bg)); border-bottom: 1px solid var(--line); padding: 68px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid #DCE6DD; color: var(--sage-dark);
    padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin: 18px 0 14px; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 30px; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.hero-points .ic { color: var(--sage); }

.section { padding: 66px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-head-left { max-width: none; margin: 0 0 28px; text-align: left; }

/* ------------------------------------------------------------ form field */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: #3A4741; }
.field .hint { font-size: .76rem; color: var(--muted); }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
    width: 100%; font: inherit; font-size: .93rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: 12px; padding: 11px 13px; transition: .15s ease;
}
textarea { min-height: 108px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364736A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(76, 122, 94, .12); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: #3A4741; padding: 9px 0; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--sage); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 18px; }

/* --------------------------------------------------------------- badge */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em;
    background: var(--gray-soft); color: #46524B; white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-sage { background: var(--sage-soft); color: var(--sage-dark); }
.badge-gray { background: var(--gray-soft); color: #5A665F; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }

/* ----------------------------------------------------------------- tabel */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead th {
    text-align: left; padding: 13px 16px; background: var(--surface-2);
    color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--sage-tint); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- flash */

.flash {
    border-radius: 14px; padding: 13px 16px; font-size: .9rem; font-weight: 500;
    margin-bottom: 18px; border: 1px solid transparent;
}
.flash-ok { background: var(--green-soft); border-color: #CFE6D8; color: #2E5C40; }
.flash-warn { background: var(--amber-soft); border-color: #F0DFBE; color: #8A5C15; }
.flash-error { background: var(--red-soft); border-color: #F1D3D1; color: #8E3630; }
.admin-hint {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--amber-soft); border: 1px dashed #E8D3AA; color: #7C5312;
    padding: 11px 15px; border-radius: 14px; font-size: .85rem; margin-bottom: 18px;
}
.admin-hint a { color: #6B4710; font-weight: 700; text-decoration: underline; }

.empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    border: 1px dashed var(--line-strong); border-radius: var(--radius);
    padding: 34px 24px; text-align: center; color: var(--muted); background: var(--surface-2);
}
.empty .ic { color: #B9C6BB; }

/* ---------------------------------------------------------- kartu layanan */

.tile { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tile-icon {
    width: 46px; height: 46px; border-radius: 14px; background: var(--sage-soft); color: var(--sage-dark);
    display: inline-flex; align-items: center; justify-content: center;
}
.tile-price { font-weight: 700; color: var(--sage-dark); font-size: 1.02rem; }
.tile-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.price-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.price-card.featured { border: 1.5px solid var(--sage); box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: 22px; right: 22px; }
.price-value { font-size: 1.85rem; font-weight: 800; color: var(--sage-dark); letter-spacing: -.02em; }
.price-strike { color: var(--muted); text-decoration: line-through; font-size: .86rem; }
.perk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: .89rem; color: #3F4C45; }
.perk-list li { display: flex; gap: 9px; align-items: flex-start; }
.perk-list .ic { color: var(--green); margin-top: 3px; }

.psy-card { display: flex; gap: 18px; align-items: flex-start; }
.psy-photo, .avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    background: var(--sage-soft); color: var(--sage-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.psy-meta { font-size: .84rem; color: var(--muted); }

.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card img { width: 100%; height: 176px; object-fit: cover; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-body h3 { font-size: 1.05rem; }
.post-cover { height: 176px; background: linear-gradient(135deg, #E4EDE5, #F2F5F0); display: flex; align-items: center; justify-content: center; color: #9FB2A3; }

/* FAQ sebagai daftar yang bisa dibuka (accordion, tanpa JS) */

.faq-item {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
}
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 17px 22px; cursor: pointer; list-style: none;
    font-size: 1rem; font-weight: 600; color: var(--ink);
    transition: background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { background: var(--sage-tint); color: var(--sage-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; }
.faq-chevron { flex: 0 0 auto; color: var(--sage); transition: transform .18s ease; }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 20px; color: var(--muted); font-size: .93rem; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item[open] .faq-answer { animation: faqOpen .18s ease; }

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- footer */

.site-footer { background: #212B25; color: #D5DCD7; padding: 52px 0 26px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #9FAEA4; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-grid .muted { color: #9FAEA4; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .89rem; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .ic { margin-top: 3px; color: #8FA397; }
.footer-list a { color: #D5DCD7; }
.footer-list a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }

/* ------------------------------------------------------- statistik / strip */

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat-soft { background: var(--sage-tint); border-color: #E2EAE2; }
.stat .ic { color: var(--sage); }

/* ------------------------------------------------- pembayaran & laporan */

.pay-box {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface-2); padding: 18px 20px; margin-bottom: 18px;
}
.pay-box-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-box.is-target { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(76, 122, 94, .14); }
.pay-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.pay-row:last-of-type { border-bottom: 0; }
.pay-label { font-size: .82rem; color: var(--muted); }
.pay-value { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-number, .pay-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
    word-break: break-all;
}
.pay-code { font-size: .82rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 5px 8px; border-radius: 8px; }

.countdown {
    display: flex; align-items: center; gap: 14px;
    background: var(--amber-soft); border: 1px solid #EFDCBA; border-radius: 14px;
    padding: 14px 18px; margin-top: 16px; color: #7C5312;
}
.countdown.is-urgent { background: var(--red-soft); border-color: #EFCFCD; color: #8E3630; }
.countdown-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.countdown-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; line-height: 1.15;
}

/* laporan cetak */
.print-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 12px 0;
}
.report-wrap { padding: 28px 20px 60px; }
.report {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px; max-width: 880px; margin: 0 auto;
}
.report-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.report-meta { text-align: right; font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.report-meta strong { color: var(--ink); font-size: .95rem; letter-spacing: .06em; }
.report-contact { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.report-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.report-cols h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.report-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.report-table th { background: var(--surface-2); }
.report-table th, .report-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.report-table .right { text-align: right; }
.report-total td { background: var(--sage-tint); }
.report-list { margin: 0; padding-left: 18px; font-size: .87rem; color: #3F4C45; display: flex; flex-direction: column; gap: 6px; }
.report-proof { max-width: 280px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.report-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

@media print {
    body.printable { background: #fff; }
    .print-bar, .site-header, .site-footer, .admin-sidebar, .admin-topbar, .tabbar { display: none !important; }
    .report-wrap { padding: 0; }
    .report { border: 0; border-radius: 0; padding: 0; max-width: none; box-shadow: none; }
    a[href]::after { content: none !important; }
    @page { margin: 14mm; }
}

@media (max-width: 700px) {
    .pay-row { grid-template-columns: 1fr; gap: 2px; }
    .report-cols { grid-template-columns: 1fr; }
    .report { padding: 22px; }
}

/* --------------------------------------------------------------- portal */

.app-body { padding: 34px 0 72px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 1.7rem; }
.page-head p { color: var(--muted); margin-top: 6px; }

.tabbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar a, .tabbar button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 999px; font-size: .86rem; font-weight: 600;
    border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-family: inherit;
}
.tabbar a:hover, .tabbar button:hover { text-decoration: none; color: var(--sage-dark); border-color: var(--sage); }
.tabbar a.is-active, .tabbar button.is-active { background: var(--sage); border-color: var(--sage); color: #fff; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(180deg, #E9F0EA, #F4F6F2); padding: 56px 52px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; color: #45544C; font-size: .92rem; }
.auth-list li { display: flex; gap: 11px; align-items: flex-start; }
.auth-list .ic { color: var(--sage); margin-top: 3px; }
.auth-switch { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 22px; }

/* ---------------------------------------------------------------- admin */

.admin-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    background: var(--surface); border-right: 1px solid var(--line);
    padding: 22px 16px; display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { padding: 0 6px 12px; border-bottom: 1px solid var(--line); }
.sidebar-group { display: flex; flex-direction: column; gap: 3px; }
.sidebar-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #93A197; padding: 4px 10px 6px; }
.sidebar-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px;
    color: #4A564F; font-size: .89rem; font-weight: 500;
}
.sidebar-link:hover { background: var(--sage-tint); color: var(--sage-dark); text-decoration: none; }
.sidebar-link.is-active { background: var(--sage-soft); color: var(--sage-dark); font-weight: 700; }
.sidebar-link .ic { color: #8B998F; }
.sidebar-link.is-active .ic { color: var(--sage); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.sidebar-user { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); padding: 10px 11px 0; }
.admin-main { padding: 30px 34px 70px; background: var(--bg); min-width: 0; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 1.55rem; }
.admin-topbar .tabbar { margin-top: 20px; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.detail-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; font-size: .9rem; margin: 0; }
.detail-list dt { color: var(--muted); font-size: .82rem; }
.detail-list dd { margin: 0; font-weight: 500; word-break: break-word; }

.note-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface-2); }
.note-item + .note-item { margin-top: 14px; }
.note-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); margin-top: 7px; flex: 0 0 auto; box-shadow: 0 0 0 4px var(--sage-soft); }

.qris-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px; text-align: center; background: var(--surface-2); }
.qris-box img { max-width: 220px; margin: 0 auto; border-radius: 12px; }

.proof { max-width: 260px; border: 1px solid var(--line); border-radius: 12px; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
    body.nav-open .admin-sidebar { display: flex; }
    .admin-main { padding: 22px 20px 60px; }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
    }
    body.nav-open .site-nav { display: flex; }
    .site-nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
    .site-nav a.is-active { box-shadow: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: 0; }
    .header-actions .btn-soft span, .header-actions .btn-ghost span { display: none; }
    .hero { padding: 46px 0 54px; }
    .section { padding: 48px 0; }
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .card { padding: 20px; }
    .field-row { grid-template-columns: 1fr; }
    .psy-card { flex-direction: column; }
    .detail-list { grid-template-columns: 1fr; gap: 4px 0; }
    .detail-list dd { margin-bottom: 10px; }
}

/* ------------------------------------------------------ pemilih slot & mode */

.step { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
    background: var(--sage-soft); color: var(--sage-dark);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.slot span {
    display: block; text-align: center; padding: 11px 8px;
    border: 1px solid var(--line-strong); border-radius: 12px;
    font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--surface); transition: .15s ease;
}
.slot span:hover { border-color: var(--sage); color: var(--sage-dark); }
.slot input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; }
.slot input:focus-visible + span { box-shadow: 0 0 0 4px rgba(76, 122, 94, .15); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.mode {
    display: block; border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 12px 14px; cursor: pointer; background: var(--surface); font-size: .9rem;
}
.mode input { width: auto; accent-color: var(--sage); margin-right: 7px; }
.mode small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.mode:has(input:checked) { border-color: var(--sage); background: var(--sage-tint); }

@media (max-width: 560px) {
    .header-inner { min-height: 64px; gap: 12px; }
    .header-actions .btn span { display: none; }
    .hero h1 { font-size: 1.85rem; }
    .stat-value { font-size: 1.35rem; }
}

/* ==========================================================================
   Kartu produk (layanan & paket): badge diskon, rating bintang, wishlist
   ========================================================================== */

.item-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.item-card .tile-icon { margin-bottom: 2px; }
.item-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge-discount {
    background: #FBEBEA; color: #B4453F; border: 1px solid #F1D3D1;
    font-weight: 800; letter-spacing: .01em;
}
.badge-populer { background: #FBF1DF; color: #8A5C15; border: 1px solid #F0DFBE; }

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.stars-track { position: relative; display: inline-block; line-height: 1; font-size: .95rem; letter-spacing: 1px; }
.stars-track .stars-base { color: #D8DED6; }
.stars-track .stars-fill { position: absolute; inset: 0; overflow: hidden; color: #D9A03C; white-space: nowrap; }
.stars-empty { font-size: .8rem; color: #98A69C; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font-size: 1.22rem; font-weight: 800; color: var(--sage-dark); letter-spacing: -.02em; }
.price-was { font-size: .86rem; color: var(--muted); text-decoration: line-through; }

.fav-form { display: inline-flex; }
.fav-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 40px; height: 40px; padding: 0; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface);
    color: #9AA69D; cursor: pointer; transition: .18s ease; flex: 0 0 auto;
}
.fav-btn:hover { border-color: #E3B7B4; color: #C4685F; }
.fav-btn.is-active { border-color: #EFCFCD; background: #FBEBEA; color: #C0463E; }
.fav-btn.is-active .ic { fill: currentColor; }
.fav-btn.is-active .ic path { fill: currentColor; stroke: currentColor; }
.fav-btn.is-beating { animation: heartbeat .62s ease-in-out; }
.fav-btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.fav-count { font-size: .78rem; color: var(--muted); }
.fav-note { font-size: .74rem; color: var(--muted); }

@keyframes heartbeat {
    0%   { transform: scale(1); }
    16%  { transform: scale(1.28); }
    30%  { transform: scale(.92); }
    45%  { transform: scale(1.16); }
    62%  { transform: scale(.97); }
    100% { transform: scale(1); }
}

/* partikel hati kecil saat favorit ditambahkan */
.fav-burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fav-burst i {
    position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%;
    background: #E0837A; opacity: 0; animation: favBurst .7s ease-out forwards;
}
@keyframes favBurst {
    0%   { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -22px))) scale(1.1); }
}

/* ==========================================================================
   Loading page transition (logo denyut, sekali per sesi)
   ========================================================================== */

.intro-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: var(--bg);
    transition: opacity .45s ease, visibility .45s ease;
}
.intro-overlay.is-hidden { opacity: 0; visibility: hidden; }
.intro-logo { width: 74px; height: 74px; border-radius: 22px; background: var(--sage); color: #fff;
    display: flex; align-items: center; justify-content: center; animation: logoPulse 1.5s ease-in-out infinite; }
.intro-title { font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.intro-sub { font-size: .8rem; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.intro-bar { width: 132px; height: 3px; border-radius: 3px; background: #E1E7E1; overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--sage); animation: introSlide 1.1s ease-in-out infinite; }

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 26px -16px rgba(60, 99, 73, .9); }
    50%      { transform: scale(1.09); box-shadow: 0 18px 34px -16px rgba(60, 99, 73, .8); }
}
@keyframes introSlide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* ==========================================================================
   Confetti halus (tanpa suara)
   ========================================================================== */

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti-piece {
    position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: .95;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0%   { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    8%   { opacity: .95; }
    100% { transform: translateY(102vh) rotate(520deg); opacity: 0; }
}

.celebrate-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--green-soft); border: 1px solid #CFE6D8; color: #2E5C40;
    border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600;
}
.celebrate-banner .ic { color: var(--green); }

/* ==========================================================================
   Testimoni
   ========================================================================== */

.testi-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testi-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.testi-top { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
    background: var(--sage-soft); color: var(--sage-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .02em;
}
.testi-name { font-weight: 700; font-size: .96rem; }
.testi-meta { font-size: .78rem; color: var(--muted); }
.testi-quote { font-size: .93rem; color: #3F4C45; line-height: 1.65; }
.testi-quote::before { content: '“'; color: var(--sage); font-size: 1.5rem; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.testi-note { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   Statistik dengan angka berjalan
   ========================================================================== */

.stat-strip { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-sm); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stat-tile .ic { color: var(--sage); }
.stat-number {
    font-size: 2.05rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-caption { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Footer: sitemap, sosial, badge kepercayaan
   ========================================================================== */

.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    color: #D5DCD7; border-radius: 999px; padding: 6px 12px; font-size: .76rem; font-weight: 600;
}
.trust-badge .ic { color: #9CC0A6; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #D5DCD7;
}
.footer-social a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.footer-sitemap { display: grid; gap: 8px; font-size: .89rem; }
.footer-sitemap a { color: #D5DCD7; }
.footer-sitemap a:hover { color: #fff; }

/* ==========================================================================
   Live chat widget
   ========================================================================== */

.chat-toggle {
    position: fixed; right: 20px; bottom: 20px; z-index: 120;
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--sage); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700;
    padding: 13px 18px; border-radius: 999px; box-shadow: 0 16px 30px -16px rgba(60, 99, 73, .95);
}
.chat-toggle:hover { background: var(--sage-dark); }
.chat-toggle .chat-ping {
    width: 9px; height: 9px; border-radius: 50%; background: #B7E4C4; box-shadow: 0 0 0 0 rgba(183, 228, 196, .8);
    animation: chatPing 2s infinite;
}
@keyframes chatPing {
    0%   { box-shadow: 0 0 0 0 rgba(183, 228, 196, .7); }
    70%  { box-shadow: 0 0 0 11px rgba(183, 228, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 228, 196, 0); }
}
.chat-panel {
    position: fixed; right: 20px; bottom: 84px; z-index: 121;
    width: min(360px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 120px));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.is-open { display: flex; }
.chat-head { background: var(--sage); color: #fff; padding: 15px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head strong { font-size: .97rem; }
.chat-head small { display: block; font-size: .74rem; opacity: .85; }
.chat-head .chat-close { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.chat-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.55; }
.chat-msg.is-bot { background: var(--sage-tint); border: 1px solid #E2EAE2; color: #33413A; align-self: flex-start; }
.chat-msg.is-user { background: var(--sage); color: #fff; align-self: flex-end; }
.chat-suggest { display: flex; flex-direction: column; gap: 8px; }
.chat-suggest button {
    text-align: left; font: inherit; font-size: .84rem; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; color: #3E4C44;
}
.chat-suggest button:hover { border-color: var(--sage); color: var(--sage-dark); }
.chat-foot { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 44px; max-height: 96px; border-radius: 12px; font-size: .88rem; }
.chat-form button { flex: 0 0 auto; }
.chat-contact { display: none; flex-direction: column; gap: 8px; }
.chat-contact.is-open { display: flex; }
.chat-hint { font-size: .74rem; color: var(--muted); }

@media (max-width: 1000px) {
    .testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .testi-grid, .stat-strip { grid-template-columns: 1fr; }
    .chat-toggle { right: 14px; bottom: 14px; padding: 12px 15px; }
    .chat-panel { right: 14px; left: 14px; width: auto; bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-logo, .intro-bar span, .chat-toggle .chat-ping { animation: none; }
    .fav-btn.is-beating { animation: none; }
    .confetti-layer { display: none; }
}

/* ==========================================================================
   Notifikasi admin (lonceng di panel)
   ========================================================================== */

.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.notif-wrap { position: relative; }
.notif-bell {
    position: relative; width: 42px; height: 42px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    color: var(--muted); cursor: pointer; transition: .15s ease;
}
.notif-bell:hover { border-color: var(--sage); color: var(--sage-dark); }
.notif-bell.has-unread { border-color: #EFDCBA; background: var(--amber-soft); color: #8A5C15; }
.notif-count {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px var(--surface);
}
.notif-panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
    width: min(380px, calc(100vw - 40px)); max-height: 460px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.notif-panel.is-open { display: flex; }
.notif-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.notif-link { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--sage-dark); cursor: pointer; }
.notif-link:hover { text-decoration: underline; }
.notif-list { overflow-y: auto; display: flex; flex-direction: column; }
.notif-item {
    display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
    border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--sage-tint); text-decoration: none; }
.notif-item.is-unread { background: #FCFBF6; }
.notif-item.is-unread .notif-title::after {
    content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); margin-left: 7px; vertical-align: 1px;
}
.notif-icon {
    width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gray-soft); color: #5A665F;
}
.notif-icon.badge-sage { background: var(--sage-soft); color: var(--sage-dark); }
.notif-icon.badge-amber { background: var(--amber-soft); color: var(--amber); }
.notif-icon.badge-red { background: var(--red-soft); color: var(--red); }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-size: .9rem; font-weight: 700; }
.notif-text { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.notif-time { font-size: .72rem; color: #93A197; }
.notif-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    padding: 28px 22px; color: var(--muted); font-size: .85rem;
}
.notif-empty .ic { color: #B9C6BB; }
.notif-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .84rem; text-align: center; }

@media (max-width: 700px) {
    .notif-panel { position: fixed; left: 14px; right: 14px; top: auto; width: auto; }
}

/* ==========================================================================
   Chat psikolog & blok laporan
   ========================================================================== */

.psy-chat {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 420px; overflow-y: auto; padding: 14px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.psy-chat .chat-msg { max-width: 88%; }
.chat-msg.is-bot .tiny, .chat-msg.is-user .tiny { display: block; margin-top: 4px; }

.report-block {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; font-size: .92rem; color: #3F4C45;
}
.report-block p { margin: 0 0 8px; }
.report-block p:last-child { margin-bottom: 0; }

.psy-detail summary {
    cursor: pointer; list-style: none; font-weight: 600; font-size: .88rem; color: var(--sage-dark);
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
}
.psy-detail summary::-webkit-details-marker { display: none; }
.psy-detail summary:hover { text-decoration: underline; }
.psy-detail[open] summary { margin-bottom: 8px; }

.psy-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 700px) {
    .export-actions { flex-direction: column; align-items: stretch; }
}

.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; vertical-align: 1px;
}

/* ==========================================================================
   Login dengan Google
   ========================================================================== */

.btn-google {
    background: #FFFFFF; border: 1px solid var(--line-strong); color: #2B3A33;
    box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #F7F9F7; border-color: #C9D3CB; }
.btn-google .ic { color: #4285F4; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 14px; color: var(--muted); font-size: .78rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ==========================================================================
   Halaman konfirmasi pembayaran berhasil
   ========================================================================== */

.success-card {
    max-width: 720px; margin: 0 auto; text-align: center;
    padding: 40px 32px; border-color: #CFE6D8; background: linear-gradient(180deg, #F4F9F5, #FFFFFF 42%);
}
.success-icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 28px -18px rgba(63, 122, 87, .85);
    animation: successPop .5s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes successPop {
    0%   { transform: scale(.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-title { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 10px; color: #24513A; }
.success-sub { color: var(--muted); max-width: 44rem; margin: 0 auto; font-size: .96rem; }
.success-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 20px 0 6px; }

.success-detail {
    text-align: left; margin: 22px auto 0; max-width: 480px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px;
}
.success-proof { margin-top: 22px; }
.success-proof img { margin: 0 auto; }
.success-next {
    text-align: left; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line);
}
.success-next h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.success-actions { justify-content: center; }

@media (max-width: 560px) {
    .success-card { padding: 28px 20px; }
    .success-actions .btn { width: 100%; }
}
