/* ============================================================
   DPLAN Event Manager — Global Styles
   Premium theme with light/dark mode, gold accents,
   glassmorphism, and smooth micro-animations.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ======================== LIGHT MODE (default) ======================== */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-surface: rgba(0, 0, 0, 0.02);
    --bg-surface-hover: rgba(0, 0, 0, 0.04);

    --border-primary: rgba(212, 175, 55, 0.25);
    --border-secondary: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-input: rgba(0, 0, 0, 0.15);

    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #475569;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --gold-500: #b8941f;
    --gold-400: #d4af37;
    --gold-300: #e8c84a;
    --gold-600: #9a7a0e;

    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.15);

    --header-bg: rgba(255, 255, 255, 0.9);
    --sidebar-bg-start: #ffffff;
    --sidebar-bg-end: #f8fafc;
    --sidebar-active-bg: rgba(212, 175, 55, 0.08);
    --dropdown-bg: #ffffff;

    --body-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --hero-heading: linear-gradient(135deg, #0f172a 30%, var(--gold-600) 100%);

    --backdrop-blur: blur(20px);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: light;
}

/* ======================== DARK MODE ======================== */
[data-theme="dark"] {
    --bg-primary: #020617;
    --bg-secondary: #0a1628;
    --bg-tertiary: #0f1d35;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(15, 23, 42, 0.75);
    --bg-input: rgba(15, 23, 42, 0.5);
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.05);

    --border-primary: rgba(212, 175, 55, 0.15);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-input: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --text-faint: #475569;

    --gold-500: #d4af37;
    --gold-400: #e8c84a;
    --gold-300: #f0d96b;
    --gold-600: #b8941f;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --rose-500: #ef4444;
    --rose-400: #f87171;
    --sky-500: #0ea5e9;
    --sky-400: #38bdf8;
    --violet-500: #8b5cf6;

    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.05);

    --header-bg: rgba(10, 22, 40, 0.85);
    --sidebar-bg-start: #0a1628;
    --sidebar-bg-end: #020617;
    --sidebar-active-bg: rgba(212, 175, 55, 0.1);
    --dropdown-bg: #0f1d35;

    --body-gradient: linear-gradient(135deg, #020617 0%, #0a1628 50%, #0f1d35 100%);
    --hero-heading: linear-gradient(135deg, #fff 30%, var(--gold-400) 100%);

    color-scheme: dark;
}

/* ======================== BASE ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-gradient);
    color: var(--text-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    transition: background 0.4s ease, color 0.3s ease;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, -1%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
}

a {
    color: var(--gold-500);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-300);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ======================== GLASS CARD ======================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    color: #0f172a;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--rose-500), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-xs);
}

.btn-icon {
    padding: 10px;
    border-radius: var(--radius-xs);
}

/* ======================== FORMS ======================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
    color: var(--text-faint);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 01.708 0L8 9.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 6px;
}

/* ======================== SITE HEADER ======================== */
.site-header {
    background: var(--header-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.9rem;
}

.site-nav a:hover {
    color: var(--gold-400);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-surface-hover);
    color: var(--gold-500);
    border-color: var(--border-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* ======================== HERO ======================== */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--hero-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ======================== SECTION TABS ======================== */
.section-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    justify-content: center;
}

.section-tab {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.section-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.section-tab.active {
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.section-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    margin-left: 8px;
    padding: 0 6px;
}

/* ======================== EVENTS GRID ======================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    padding-bottom: 60px;
}

/* Event Card */
.event-card {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.event-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(14, 165, 233, 0.06));
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text-faint);
}

.event-card-image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.event-card-inner {
    padding: 24px 28px 28px;
}

.event-card .event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-draft {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-tertiary);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-closed,
.badge-past {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .badge-closed,
[data-theme="dark"] .badge-past {
    color: var(--rose-400);
}

.event-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.event-card .event-desc {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gold-500);
    flex-shrink: 0;
}

.event-card .event-actions {
    display: flex;
    gap: 10px;
}

.event-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: var(--transition);
}

.event-card:hover .event-card-glow {
    opacity: 1.5;
}

/* ======================== SECTION TITLE ======================== */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ======================== REGISTRATION FORM ======================== */
.reg-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 0;
}

.reg-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.reg-form-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.reg-form-header p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.reg-form {
    padding: 36px;
}

.reg-form .btn-primary {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ======================== THANK YOU ======================== */
.thankyou-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.thankyou-card {
    text-align: center;
    padding: 60px 48px;
    max-width: 520px;
}

.thankyou-card .check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
}

.thankyou-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.thankyou-card p {
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ======================== FOOTER ======================== */
.site-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: var(--text-tertiary);
}

.site-footer a:hover {
    color: var(--gold-400);
}

/* ======================== EMPTY STATE ======================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* ======================== ALERTS ======================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

[data-theme="dark"] .alert-error {
    color: var(--rose-400);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

[data-theme="dark"] .alert-success {
    color: var(--emerald-400);
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ======================== RESPONSIVE (PUBLIC) ======================== */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .reg-form {
        padding: 24px;
    }

    .thankyou-card {
        padding: 40px 24px;
    }

    .section-tabs {
        flex-wrap: wrap;
    }
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--sidebar-bg-start), var(--sidebar-bg-end));
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transition: var(--transition);
}

.admin-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-sidebar-brand span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-sidebar nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: var(--transition);
    text-decoration: none;
}

.admin-nav-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
}

.admin-nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--gold-500);
    border-left: 3px solid var(--gold-500);
}

.admin-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--header-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-topbar h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xs);
    padding: 8px 14px;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-user-btn:hover {
    background: var(--bg-surface-hover);
}

.admin-dropdown {
    position: relative;
}

.admin-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 180px;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xs);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 100;
}

[data-theme="dark"] .admin-dropdown-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-dropdown-menu.show {
    display: block;
}

.admin-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.admin-dropdown-menu a:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.admin-content {
    flex: 1;
    padding: 28px;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.metric-card .metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.metric-card .metric-icon svg {
    width: 22px;
    height: 22px;
}

.metric-card .metric-icon.gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-500);
}

.metric-card .metric-icon.emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-400);
}

.metric-card .metric-icon.sky {
    background: rgba(14, 165, 233, 0.12);
    color: var(--sky-400);
}

.metric-card .metric-icon.violet {
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-500);
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-card .metric-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-surface);
}

.chart-container {
    padding: 24px;
    margin-bottom: 24px;
}

.chart-container h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-secondary);
    color: var(--text-tertiary);
    cursor: pointer;
}

.admin-mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--gold-500);
    border-bottom-color: var(--gold-500);
}

/* Image upload area */
.image-upload-area {
    border: 2px dashed var(--border-secondary);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.image-upload-area:hover {
    border-color: var(--gold-500);
    background: rgba(212, 175, 55, 0.04);
    color: var(--gold-500);
}

.image-upload-area.has-image {
    padding: 8px;
}

.image-upload-area img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-topbar {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}