/* ====================================================================
   SYNDIQO DASHBOARD -- SYNDICATION CONTROL CENTER
   Aesthetic: Dark Industrial Command Center
   v3.0 -- Clean rebuild. Readability fixed. Zero syntax errors.
   Date: 2026-02-27
   ==================================================================== */

/* --- RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- DESIGN TOKENS --- */
:root {
    /* Backgrounds */
    --bg-base: #080A0C;
    --bg-surface: #0E1117;
    --bg-card: #131820;
    --bg-elevated: #1A2230;

    /* Borders */
    --border: #1E2A3A;
    --border-bright: #2A3A50;

    /* Text - READABILITY PRIORITY */
    --text-primary: #EEF1F7;
    --text-secondary: #B8C4D6;
    --text-muted: #8999B0;
    --text-dim: #566A82;

    /* Accent Colors */
    --accent: #00D4FF;
    --accent-dim: rgba(0, 212, 255, 0.12);
    --accent-glow: rgba(0, 212, 255, 0.25);
    --gold: #FFB800;
    --gold-dim: rgba(255, 184, 0, 0.12);
    --green: #00FF88;
    --green-dim: rgba(0, 255, 136, 0.10);
    --red: #FF3B5C;
    --red-dim: rgba(255, 59, 92, 0.12);
    --orange: #FF7B2C;

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --sidebar-w: 260px;
    --radius: 8px;
    --radius-lg: 14px;
}

/* --- BASE --- */
html {
    font-size: 14px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 3px;
}

/* ====================================================================
   SIDEBAR
   ==================================================================== */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1;
}

.brand-phase {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 3px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-section-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    padding: 16px 20px 6px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    margin: 1px 0;
}

.nav-item svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--accent-dim);
    border-left-color: var(--accent);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-left-color: var(--accent);
    font-weight: 500;
}

.nav-item.active svg {
    opacity: 1;
    stroke: var(--accent);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.system-phase {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.logout-btn {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: color 0.15s;
}

.logout-btn:hover {
    color: var(--red);
}

/* ====================================================================
   MAIN CONTENT
   ==================================================================== */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

/* ====================================================================
   SIDEBAR TOGGLE BUTTON
   ==================================================================== */
.sidebar-toggle {
    position: fixed;
    top: 30px;
    left: 248px;
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    color: var(--text-muted);
    transition: left 0.2s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.sidebar-toggle svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

/* ====================================================================
   SIDEBAR COLLAPSED STATE
   ==================================================================== */
body.sidebar-collapsed .sidebar {
    width: 60px;
}
body.sidebar-collapsed .main-content {
    margin-left: 60px;
}
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-section-label,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .system-phase,
body.sidebar-collapsed .logout-btn {
    display: none;
}
body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 24px 10px;
}
body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
}
body.sidebar-collapsed .sidebar-footer {
    padding: 16px 10px;
    display: flex;
    justify-content: center;
}
body.sidebar-collapsed .sidebar-toggle {
    left: 48px;
}
body.sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* ====================================================================
   TOPBAR
   ==================================================================== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1;
}

.page-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.status-ok {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-warn {
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.status-error {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 59, 92, 0.2);
}

.topbar-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ====================================================================
   CONTENT AREA
   ==================================================================== */
.content-area {
    padding: 32px;
    flex: 1;
}

/* ====================================================================
   STATS GRID
   ==================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card:hover {
    border-color: var(--border-bright);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.accent::before {
    opacity: 1;
    background: var(--accent);
}

.stat-card.gold::before {
    opacity: 1;
    background: var(--gold);
}

.stat-card.green::before {
    opacity: 1;
    background: var(--green);
}

.stat-card.red::before {
    opacity: 1;
    background: var(--red);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 38px;
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1;
}

.stat-value.accent {
    color: var(--accent);
}

.stat-value.gold {
    color: var(--gold);
}

.stat-value.green {
    color: var(--green);
}

.stat-value.red {
    color: var(--red);
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: var(--font-mono);
}

/* ====================================================================
   CARDS AND PANELS
   ==================================================================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.panel-body {
    padding: 24px;
}

.empty-state {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* ====================================================================
   TABLES
   ==================================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead tr {
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
    font-size: 13px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-elevated);
}

.data-table .mono {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

/* ====================================================================
   BADGES AND TAGS
   ==================================================================== */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-sent {
    background: var(--green-dim);
    color: var(--green);
}

.badge-pending {
    background: var(--gold-dim);
    color: var(--gold);
}

.badge-failed {
    background: var(--red-dim);
    color: var(--red);
}

.badge-skipped {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.badge-active {
    background: var(--green-dim);
    color: var(--green);
}

.badge-inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.badge-platform {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ====================================================================
   PLATFORM ICONS ROW
   ==================================================================== */
.platform-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.platform-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.platform-tag.on {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.15s ease;
    letter-spacing: 0.2px;
}

.btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-base);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #20DCFF;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-bright);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 59, 92, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 59, 92, 0.2);
}

.btn-gold {
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.btn-gold:hover {
    background: rgba(255, 184, 0, 0.2);
}

.btn-sm {
    padding: 6px 13px;
    font-size: 12px;
}

.btn-admin-full {
    width: 100%;
    justify-content: center;
}

/* ====================================================================
   ADMIN CONTROLS GRID
   ==================================================================== */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-grid form {
    display: contents;
}

.admin-grid .btn {
    padding: 12px 16px;
    font-size: 12px;
}

/* ====================================================================
   FORMS
   ==================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color 0.15s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238999B0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* ====================================================================
   SELECT — GLOBAL DARK THEME ENFORCEMENT
   Uses !important to override inline rgba(255,255,255,0.04) backgrounds
   on selects throughout all admin modules. Option elements use literal
   hex values because CSS variables are not reliably honored by browser
   native dropdown renderers.
   ==================================================================== */
select {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}

select option {
    background-color: #1A2230;
    color: #EEF1F7;
}

select optgroup {
    background-color: #131820;
    color: #8999B0;
    font-style: normal;
}

select option:checked,
select option:hover {
    background-color: #0E1117;
    color: #EEF1F7;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ====================================================================
   TOGGLE SWITCHES AND STATUS ROWS
   ==================================================================== */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-label {
    font-size: 14px;
    color: var(--text-primary);
}

.toggle-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
    background: var(--accent);
    transform: translateX(18px);
}

/* ====================================================================
   ACTIVITY FEED
   ==================================================================== */
.activity-feed {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-glow);
}

.activity-dot.red {
    background: var(--red);
    box-shadow: 0 0 8px var(--red-dim);
}

.activity-dot.gold {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold-dim);
}

.activity-dot.green {
    background: var(--green);
    box-shadow: 0 0 8px var(--green-dim);
}

.activity-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ====================================================================
   ALERT BANNERS
   ==================================================================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--text-primary);
}

.alert-warn {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--text-primary);
}

.alert-error {
    background: var(--red-dim);
    border-color: var(--red);
    color: var(--text-primary);
}

.alert-success {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--text-primary);
}

/* ====================================================================
   CODE BLOCKS
   ==================================================================== */
.code-block {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
}

/* ====================================================================
   GRID LAYOUTS
   ==================================================================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

/* ====================================================================
   LOGIN PAGE
   ==================================================================== */
.login-page {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.login-box {
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 14px 14px 0 0;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-mark {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0 auto 14px;
    box-shadow: 0 0 40px var(--accent-glow);
    letter-spacing: 1px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.login-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ====================================================================
   PROGRESS BARS
   ==================================================================== */
.progress-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.progress-fill.gold {
    background: var(--gold);
}

.progress-fill.red {
    background: var(--red);
}

.progress-fill.green {
    background: var(--green);
}

/* ====================================================================
   PAGINATION
   ==================================================================== */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.page-link {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 5px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.page-link:hover,
.page-link.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.3s ease forwards;
}

/* ====================================================================
   UTILITY CLASSES
   ==================================================================== */
.text-accent {
    color: var(--accent);
}

.text-gold {
    color: var(--gold);
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-muted {
    color: var(--text-muted);
}

.text-mono {
    font-family: var(--font-mono);
}

.text-display {
    font-family: var(--font-display);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1200px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .three-col {
        grid-template-columns: 1fr 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .two-col,
    .three-col {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}