/* ==========================================================================
   ZODPLAY ADMIN PANEL - INSPIRED BY LANDING PAGE LUXURY DARK DESIGN SYSTEM
   Celestial Obsidian Theme: #000000 / #040508 / #090B10 / #0E1118
   Fonts: Outfit (Headings) + Plus Jakarta Sans (Body) + JetBrains Mono (Codes)
   Atmospheric Violet-Indigo Radiance, Contour Hairlines, Specular Glass Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

:root {
    --bg-black: #000000;
    --bg-page: #040508;
    --bg-sidebar: #07080e;
    --bg-card: #090b10;
    --bg-card-elevated: #0e1118;
    --bg-card-hover: #131722;
    --bg-input: #0d1017;
    --bg-pill: #141724;

    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
    --border-purple: rgba(139, 92, 246, 0.35);

    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-purple: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --accent-cyan: #38bdf8;
    --accent-rose: #f43f5e;

    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --purple-glow: rgba(139, 92, 246, 0.38);

    --sidebar-width: 250px;
    --radius-full: 9999px;
    --radius-card: 20px;
    --radius-btn: 12px;
    --radius-inner: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.01em;
}

/* Atmospheric Horizon & Celestial Background (matching landing.css) */
.admin-glow-top {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    height: 480px;
    background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.22) 0%, rgba(99, 102, 241, 0.1) 45%, transparent 70%);
    filter: blur(85px);
    z-index: 0;
    pointer-events: none;
}

.admin-glow-bottom {
    position: fixed;
    bottom: -150px;
    right: 5%;
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    filter: blur(95px);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   Left Navigation Sidebar
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-hairline);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 20px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--purple-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--purple-glow);
    color: #fff;
    flex-shrink: 0;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.3px;
}

.brand-badge {
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1px;
}

.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 12px 12px 6px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-inner);
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item a:hover {
    background: var(--bg-card-hover);
    color: var(--text-pure);
    border-color: var(--border-hairline);
}

.nav-item.active a {
    background: var(--bg-pill);
    color: var(--text-pure);
    border-color: var(--border-purple);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.22);
}

.nav-item.active a .nav-icon {
    color: #c4b5fd;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border-hairline);
}

/* ==========================================================================
   Main Wrapper & Topbar
   ========================================================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(4, 5, 8, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-search-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    padding: 5px 6px 5px 16px;
    width: 360px;
    transition: all 0.2s ease;
}

.topbar-search-wrap:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
    background: var(--bg-card-elevated);
}

.topbar-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    flex: 1;
    margin-left: 10px;
}

.topbar-search-input::placeholder {
    color: var(--text-muted);
}

.topbar-search-btn {
    background: #141724;
    border: 1px solid var(--border-hairline);
    color: #cbd5e1;
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-search-btn:hover {
    color: #ffffff;
    background: #1e2236;
    border-color: rgba(255, 255, 255, 0.16);
}

.topbar-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}

.topbar-icon-pill:hover {
    color: #ffffff;
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.topbar-badge-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.topbar-avatar-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Content Body & Page Header
   ========================================================================== */
.content-body {
    padding: 32px 36px 60px;
    flex: 1;
}

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 18px;
}

.dashboard-title-group h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.5px;
}

.dashboard-title-group p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-inner);
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.control-pill:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    color: #fff;
}

/* Purple Glowing Button matching landing.css */
.btn-primary-purple {
    background: var(--purple-gradient);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px var(--purple-glow);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-primary-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
}

/* ==========================================================================
   4 Metric Cards Grid (Matching Landing Page Specular Cards)
   ========================================================================= */
.metrics-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .metrics-quad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .metrics-quad-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.metric-card-box:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.metric-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-card-dots {
    color: var(--text-muted);
    font-size: 18px;
    letter-spacing: 2px;
}

.metric-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.metric-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-top: 10px;
}

.metric-card-trend.cyan {
    color: var(--accent-cyan);
}

/* ==========================================================================
   Visual Analytics Duo Grid
   ========================================================================= */
.analytics-duo-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1080px) {
    .analytics-duo-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-pure);
}

.panel-pill-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-inner);
    font-size: 12px;
    font-weight: 600;
}

/* Bar Chart Widget */
.chart-container-flex {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 30px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    min-width: 32px;
}

.chart-bars-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 185px;
    padding: 10px 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    position: relative;
}

.chart-bar-pillar {
    width: 100%;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.75) 0%, rgba(30, 20, 50, 0.3) 100%);
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar-pillar:hover, .chart-bar-pillar.active {
    background: var(--purple-gradient);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
    transform: scaleY(1.02);
}

.chart-bar-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Floating Tooltip Pill */
.bar-tooltip-wrap {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    margin-bottom: 8px;
}

.bar-tooltip-card {
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    padding: 10px 14px;
    white-space: nowrap;
}

.bar-tooltip-date {
    font-size: 11px;
    color: #c4b5fd;
    font-weight: 700;
    margin-bottom: 3px;
}

.bar-tooltip-row {
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.bar-tooltip-line {
    width: 2px;
    height: 12px;
    border-left: 2px dashed rgba(139, 92, 246, 0.7);
}

/* Donut Ring Chart */
.donut-widget-body {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 0;
}

.donut-chart-svg-wrap {
    position: relative;
    width: 145px;
    height: 145px;
    flex-shrink: 0;
}

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

.donut-center-number {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.donut-center-sub {
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}

.donut-legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.donut-legend-tag {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #cbd5e1;
    font-weight: 600;
}

.donut-color-box {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.donut-legend-count {
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.donut-footer-btn {
    width: 100%;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    padding: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
}

.donut-footer-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

/* ==========================================================================
   Bottom Data Table Card
   ========================================================================== */
.card-table {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-pure);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: var(--bg-card-elevated);
    padding: 14px 24px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-hairline);
}

td {
    padding: 18px 24px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Creator Profile in Table */
.creator-row-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.creator-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.creator-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-meta-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.creator-meta-channel {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Status Badges */
.status-dot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-dot-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-dot-pill.inactive {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

/* Copy Link Pill */
.copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    border-radius: var(--radius-inner);
    color: #c4b5fd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-pill:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

/* App Tag Pills */
.app-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-inner);
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 2px;
}

.app-tag-code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Action Icon Buttons */
.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-inner);
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-icon-btn:hover {
    color: #ffffff;
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.action-icon-btn.danger:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--purple-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--purple-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-hairline);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   Modal Dialogs & Form Inputs
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-hairline);
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
}

.modal-close {
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #ffffff;
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #cbd5e1;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-inner);
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-purple);
    background: #121622;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.form-textarea {
    resize: vertical;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Admin Light Theme Styles
   ========================================================================== */
body.light-theme {
    --bg-black: #f8fafc;
    --bg-page: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-elevated: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    --bg-pill: #ede9fe;

    --border-hairline: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(0, 0, 0, 0.16);
    --border-purple: rgba(139, 92, 246, 0.4);

    --text-pure: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

body.light-theme .admin-glow-top {
    background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.04) 45%, transparent 70%);
}

body.light-theme .topbar {
    background: rgba(255, 255, 255, 0.85);
}

body.light-theme th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

body.light-theme td {
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .metric-card-box,
body.light-theme .panel-card,
body.light-theme .card-table {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .topbar-search-btn {
    background: #ede9fe;
    color: #6d28d9;
    border-color: rgba(109, 40, 217, 0.2);
}

body.light-theme .modal-card {
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

body.light-theme .modal-header h3 {
    color: #0f172a;
}

body.light-theme .form-label {
    color: #334155;
}

body.light-theme .form-input,
body.light-theme .form-select,
body.light-theme .form-textarea {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .donut-footer-btn {
    background: #f1f5f9;
    color: #1e293b;
}

body.light-theme .donut-footer-btn:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   Creator App Breakdown & Detail View Styles
   ========================================================================== */
.creator-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.creator-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 50%, #10b981 100%);
}

.creator-profile-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.creator-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px var(--purple-glow);
    overflow: hidden;
}

.creator-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.creator-detail-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-detail-handle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.creator-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-breakdown {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    padding: 6px 12px;
    border-radius: var(--radius-inner);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-breakdown:hover {
    background: var(--purple-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px var(--purple-glow);
    transform: translateY(-1px);
}

.progress-track-mini {
    width: 90px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-mini {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.app-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .creator-detail-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .creator-detail-name {
    color: #0f172a;
}

body.light-theme .creator-detail-handle {
    color: #64748b;
}

body.light-theme .btn-breakdown {
    background: #ede9fe;
    border-color: rgba(109, 40, 217, 0.25);
    color: #6d28d9;
}

body.light-theme .btn-breakdown:hover {
    background: var(--purple-gradient);
    color: #ffffff;
}

body.light-theme .progress-track-mini {
    background: #e2e8f0;
}


