/* EA Rental Pro — Design System */
:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --neon-blue: #3b82f6;
    --neon-blue-light: #60a5fa;
    --neon-glow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
    --neon-glow-intense: 0 0 10px rgba(59, 130, 246, 0.9), 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
    --profit: #10b981;
    --loss: #ef4444;
    --warning: #f59e0b;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.06), transparent);
    color: var(--text-primary);
    font-family: var(--font);
    min-height: 100vh;
    line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glassmorphism Cards ── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-highlight);
    transition: border-color var(--transition), transform var(--transition);
}
.glass-card:hover { border-color: rgba(59, 130, 246, 0.25); }

.glass-card-sm {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

/* ── Navbar ── */
.navbar-glass {
    background: rgba(10, 15, 29, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    z-index: 1040;
}
.navbar-brand span { color: var(--text-primary); }
.nav-hamburger-wrap {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}
.navbar-glass .nav-toggler-neon {
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.navbar-glass .nav-toggler-neon:hover,
.navbar-glass .nav-toggler-neon:focus {
    box-shadow: var(--neon-glow);
    border-color: var(--neon-blue-light) !important;
    background: rgba(59, 130, 246, 0.12);
}
.navbar-glass .nav-neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem !important;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
}
.navbar-glass .nav-neon-btn:hover,
.navbar-glass .nav-neon-btn:focus-visible {
    color: #fff !important;
    box-shadow: var(--neon-glow);
    background: rgba(59, 130, 246, 0.18);
    border-color: var(--neon-blue-light);
}
.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--text-primary) !important;
    background: rgba(59, 130, 246, 0.1);
}

/* ── Flash Neon Blue Buttons ── */
.btn-neon, .btn-primary, .btn-custom {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.btn-neon::before, .btn-primary::before, .btn-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}
.btn-neon:hover, .btn-primary:hover, .btn-custom:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-1px);
    border-color: var(--neon-blue-light);
}
.btn-neon:hover::before, .btn-primary:hover::before, .btn-custom:hover::before {
    transform: translateX(100%);
}
.btn-neon:active, .btn-primary:active, .btn-custom:active,
.btn-neon.flash-active, .btn-primary.flash-active, .btn-custom.flash-active {
    box-shadow: var(--neon-glow-intense) !important;
    transform: scale(0.97);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
.btn-neon.btn-sm, .btn-primary.btn-sm, .btn-custom.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-neon.btn-lg, .btn-primary.btn-lg, .btn-custom.btn-lg { padding: 0.8rem 2rem; font-size: 1.05rem; }

.btn-outline-neon {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: var(--neon-blue-light) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease;
}
.btn-outline-neon:hover {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: var(--neon-glow);
    color: #fff !important;
    border-color: var(--neon-blue);
}
.btn-outline-neon:active, .btn-outline-neon.flash-active {
    box-shadow: var(--neon-glow-intense) !important;
    background: rgba(59, 130, 246, 0.25);
}

/* Apply neon flash to all Bootstrap buttons */
.btn { transition: all 0.2s ease; }
.btn:active, .btn.flash-active { box-shadow: var(--neon-glow-intense) !important; }

/* ── Forms ── */
.form-control, .form-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
}
.form-control:focus, .form-select:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }

/* ── Badges ── */
.badge-profit { background: rgba(16, 185, 129, 0.15); color: var(--profit); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-loss { background: rgba(239, 68, 68, 0.15); color: var(--loss); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-success-tx { background: rgba(16, 185, 129, 0.15); color: var(--profit); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-failed { background: rgba(239, 68, 68, 0.15); color: var(--loss); border: 1px solid rgba(239, 68, 68, 0.3); }

/* ── Stats ── */
.stat-card { padding: 1.25rem; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.stat-value { font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; }

/* ── Tables ── */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--glass-border);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.06);
}
.table-dark-custom thead th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

/* ── Hero Section ── */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
}
.hero-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--neon-blue);
    font-size: 1.4rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Testimonials ── */
.testimonial-card { padding: 1.5rem; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #818cf8);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}

/* ── Calendar P&L ── */
.calendar-wrapper { padding: 1.5rem; position: relative; }
.calendar-header-row, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.day-name { text-align: center; font-weight: 600; font-size: 0.78rem; color: var(--text-muted); padding: 0.5rem 0; }
.calendar-day {
    background: rgba(10, 15, 29, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    min-height: 90px;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
}
.calendar-day:hover:not(.outside) { border-color: rgba(59,130,246,0.4); transform: translateY(-2px); }
.calendar-day.outside { opacity: 0.25; pointer-events: none; cursor: default; }
.calendar-day.today { border-color: var(--neon-blue); box-shadow: 0 0 0 1px var(--neon-blue); }
.calendar-day.selected {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129,140,248,0.45);
}
.calendar-day.profit {
    background: linear-gradient(135deg, rgba(16,185,129, calc(0.08 + var(--heat, 0.35) * 0.42)), rgba(10,15,29,0.7));
    border-color: rgba(16,185,129, calc(0.25 + var(--heat, 0.35) * 0.45));
}
.calendar-day.loss {
    background: linear-gradient(135deg, rgba(239,68,68, calc(0.08 + var(--heat, 0.35) * 0.42)), rgba(10,15,29,0.7));
    border-color: rgba(239,68,68, calc(0.25 + var(--heat, 0.35) * 0.45));
}
.day-number { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.day-pnl { margin-top: auto; font-size: 0.8rem; font-weight: 700; }
.day-pnl.positive { color: var(--profit); }
.day-pnl.negative { color: var(--loss); }
.day-note { font-size: 0.68rem; color: var(--text-muted); margin-top: auto; }
.day-tx-count {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.calendar-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
}
.calendar-jump-field { min-width: 140px; }
.calendar-jump .form-select {
    background: rgba(10, 15, 29, 0.85);
    border-color: var(--glass-border);
    color: var(--text-primary);
    min-width: 140px;
}
.history-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.history-month-card {
    background: rgba(10, 15, 29, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    text-align: left;
    color: inherit;
    width: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.history-month-card:hover {
    border-color: rgba(59,130,246,0.5);
    transform: translateY(-2px);
}
.history-month-card.active {
    border-color: #818cf8;
    box-shadow: 0 0 0 1px rgba(129,140,248,0.4);
}
.day-trade-panel { padding: 1.25rem; }
.day-trade-scroll {
    max-height: min(320px, 50vh);
    overflow: auto;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}
.day-trade-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.day-trade-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 8px;
}
.day-trade-scroll::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.55);
    border-radius: 8px;
}
.day-trade-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--glass-border);
    table-layout: fixed;
    width: 100%;
    margin-bottom: 0;
}
.day-trade-table th,
.day-trade-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}
.day-trade-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0f172a;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.day-trade-table th:nth-child(1),
.day-trade-table td:nth-child(1) { width: 18%; }
.day-trade-table th:nth-child(2),
.day-trade-table td:nth-child(2) { width: 30%; }
.day-trade-table th:nth-child(3),
.day-trade-table td:nth-child(3) { width: 16%; }
.day-trade-table th:nth-child(4),
.day-trade-table td:nth-child(4) { width: 14%; }
.day-trade-table th:nth-child(5),
.day-trade-table td:nth-child(5) { width: 22%; }
.day-trade-symbol { display: block; line-height: 1.35; }
.day-trade-ea {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.day-trade-pager { justify-content: flex-start; }
.day-trade-pager .pager-num,
.day-trade-pager .pager-btn {
    cursor: pointer;
    appearance: none;
}
.day-trade-pager .pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.trade-type-pill {
    display: inline-block;
    min-width: 3.2rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}
.trade-type-pill.buy { background: rgba(16,185,129,0.18); color: #34d399; }
.trade-type-pill.sell { background: rgba(239,68,68,0.18); color: #f87171; }

.stat-value.grade-Aplus, .stat-value.grade-A { color: #34d399; }
.stat-value.grade-Bplus, .stat-value.grade-B { color: #60a5fa; }
.stat-value.grade-C { color: #fbbf24; }
.stat-value.grade-D, .stat-value.grade-none { color: #f87171; }

.pnl-chart-wrap {
    width: 100%;
    height: 220px;
}
.pnl-chart-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}
.pnl-split {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}
.pnl-split-win { background: #10b981; transition: width 0.35s ease; }
.pnl-split-loss { background: #ef4444; transition: width 0.35s ease; }

.weekday-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
    align-items: end;
    min-height: 160px;
}
.weekday-col { text-align: center; }
.weekday-val { font-size: 0.68rem; font-weight: 700; margin-bottom: 0.35rem; min-height: 1.1rem; }
.weekday-val.up { color: var(--profit); }
.weekday-val.down { color: var(--loss); }
.weekday-val.flat { color: var(--text-muted); }
.weekday-track {
    height: 110px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.weekday-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}
.weekday-fill.up { background: linear-gradient(to top, rgba(16,185,129,0.25), #10b981); }
.weekday-fill.down { background: linear-gradient(to top, rgba(239,68,68,0.25), #ef4444); }
.weekday-fill.flat { background: rgba(148,163,184,0.35); }
.weekday-name { font-size: 0.75rem; font-weight: 600; margin-top: 0.4rem; }
.weekday-count { font-size: 0.65rem; color: var(--text-muted); }
.weekday-col.is-current .weekday-track {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}
.weekday-col.is-current .weekday-name { color: var(--neon-blue-light); }
.period-toggle { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.period-bars-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}
.period-bars {
    min-width: 100%;
}
.period-bars[data-period="day"] {
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    min-width: 720px;
}
.period-bars[data-period="week"] {
    grid-template-columns: repeat(5, 1fr);
}
.period-bars[data-period="month"] {
    grid-template-columns: repeat(12, minmax(48px, 1fr));
    min-width: 640px;
}
.period-bars[data-period="year"] {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}

/* ── Marketplace ── */
.ea-card { overflow: hidden; transition: transform var(--transition); position: relative; }
.ea-card:hover { transform: translateY(-4px); }
.ea-card-img {
    height: 140px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--neon-blue);
}
.ea-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.ea-rank-badge.rank-1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #111827; }
.ea-rank-badge.rank-2 { background: linear-gradient(135deg, #94a3b8, #e2e8f0); color: #111827; }
.ea-rank-badge.rank-3 { background: linear-gradient(135deg, #b45309, #fdba74); color: #111827; }
.ea-rank-badge.rank-rest {
    background: rgba(15, 23, 42, 0.75);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.ad-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .ad-slots-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ad-slot {
    min-height: 280px;
    position: relative;
}
.ad-slot-num {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ad-slot-card { position: relative; }
.ad-slot-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    font-size: 0.65rem;
}
.ad-slot-img { height: 72px !important; font-size: 1.6rem !important; }
.ad-slot-desc { min-height: 2.6em; }
.ad-slot-empty {
    height: calc(100% - 1.4rem);
    min-height: 240px;
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #cbd5e1;
}
.ad-slot-empty i {
    font-size: 1.6rem;
    color: #fbbf24;
    opacity: 0.8;
}
.ad-admin-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
@media (min-width: 576px) {
    .ad-admin-board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ad-admin-cell {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.65rem;
    min-height: 7.5rem;
    background: rgba(15, 23, 42, 0.45);
}
.ad-admin-cell.is-filled { border-color: rgba(245, 158, 11, 0.45); }
.ad-admin-cell.is-empty { opacity: 0.75; }

.marketplace-sort { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.marketplace-grid-scroll {
    max-height: min(72vh, 1080px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.15rem 0.45rem 0.5rem 0.05rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.55) rgba(15, 23, 42, 0.4);
}
.marketplace-grid-scroll::-webkit-scrollbar { width: 8px; }
.marketplace-grid-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 8px;
}
.marketplace-grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.55);
    border-radius: 8px;
}
.marketplace-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.marketplace-pager .pager-num,
.marketplace-pager .pager-btn {
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.45);
}
.marketplace-pager .pager-num:hover,
.marketplace-pager .pager-btn:hover {
    color: var(--neon-blue-light);
    border-color: rgba(59, 130, 246, 0.45);
}
.marketplace-pager .pager-num.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.35);
    border-color: var(--neon-blue);
}
.marketplace-pager .pager-sep {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 0.1rem;
}

/* ── FAQ Accordion ── */
.accordion-glass .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.accordion-glass .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: none;
}
.accordion-glass .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.08);
    color: var(--neon-blue-light);
}
.accordion-glass .accordion-button::after { filter: invert(1); }
.accordion-glass .accordion-body { color: var(--text-secondary); }
.accordion-glass .faq-detail h6 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 1rem 0 0.45rem;
}
.accordion-glass .faq-detail h6:first-child { margin-top: 0; }
.accordion-glass .faq-detail ul { padding-left: 1.15rem; margin-bottom: 0.75rem; }
.accordion-glass .faq-detail li { margin-bottom: 0.4rem; }
.faq-role-card {
    display: block;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
a:hover .faq-role-card,
.faq-role-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}
.partner-chat-wrap { overflow: hidden; }
.partner-chat-box {
    min-height: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(8, 12, 24, 0.45);
}

/* ── Risk Alert ── */
.risk-alert-box {
    border-left: 4px solid var(--loss);
    background: rgba(239, 68, 68, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
}

.security-risk-box {
    border: 1px solid rgba(239, 68, 68, 0.55);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.35), rgba(239, 68, 68, 0.08));
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}
.security-risk-box-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #fecaca;
}
.security-risk-box-head i {
    font-size: 1.35rem;
    color: #f87171;
    margin-top: 0.15rem;
}
.security-risk-box-head h5 {
    font-weight: 800;
    line-height: 1.35;
    color: #fecaca;
    letter-spacing: 0.01em;
}
.security-risk-list {
    padding-left: 1.2rem;
    margin: 0;
    color: #e5e7eb;
}
.security-risk-list li {
    margin-bottom: 0.85rem;
    line-height: 1.55;
}
.security-risk-list li:last-child { margin-bottom: 0; }
.security-risk-list strong {
    color: #fff;
    display: inline;
    font-weight: 800;
}

.security-risk-float {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 88px;
    z-index: 1080;
    max-width: 920px;
    margin: 0 auto;
}
.security-risk-float-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: rgba(80, 10, 10, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color: #fee2e2;
}
.security-risk-float-icon {
    color: #f87171;
    font-size: 1.35rem;
    margin-top: 0.1rem;
}
.security-risk-float-copy {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}
.security-risk-float-title {
    font-weight: 800;
    color: #fecaca;
    margin-bottom: 0.3rem;
}
.security-risk-float-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .security-risk-float {
        left: 10px;
        right: 10px;
        bottom: 78px;
    }
    .security-risk-float-inner {
        flex-direction: column;
    }
}
.footer-staff-btn {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    font-size: 0.7rem;
    opacity: 0.55;
}
.footer-staff-btn:hover {
    opacity: 1;
    box-shadow: var(--neon-glow);
}

.rules-toc { top: 88px; }
.rules-toc-list {
    list-style: none;
    padding-left: 0;
}
.rules-toc-list li { margin-bottom: 0.45rem; }
.rules-toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
}
.rules-toc-list a:hover { color: var(--neon-blue-light); }
.rules-section h3 {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}
.rules-section ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-secondary);
}
.rules-section li { margin-bottom: 0.55rem; }
.rules-section li:last-child { margin-bottom: 0; }
.rules-accept { border: 1px solid rgba(59, 130, 246, 0.25); }

.delivery-option { display: block; cursor: pointer; height: 100%; }
.delivery-option-card {
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.95rem;
    background: rgba(10, 15, 29, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.delivery-option.active .delivery-option-card,
.delivery-option:has(input:checked) .delivery-option-card {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}
.vendor-rules-box {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(10, 15, 29, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ── Forum ── */
.forum-thread {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition);
}
.forum-thread:hover { background: rgba(59, 130, 246, 0.04); }
.forum-thread:last-child { border-bottom: none; }

.forum-post-body {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    line-height: 1.65;
    overflow: visible;
}

.forum-reply-card {
    border-left: 3px solid var(--neon-blue);
    background: rgba(59, 130, 246, 0.07);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.08);
    overflow: visible;
}

.forum-reply-body {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--neon-blue-light);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 500;
    overflow: visible;
}

.forum-emoji-tray {
    margin: 0.2rem 0 0.75rem;
}

.forum-emoji-hint {
    font-size: 0.78rem;
    color: #fbbf24;
    margin-bottom: 0.45rem;
}

.forum-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.forum-emoji-btn {
    min-width: 2.15rem;
    height: 2.45rem;
    padding: 0.1rem 0.12rem 0.08rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 8px;
    background: rgba(255, 205, 41, 0.07);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
    transition: transform 0.15s ease, background var(--transition), box-shadow var(--transition);
}

.forum-emoji-btn .ym-emo { font-size: 0.92rem; margin: 0; }
.forum-emoji-btn .ym-code {
    font-size: 0.52rem;
    color: #94a3b8;
    line-height: 1;
    font-family: ui-monospace, Consolas, monospace;
}

.forum-emoji-btn:hover {
    transform: translateY(-1px) scale(1.08);
    background: rgba(255, 205, 41, 0.18);
    box-shadow: 0 0 10px rgba(255, 205, 41, 0.28);
}

.forum-emoji-btn.is-featured {
    min-width: 2.35rem;
    height: 2.55rem;
    background: rgba(255, 205, 41, 0.16);
    border-color: rgba(255, 205, 41, 0.55);
}

.forum-emoji-btn.is-featured .ym-emo { font-size: 1rem; }

.forum-emoji-btn:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ── Yahoo-style cute faces ── */
.ym-emo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.18em;
    margin: 0 0.08em;
    overflow: visible;
}

.ym-face {
    position: relative;
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff7b0 0%, #ffd54a 46%, #ffb703 100%);
    border: 0.09em solid #c56a00;
    box-shadow:
        inset 0 -0.12em 0 rgba(180, 80, 0, 0.16),
        0 0.06em 0 #e39800;
    overflow: visible;
}

.ym-eye {
    position: absolute;
    top: 0.34em;
    width: 0.18em;
    height: 0.22em;
    background: #3a1c00;
    border-radius: 50%;
}

.ym-eye.l { left: 0.28em; }
.ym-eye.r { right: 0.28em; }

.ym-mouth {
    position: absolute;
    left: 50%;
    top: 0.68em;
    width: 0.48em;
    height: 0.26em;
    margin-left: -0.24em;
    border: 0.08em solid #3a1c00;
    border-top: 0;
    border-radius: 0 0 0.4em 0.4em;
    background: transparent;
}

.ym-extra {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Gelak berguling — Yahoo :)) */
.ym-lol {
    width: 1.35em;
    height: 1.35em;
}

.ym-lol .ym-face {
    animation: ym-roll 0.72s linear infinite;
    transform-origin: 50% 62%;
}

.ym-lol .ym-eye {
    top: 0.3em;
    width: 0.26em;
    height: 0.12em;
    background: transparent;
    border-radius: 50%;
    border-bottom: 0.08em solid #3a1c00;
}

.ym-lol .ym-mouth {
    top: 0.58em;
    width: 0.58em;
    height: 0.4em;
    margin-left: -0.29em;
    border: 0;
    border-radius: 0 0 0.5em 0.5em;
    background: #3a1c00;
    box-shadow: inset 0 0.12em 0 #7a3a12;
}

.ym-lol .ym-extra::before,
.ym-lol .ym-extra::after {
    content: "";
    position: absolute;
    width: 0.16em;
    height: 0.22em;
    background: #7ecbff;
    border-radius: 50%;
    animation: ym-tear 0.72s linear infinite;
}

.ym-lol .ym-extra::before { left: -0.08em; top: 0.42em; }
.ym-lol .ym-extra::after { right: -0.08em; top: 0.5em; animation-delay: 0.18s; }

@keyframes ym-roll {
    0%   { transform: rotate(0deg) translate(0, 0); }
    20%  { transform: rotate(72deg) translate(0.06em, 0.1em); }
    40%  { transform: rotate(144deg) translate(0.04em, 0.16em); }
    60%  { transform: rotate(216deg) translate(-0.04em, 0.12em); }
    80%  { transform: rotate(288deg) translate(-0.06em, 0.06em); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

@keyframes ym-tear {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7) translateY(0.08em); }
}

/* Senyum */
.ym-smile .ym-face { animation: ym-bob 1.6s ease-in-out infinite; }

@keyframes ym-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.08em); }
}

/* Kenyit */
.ym-wink .ym-eye.r {
    height: 0.08em;
    top: 0.4em;
    border-radius: 0.06em;
    animation: ym-wink 1.8s ease-in-out infinite;
}

@keyframes ym-wink {
    0%, 70%, 100% { transform: scaleY(1); height: 0.08em; }
    78% { transform: scaleY(0.2); }
    86% { transform: scaleY(1); height: 0.08em; }
}

/* Senyum lebar */
.ym-grin .ym-mouth {
    width: 0.7em;
    height: 0.34em;
    margin-left: -0.35em;
    background: #3a1c00;
    border: 0;
    border-radius: 0 0 0.45em 0.45em;
    box-shadow: inset 0 0.1em 0 #fff3a0;
}

.ym-grin .ym-face { animation: ym-bob 1.2s ease-in-out infinite; }

/* Jelir lidah */
.ym-tongue .ym-mouth {
    height: 0.16em;
    border-radius: 0.1em;
    background: #3a1c00;
    border: 0;
}

.ym-tongue .ym-extra::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.82em;
    width: 0.28em;
    height: 0.28em;
    margin-left: -0.14em;
    background: #ff6b8a;
    border-radius: 0 0 0.2em 0.2em;
    animation: ym-tongue 0.9s ease-in-out infinite;
}

@keyframes ym-tongue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.08em); }
}

/* Cium */
.ym-kiss .ym-mouth {
    width: 0.22em;
    height: 0.18em;
    margin-left: -0.11em;
    border-radius: 50%;
    background: #c43b5a;
    border: 0;
}

.ym-kiss .ym-extra::before {
    content: "";
    position: absolute;
    right: -0.12em;
    top: -0.08em;
    width: 0.32em;
    height: 0.28em;
    background: #ff4d6d;
    clip-path: path("M8 3 C8 0 12 0 12 3 C12 6 8 9 8 9 C8 9 4 6 4 3 C4 0 8 0 8 3");
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: ym-float 1.1s ease-in-out infinite;
}

.ym-kiss .ym-extra::before {
    clip-path: none;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

@keyframes ym-float {
    0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(-45deg) translate(0.08em, -0.16em); opacity: 0.65; }
}

/* Jatuh cinta */
.ym-love .ym-eye {
    width: 0.26em;
    height: 0.22em;
    background: #ff4d6d;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    top: 0.32em;
}

.ym-love .ym-eye.r { transform: rotate(-45deg); }
.ym-love .ym-face { animation: ym-pulse 1.1s ease-in-out infinite; }

@keyframes ym-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Sedih */
.ym-sad .ym-mouth {
    top: 0.78em;
    border: 0.08em solid #3a1c00;
    border-bottom: 0;
    border-radius: 0.4em 0.4em 0 0;
}

.ym-sad .ym-eye { height: 0.16em; }

/* Menangis */
.ym-cry .ym-mouth {
    top: 0.8em;
    width: 0.32em;
    margin-left: -0.16em;
    border-bottom: 0;
    border-radius: 0.3em 0.3em 0 0;
}

.ym-cry .ym-extra::before,
.ym-cry .ym-extra::after {
    content: "";
    position: absolute;
    top: 0.55em;
    width: 0.12em;
    height: 0.34em;
    background: #7ecbff;
    border-radius: 0.1em 0.1em 0.2em 0.2em;
    animation: ym-drip 1s ease-in infinite;
}

.ym-cry .ym-extra::before { left: 0.3em; }
.ym-cry .ym-extra::after { right: 0.3em; animation-delay: 0.35s; }

@keyframes ym-drip {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0.35em); opacity: 0; }
}

/* Terkejut */
.ym-wow .ym-mouth {
    top: 0.62em;
    width: 0.32em;
    height: 0.38em;
    margin-left: -0.16em;
    border: 0;
    border-radius: 50%;
    background: #3a1c00;
}

.ym-wow .ym-eye { height: 0.28em; top: 0.22em; }
.ym-wow .ym-face { animation: ym-pulse 0.9s ease-in-out infinite; }

/* Cool */
.ym-cool .ym-eye {
    width: 0.42em;
    height: 0.16em;
    top: 0.36em;
    border-radius: 0.04em;
    background: #1e293b;
}

.ym-cool .ym-eye.l { left: 0.1em; }
.ym-cool .ym-eye.r { right: 0.1em; }
.ym-cool .ym-extra::before {
    content: "";
    position: absolute;
    left: 0.46em;
    top: 0.4em;
    width: 0.22em;
    height: 0.07em;
    background: #1e293b;
}

.ym-cool .ym-face { animation: ym-slide-in 2.2s ease-in-out infinite; }

@keyframes ym-slide-in {
    0%, 100% { transform: translateX(0); }
    40% { transform: translateX(0.05em); }
    55% { transform: translateX(-0.04em); }
}

/* Malu */
.ym-blush .ym-extra::before,
.ym-blush .ym-extra::after {
    content: "";
    position: absolute;
    top: 0.52em;
    width: 0.28em;
    height: 0.16em;
    background: rgba(255, 105, 135, 0.55);
    border-radius: 50%;
    animation: ym-blush 1.4s ease-in-out infinite;
}

.ym-blush .ym-extra::before { left: 0.04em; }
.ym-blush .ym-extra::after { right: 0.04em; }

@keyframes ym-blush {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Malaikat */
.ym-angel .ym-extra::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.28em;
    width: 0.7em;
    height: 0.16em;
    margin-left: -0.35em;
    border: 0.07em solid #f5d76e;
    border-radius: 50%;
    animation: ym-halo 1.6s ease-in-out infinite;
}

@keyframes ym-halo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.06em); }
}

/* Nakalnya */
.ym-devil .ym-face {
    background: radial-gradient(circle at 32% 28%, #ff9a9a 0%, #ef4444 50%, #b91c1c 100%);
    border-color: #7f1d1d;
}

.ym-devil .ym-extra::before,
.ym-devil .ym-extra::after {
    content: "";
    position: absolute;
    top: -0.18em;
    width: 0;
    height: 0;
    border-left: 0.14em solid transparent;
    border-right: 0.14em solid transparent;
    border-bottom: 0.28em solid #7f1d1d;
    animation: ym-horn 0.9s ease-in-out infinite;
}

.ym-devil .ym-extra::before { left: 0.12em; transform: rotate(-18deg); }
.ym-devil .ym-extra::after { right: 0.12em; transform: rotate(18deg); animation-delay: 0.15s; }

@keyframes ym-horn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.05em); }
}

/* Keliru */
.ym-confused .ym-mouth {
    width: 0.28em;
    height: 0.28em;
    margin-left: -0.04em;
    border-radius: 50%;
    border: 0;
    background: transparent;
    border-bottom: 0.08em solid #3a1c00;
    top: 0.7em;
    animation: ym-scribble 0.7s linear infinite;
}

.ym-confused .ym-eye.l { transform: rotate(-18deg); }
.ym-confused .ym-eye.r { transform: rotate(18deg); }

@keyframes ym-scribble {
    0%, 100% { transform: rotate(-12deg); }
    50% { transform: rotate(18deg); }
}

/* Peluk */
.ym-hug .ym-extra::before,
.ym-hug .ym-extra::after {
    content: "";
    position: absolute;
    top: 0.55em;
    width: 0.42em;
    height: 0.22em;
    border: 0.09em solid #c56a00;
    background: radial-gradient(circle at 30% 30%, #fff7b0, #ffd54a);
    border-radius: 0.2em;
}

.ym-hug .ym-extra::before { left: -0.28em; animation: ym-hug-l 1.2s ease-in-out infinite; }
.ym-hug .ym-extra::after { right: -0.28em; animation: ym-hug-r 1.2s ease-in-out infinite; }

@keyframes ym-hug-l {
    0%, 100% { transform: rotate(22deg) translateX(0); }
    50% { transform: rotate(22deg) translateX(0.08em); }
}

@keyframes ym-hug-r {
    0%, 100% { transform: rotate(-22deg) translateX(0); }
    50% { transform: rotate(-22deg) translateX(-0.08em); }
}

/* Hati */
.ym-heart .ym-face {
    background: #ff4d6d;
    border-color: #c9184a;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: ym-pulse 0.9s ease-in-out infinite;
}

.ym-heart .ym-eye,
.ym-heart .ym-mouth { display: none; }

/* Thumbs up */
.ym-thumb .ym-face {
    width: 0.85em;
    height: 1.05em;
    border-radius: 0.28em 0.28em 0.22em 0.22em;
    left: 0.12em;
    animation: ym-thumb 1s ease-in-out infinite;
}

.ym-thumb .ym-eye,
.ym-thumb .ym-mouth { display: none; }

.ym-thumb .ym-extra::before {
    content: "";
    position: absolute;
    left: -0.18em;
    top: 0.08em;
    width: 0.32em;
    height: 0.42em;
    background: inherit;
    background: radial-gradient(circle at 32% 28%, #fff7b0 0%, #ffd54a 46%, #ffb703 100%);
    border: 0.09em solid #c56a00;
    border-radius: 0.3em;
}

@keyframes ym-thumb {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-0.1em); }
}

.forum-post-body .ym-emo,
.forum-reply-body .ym-emo {
    font-size: 1rem;
}

.forum-index-preview .ym-emo { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
    .ym-face,
    .ym-extra::before,
    .ym-extra::after,
    .ym-eye,
    .ym-mouth { animation: none !important; }
    .ym-lol .ym-face { transform: rotate(28deg); }
}

/* ── Admin Sidebar ── */
.admin-sidebar {
    background: rgba(10, 15, 29, 0.95);
    border-right: 1px solid var(--glass-border);
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
}
.admin-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: var(--neon-blue-light);
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--neon-blue);
}

/* ── Transaction Status Pulse ── */
.status-pending { animation: pulse-warning 2s infinite; }
@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Footer ── */
.footer-glass {
    background: rgba(10, 15, 29, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    max-width: 720px;
    margin: 0 auto;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}

.footer-stat i {
    color: #60a5fa;
    width: 1rem;
    text-align: center;
}

.footer-stat-live {
    color: #22c55e !important;
    font-size: 0.55rem;
    animation: pulse 2s infinite;
}

.footer-stat-label {
    text-transform: none;
}

.footer-stat-value {
    font-weight: 700;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    min-width: 1.25rem;
}

.account-mode-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
}

.account-mode-note {
    font-size: 0.78rem;
    color: #94a3b8;
}

.account-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.account-mode-live {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.account-mode-demo {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.pnl-account-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    vertical-align: middle;
    line-height: 1.2;
}

.pnl-account-live {
    background: #10b981;
    color: #052e16;
}

.pnl-account-demo {
    background: #f59e0b;
    color: #422006;
}

/* ── Alerts ── */
.alert-glass {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

/* ── Loading ── */
.loading-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 15, 29, 0.75);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    z-index: 10;
}

/* ── Support Chat Widget ── */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font);
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
    transition: all 0.25s ease;
    position: relative;
}
.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: var(--neon-glow);
}
.chat-toggle.flash-active { box-shadow: var(--neon-glow-intense); }

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-height: 520px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}
.chat-panel.open { display: flex; }

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chat-header-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #818cf8);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.chat-header-info h6 { margin: 0; font-size: 0.9rem; font-weight: 700; }
.chat-header-info small { color: var(--text-muted); font-size: 0.75rem; }
.chat-close {
    margin-left: auto;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}
.chat-close:hover { color: #fff; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 280px;
    max-height: 340px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
    max-width: 82%;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg.support {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chat-msg-time {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 0.2rem;
    display: block;
}

.chat-welcome {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 1.5rem 1rem;
}
.chat-welcome i { font-size: 2rem; color: var(--neon-blue); margin-bottom: 0.5rem; display: block; }

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.chat-quick-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    width: 100%;
    max-height: 5.4rem;
    overflow-y: auto;
    margin-bottom: 0.15rem;
}
.chat-chip {
    border: 1px solid rgba(59, 130, 246, 0.38);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.22rem 0.55rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.chat-chip:hover {
    background: rgba(59, 130, 246, 0.22);
    transform: translateY(-1px);
}
.chat-chip-agent {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}
.chat-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    resize: none;
    max-height: 80px;
    line-height: 1.4;
}
.chat-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.chat-send-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.chat-send-btn:hover { box-shadow: var(--neon-glow); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-login-prompt {
    padding: 2rem 1.5rem;
    text-align: center;
}
.chat-login-prompt p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* ── Compact lang / currency chips ── */
.lang-toggle,
.currency-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.lang-toggle .btn,
.currency-toggle .btn,
.currency-toggle .currency-btn {
    min-width: 28px !important;
    width: auto !important;
    height: 24px !important;
    padding: 0 6px !important;
    font-size: 0.62rem !important;
    font-weight: 700;
    line-height: 22px !important;
    letter-spacing: 0.02em;
    border-radius: 5px !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}
.lang-toggle .btn:hover,
.currency-toggle .btn:hover,
.currency-toggle .currency-btn:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #fff !important;
    border-color: var(--neon-blue-light) !important;
    box-shadow: var(--neon-glow) !important;
}
.lang-toggle .btn.active,
.currency-toggle .currency-btn.active {
    background: rgba(59, 130, 246, 0.32) !important;
    color: var(--neon-blue-light) !important;
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.25) !important;
}
.price-input-wrap .price-currency-select {
    background: var(--bg-secondary);
    border-color: var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
}
.price-convert-hint { font-size: 0.72rem; }

/* ── QR Preview ── */
.qr-preview-section { }
.qr-preview-frame {
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.qr-preview-img {
    display: block;
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 4px;
}
.qr-display-client {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    display: inline-block;
}
.qr-display-client img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
}

/* ── Vendor-Client Chat MT Panel ── */
.vc-chat-container {
    position: relative;
    overflow: visible;
}
.vc-chat-main {
    min-height: 450px;
}
.vc-float-request {
    position: absolute;
    right: 12px;
    bottom: 72px;
    z-index: 5;
    border-radius: 50px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    white-space: nowrap;
}
.vc-mt-panel {
    position: absolute;
    right: -280px;
    top: 60px;
    width: 260px;
    z-index: 10;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.vc-mt-panel.open {
    right: 12px;
    opacity: 1;
    pointer-events: auto;
}
.vc-mt-panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--neon-blue-light);
}
.vc-mt-panel .form-control {
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.vc-mt-toggle {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 6;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
}
.vc-mt-request-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.85rem;
}
.vc-mt-info-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.82rem;
}
.vc-mt-info-title {
    font-weight: 700;
    color: var(--profit);
    margin-bottom: 8px;
    font-size: 0.8rem;
}
.vc-mt-info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vc-mt-info-row:last-child { border-bottom: none; }
.vc-mt-info-row span { color: var(--text-muted); font-size: 0.75rem; }
.vc-mt-info-row strong { font-size: 0.78rem; word-break: break-all; text-align: right; }

.vc-receipt-card,
.vc-receipt-preview {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.vc-receipt-title {
    font-weight: 700;
    color: var(--neon-blue-light);
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.vc-receipt-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}
.vc-receipt-img:hover { transform: scale(1.02); }

.ea-calendar-select { width: auto; min-width: 200px; }
.price-edit-wrap { min-width: 200px; max-width: 100%; }

img, video, svg { max-width: 100%; height: auto; }
pre, code { max-width: 100%; overflow-x: auto; }
.table { overflow-wrap: anywhere; }

@media (max-width: 992px) {
    .vc-mt-panel {
        position: fixed;
        right: 16px;
        left: 16px;
        top: auto;
        bottom: 80px;
        width: auto;
    }
    .vc-mt-panel:not(.open) {
        right: 16px;
        bottom: -300px;
    }
}

.table-success-subtle {
    background: rgba(16, 185, 129, 0.08) !important;
}
.table-success-subtle:hover {
    background: rgba(16, 185, 129, 0.12) !important;
}

@media (max-width: 480px) {
    .chat-widget { bottom: 16px; right: 16px; }
}

/* Hamburger panel — kanan, satu barisan sederhana */
@media (max-width: 1199.98px) {
    .navbar-glass > .container {
        position: relative;
    }
    .nav-hamburger-wrap {
        flex-grow: 0;
        margin-left: auto;
        position: relative;
    }
    .navbar-glass .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        flex-basis: auto !important;
        width: min(280px, calc(100vw - 1.5rem));
        padding: 0.65rem;
        margin: 0;
        border: 1px solid rgba(59, 130, 246, 0.35);
        border-radius: 12px;
        background: rgba(10, 15, 29, 0.98);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(59, 130, 246, 0.12);
        max-height: min(75vh, 640px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1055;
        transform-origin: top right;
    }
    .navbar-glass .navbar-collapse::before {
        content: '';
        position: absolute;
        top: -12px;
        right: 0;
        width: 56px;
        height: 12px;
    }
    .navbar-glass .navbar-collapse.collapsing,
    .navbar-glass .navbar-collapse.show {
        animation: hamburgerDrop 0.22s ease;
    }
    .navbar-glass .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 0.35rem !important;
    }
    .navbar-glass .navbar-nav .nav-item { width: 100%; }
    .navbar-glass .navbar-nav .btn.nav-neon-btn,
    .navbar-glass .nav-link-custom {
        width: 100%;
        display: flex !important;
        justify-content: center;
        padding: 0.55rem 0.85rem !important;
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        margin: 0;
        border-radius: 8px !important;
    }
    .navbar-glass .navbar-nav .btn.nav-neon-btn:hover,
    .navbar-glass .navbar-nav .btn.nav-neon-btn:focus-visible {
        box-shadow: var(--neon-glow);
    }
    .navbar-glass .lang-toggle,
    .navbar-glass .currency-toggle {
        width: 100%;
        display: flex;
        gap: 6px;
        margin: 0;
        justify-content: stretch;
    }
    .navbar-glass .lang-toggle .btn,
    .navbar-glass .currency-toggle .btn {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0 !important;
        height: 34px !important;
        line-height: 32px !important;
        font-size: 0.75rem !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
    }
    .navbar-glass .lang-toggle .btn:hover,
    .navbar-glass .currency-toggle .btn:hover {
        box-shadow: var(--neon-glow) !important;
    }
}

@keyframes hamburgerDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive / Mobile ── */
@media (max-width: 768px) {
    html { overflow-x: clip; }
    body {
        overflow-x: clip;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1, .display-4 { font-size: 1.75rem !important; line-height: 1.25; }
    h2 { font-size: 1.35rem !important; }
    h3 { font-size: 1.2rem !important; }
    .lead { font-size: 1rem; }

    .hero-section { padding: 2.5rem 0 1.75rem; }
    .stat-card { padding: 0.9rem; }
    .stat-value { font-size: 1.15rem; }
    .stat-label { font-size: 0.72rem; }

    .btn-lg { padding: 0.55rem 1rem; font-size: 0.95rem; }

    input.form-control, select.form-select, textarea.form-control {
        font-size: 16px !important;
    }

    .ea-calendar-select { width: 100%; min-width: 0; }
    .price-edit-wrap { min-width: 0; width: 100%; }

    .calendar-wrapper {
        padding: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-header-row, .calendar-grid { gap: 4px; }
    .calendar-day {
        min-height: 54px;
        padding: 0.28rem 0.2rem;
        border-radius: 6px;
    }
    .calendar-day:hover:not(.outside) { transform: none; }
    .day-name { font-size: 0.65rem; padding: 0.2rem 0; }
    .day-number { font-size: 0.7rem; }
    .day-pnl { font-size: 0.6rem; }
    .day-note { font-size: 0.55rem; }
    .day-tx-count { font-size: 0.5rem; }
    .calendar-jump-field { min-width: 0; flex: 1 1 140px; }
    .pnl-chart-wrap { height: 170px; }
    .weekday-bars { gap: 0.3rem; min-height: 130px; }
    .weekday-track { height: 80px; }
    .weekday-val { font-size: 0.58rem; }
    .period-bars[data-period="day"] { min-width: 560px; }

    .marketplace-grid-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .marketplace-sort { width: 100%; }
    .marketplace-sort .btn { flex: 1 1 auto; }

    .admin-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 0.5rem 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
    .admin-sidebar .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.85rem;
    }

    .chat-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: none;
        height: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }
    .chat-messages { max-height: none; flex: 1; }

    .table { font-size: 0.82rem; }
    .modal-dialog { margin: 0.5rem; }

    .footer-glass { padding-bottom: 1.5rem; }
}

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