:root {
    --bg-dark: #050b14;
    --bg-sidebar: #0a1628;
    --bg-card: #0f1f35;
    --bg-card-alt: #152538;
    --gold: #d4af37;
    --gold-light: #f5e6c8;
    --gold-dark: #b8860b;
    --cream: #f8f1e3;
    --text: #e8e0d0;
    --muted: #8a9aaa;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --border: rgba(212, 175, 55, 0.25);
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1a2a40, #0f1f35);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.sidebar-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--cream);
    letter-spacing: 1px;
}

.sidebar-title span {
    color: var(--gold);
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 4px;
    text-transform: uppercase;
}

.info-box {
    margin: 20px 16px;
    padding: 16px;
    background: linear-gradient(145deg, #1a2a40, #0f1f35);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.info-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-value {
    font-family: 'Oxanium', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    margin: 6px 0 2px;
}

.info-value small {
    font-size: 14px;
    color: var(--gold-light);
}

.info-sub {
    font-size: 12px;
    color: var(--muted);
}

.sidebar-menu {
    flex: 1;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.menu-icon {
    width: 22px;
    text-align: center;
    font-size: 15px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.version {
    color: var(--muted);
    font-size: 11px;
}

/* ========== MAIN ========== */
.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.marquee-box {
    background: linear-gradient(90deg, #0f1f35, #1a2a40);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.marquee-badge {
    background: var(--gold);
    color: #0a1628;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.marquee-box marquee {
    color: var(--gold-light);
    flex: 1;
}

.header {
    padding: 24px 28px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.header-title-wrap h1 {
    font-family: 'Oxanium', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--cream);
    margin-bottom: 4px;
}

.header-title-wrap p {
    font-size: 13px;
    color: var(--muted);
}

.badge-total {
    background: linear-gradient(135deg, #1a2a40, #0f1f35);
    border: 1px solid var(--gold);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-total strong {
    color: var(--gold);
    font-family: 'Oxanium', sans-serif;
}

/* ========== CONTENT PANELS ========== */
.content-panel {
    display: none;
    padding: 0 28px 32px;
    flex: 1;
}

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

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-val {
    font-family: 'Oxanium', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--cream);
}

.stat-val.gold { color: var(--gold); }
.stat-val.success { color: var(--success); }
.stat-val.warning { color: var(--warning); }
.stat-val.danger { color: var(--danger); }

.stat-change {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.stat-change.success { color: var(--success); }
.stat-change.warning { color: var(--warning); }

/* Table Card */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-head-bar {
    padding: 14px 20px;
    background: linear-gradient(90deg, #1a2a40, #0f1f35);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

.table-head-bar .muted {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.table-scroll {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.result-table thead th {
    background: #0a1628;
    color: var(--gold);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.result-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.result-table tbody tr:nth-child(even) {
    background: var(--bg-card-alt);
}

.result-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.06);
}

.num {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
}

.name {
    font-weight: 600;
    color: var(--cream);
}

.name.empty {
    color: var(--muted);
    font-style: italic;
    font-weight: 400;
}

.name-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.name-item {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}

.name-item.primary {
    font-weight: 700;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.3px;
}

.name-item.pending {
    font-style: italic;
    color: var(--warning);
    font-weight: 600;
}

.amount {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    color: var(--gold);
}

.muted {
    color: var(--muted);
    font-size: 11px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.status-badge.paid {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.status-badge.unpaid {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-badge:hover {
    transform: scale(1.04);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* Ketentuan */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a2a40, #0f1f35);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 18px;
    color: var(--gold);
}

.info-card h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 15px;
    color: var(--gold);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.info-card strong {
    color: var(--cream);
}

.rules-content {
    padding: 20px 28px;
}

.rules-content ol {
    padding-left: 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.9;
}

.rules-content strong {
    color: var(--gold);
}

/* Progress */
.progress-overview {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.progress-circle-wrap {
    text-align: center;
}

.progress-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle .bg {
    fill: none;
    stroke: #1a2a40;
    stroke-width: 10;
}

.progress-circle .progress {
    fill: none;
    stroke: var(--gold);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .pct {
    display: block;
    font-family: 'Oxanium', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}

.progress-text small {
    font-size: 12px;
    color: var(--muted);
}

.progress-label {
    font-size: 13px;
    color: var(--muted);
}

.progress-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.progress-item-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.progress-item-value {
    font-family: 'Oxanium', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.bar {
    height: 8px;
    background: #1a2a40;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.6s ease;
}

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

/* History */
.history-list {
    padding: 8px 0;
}

.history-month {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.history-month:last-child {
    border-bottom: none;
}

.history-month-title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.history-names {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 4px;
}

.history-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
}

.history-person:hover {
    background: rgba(255,255,255,0.04);
}

.history-person .check-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.history-person.paid .check-icon {
    color: var(--success);
}

.history-person.unpaid .check-icon {
    color: #f87171;
}

.history-person.pending {
    cursor: default;
    opacity: 0.7;
}

.history-person.pending .check-icon {
    color: var(--muted);
}

.history-person .person-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--cream);
    flex: 1;
}

.history-person.paid .person-name {
    color: var(--success);
}

.history-person.unpaid .person-name {
    color: var(--cream);
}

.history-person .person-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.history-person.paid .person-status {
    color: var(--success);
    background: rgba(74, 222, 128, 0.12);
}

.history-person.unpaid .person-status {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.history-person.pending .person-status {
    color: var(--muted);
    background: rgba(255,255,255,0.05);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.main-footer strong {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main-content {
        margin-left: 0;
    }
    .progress-overview {
        grid-template-columns: 1fr;
    }
    body {
        flex-direction: column;
    }
}

/* V2 — polished motion layer */
:root { --gold-glow: rgba(226,183,55,.25); }
html { scroll-behavior:smooth; }
body {
  background:
    radial-gradient(ellipse at 78% 4%, rgba(24,57,91,.28), transparent 34%),
    radial-gradient(ellipse at 10% 90%, rgba(178,132,26,.08), transparent 28%),
    var(--bg-dark);
}
.sidebar { box-shadow: 12px 0 40px rgba(0,0,0,.22); }
.logo-circle.logo-image { overflow:hidden; padding:5px; background:linear-gradient(145deg,#f7d86a,#9b6c10); box-shadow:0 0 0 5px rgba(212,175,55,.07),0 0 28px var(--gold-glow); }
.logo-image img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.stat-card,.table-card,.info-card,.progress-overview {
  position:relative; overflow:hidden;
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
  animation:rise-in .65s both;
}
.stat-card:hover,.info-card:hover,.table-card:hover,.progress-overview:hover {
  transform:translateY(-3px); border-color:rgba(232,190,72,.52);
  box-shadow:0 14px 42px rgba(0,0,0,.35),0 0 24px rgba(212,175,55,.07);
}
.stat-card::before,.info-card::before {
  content:""; position:absolute; inset:0 auto 0 0; width:2px;
  background:linear-gradient(180deg,transparent,var(--gold),transparent); opacity:.65;
}
@keyframes rise-in { from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:translateY(0)} }
.content-panel.active { animation:panel-in .38s ease both; }
@keyframes panel-in { from {opacity:0;filter:blur(3px)} to {opacity:1;filter:blur(0)} }
.badge-total { box-shadow:inset 0 1px rgba(255,255,255,.05),0 5px 20px rgba(0,0,0,.16); }
.marquee-badge { box-shadow:0 0 16px rgba(212,175,55,.25); }
.name-list { gap:5px; align-items:flex-start; }
.name-toggle {
  display:flex; align-items:center; gap:7px; border:0; padding:4px 7px;
  border-radius:7px; background:transparent; color:var(--muted);
  font:600 11px Inter,system-ui,sans-serif; cursor:pointer; text-align:left;
  transition:background .2s,color .2s,transform .2s; width:100%;
}
.name-toggle i { width:13px; font-size:11px; color:#ff7777; }
.name-toggle.paid { color:var(--success); }
.name-toggle.paid i { color:var(--success); }
.name-toggle:hover { background:rgba(212,175,55,.09); color:var(--gold-light); transform:translateX(2px); }
.name-toggle:focus-visible,.history-person:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.history-person { border:1px solid transparent; }
.history-person:hover { border-color:rgba(212,175,55,.18); transform:translateX(3px); }
.history-person.paid { background:rgba(74,222,128,.035); }
.history-person.unpaid { background:rgba(248,113,113,.025); }
.month-summary { cursor:default; min-width:92px; justify-content:center; }
.month-summary.paid { color:var(--success); background:rgba(74,222,128,.13); border:1px solid rgba(74,222,128,.35); }
.month-summary.unpaid { color:var(--warning); background:rgba(251,191,36,.10); border:1px solid rgba(251,191,36,.28); }
.toast {
  position:fixed; right:24px; bottom:24px; z-index:500;
  padding:12px 17px; border:1px solid rgba(212,175,55,.45);
  border-radius:12px; color:var(--gold-light);
  background:rgba(12,26,44,.96); box-shadow:0 12px 35px rgba(0,0,0,.4);
  opacity:0; transform:translateY(12px); pointer-events:none;
  transition:opacity .25s,transform .25s; font-size:12px;
}
.toast.show { opacity:1; transform:translateY(0); }
.progress-circle .progress { filter:drop-shadow(0 0 5px rgba(212,175,55,.35)); }
.table-head-bar { background:linear-gradient(110deg,#1b2d45,#101e31 70%,#182943); }
.result-table tbody tr { transition:background .2s ease; }
.header { gap:18px; }
.header-actions { display:flex; flex-wrap:wrap; gap:9px; }
@media (max-width:900px) {
  .sidebar { box-shadow:0 8px 30px rgba(0,0,0,.2); }
  .sidebar-menu { flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .menu-item { flex:1 1 150px; justify-content:center; }
  .sidebar-footer { display:none; }
  .content-panel { padding:0 16px 24px; }
  .header { padding:20px 16px 14px; }
  .header-actions { width:100%; }
  .badge-total { justify-content:center; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

/* V3 — refined interactive motion inspired by DM_CEMILAN reference */
:root {
  --gold-soft: rgba(212,175,55,.12);
  --glass-line: rgba(255,255,255,.075);
}
body::before {
  content:""; position:fixed; inset:-25%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(circle at 18% 20%, rgba(30,79,126,.17), transparent 27%),
    radial-gradient(circle at 82% 72%, rgba(212,175,55,.075), transparent 25%);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}
@keyframes ambient-drift { from { transform:translate3d(-1.5%,0,0) scale(1); } to { transform:translate3d(1.5%,-1%,0) scale(1.04); } }
.sidebar { backdrop-filter: blur(16px); -webkit-backdrop-filter:blur(16px); }
.sidebar-header { position:relative; overflow:hidden; }
.sidebar-header::after {
  content:""; position:absolute; width:170px; height:170px; border-radius:50%;
  left:50%; top:-125px; transform:translateX(-50%);
  background:rgba(212,175,55,.10); filter:blur(25px); pointer-events:none;
}
.logo-circle.logo-image { transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.logo-circle.logo-image:hover { transform:translateY(-3px) rotate(-5deg) scale(1.04); box-shadow:0 0 0 7px rgba(212,175,55,.08),0 0 38px rgba(212,175,55,.32); }
.menu-item { position:relative; overflow:hidden; isolation:isolate; }
.menu-item::after {
  content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.055),transparent);
  transform:translateX(-110%); transition:transform .55s ease,opacity .25s ease;
}
.menu-item:hover::after { opacity:1; transform:translateX(110%); }
.menu-item.active { box-shadow:inset 0 0 0 1px rgba(212,175,55,.08),0 6px 22px rgba(0,0,0,.12); }
.marquee-box { position:sticky; top:0; z-index:90; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.header { position:relative; }
.header::after {
  content:""; position:absolute; left:28px; right:28px; bottom:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(212,175,55,.2),transparent);
}
.badge-total { transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.badge-total:hover { transform:translateY(-2px); border-color:rgba(245,230,200,.55); box-shadow:0 8px 25px rgba(0,0,0,.24),0 0 18px rgba(212,175,55,.10); }
.stat-card { isolation:isolate; }
.stat-card::after,.table-card::after,.info-card::after,.progress-overview::after {
  content:""; position:absolute; inset:-1px; z-index:-1; pointer-events:none; opacity:0;
  background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.045) 48%,transparent 72%);
  transform:translateX(-65%); transition:opacity .3s ease,transform .75s ease;
}
.stat-card:hover::after,.table-card:hover::after,.info-card:hover::after,.progress-overview:hover::after { opacity:1; transform:translateX(65%); }
.name-toggle { position:relative; overflow:hidden; }
.name-toggle:active,.history-person:active { transform:scale(.985); }
.history-person { transition:background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease; }
.history-person.paid:hover { box-shadow:inset 0 0 0 1px rgba(74,222,128,.13); }
.history-person.unpaid:hover { box-shadow:inset 0 0 0 1px rgba(248,113,113,.13); }
.status-badge,.person-status { transition:transform .2s ease,filter .2s ease; }
.history-person:hover .person-status { transform:translateX(-2px); }
.content-panel.active { animation:soft-enter .48s cubic-bezier(.2,.75,.25,1) both; }
@keyframes soft-enter { from { opacity:0; transform:translateY(9px); filter:blur(2px); } to { opacity:1; transform:translateY(0); filter:blur(0); } }
.reveal-on-scroll { opacity:0; transform:translateY(18px); transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.25,1); }
.reveal-on-scroll.is-visible { opacity:1; transform:translateY(0); }
.scroll-progress {
  position:fixed; top:0; left:0; width:0; height:3px; z-index:9999;
  background:linear-gradient(90deg,#9b7418,#f5d76e,#fff0ae);
  box-shadow:0 0 12px rgba(245,215,110,.55); transition:width .08s linear;
}
.back-top {
  position:fixed; right:22px; bottom:22px; z-index:400; width:42px; height:42px;
  border:1px solid rgba(212,175,55,.42); border-radius:50%; color:var(--gold-light);
  background:rgba(12,26,44,.88); box-shadow:0 8px 28px rgba(0,0,0,.32);
  opacity:0; visibility:hidden; transform:translateY(10px); cursor:pointer;
  transition:opacity .25s ease,visibility .25s ease,transform .25s ease,background .25s ease;
}
.back-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-top:hover { background:#26364a; transform:translateY(-3px); }
.ripple-dot {
  position:absolute; border-radius:50%; pointer-events:none; width:10px; height:10px;
  background:rgba(245,230,200,.28); transform:scale(0); animation:ripple-out .55s ease-out forwards;
}
@keyframes ripple-out { to { transform:scale(16); opacity:0; } }
#toast { backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
@media (max-width:900px) {
  .marquee-box { position:relative; }
  .back-top { right:14px; bottom:14px; }
}
@media (prefers-reduced-motion:reduce) {
  body::before { animation:none; }
  .reveal-on-scroll { opacity:1; transform:none; transition:none; }
}


/* ADMIN LOGIN — matching the existing navy and gold dashboard */
.admin-locked { overflow:hidden !important; }
.admin-locked > .sidebar, .admin-locked > .main-content, .admin-locked > #toast, .admin-locked > .scroll-progress, .admin-locked > .back-top {
  visibility:hidden !important; pointer-events:none !important;
}
.admin-login { position:fixed; inset:0; z-index:100000; display:grid; place-items:center; padding:22px;
  background:radial-gradient(ellipse at 50% 18%,rgba(35,63,94,.48),transparent 48%),linear-gradient(145deg,#050b14,#0b1728 55%,#080e18); }
.admin-login[hidden] { display:none !important; }
.admin-login-card { width:min(100%,410px); padding:34px 32px 28px; border:1px solid rgba(212,175,55,.55); border-radius:19px;
  background:linear-gradient(150deg,rgba(20,39,62,.98),rgba(8,19,33,.99)); box-shadow:0 24px 80px rgba(0,0,0,.58),0 0 32px rgba(212,175,55,.09); color:#f5f0e5; }
.admin-login-logo { width:72px;height:72px;margin:0 auto 12px;padding:5px;border-radius:50%;border:2px solid #d4af37;box-shadow:0 0 24px rgba(212,175,55,.22); }
.admin-login-logo img { width:100%;height:100%;object-fit:contain; }
.admin-login-brand { text-align:center;font-family:Oxanium,Inter,sans-serif;font-size:23px;font-weight:800;letter-spacing:.5px;color:#f6f1e7; }
.admin-login-brand span { color:#e0b82f; }
.admin-login-subtitle { text-align:center;color:#8797a9;font-size:10px;letter-spacing:2px;margin-top:5px; }
.admin-login-divider { height:1px;margin:24px 0;background:linear-gradient(90deg,transparent,rgba(212,175,55,.65),transparent); }
.admin-login-card h1 { margin:0;text-align:center;font-family:Oxanium,Inter,sans-serif;font-size:21px;color:#e3bd42;letter-spacing:1px; }
.admin-login-note { margin:8px 0 23px;text-align:center;color:#9aa9ba;font-size:12px; }
.admin-login-card label { display:block;margin:13px 0 7px;color:#c9d3df;font-size:12px;font-weight:700; }
.admin-login-card input { display:block;width:100%;height:45px;padding:0 13px;border:1px solid rgba(145,164,185,.24);border-radius:9px;outline:none;background:#0b1728;color:#fff;font:inherit;font-size:13px; }
.admin-login-card input:focus { border-color:#d4af37;box-shadow:0 0 0 3px rgba(212,175,55,.11); }
.admin-login-submit { width:100%;height:46px;margin-top:18px;border:1px solid #e0b82f;border-radius:9px;background:linear-gradient(100deg,#b78a1c,#e1bd43);color:#101927;font-weight:800;font-size:12px;letter-spacing:.5px;cursor:pointer;box-shadow:0 7px 20px rgba(0,0,0,.22); }
.admin-login-submit:hover { filter:brightness(1.08);transform:translateY(-1px); }
.admin-login-error { min-height:16px;margin:8px 0 0;color:#ff7777;font-size:11px;text-align:center; }
.admin-login-foot { margin-top:20px;text-align:center;color:#8493a5;font-size:10px; }
.admin-login-foot i { color:#d4af37;margin-right:5px; }
.admin-session-bar { position:fixed;right:18px;top:12px;z-index:9500;display:flex;align-items:center;gap:12px;padding:7px 9px 7px 12px;border:1px solid rgba(212,175,55,.4);border-radius:10px;background:rgba(9,22,38,.94);box-shadow:0 8px 25px rgba(0,0,0,.25);color:#4ade80;font-size:10px;font-weight:800; }
.admin-session-bar button { border:1px solid rgba(212,175,55,.4);border-radius:7px;padding:6px 9px;background:#172a40;color:#e6c24b;font-size:10px;font-weight:800;cursor:pointer; }
.admin-session-bar button:hover { background:#263d56; }
.name-toggle:disabled { cursor:default;opacity:1; }
@media(max-width:520px) { .admin-login-card { padding:27px 22px 23px; } .admin-session-bar { top:7px;right:7px; } }


/* Logo baru dari pengguna: tampil utuh dalam bingkai kotak elegan */
.logo-circle.logo-image {
    width: 76px; height: 76px; padding: 3px;
    border-radius: 16px; background: #ffffff;
    border: 2px solid var(--gold); overflow: hidden;
}
.logo-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.admin-login-logo { width: 88px; height: 88px; padding: 3px; border-radius: 16px; background: #ffffff; overflow: hidden; }
.admin-login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }


/* Tombol WhatsApp publik — tampil di halaman login dan dashboard */
.whatsapp-admin-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100010;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 19px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: linear-gradient(135deg,#20c96b,#0b9f55);
    color: #fff !important;
    font-family: Inter,Arial,sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .35px;
    text-decoration: none !important;
    box-shadow: 0 9px 28px rgba(0,0,0,.38),0 0 18px rgba(37,211,102,.22);
    transition: transform .2s ease,filter .2s ease,box-shadow .2s ease;
}
.whatsapp-admin-float i {
    font-size: 23px;
    line-height: 1;
}
.whatsapp-admin-float:hover {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow: 0 12px 32px rgba(0,0,0,.42),0 0 22px rgba(37,211,102,.32);
}
.whatsapp-admin-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
@media(max-width:520px) {
    .whatsapp-admin-float {
        right: 13px;
        bottom: 14px;
        min-height: 46px;
        padding: 0 15px;
        font-size: 11px;
    }
    .whatsapp-admin-float i { font-size: 21px; }
}

/* Custom progress status message */
.history-person .person-status {
    max-width: 310px;
    white-space: normal;
    text-align: right;
    line-height: 1.25;
}
.history-person.unpaid .person-status:empty {
    display: none;
}
.history-person.paid .person-status {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
}
@media (max-width: 600px) {
    .history-person .person-status {
        max-width: 180px;
        font-size: 10px;
    }
}

/* ========== MODE PUBLIK (view-only) ========== */
.public-view-badge {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(12, 26, 44, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  color: #f5e6c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
.public-view-badge span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5d76e;
}
.public-view-badge i { font-size: 13px; }
.btn-admin-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0a1628;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-admin-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Modal login (tidak lagi full-screen lock) */
.admin-login {
  background: rgba(6, 12, 22, 0.72) !important;
  backdrop-filter: blur(6px);
}
.admin-login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #f5e6c8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.admin-login-close:hover {
  background: rgba(255,80,80,0.25);
  color: #fff;
}
.admin-login-card {
  position: relative;
}

/* Saat mode publik: nama tidak bisa diklik */
body.public-view .name-toggle {
  cursor: default !important;
  opacity: 0.95;
}
body.public-view .name-toggle:hover {
  background: transparent !important;
  transform: none !important;
}
body.public-view .history-person {
  cursor: default !important;
}

/* Pastikan konten selalu terlihat */
body.public-view > .sidebar,
body.public-view > .main-content {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Admin session bar tetap di atas */
.admin-session-bar {
  z-index: 5001;
}
