/* ═══════════════════════════════════════════════════════════════
   PPN v3 — Components: Glass Cards · Buttons · Forms · Nav · etc.
   "Crystalline Amethyst" theme
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────
   TOP NAVIGATION — frosted glass
   ────────────────────────────── */
.topnav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(88, 28, 135, 0.03);
}
.topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 var(--sp-4);
    max-width: var(--container-max); margin: 0 auto;
}
.topnav-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 0.9375rem;
    display: flex; align-items: center; gap: var(--sp-3);
    color: var(--amethyst-800);
}
.topnav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    color: var(--primary); transition: all var(--duration) var(--ease-out);
    background: var(--amethyst-50);
}
.topnav-back:hover { background: var(--amethyst-100); transform: translateX(-2px); }

/* ──────────────────────────────
   BOTTOM NAVIGATION — frosted
   ────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: var(--blur-lg); -webkit-backdrop-filter: var(--blur-lg);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 20px rgba(88, 28, 135, 0.05);
}
.bottom-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    max-width: 520px; margin: 0 auto; height: var(--nav-height);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 14px; border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out); min-width: 56px;
    position: relative;
}
.bottom-nav a .nav-ico { font-size: 1.3rem; line-height: 1; transition: transform var(--duration) var(--ease-spring); }
.bottom-nav a .nav-lbl { font-size: 0.6rem; font-weight: 600; color: var(--n-400); transition: color var(--duration); letter-spacing: 0.02em; }
.bottom-nav a:hover .nav-lbl { color: var(--text-secondary); }
.bottom-nav a.active {
    background: linear-gradient(135deg, var(--amethyst-50) 0%, rgba(168,85,247,0.08) 100%);
}
.bottom-nav a.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--gradient-hero);
}
.bottom-nav a.active .nav-ico { transform: scale(1.12); }
.bottom-nav a.active .nav-lbl { color: var(--amethyst-700); font-weight: 700; }

/* ──────────────────────────────
   GLASS CARD
   ────────────────────────────── */
.card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
    box-shadow: var(--shadow-xs);
}
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.card-body { padding: var(--sp-5); }
.card-header {
    padding: var(--sp-3) var(--sp-5);
    border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(250, 245, 255, 0.5);
}

/* ──────────────────────────────
   HERO CARD — vivid gradient
   ────────────────────────────── */
.hero-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl); padding: var(--sp-6); color: #fff;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.hero-card::before {
    content: ''; position: absolute; top: -60%; right: -30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-card::after {
    content: ''; position: absolute; bottom: -40%; left: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(196,181,253,0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-card .label { color: rgba(255,255,255,0.6); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.hero-card .value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-top: 2px; }

/* ──────────────────────────────
   STAT CARD — floating glass
   ────────────────────────────── */
.stat-card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4) var(--sp-5);
    transition: all var(--duration) var(--ease-out);
    box-shadow: var(--shadow-xs);
}
.stat-card:hover {
    border-color: var(--amethyst-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.stat-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: var(--sp-3);
}
.stat-icon.green   { background: var(--emerald-50); color: var(--emerald); }
.stat-icon.blue    { background: var(--sky-50); color: var(--sky); }
.stat-icon.amber   { background: var(--gold-50); color: var(--gold); }
.stat-icon.brand   { background: var(--amethyst-50); color: var(--primary); }
.stat-label { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; letter-spacing: 0.01em; }
.stat-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text); }

/* ──────────────────────────────
   BUTTONS — pill-style glass
   ────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5); font-size: 0.875rem; font-weight: 600;
    border-radius: var(--radius-md); transition: all var(--duration) var(--ease-out);
    white-space: nowrap; font-family: var(--font-body);
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--gradient-hero); color: #fff;
    box-shadow: var(--shadow-glow); border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
    filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    color: var(--n-600);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
    border-color: var(--amethyst-300);
    color: var(--primary); background: var(--amethyst-50);
}
.btn-danger {
    background: var(--scarlet-50); color: var(--scarlet);
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.btn-danger:hover { background: var(--scarlet-100); }
.btn-ghost {
    background: transparent; color: var(--text-secondary);
    padding: var(--sp-2) var(--sp-3);
}
.btn-ghost:hover { background: var(--amethyst-50); color: var(--primary); }
.btn-lg   { padding: 14px var(--sp-6); font-size: 0.9375rem; border-radius: var(--radius-lg); }
.btn-sm   { padding: 5px var(--sp-3); font-size: 0.75rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ──────────────────────────────
   FORMS — glass input
   ────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input {
    width: 100%; padding: 11px 16px; font-size: 0.9375rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: var(--blur-sm);
    border: 1.5px solid var(--n-150);
    border-radius: var(--radius-md); color: var(--text);
    transition: all var(--duration) var(--ease-out); outline: none;
}
.form-input:focus {
    border-color: var(--amethyst-400);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08);
    background: rgba(255,255,255,0.9);
}
.form-input::placeholder { color: var(--n-300); }
.form-input.invalid {
    border-color: var(--scarlet);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}
.form-input.valid {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.06);
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a94a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea.form-input { resize: vertical; min-height: 80px; }

/* ── Radio Cards ── */
.radio-group { display: flex; gap: var(--sp-3); }
.radio-card { flex: 1; position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .radio-body {
    padding: var(--sp-4); border: 2px solid var(--n-150);
    border-radius: var(--radius-lg); text-align: center;
    transition: all var(--duration); background: rgba(255,255,255,0.6);
}
.radio-card input:checked + .radio-body {
    border-color: var(--amethyst-400);
    background: var(--amethyst-50);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.06);
}
.radio-card .radio-title { font-weight: 600; font-size: 0.875rem; }
.radio-card .radio-desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ──────────────────────────────
   BADGES — crystalline
   ────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 11px; font-size: 0.625rem;
    font-weight: 700; border-radius: var(--radius-pill); letter-spacing: 0.03em;
}
.badge-brand   { background: var(--amethyst-50); color: var(--amethyst-700); }
.badge-green   { background: var(--emerald-50); color: #059669; }
.badge-red     { background: var(--scarlet-50); color: var(--scarlet); }
.badge-amber   { background: var(--gold-50); color: #d97706; }
.badge-neutral { background: var(--n-100); color: var(--n-500); }
.badge-star {
    background: var(--gradient-gold); color: #78350f;
    font-weight: 700; box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

/* ──────────────────────────────
   TABLE — clean with hover
   ────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: 0.8125rem; }
.table th {
    padding: var(--sp-3) var(--sp-4); font-size: 0.625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--amethyst-600); background: rgba(250, 245, 255, 0.6);
    text-align: left; white-space: nowrap;
}
.table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr { transition: background var(--duration-fast); }
.table tbody tr:hover { background: rgba(168, 85, 247, 0.03); }

/* ──────────────────────────────
   TABS — underline style
   ────────────────────────────── */
.tabs {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--n-100);
    margin-bottom: var(--sp-5);
}
.tab {
    padding: var(--sp-3) var(--sp-5); font-size: 0.8125rem; font-weight: 500;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all var(--duration);
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ──────────────────────────────
   PILLS — filter chips
   ────────────────────────────── */
.pills { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.pill {
    padding: 7px var(--sp-4); font-size: 0.75rem; font-weight: 500;
    border-radius: var(--radius-pill);
    color: var(--n-500); background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-strong);
    transition: all var(--duration) var(--ease-out);
    backdrop-filter: var(--blur-sm);
}
.pill:hover { border-color: var(--amethyst-300); background: var(--amethyst-50); }
.pill.active { background: var(--gradient-hero); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

/* ──────────────────────────────
   PROGRESS BAR
   ────────────────────────────── */
.progress { height: 6px; background: rgba(255,255,255,0.2); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.9));
    border-radius: var(--radius-pill);
    transition: width 0.6s var(--ease-out);
}

/* ──────────────────────────────
   MODAL — frosted overlay
   ────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(59, 7, 100, 0.25);
    backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
    z-index: 500; display: flex; align-items: center; justify-content: center;
    padding: var(--sp-4);
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open, .modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal, .modal-box {
    background: var(--surface); border-radius: var(--radius-xl);
    width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(8px);
    transition: transform 0.3s var(--ease-spring);
}
.modal-overlay.open .modal, .modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.modal-close {
    width: 32px; height: 32px; border: 1px solid var(--n-150);
    background: var(--n-50); border-radius: var(--radius-sm);
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--n-400); transition: all var(--duration);
}
.modal-close:hover { border-color: var(--amethyst-300); color: var(--primary); background: var(--amethyst-50); }
.modal-body   { padding: var(--sp-5) var(--sp-6); }
.modal-footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); display: flex; gap: var(--sp-3); }

/* ──────────────────────────────
   TOAST — floating notifications
   ────────────────────────────── */
.toast-container {
    position: fixed; top: var(--sp-4); right: var(--sp-4); z-index: 9999;
    display: flex; flex-direction: column; gap: var(--sp-2);
    max-width: 400px; width: calc(100% - 32px);
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: toastSlide 0.35s var(--ease-out);
    backdrop-filter: var(--blur-md);
    border: 1px solid;
}
.toast-success { background: rgba(255,255,255,0.92); color: var(--emerald); border-color: rgba(16,185,129,0.2); }
.toast-error   { background: rgba(255,255,255,0.92); color: var(--scarlet); border-color: rgba(239,68,68,0.2); }
.toast-warning { background: rgba(255,255,255,0.92); color: var(--gold); border-color: rgba(245,158,11,0.2); }
.toast-info    { background: rgba(255,255,255,0.92); color: var(--sky); border-color: rgba(59,130,246,0.2); }
@keyframes toastSlide {
    from { opacity: 0; transform: translateX(30px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ──────────────────────────────
   ACTION CARD — quick links
   ────────────────────────────── */
.action-card {
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
    padding: var(--sp-4); background: rgba(255,255,255,0.65);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease-out); text-align: center;
}
.action-card:hover {
    border-color: var(--amethyst-200);
    box-shadow: var(--shadow-md); transform: translateY(-3px);
    background: rgba(255,255,255,0.85);
}
.action-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.action-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }

/* ──────────────────────────────
   LIST ITEM
   ────────────────────────────── */
.list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-fast);
}
.list-item:hover { background: rgba(168, 85, 247, 0.02); }
.list-item:last-child { border-bottom: none; }
.list-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.6875rem; color: #fff; flex-shrink: 0;
}

/* ──────────────────────────────
   TX ICON (transaction)
   ────────────────────────────── */
.tx-icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 0.8125rem;
}
.tx-icon.income  { background: var(--emerald-50); color: var(--emerald); }
.tx-icon.expense { background: var(--scarlet-50); color: var(--scarlet); }

/* ──────────────────────────────
   STEPS (registration etc.)
   ────────────────────────────── */
.steps {
    display: flex; align-items: center; gap: var(--sp-2);
    justify-content: center; margin-bottom: var(--sp-8);
}
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6875rem; font-weight: 700;
    transition: all 0.35s var(--ease-spring);
}
.step-dot.done    { background: var(--emerald); color: #fff; }
.step-dot.current { background: var(--gradient-hero); color: #fff; box-shadow: var(--shadow-glow); }
.step-dot.pending { background: var(--n-100); color: var(--n-400); }
.step-line { width: 30px; height: 2px; background: var(--n-150); }
.step-line.done   { background: var(--emerald); }

/* ──────────────────────────────
   AUTH — login/register layout
   ────────────────────────────── */
.auth-bg {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-hero-soft); background-attachment: fixed;
    position: relative; overflow: hidden;
}
.auth-bg::before {
    content: ''; position: absolute; top: -30%; right: -25%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.06) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: var(--sp-4); }
.auth-header { text-align: center; margin-bottom: var(--sp-6); }
.auth-title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; color: var(--amethyst-900); }
.auth-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; }
.auth-form {
    background: rgba(255,255,255,0.75);
    backdrop-filter: var(--blur-lg); -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-xl); padding: var(--sp-8);
    box-shadow: var(--shadow-xl);
}
.auth-link {
    color: var(--text-muted); font-size: 0.875rem; text-align: center;
    display: block; margin-top: var(--sp-5); transition: color var(--duration);
}
.auth-link:hover { color: var(--primary); }
.logo-img-lg { height: 60px; width: auto; object-fit: contain; border-radius: var(--radius-md); }

/* ──────────────────────────────
   ALERT
   ────────────────────────────── */
.alert {
    padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md);
    font-size: 0.8125rem; margin-bottom: var(--sp-4);
}
.alert-error   { background: var(--scarlet-50); color: var(--scarlet); border: 1px solid rgba(239,68,68,0.15); }
.alert-success { background: var(--emerald-50); color: #059669; border: 1px solid rgba(16,185,129,0.15); }
.alert-info    { background: var(--sky-50); color: var(--sky); border: 1px solid rgba(59,130,246,0.15); }

/* ──────────────────────────────
   SPINNER
   ────────────────────────────── */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--amethyst-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ppnSpin 0.65s linear infinite;
}
@keyframes ppnSpin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; padding: var(--sp-10) 0; }

/* ──────────────────────────────
   EMPTY STATE
   ────────────────────────────── */
.empty-state { text-align: center; padding: var(--sp-10) var(--sp-6); color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: var(--sp-3); opacity: 0.4; }
.empty-state .empty-text { font-size: 0.8125rem; }

/* ──────────────────────────────
   PROFILE HERO
   ────────────────────────────── */
.profile-hero {
    text-align: center; padding: var(--sp-8) var(--sp-6);
    background: var(--gradient-hero);
    border-radius: var(--radius-xl); color: #fff;
    margin-bottom: var(--sp-6); position: relative; overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.profile-hero::after {
    content: ''; position: absolute; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
    top: -70px; right: -50px; border-radius: 50%;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 3px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.875rem; font-weight: 700;
    margin: 0 auto var(--sp-3);
    backdrop-filter: var(--blur-sm);
}
.profile-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.profile-username { font-size: 0.8125rem; color: rgba(255,255,255,0.6); }

/* ──────────────────────────────
   DETAIL ROW
   ────────────────────────────── */
.detail-row { display: flex; padding: 11px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 105px; flex-shrink: 0; color: var(--text-muted); font-size: 0.75rem; font-weight: 500; }
.detail-value { flex: 1; font-size: 0.875rem; font-weight: 500; }

/* Star badge variants */
.star-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.star-badge.s0 { background: var(--n-100); color: var(--n-500); }
.star-badge.s1 { background: #fef3c7; color: #b45309; }
.star-badge.s2 { background: #ffedd5; color: #c2410c; }
.star-badge.s3 { background: #fee2e2; color: #dc2626; }
.star-badge.s4 { background: #fae8ff; color: #a21caf; }
.star-badge.s5 { background: var(--amethyst-100); color: var(--amethyst-700); }

/* ──────────────────────────────
   PAGINATION
   ────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-4); border-top: 1px solid var(--border);
}

/* ──────────────────────────────
   REFERRAL BAR
   ────────────────────────────── */
.referral-bar {
    background: rgba(250,245,255,0.6); backdrop-filter: var(--blur-sm);
    border: 1px solid var(--amethyst-200);
    border-radius: var(--radius-lg); padding: var(--sp-3) var(--sp-4);
    display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.referral-bar input {
    flex: 1; min-width: 180px; background: rgba(255,255,255,0.8);
    border: 1px solid var(--n-150); border-radius: var(--radius-sm);
    padding: 8px 12px; font-size: 0.75rem; color: var(--primary);
}

/* ──────────────────────────────
   SIDEBAR COMPAT — hidden
   ────────────────────────────── */
.layout { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar, .sidebar-overlay { display: none; }
.main-content { flex: 1; }
.hamburger { display: none; }
.sidebar-logo-icon img { height: 36px; width: auto; border-radius: var(--radius-sm); }
