:root {
    --sz-primary: #16a34a;
    --sz-neon: #39e67a;
    --sz-accent-blue: #2e86de;
    --sz-accent-orange: #ff7a45;
    --sz-dark: #07090d;
    --sz-card: #121826;
    --sz-card-alt: #1b2333;
    --sz-border: #26304533;
    --sz-text-muted: #94a3b8;
    --sz-gold: #fbbf24;
    --sz-sidebar-w: 230px;

    --sz-glass-bg: rgba(255, 255, 255, 0.055);
    --sz-glass-bg-strong: rgba(255, 255, 255, 0.09);
    --sz-glass-border: rgba(255, 255, 255, 0.12);
    --sz-glass-blur: 20px;
    /* Dialogs/modals float directly over whatever the page happens to show
       behind them (colorful stat cards, blobs, images) -- a much darker,
       nearly-opaque background here keeps their text readable regardless of
       what's underneath, unlike the lighter --sz-glass-bg used for cards
       that sit inline in the normal dark page flow. */
    --sz-modal-bg: rgba(7, 9, 13, 0.94);

    /* Re-tint Bootstrap's own dark-mode variables to match the brand
       instead of leaving its generic gray dark theme. */
    --bs-body-bg: var(--sz-dark);
    --bs-body-color: #f1f5f9;
    --bs-border-color: var(--sz-glass-border);
    --bs-primary: var(--sz-primary);
    --bs-primary-rgb: 22, 163, 74;
    --bs-link-color: var(--sz-neon);
    --bs-link-hover-color: var(--sz-neon);
    --bs-secondary-color: var(--sz-text-muted);
    --bs-tertiary-bg: var(--sz-card-alt);
}
html, body {
    overflow-x: hidden;
}
body {
    background: var(--sz-dark);
    font-family: "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* ---------------------------------------------------------------
   Deep-dark-glass backdrop -- injected into every page automatically
   by api.js, so it matches the public website and the app's invoice
   screen without having to edit each panel page by hand.
   --------------------------------------------------------------- */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-blobs span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}
.bg-blobs .blob-green { width: 480px; height: 480px; top: -160px; left: -160px; background: var(--sz-neon); }
.bg-blobs .blob-blue { width: 420px; height: 420px; top: 12%; right: -180px; background: var(--sz-accent-blue); }
.bg-blobs .blob-orange { width: 460px; height: 460px; bottom: -200px; right: 8%; background: var(--sz-accent-orange); opacity: 0.18; }

/* Everything else needs to sit above the fixed blob layer. */
.sz-sidebar, .sz-content, .sz-auth-wrap {
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border: 1px solid var(--sz-glass-border);
    border-radius: 16px;
}

.card, .list-group-item {
    background-color: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border-color: var(--sz-glass-border);
}
.modal-content {
    background-color: var(--sz-modal-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border-color: var(--sz-glass-border);
    border-radius: 16px;
}
.modal-backdrop {
    --bs-backdrop-opacity: 0.75;
}
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
    --bs-table-color: #f1f5f9;
    --bs-table-striped-color: #f1f5f9;
    --bs-table-border-color: var(--sz-glass-border);
}
.table-responsive {
    background: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border: 1px solid var(--sz-glass-border);
    border-radius: 16px;
    padding: 0.25rem;
}
.bg-white {
    background-color: transparent !important;
}
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--sz-glass-border);
    color: #f1f5f9;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
    border-color: var(--sz-neon);
    box-shadow: 0 0 0 .2rem rgba(57, 230, 122, .2);
}
.form-control::placeholder {
    color: var(--sz-text-muted);
}
.text-muted { color: var(--sz-text-muted) !important; }
.text-dark { color: #f1f5f9 !important; }

.btn-success, .btn-primary {
    background: linear-gradient(135deg, var(--sz-primary), #0f7a38);
    border-color: var(--sz-primary);
    box-shadow: 0 4px 18px rgba(22, 163, 74, .3);
}
.btn-outline-success, .btn-outline-primary {
    color: var(--sz-neon);
    border-color: var(--sz-neon);
    background: rgba(57, 230, 122, .06);
}
.btn-outline-success:hover, .btn-outline-primary:hover {
    background: var(--sz-neon);
    color: #0a0e14;
}
.btn-outline-secondary {
    color: var(--sz-text-muted);
    border-color: var(--sz-glass-border);
    background: rgba(255, 255, 255, .04);
}

.sz-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sz-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border: 1px solid var(--sz-glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(57, 230, 122, .1);
}
.sz-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sz-sidebar-w);
    height: 100vh;
    background: rgba(10, 14, 20, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--sz-glass-border);
    color: #fff;
    padding-top: 1rem;
    overflow-y: auto;
}
.sz-sidebar .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .8rem 1.5rem 1.2rem;
}
.sz-sidebar .brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sz-neon);
}
.sz-sidebar a {
    display: flex;
    align-items: center;
    padding: .65rem 1.2rem;
    color: var(--sz-text-muted);
    text-decoration: none;
    font-size: .95rem;
    border-left: 3px solid transparent;
}
.sz-sidebar a:hover {
    background: rgba(57,230,122,.08);
    color: #fff;
}
.sz-sidebar a.active {
    background: rgba(57,230,122,.12);
    color: var(--sz-neon);
    border-left-color: var(--sz-neon);
}
.sz-content {
    margin-left: var(--sz-sidebar-w);
    padding: 1.5rem 2rem;
}
.sz-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.sz-badge-trial { background: var(--sz-gold); color: #1a1300; }
.sz-badge-active { background: var(--sz-primary); }
.sz-badge-suspended { background: #dc2626; }
.stat-card {
    background: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border: 1px solid var(--sz-glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.stat-card .num { font-size: 1.6rem; font-weight: 700; }
.sz-venue-card {
    border-radius: 14px;
    background: var(--sz-glass-bg);
    -webkit-backdrop-filter: blur(var(--sz-glass-blur));
    backdrop-filter: blur(var(--sz-glass-blur));
    border: 1px solid var(--sz-glass-border);
    transition: transform .15s, border-color .15s, background-color .15s;
}
.sz-venue-card:hover {
    transform: translateY(-3px);
    border-color: var(--sz-neon);
    background: var(--sz-glass-bg-strong);
}
@media (max-width: 768px) {
    .sz-sidebar { width: 100%; height: auto; position: relative; }
    .sz-content { margin-left: 0; }
}

/* ---------------- Smooth global motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
    body { animation: sz-fade-in .35s ease both; }
    .sz-content > * { animation: sz-rise-in .4s ease both; }
    .card, .stat-card, .modal-content {
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
    }
    .card:hover, .stat-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
        background-color: var(--sz-glass-bg-strong);
    }
    .btn {
        transition: transform .12s ease, box-shadow .12s ease, background-color .18s ease, border-color .18s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn:active { transform: scale(.96); }
    .sz-sidebar a {
        transition: background-color .18s ease, color .18s ease, border-color .18s ease;
    }
    .table tbody tr {
        transition: background-color .15s ease;
        animation: sz-row-in .3s ease both;
    }
    .form-control, .form-select {
        transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    }
    .sz-venue-card { animation: sz-rise-in .35s ease both; }
}
@keyframes sz-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sz-rise-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes sz-row-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------------- 3D icons (sidebar nav, brand, bell) ---------------- */
.sz-brand-icon { width: 26px; height: 26px; vertical-align: middle; margin-right: 2px; }
.sz-nav-icon { width: 22px; height: 22px; margin-right: 10px; flex-shrink: 0; }

/* ---------------- Notification bell (sits next to the sidebar brand) ---------------- */
.sz-bell {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sz-glass-bg);
    border: 1px solid var(--sz-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.sz-bell img { width: 22px; height: 22px; }
.sz-bell:hover {
    transform: translateY(-2px);
    border-color: var(--sz-neon);
    background: var(--sz-glass-bg-strong);
}
.sz-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
    .sz-bell-ring { animation: sz-bell-shake 2.2s ease-in-out infinite; }
    .sz-bell-badge:not([hidden]) { animation: sz-badge-pulse 1.6s ease-in-out infinite; }
}
@keyframes sz-bell-shake {
    0%, 80%, 100% { transform: rotate(0); }
    82% { transform: rotate(-12deg); }
    84% { transform: rotate(10deg); }
    86% { transform: rotate(-8deg); }
    88% { transform: rotate(6deg); }
    90% { transform: rotate(0); }
}
@keyframes sz-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); }
    50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}
/* ---------------- Notification read/unread ---------------- */
.sz-notif-unread {
    border-left: 3px solid var(--sz-neon);
    background: rgba(57, 230, 122, .06);
}
.sz-notif-unread .sz-notif-title { font-weight: 700; }
.sz-notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sz-neon);
    margin-right: 6px;
}

/* ------------------------------------------------------------------
   "Premium Gold" plan: golden metallic border, warm dark glass, moving
   sheen, gold text/bullets and a gold call-to-action.
   ------------------------------------------------------------------ */
.plan-gold {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent !important;
    background:
        linear-gradient(160deg, #2c2210 0%, #15110a 55%, #201809 100%) padding-box,
        linear-gradient(135deg, #fff1b8 0%, #e8b647 28%, #a87722 52%, #f6d77a 78%, #c9962f 100%) border-box !important;
    box-shadow: 0 0 0 1px rgba(246, 215, 122, 0.18), 0 22px 60px -14px rgba(232, 182, 71, 0.5);
    transform: translateY(-6px);
    transition: transform .25s, box-shadow .25s;
}
.plan-gold:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 1px rgba(246, 215, 122, 0.35), 0 28px 70px -12px rgba(232, 182, 71, 0.65);
}
.plan-gold.border-success { border-color: transparent !important; box-shadow: 0 0 0 3px rgba(246, 215, 122, 0.55), 0 22px 60px -14px rgba(232, 182, 71, 0.6); }
.plan-gold::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    width: 38%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 236, 170, 0.22), transparent);
    transform: rotate(20deg);
    animation: goldSheen 5.5s ease-in-out infinite;
    pointer-events: none;
}
.plan-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0%, rgba(246, 215, 122, 0.22), transparent 55%);
    pointer-events: none;
}
@keyframes goldSheen { 0%, 55% { left: -70%; } 100% { left: 140%; } }

.plan-gold > *, .plan-gold .card-body { position: relative; z-index: 1; }
.plan-gold h4, .plan-gold h5, .plan-gold .plan-price, .plan-gold .text-success {
    background: linear-gradient(90deg, #fff3c4 0%, #f3c650 45%, #d9a63c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.plan-gold .text-muted { color: rgba(255, 233, 170, 0.7) !important; }
.plan-gold li { color: #fbeec4; }
.plan-gold li .gold-tick { color: #f3c650; margin-right: 4px; }

.plan-gold-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fff1b8, #e8b647 55%, #b8862b);
    color: #2b1d05;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    border-radius: 999px;
    padding: .28rem .8rem;
    box-shadow: 0 4px 14px rgba(232, 182, 71, 0.45);
}
.btn-gold {
    background: linear-gradient(135deg, #fbe79a 0%, #e0ac3e 55%, #b8862b 100%);
    color: #2b1d05 !important;
    font-weight: 700;
    border: 0;
    box-shadow: 0 8px 22px -6px rgba(232, 182, 71, 0.65);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gold:disabled { opacity: .6; }
/* ------------------------------------------------------------------
   "Premium" plan: same rich treatment as Premium Gold, in royal violet.
   ------------------------------------------------------------------ */
.plan-premium {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent !important;
    background:
        linear-gradient(160deg, #1f1538 0%, #0f0b1d 55%, #181031 100%) padding-box,
        linear-gradient(135deg, #efe6ff 0%, #a78bfa 28%, #6d28d9 52%, #c4b5fd 78%, #7c3aed 100%) border-box !important;
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.18), 0 22px 60px -14px rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
    transition: transform .25s, box-shadow .25s;
}
.plan-premium:hover {
    transform: translateY(-9px);
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.35), 0 28px 70px -12px rgba(139, 92, 246, 0.65);
}
.plan-premium.border-success { border-color: transparent !important; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.6), 0 22px 60px -14px rgba(139, 92, 246, 0.6); }
.plan-premium::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    width: 38%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(221, 208, 255, 0.2), transparent);
    transform: rotate(20deg);
    animation: goldSheen 6.5s ease-in-out infinite;
    pointer-events: none;
}
.plan-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0%, rgba(167, 139, 250, 0.24), transparent 55%);
    pointer-events: none;
}
.plan-premium > *, .plan-premium .card-body { position: relative; z-index: 1; }
.plan-premium h4, .plan-premium h5, .plan-premium .plan-price, .plan-premium .text-success {
    background: linear-gradient(90deg, #f3ecff 0%, #b79cff 45%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.plan-premium .text-muted { color: rgba(228, 216, 255, 0.72) !important; }
.plan-premium li { color: #ece4ff; }
.plan-premium li .premium-tick { color: #b79cff; margin-right: 4px; }

.plan-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f1e9ff, #a78bfa 55%, #6d28d9);
    color: #1b0d3f;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    border-radius: 999px;
    padding: .28rem .8rem;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
}
.btn-premium {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 55%, #6d28d9 100%);
    color: #fff !important;
    font-weight: 700;
    border: 0;
    box-shadow: 0 8px 22px -6px rgba(139, 92, 246, 0.7);
}
.btn-premium:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-premium:disabled { opacity: .6; }
/* ------------------------------------------------------------------
   "Basic" plan: same rich treatment as Premium / Premium Gold, in emerald.
   ------------------------------------------------------------------ */
.plan-basic {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent !important;
    background:
        linear-gradient(160deg, #0e2a1f 0%, #08130e 55%, #0c2119 100%) padding-box,
        linear-gradient(135deg, #d5fbe8 0%, #34d399 28%, #059669 52%, #6ee7b7 78%, #10b981 100%) border-box !important;
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.16), 0 22px 60px -14px rgba(16, 185, 129, 0.45);
    transition: transform .25s, box-shadow .25s;
}
.plan-basic:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35), 0 28px 70px -12px rgba(16, 185, 129, 0.6);
}
.plan-basic.border-success { border-color: transparent !important; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.6), 0 22px 60px -14px rgba(16, 185, 129, 0.6); }
.plan-basic::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    width: 38%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(200, 255, 226, 0.18), transparent);
    transform: rotate(20deg);
    animation: goldSheen 7.5s ease-in-out infinite;
    pointer-events: none;
}
.plan-basic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0%, rgba(52, 211, 153, 0.22), transparent 55%);
    pointer-events: none;
}
.plan-basic > *, .plan-basic .card-body { position: relative; z-index: 1; }
.plan-basic h4, .plan-basic h5, .plan-basic .plan-price, .plan-basic .text-success {
    background: linear-gradient(90deg, #eafff4 0%, #6ee7b7 45%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.plan-basic .text-muted { color: rgba(214, 255, 232, 0.72) !important; }
.plan-basic li { color: #e6fff1; }
.plan-basic li .basic-tick { color: #6ee7b7; margin-right: 4px; }

.plan-basic-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d5fbe8, #34d399 55%, #059669);
    color: #04231a;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    border-radius: 999px;
    padding: .28rem .8rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}
.btn-basic {
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 55%, #047857 100%);
    color: #fff !important;
    font-weight: 700;
    border: 0;
    box-shadow: 0 8px 22px -6px rgba(16, 185, 129, 0.65);
}
.btn-basic:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-basic:disabled { opacity: .6; }
/* Native dropdown lists: the select itself is translucent glass, which makes the
   popup options render white-on-white. Give the list a solid dark surface. */
select, .form-select { color-scheme: dark; }
select option, select optgroup, .form-select option {
    background-color: #121826;
    color: #f1f5f9;
}
select option:checked, select option:hover { background-color: #16a34a; color: #fff; }
