#dashboard-page,
#admin-page {
    background: #0f0f1a;
    min-height: 100vh;
    padding-top: 60px;
}

.dash-layout {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
}

/* Sidebar */
.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

/* Expand button */
.sidebar-expand-btn {
    display: none;
    position: relative;
    margin: 0 auto 20px auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 101;
    transition: all 0.05s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-expand-btn:hover {
    background: var(--ember);
    color: #fff;
    border-color: var(--ember);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 61, 0, 0.25);
}

/* Sidebar overlay for mobile expanded state */
.dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
}

.dash-sidebar-overlay.open {
    display: block;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .sidebar-expand-btn {
        display: flex;
    }

    .dash-sidebar {
        width: 64px;
        padding: 12px 0;
    }

    .dash-sidebar .dash-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .dash-sidebar .dash-name,
    .dash-sidebar .dash-role,
    .dash-sidebar .sidebar-label {
        display: none;
    }

    .dash-sidebar .sidebar-item {
        justify-content: center;
        padding: 12px 0;
        gap: 0;
    }

    .dash-sidebar .sidebar-item span:not(.si-icon),
    .dash-sidebar .sidebar-item .si-badge {
        display: none;
    }

    .dash-sidebar .sidebar-section {
        padding: 0 8px;
    }

    /* Expanded state */
    .dash-sidebar.expanded {
        width: 260px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        padding: 80px 0 24px;
        z-index: 200;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }

    .dash-sidebar.expanded .dash-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .dash-sidebar.expanded .dash-name,
    .dash-sidebar.expanded .dash-role,
    .dash-sidebar.expanded .sidebar-label {
        display: block;
    }

    .dash-sidebar.expanded .sidebar-item {
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 10px;
    }

    .dash-sidebar.expanded .sidebar-item span:not(.si-icon),
    .dash-sidebar.expanded .sidebar-item .si-badge {
        display: inline;
    }

    .dash-sidebar.expanded .sidebar-section {
        padding: 0 12px;
    }

    .dash-sidebar.expanded .sidebar-expand-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
    }
}

/* Light Mode Dashboard Overrides */
body.light-mode #dashboard-page,
body.light-mode #admin-page {
    background: #fdfcf9;
}

body.light-mode .chart-card,
body.light-mode .kpi,
body.light-mode .table-wrap,
body.light-mode .post-form,
body.light-mode .form-field input,
body.light-mode .form-field select,
body.light-mode .form-field textarea {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: var(--ink);
}

body.light-mode .form-field label {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .dash-sidebar {
    background: rgba(245, 240, 232, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .dash-name,
body.light-mode .sidebar-item {
    color: var(--ink);
}

body.light-mode .dash-role {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .sidebar-expand-btn {
    background: #fff;
    color: var(--ink);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .sidebar-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .sidebar-item.active {
    background: rgba(255, 61, 0, 0.08);
}

.dash-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--paper);
    background: linear-gradient(135deg, var(--ember), var(--violet));
}

.dash-name {
    text-align: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--paper);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.dash-role {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.sidebar-section {
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.25);
    padding: 8px 12px 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.05s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--paper);
}

.sidebar-item.active {
    background: rgba(255, 61, 0, 0.15);
    color: var(--ember);
}

.sidebar-item .si-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.si-badge {
    margin-left: auto;
    background: var(--ember);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
}

.dash-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.dash-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    will-change: opacity, transform;
}

.dash-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dash-heading {
    font-family: var(--font-display);
    font-size: 44px;
    color: var(--paper);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.dash-subheading {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* KPI Cards — Modernized */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.05s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.05s, box-shadow 0.05s;
}

.kpi:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 61, 0, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kpi-color, var(--ember)), transparent);
    border-radius: 14px 14px 0 0;
}

.kpi-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1;
    color: var(--paper);
    letter-spacing: 1px;
}

.kpi-delta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--sage);
    margin-top: 8px;
}

.kpi-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 30px;
    opacity: 0.12;
}

/* Charts — Modernized */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.05s;
}

.chart-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.chart-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Add specialized header/title classes for analytics */
.chart-card-header {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.chart-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-card-title {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--paper);
}

body.light-mode .chart-card-header {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .chart-card-title {
    color: var(--ink);
}

body.light-mode .chart-card {
    border-color: rgba(0, 0, 0, 0.08);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
}

.bar {
    flex: 1;
    background: var(--ember);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    transition: opacity 0.05s;
    position: relative;
    min-height: 4px;
}

.bar:hover {
    opacity: 1;
}

.bar-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 8px;
}

.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
}

.spark-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(to top, var(--violet), var(--sky));
    opacity: 0.8;
    min-height: 4px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.donut {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(var(--ember) 0% 35%, var(--violet) 35% 55%, var(--gold) 55% 70%, var(--sage) 70% 85%, var(--sky) 85% 100%);
    position: relative;
}

.donut::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: var(--charcoal);
    border-radius: 50%;
}

.donut-legend {
    flex: 1;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.dl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tables */
.table-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.table-ttl {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--paper);
    letter-spacing: 2px;
}

.table-search {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper);
    outline: none;
    width: 180px;
}

.table-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

thead th {
    padding: 12px 20px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.05s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

td.highlight {
    color: var(--paper);
    font-weight: 700;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.status-pill.active {
    background: rgba(126, 184, 154, 0.2);
    color: var(--sage);
}

.status-pill.pending {
    background: rgba(245, 197, 24, 0.2);
    color: var(--gold);
}

.status-pill.suspended {
    background: rgba(255, 61, 0, 0.2);
    color: var(--ember);
}

.status-pill.sold {
    background: rgba(56, 189, 248, 0.2);
    color: var(--sky);
}

/* Post Form */
.post-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    position: relative;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--ember);
    background: rgba(255, 61, 0, 0.07);
}

.upload-zone.drag-over {
    border-style: solid;
    transform: scale(1.01);
}

.upload-zone label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    pointer-events: none;
}

.upload-text {
    font-family: var(--font-display);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 6px;
    pointer-events: none;
}

.upload-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Dashboard Buttons */
.dash-btn {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.05s;
}

.dash-btn.primary {
    background: var(--ember);
    color: #fff;
}

.dash-btn.primary:hover {
    background: #ff6030;
    transform: translateY(-2px);
}

.dash-btn.ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-btn.ghost:hover {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.4);
}

.dash-btn.danger {
    background: rgba(255, 61, 0, 0.2);
    color: var(--ember);
    border: 1px solid rgba(255, 61, 0, 0.3);
}

.dash-btn.danger:hover {
    background: var(--ember);
    color: #fff;
}

/* Followers Grid */
.followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.follower-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.05s cubic-bezier(0.4, 0, 0.2, 1);
}

.follower-card:hover {
    border-color: rgba(255, 61, 0, 0.3);
    background: rgba(255, 61, 0, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--rose));
}

.fc-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--paper);
    font-weight: 700;
}

.fc-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

/* Messages */
.msg-layout {
    display: flex;
    gap: 16px;
    height: 500px;
}

.msg-list {
    width: 280px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.msg-item {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.05s;
    position: relative;
}

.msg-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.msg-item.active {
    background: rgba(255, 61, 0, 0.1);
    border-left: 3px solid var(--ember);
}

.msg-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    color: #fff;
}

.msg-info .mn {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper);
    font-weight: 700;
}

.msg-info .mp {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.msg-unread {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
}

.msg-chat {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.msg-chat-head {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--paper);
    letter-spacing: 2px;
}

.msg-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble-wrap {
    display: flex;
    gap: 8px;
}

.bubble-wrap.mine {
    flex-direction: row-reverse;
}

.bubble-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 12px;
    color: #fff;
}

.bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
}

.bubble.them {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px 12px 12px 12px;
}

.bubble.me {
    background: var(--ember);
    color: #fff;
    border-radius: 12px 4px 12px 12px;
}

.msg-chat-input {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 8px;
}

.msg-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--paper);
    outline: none;
}

.msg-send {
    padding: 10px 20px;
    background: var(--ember);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
}

/* Withdraw */
.withdraw-card {
    background: linear-gradient(135deg, rgba(255, 61, 0, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 61, 0, 0.3);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.withdraw-amount {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--gold);
    line-height: 1;
}

.withdraw-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
    margin-left: 4px;
}

/* Admin Specific */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid var(--ember);
    background: rgba(255, 61, 0, 0.1);
}

.admin-alert .aa-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.admin-alert .aa-icon {
    font-size: 18px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.qa-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.05s;
}

.qa-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.qa-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.qa-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 24px 0;
}

.progress-row {
    margin-bottom: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pl-name {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pl-val {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--paper);
}

.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

/* Wallet Section */
.wallet-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-balance {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--sky);
    line-height: 1;
}

.wallet-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Bidding Section */
.bid-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.05s;
}

.bid-card.top-spot {
    border-color: rgba(245, 197, 24, 0.3);
    background: rgba(245, 197, 24, 0.05);
}

.bid-position {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--gold);
    width: 50px;
    text-align: center;
}

.bid-info {
    flex: 1;
    padding: 0 16px;
}

.bid-artwork {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--paper);
    font-weight: 700;
}

.bid-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.bid-timer {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--ember);
}

/* Blog Admin */
.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.05s;
}

.blog-card:hover {
    border-color: var(--ember);
    background: rgba(255, 61, 0, 0.05);
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--paper);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    line-height: 1.5;
}

/* Mobile sidebar toggle */
.dash-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 950;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(255, 61, 0, 0.4);
}

/* ===================== IMAGE UPLOAD PREVIEWS ===================== */
.img-preview-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.1s;
}

.img-preview-thumb:hover {
    transform: scale(1.05);
}

/* Text gold helper */
.text-gold {
    color: var(--gold);
}

.text-sage {
    color: var(--sage);
}

/* Watermark Before/After Preview */
#wm-preview-section {
    display: none;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.wm-preview-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wm-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wm-before,
.wm-after {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.wm-before {
    background: linear-gradient(135deg, rgba(255, 61, 0, 0.08), rgba(139, 92, 246, 0.08));
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.wm-after {
    background: linear-gradient(135deg, rgba(126, 184, 154, 0.08), rgba(56, 189, 248, 0.08));
}

.wm-preview-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 20px;
}

.wm-before .wm-preview-label {
    background: rgba(255, 61, 0, 0.2);
    color: var(--ember);
}

.wm-after .wm-preview-label {
    background: rgba(126, 184, 154, 0.2);
    color: var(--sage);
}

.wm-overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wm-sample-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    transform: rotate(-15deg);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ===================== LIGHT MODE — COMPLETE OVERRIDES ===================== */
body.light-mode #dashboard-page,
body.light-mode #admin-page {
    background: #f1f5f9;
}

/* Sidebar */
body.light-mode .dash-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid #e2e8f0;
}

body.light-mode .sidebar-item {
    color: #475569;
}

body.light-mode .sidebar-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.light-mode .sidebar-item.active {
    background: rgba(255, 61, 0, 0.1);
    color: var(--ember);
}

body.light-mode .sidebar-label {
    color: #94a3b8;
}

body.light-mode .si-badge {
    background: var(--ember);
    color: #fff;
}

/* Text elements */
body.light-mode .dash-name,
body.light-mode .dash-heading,
body.light-mode .table-ttl,
body.light-mode .msg-chat-head,
body.light-mode .bid-artwork,
body.light-mode .fc-name,
body.light-mode .msg-info .mn {
    color: #0f172a;
}

body.light-mode .dash-role,
body.light-mode .dash-subheading,
body.light-mode .kpi-label,
body.light-mode .chart-title,
body.light-mode .bar-label,
body.light-mode .withdraw-label,
body.light-mode .bid-meta,
body.light-mode .fc-meta,
body.light-mode .msg-info .mp,
body.light-mode .toggle-row .ts {
    color: #64748b;
}

body.light-mode .kpi-value,
body.light-mode .withdraw-amount {
    color: #1e293b;
}

body.light-mode .kpi-delta {
    color: #059669;
}

body.light-mode .bid-timer {
    color: var(--ember);
}

body.light-mode .toggle-row .tl {
    color: #334155;
}

body.light-mode td {
    color: #475569;
}

body.light-mode td.highlight {
    color: #0f172a;
}

body.light-mode thead th {
    color: #94a3b8;
}

body.light-mode tbody tr {
    border-bottom-color: #f1f5f9;
}

body.light-mode tbody tr:hover {
    background: #f8fafc;
}

/* Cards & containers */
body.light-mode .kpi,
body.light-mode .chart-card,
body.light-mode .table-wrap,
body.light-mode .post-form,
body.light-mode .withdraw-card {
    background: #fff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.light-mode .follower-card {
    background: #fff;
    border-color: #e2e8f0;
}

body.light-mode .follower-card:hover {
    border-color: var(--ember);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Messages */
body.light-mode .msg-list,
body.light-mode .msg-chat {
    background: #fff;
    border-color: #e2e8f0;
}

body.light-mode .msg-item {
    border-bottom-color: #f1f5f9;
}

body.light-mode .msg-item:hover {
    background: #f8fafc;
}

body.light-mode .msg-item.active {
    background: rgba(255, 61, 0, 0.06);
}

body.light-mode .msg-chat-head {
    border-bottom-color: #e2e8f0;
}

body.light-mode .bubble.them {
    background: #f1f5f9;
    color: #334155;
}

body.light-mode .msg-input {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.light-mode .msg-chat-input {
    border-top-color: #e2e8f0;
}

/* Bid cards */
body.light-mode .bid-card {
    background: #fff;
    border-color: #e2e8f0;
}

body.light-mode .bid-card.top-spot {
    border-left-color: var(--ember);
}

body.light-mode .featured-bid-card {
    background: #fff !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .featured-bid-card .fbc-name {
    color: #0f172a !important;
}

body.light-mode .featured-bid-card .fbc-handle {
    color: #64748b !important;
}

body.light-mode .featured-bid-card.empty-slot {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .featured-bid-card.empty-slot .fbc-name,
body.light-mode .featured-bid-card.empty-slot .fbc-handle {
    color: #94a3b8 !important;
}

body.light-mode .featured-bid-card.empty-slot .fbc-avatar {
    background: #e2e8f0 !important;
    color: #64748b !important;
}


/* Forms */
body.light-mode .dark-field input,
body.light-mode .dark-field select,
body.light-mode .dark-field textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.light-mode .dark-field label {
    color: #475569;
}

body.light-mode .upload-zone {
    border-color: #cbd5e1;
}

body.light-mode .upload-zone:hover {
    border-color: var(--ember);
    background: rgba(255, 61, 0, 0.03);
}

body.light-mode .upload-text {
    color: #475569;
}

body.light-mode .section-divider {
    border-color: #e2e8f0;
}

/* Dash main scrollbar */
body.light-mode .dash-main {
    scrollbar-color: #cbd5e1 transparent;
}