/* ════════════════════════════════════════════════════════════════
   FLAMEHOSTING — PREMIUM THEME
   WHMCS-inspired structure · Flame-forged aesthetic
   v2.0 — Deep steel, surgical layout, controlled fire
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
:root {
    --bg-void:        #05060b;
    --bg-base:        #08090f;
    --bg-surface:     #0c0e18;
    --bg-raised:      #101422;
    --bg-elevated:    #151929;
    --bg-overlay:     #1b1f30;
    --bg-hover:       #1e2335;
    --bg-active:      #222740;
    --flame-core:     #f55d1e;
    --flame-hot:      #ff3d00;
    --flame-warm:     #ff7043;
    --flame-ember:    #ff9a6c;
    --flame-smoke:    rgba(245, 93, 30, 0.12);
    --flame-haze:     rgba(245, 93, 30, 0.06);
    --flame-glow-sm:  rgba(245, 93, 30, 0.20);
    --flame-glow-md:  rgba(245, 93, 30, 0.35);
    --flame-glow-lg:  rgba(245, 93, 30, 0.50);
    --flame-gradient: linear-gradient(135deg, #f55d1e 0%, #ff3d00 55%, #d94c10 100%);
    --flame-gradient-h: linear-gradient(90deg, #f55d1e 0%, #ff3d00 100%);
    --flame-gradient-r: linear-gradient(135deg, #d94c10 0%, #ff3d00 55%, #f55d1e 100%);
    --flame-shine:    linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.14) 50%, transparent 65%);
    --success:        #16c972;
    --success-dim:    rgba(22, 201, 114, 0.10);
    --success-border: rgba(22, 201, 114, 0.22);
    --success-glow:   rgba(22, 201, 114, 0.30);
    --danger:         #f03e5a;
    --danger-dim:     rgba(240, 62, 90, 0.10);
    --danger-border:  rgba(240, 62, 90, 0.22);
    --warning:        #f0a030;
    --warning-dim:    rgba(240, 160, 48, 0.10);
    --warning-border: rgba(240, 160, 48, 0.22);
    --info:           #3ab8f5;
    --info-dim:       rgba(58, 184, 245, 0.10);
    --info-border:    rgba(58, 184, 245, 0.22);
    --text-bright:    #f0f4ff;
    --text-primary:   #d8dff0;
    --text-secondary: #9aa3bc;
    --text-muted:     #5c6480;
    --text-faint:     #2e3450;
    --border-faint:   rgba(255, 255, 255, 0.04);
    --border-subtle:  rgba(255, 255, 255, 0.07);
    --border-light:   rgba(255, 255, 255, 0.10);
    --border-medium:  rgba(255, 255, 255, 0.14);
    --border-strong:  rgba(255, 255, 255, 0.20);
    --border-flame:   rgba(245, 93, 30, 0.40);
    --border-flame-strong: rgba(245, 93, 30, 0.65);
    --sidebar-width:  255px;
    --topbar-height:  58px;
    --r-xs:  5px;
    --r-sm:  8px;
    --r-md:  11px;
    --r-lg:  14px;
    --r-xl:  18px;
    --r-pill:999px;
    --shadow-xs:  0 1px 4px rgba(0,0,0,0.45);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.50);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.55);
    --shadow-lg:  0 8px 36px rgba(0,0,0,0.65);
    --shadow-xl:  0 16px 60px rgba(0,0,0,0.75);
    --shadow-flame-sm: 0 0 16px rgba(245,93,30,0.22);
    --shadow-flame-md: 0 0 32px rgba(245,93,30,0.32);
    --shadow-flame-lg: 0 0 56px rgba(245,93,30,0.44);
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:   cubic-bezier(0, 0, 0.2, 1);
    --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:     all 0.15s var(--ease);
    --t-base:     all 0.20s var(--ease);
    --t-slow:     all 0.35s var(--ease);
    --t-spring:   all 0.40s var(--ease-spring);
}
/* ════════════════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#__next {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
#__next:has(.auth-page) { display: block; }
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--flame-core), var(--flame-hot));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--flame-warm); }
::selection         { background: var(--flame-smoke); color: var(--flame-ember); }
::-moz-selection    { background: var(--flame-smoke); color: var(--flame-ember); }
*:focus               { outline: none; }
*:focus-visible       { outline: 2px solid var(--flame-core); outline-offset: 2px; box-shadow: 0 0 0 4px var(--flame-glow-sm); }
a { color: var(--flame-core); text-decoration: none; transition: var(--t-fast); }
a:hover { color: var(--flame-warm); }
code, .mono {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}
/* ════════════════════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════════════════════ */
@keyframes shine {
    0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%)  translateY(100%)  rotate(45deg); }
}
@keyframes pulse-flame {
    0%, 100% { box-shadow: var(--shadow-flame-sm); }
    50%       { box-shadow: var(--shadow-flame-md); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes flamePulse {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-faint);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 200;
    overflow: hidden;
    transition: var(--t-slow);
}
.sidebar::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent        5%,
        var(--flame-core)  35%,
        var(--flame-hot)   65%,
        transparent        95%
    );
    opacity: 0.75;
    z-index: 1;
}
.sidebar::after {
    content: '';
    position: absolute;
    left: -60px; top: 30%;
    width: 160px; height: 260px;
    background: radial-gradient(ellipse, var(--flame-haze) 0%, transparent 70%);
    pointer-events: none;
}
.sidebar-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border-faint);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--flame-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: white;
    flex-shrink: 0;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-flame-sm);
}
.logo-icon::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--flame-shine);
    animation: shine 3.5s ease-in-out infinite;
}
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
    font-size: 14.5px; font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.4px;
    line-height: 1;
}
.logo-tagline {
    font-size: 9.5px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.sidebar-nav {
    padding: 10px 10px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
}
.nav-section-title {
    font-size: 9.5px; font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 14px 8px 5px;
    display: block;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8.5px 9px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--r-xs);
    transition: var(--t-base);
    font-weight: 500;
    font-size: 13px;
    position: relative;
    margin-bottom: 1px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.nav-item i {
    font-size: 17px;
    flex-shrink: 0;
    width: 19px;
    text-align: center;
    transition: var(--t-base);
}
.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-color: var(--border-faint);
}
.nav-item:hover i { color: var(--flame-warm); }
.nav-item.active {
    background: var(--flame-smoke);
    color: var(--text-bright);
    border-color: var(--border-flame);
    font-weight: 600;
}
.nav-item.active i { color: var(--flame-core); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px; top: 22%; bottom: 22%;
    width: 2.5px;
    background: var(--flame-gradient);
    border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.nav-item.logout:hover {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: var(--danger-border);
}
.nav-item.logout:hover i { color: var(--danger); }
.nav-divider {
    height: 1px;
    background: var(--border-faint);
    margin: 8px 6px;
}
.badge {
    background: var(--flame-core);
    color: white;
    font-size: 9.5px; font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-pill);
    margin-left: auto;
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.badge.danger  { background: var(--danger); }
.badge.warning { background: var(--warning); color: #0a0a0a; }
.badge.info    { background: var(--info);    color: #0a0a0a; }
.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border-faint);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.user-mini-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: var(--r-xs);
    transition: var(--t-base);
    cursor: pointer;
    background: var(--bg-raised);
    border: 1px solid var(--border-faint);
}
.user-mini-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
}
.avatar {
    width: 32px; height: 32px;
    border-radius: var(--r-xs);
    object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}
.user-info { flex-grow: 1; min-width: 0; }
.user-name {
    font-size: 12.5px; font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role {
    font-size: 10.5px;
    color: var(--text-muted);
}
.user-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    box-shadow: 0 0 7px var(--success-glow);
    animation: blink 3s ease-in-out infinite;
}
/* ════════════════════════════════════════════════════════════════
   MAIN WRAPPER & TOPBAR
   ════════════════════════════════════════════════════════════════ */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-base);
}
.topbar {
    height: var(--topbar-height);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-faint);
    background: var(--bg-surface);
    position: sticky;
    top: 0; z-index: 150;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.breadcrumb-sep     { color: var(--text-faint); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 600; }
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-sm);
    padding: 6.5px 12px;
    width: 250px;
    transition: var(--t-base);
    gap: 8px;
}
.search-bar:focus-within {
    border-color: var(--border-flame);
    box-shadow: 0 0 0 3px var(--flame-glow-sm);
    background: var(--bg-elevated);
}
.search-bar i { color: var(--text-muted); font-size: 15px; flex-shrink: 0; }
.search-bar input {
    background: transparent; border: none;
    color: var(--text-bright); width: 100%;
    outline: none; font-family: inherit; font-size: 12.5px;
}
.search-bar input::placeholder { color: var(--text-muted); }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.icon-btn {
    background: transparent;
    border: 1px solid var(--border-faint);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: var(--r-xs);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    cursor: pointer;
    transition: var(--t-fast);
    position: relative;
    text-decoration: none;
    outline: none;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn.active {
    background: var(--flame-smoke);
    color: var(--flame-core);
    border-color: var(--flame-core);
}

.breadcrumb-brand {
    font-weight: 800;
    color: var(--flame-core);
    font-size: 13px;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-sm);
    padding: 7px 12px;
    width: 280px;
    transition: var(--t-base);
    gap: 8px;
    position: relative;
}

.search-bar-wrapper:focus-within {
    border-color: var(--border-flame);
    box-shadow: 0 0 0 3px var(--flame-glow-sm);
    background: var(--bg-elevated);
}

.search-bar-wrapper i {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.search-bar-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-bright);
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}

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

.search-shortcut {
    background: var(--bg-elevated);
    border: 1px solid var(--border-faint);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: var(--r-xs);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
}

.indicatorPulse {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--flame-core);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-faint);
    border-radius: var(--r-sm);
    padding: 5px 10px 5px 5px;
    cursor: pointer;
    transition: var(--t-fast);
    color: var(--text-secondary);
    font-family: inherit;
    outline: none;
}

.profile-trigger:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
}

.profile-trigger.active {
    background: var(--bg-hover);
    border-color: var(--flame-core);
}

.avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs);
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
}

.caret-icon {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--t-fast);
}

.profile-trigger.active .caret-icon {
    transform: rotate(180deg);
}

.indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--bg-surface);
    animation: notificationPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--danger);
}
.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 9px 4px 4px;
    border-radius: var(--r-xs);
    transition: var(--t-fast);
    border: 1px solid var(--border-faint);
    background: var(--bg-raised);
    text-decoration: none;
    color: inherit;
    user-select: none;
}

.profile-dropdown:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
}

.profile-dropdown:active {
    transform: scale(0.98);
}
.avatar-small {
    width: 26px; height: 26px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}
.profile-name {
    font-size: 12.5px; font-weight: 600;
    color: var(--text-secondary);
}
/* ════════════════════════════════════════════════════════════════
   CONTENT CONTAINER & PAGE HEADER
   ════════════════════════════════════════════════════════════════ */
.content-container {
    padding: 26px 30px;
    flex-grow: 1;
    max-width: 1440px;
    width: 100%;
    animation: fadeUp 0.25s var(--ease-out);
}
.page-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.page-header-text h1 {
    font-size: 20px; font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    margin-bottom: 3px;
    line-height: 1.15;
}
.page-header-text p {
    color: var(--text-muted);
    font-size: 13px;
}
.page-header-text h1::after {
    content: '';
    display: block;
    width: 32px; height: 2px;
    background: var(--flame-gradient-h);
    border-radius: var(--r-pill);
    margin-top: 6px;
}
/* ════════════════════════════════════════════════════════════════
   STAT CARDS
   ════════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--t-slow);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1.5px;
    background: var(--flame-gradient-h);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card::after {
    content: '';
    position: absolute; right: -20px; top: -20px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--flame-gradient);
    opacity: 0.04;
    transition: var(--t-slow);
}
.stat-card:hover {
    border-color: var(--border-flame);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.4), var(--shadow-flame-sm);
}
.stat-card:hover::after { opacity: 0.09; transform: scale(1.2); }
.stat-card.danger-card {
    border-color: var(--danger-border);
    background: linear-gradient(135deg, var(--bg-surface) 60%, var(--danger-dim));
}
.stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    display: flex; justify-content: center; align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon.primary { background: var(--flame-smoke);  color: var(--flame-core); }
.stat-icon.danger  { background: var(--danger-dim);   color: var(--danger); }
.stat-icon.success { background: var(--success-dim);  color: var(--success); }
.stat-icon.warning { background: var(--warning-dim);  color: var(--warning); }
.stat-icon.info    { background: var(--info-dim);     color: var(--info); }
.stat-details { display: flex; flex-direction: column; min-width: 0; }
.stat-label {
    font-size: 10.5px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 24px; font-weight: 800;
    color: var(--text-bright);
    line-height: 1;
    letter-spacing: -0.8px;
}
.stat-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 5px;
}
/* ════════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════════ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.right-column {
    display: flex; flex-direction: column; gap: 14px;
}
/* ════════════════════════════════════════════════════════════════
   PANELS
   ════════════════════════════════════════════════════════════════ */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: var(--t-base);
}
.panel:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-md);
}
.panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-faint);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
    background: var(--bg-raised);
}
.panel-header h2 {
    font-size: 13px; font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.1px;
}
.panel-header-icon {
    display: flex; align-items: center; gap: 7px;
}
.panel-header-icon i {
    font-size: 15px;
    color: var(--flame-core);
}
.view-all {
    color: var(--flame-core); font-size: 11.5px; font-weight: 600;
    text-decoration: none;
    transition: var(--t-fast);
    display: flex; align-items: center; gap: 3px;
}
.view-all:hover { color: var(--flame-warm); }
.panel-body {
    padding: 18px;
    flex-grow: 1;
}
.section-title {
    font-size: 11.5px; font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.section-title::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border-faint);
}
/* ════════════════════════════════════════════════════════════════
   DATA TABLE
   ════════════════════════════════════════════════════════════════ */
.data-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .admin-table th {
    text-align: left;
    padding: 9px 15px;
    color: var(--text-muted);
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-raised);
    white-space: nowrap;
}
.data-table td, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-faint);
    font-size: 13px;
    vertical-align: middle;
    color: var(--text-secondary);
}
.data-table tr:last-child td,
.admin-table tr:last-child td { border-bottom: none; }
.data-table tbody tr,
.admin-table tbody tr { transition: var(--t-fast); }
.data-table tbody tr:hover,
.admin-table tbody tr:hover { background: var(--bg-raised); }
.invoice-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-bright);
    font-size: 11.5px;
}
.table-actions { display: flex; gap: 5px; align-items: center; }
/* ════════════════════════════════════════════════════════════════
   STATUS BADGES
   ════════════════════════════════════════════════════════════════ */
.status-badge {
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 10.5px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.status-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-badge.pending {
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}
.status-badge.pending::before { background: var(--warning); }
.status-badge.danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}
.status-badge.danger::before { background: var(--danger); }
.status-badge.success {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid var(--success-border);
}
.status-badge.success::before { background: var(--success); animation: blink 2.5s ease-in-out infinite; }
.status-badge.info {
    background: var(--info-dim);
    color: var(--info);
    border: 1px solid var(--info-border);
}
.status-badge.info::before { background: var(--info); }
/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.action-btn {
    padding: 7.5px 15px;
    border-radius: var(--r-xs);
    font-family: 'Plus Jakarta Sans', inherit;
    font-size: 12.5px; font-weight: 700;
    cursor: pointer;
    transition: var(--t-base);
    border: none;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.1px;
}
.action-btn i { font-size: 15px; }
.action-btn.primary {
    background: var(--flame-gradient);
    color: white;
    box-shadow: var(--shadow-flame-sm), var(--shadow-xs);
    position: relative; overflow: hidden;
}
.action-btn.primary::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--flame-shine);
    transition: left 0.5s var(--ease-out);
}
.action-btn.primary:hover {
    box-shadow: var(--shadow-flame-md), var(--shadow-sm);
    transform: translateY(-2px);
}
.action-btn.primary:hover::before { left: 100%; }
.action-btn.primary:active { transform: translateY(0); box-shadow: var(--shadow-flame-sm); }
.action-btn.ghost {
    background: var(--bg-raised);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.action-btn.ghost:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    color: var(--text-bright);
}
.action-btn.outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.action-btn.outline:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-bright);
}
.action-btn.danger {
    background: var(--danger-dim);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}
.action-btn.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    box-shadow: 0 0 20px rgba(240,62,90,0.35);
}
.action-btn.success {
    background: var(--success-dim);
    border: 1px solid var(--success-border);
    color: var(--success);
}
.action-btn.success:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.pay-btn {
    background: linear-gradient(135deg, #0081cc, #00457c);
    color: white;
    box-shadow: 0 2px 10px rgba(0,120,200,0.28);
}
.pay-btn:hover { box-shadow: 0 4px 20px rgba(0,120,200,0.45); transform: translateY(-1px); }
.action-btn:disabled {
    opacity: 0.42; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}
.btn-icon {
    background: var(--bg-raised);
    border: 1px solid var(--border-faint);
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: var(--r-xs);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--t-fast);
    font-size: 15px;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-subtle); }
.btn-icon.danger:hover { background: var(--danger-dim); color: var(--danger); border-color: var(--danger-border); }
.btn-icon.flame:hover  { background: var(--flame-smoke); color: var(--flame-core); border-color: var(--border-flame); }
/* ════════════════════════════════════════════════════════════════
   QUICK ACTIONS
   ════════════════════════════════════════════════════════════════ */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}
.quick-btn {
    background: var(--bg-raised);
    border: 1px solid var(--border-faint);
    padding: 11px 13px;
    border-radius: var(--r-xs);
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 11px;
    font-family: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: var(--t-base);
    text-align: left; text-decoration: none;
}
.quick-btn i {
    font-size: 17px;
    color: var(--flame-core);
    background: var(--flame-smoke);
    padding: 6px;
    border-radius: var(--r-xs);
    transition: var(--t-base);
    flex-shrink: 0;
    border: 1px solid transparent;
}
.quick-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-flame);
    color: var(--text-bright);
}
.quick-btn:hover i {
    background: var(--flame-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-flame-sm);
}
/* ════════════════════════════════════════════════════════════════
   SERVICE ITEMS
   ════════════════════════════════════════════════════════════════ */
.services-list {
    display: flex; flex-direction: column; gap: 9px;
}
.service-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    background: var(--bg-raised);
    border-radius: var(--r-xs);
    border: 1px solid var(--border-faint);
    transition: var(--t-base);
}
.service-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-hover);
}
.service-icon {
    width: 34px; height: 34px;
    border-radius: var(--r-xs);
    background: var(--bg-overlay);
    display: flex; justify-content: center; align-items: center;
    font-size: 17px; color: var(--text-muted);
    flex-shrink: 0; border: 1px solid var(--border-faint);
}
.service-info { flex-grow: 1; min-width: 0; }
.service-info h4 {
    font-size: 12.5px; font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.service-info p { font-size: 11px; color: var(--text-muted); }
.service-status.active {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success-glow);
    flex-shrink: 0;
    animation: blink 3s ease-in-out infinite;
}
/* ════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 15px; }
.form-label {
    display: block;
    font-size: 12px; font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-secondary);
    letter-spacing: 0.1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10.5px;
}
.form-control {
    width: 100%;
    padding: 8.5px 11px;
    background: var(--bg-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xs);
    color: var(--text-bright);
    font-family: 'Plus Jakarta Sans', inherit;
    font-size: 13px;
    transition: var(--t-base);
    outline: none;
    appearance: none;
}
.form-control:hover { border-color: var(--border-light); background: var(--bg-elevated); }
.form-control:focus {
    border-color: var(--border-flame);
    box-shadow: 0 0 0 3px var(--flame-glow-sm);
    background: var(--bg-elevated);
}
.form-control::placeholder { color: var(--text-faint); }
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235c6480' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; cursor: pointer;
}
textarea.form-control {
    resize: vertical; min-height: 88px; line-height: 1.55;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-hint {
    font-size: 11px; color: var(--text-muted); margin-top: 4px;
}
.input-group { position: relative; }
.input-group .form-control { padding-left: 34px; }
.input-group-icon {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 15px; pointer-events: none;
}
/* ════════════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ════════════════════════════════════════════════════════════════ */
.switch {
    position: relative; display: inline-block;
    width: 38px; height: 21px; flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    transition: 0.28s var(--ease);
    border-radius: var(--r-pill);
}
.slider::before {
    position: absolute; content: "";
    height: 13px; width: 13px;
    left: 3px; bottom: 3px;
    background: var(--text-muted);
    transition: 0.28s var(--ease-spring);
    border-radius: 50%;
}
input:checked + .slider {
    background: var(--flame-gradient);
    border-color: var(--flame-core);
    box-shadow: var(--shadow-flame-sm);
}
input:checked + .slider::before {
    transform: translateX(17px);
    background: white;
}
/* ════════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════════ */
.alert {
    padding: 10px 13px;
    border-radius: var(--r-xs);
    font-size: 12.5px;
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 14px;
    border-left: 3px solid;
}
.alert i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert.danger  { background: var(--danger-dim);  color: var(--danger);  border-color: var(--danger);  border-left: 3px solid var(--danger);  border-right: none; border-top: 1px solid var(--danger-border); border-bottom: 1px solid var(--danger-border); }
.alert.success { background: var(--success-dim); color: var(--success); border-color: var(--success); border-left: 3px solid var(--success); border-right: none; border-top: 1px solid var(--success-border); border-bottom: 1px solid var(--success-border); }
.alert.warning { background: var(--warning-dim); color: var(--warning); border-color: var(--warning); border-left: 3px solid var(--warning); border-right: none; border-top: 1px solid var(--warning-border); border-bottom: 1px solid var(--warning-border); }
.alert.info    { background: var(--info-dim);    color: var(--info);    border-color: var(--info);    border-left: 3px solid var(--info);    border-right: none; border-top: 1px solid var(--info-border);    border-bottom: 1px solid var(--info-border); }
.alert.flame   { background: var(--flame-smoke); color: var(--flame-warm); border-left: 3px solid var(--flame-core); border-right: none; border-top: 1px solid var(--border-flame); border-bottom: 1px solid var(--border-flame); }
/* ════════════════════════════════════════════════════════════════
   PLAN CARDS
   ════════════════════════════════════════════════════════════════ */
.plan-card {
    transition: var(--t-slow);
    position: relative; overflow: visible;
}
.plan-card:hover {
    border-color: var(--border-flame);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-flame-md);
}
.plan-card.featured {
    border-color: var(--border-flame-strong);
    box-shadow: 0 0 0 1px var(--flame-core), var(--shadow-flame-sm);
}
.plan-badge {
    position: absolute; top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--flame-gradient);
    color: white; font-size: 9.5px; font-weight: 800;
    padding: 3px 12px; border-radius: var(--r-pill);
    letter-spacing: 0.8px; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--shadow-flame-sm);
}
.plan-name {
    font-size: 15px; font-weight: 800;
    color: var(--text-bright); margin-bottom: 3px;
}
.plan-price {
    font-size: 30px; font-weight: 800;
    color: var(--flame-core);
    letter-spacing: -1.2px; line-height: 1;
}
.plan-price span {
    font-size: 13px; font-weight: 500;
    color: var(--text-muted); letter-spacing: 0;
}
.plan-features {
    list-style: none; margin: 14px 0;
    display: flex; flex-direction: column; gap: 7px;
}
.plan-features li {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--text-secondary);
}
.plan-features li i { color: var(--success); font-size: 14px; flex-shrink: 0; }
.plan-features li.unavailable { opacity: 0.35; }
.plan-features li.unavailable i { color: var(--text-muted); }
/* ════════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(2, 3, 8, 0.82);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal {
    background: var(--bg-raised);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    width: 100%; max-width: 540px;
    max-height: 88vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.22s var(--ease-spring);
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-faint);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-elevated);
}
.modal-header h2 {
    font-size: 14px; font-weight: 700;
    color: var(--text-bright);
}
.modal-close {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 19px; padding: 4px;
    border-radius: var(--r-xs);
    transition: var(--t-fast);
    display: flex; align-items: center;
}
.modal-close:hover { color: var(--text-bright); background: var(--bg-hover); }
.modal-body  { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-faint);
    display: flex; gap: 8px; justify-content: flex-end;
    background: var(--bg-elevated);
}
/* ════════════════════════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════════════════════════ */
.auth-page {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-base);
    overflow: hidden; flex-direction: column; z-index: 0;
}
.auth-page::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(ellipse, rgba(245,93,30,0.07) 0%, transparent 65%);
    top: -300px; left: -300px; pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(255,61,0,0.05) 0%, transparent 65%);
    bottom: -200px; right: -200px; pointer-events: none;
}
.auth-page .ember-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(245,93,30,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 15%, rgba(245,93,30,0.18) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,120,50,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 80%, rgba(245,93,30,0.12) 0%, transparent 100%);
}
.auth-card {
    width: 100%; max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 36px 36px 32px;
    position: relative; z-index: 1;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(245,93,30,0.08);
    animation: scaleIn 0.3s var(--ease-spring);
}
.auth-card::before {
    content: '';
    position: absolute; top: 0; left: 12%; right: 12%;
    height: 1px;
    background: var(--flame-gradient-h);
    border-radius: var(--r-pill);
}
.auth-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 24px;
}
.auth-logo-icon {
    width: 44px; height: 44px;
    background: var(--flame-gradient);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: var(--shadow-flame-md);
    position: relative; overflow: hidden;
    animation: pulse-flame 3s ease-in-out infinite;
}
.auth-logo-icon::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--flame-shine);
    animation: shine 2.5s ease-in-out infinite;
}
.auth-logo-text {
    font-size: 20px; font-weight: 800;
    color: var(--text-bright); letter-spacing: -0.5px;
}
.auth-title {
    font-size: 18px; font-weight: 800;
    color: var(--text-bright); margin-bottom: 5px;
    text-align: center; letter-spacing: -0.3px;
}
.auth-subtitle {
    font-size: 13px; color: var(--text-muted);
    text-align: center; margin-bottom: 26px;
}
.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0; color: var(--text-muted); font-size: 11.5px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border-faint);
}
.auth-footer {
    text-align: center; margin-top: 18px;
    font-size: 12.5px; color: var(--text-muted);
}
.auth-footer a { color: var(--flame-core); font-weight: 700; }
.auth-footer a:hover { color: var(--flame-warm); }
.auth-btn {
    width: 100%; padding: 10.5px;
    background: var(--flame-gradient);
    background-size: 220% 220%;
    color: white;
    border: none;
    border-radius: var(--r-xs);
    font-family: 'Plus Jakarta Sans', inherit;
    font-size: 13.5px; font-weight: 800;
    cursor: pointer;
    transition: var(--t-slow);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: var(--shadow-flame-md), var(--shadow-sm);
    position: relative; overflow: hidden;
    margin-top: 6px;
    letter-spacing: 0.2px;
}
.auth-btn::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--flame-shine);
    transition: left 0.6s var(--ease-out);
}
.auth-btn:hover::after { left: 100%; }
.auth-btn:hover {
    box-shadow: var(--shadow-flame-lg), var(--shadow-md);
    transform: translateY(-2px);
    animation: flamePulse 2s ease-in-out infinite;
}
.auth-btn:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; animation: none;
}
/* ════════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 44px 24px;
    color: var(--text-muted);
}
.empty-state-icon {
    font-size: 44px; margin-bottom: 12px; opacity: 0.3;
}
.empty-state h3 {
    font-size: 14.5px; font-weight: 700;
    color: var(--text-secondary); margin-bottom: 5px;
}
.empty-state p { font-size: 12.5px; margin-bottom: 18px; }
/* ════════════════════════════════════════════════════════════════
   PREFERENCE ROWS
   ════════════════════════════════════════════════════════════════ */
.pref-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-faint);
}
.pref-row:last-child { border-bottom: none; }
.pref-info h4 {
    font-size: 13px; font-weight: 700;
    color: var(--text-bright); margin-bottom: 2px;
}
.pref-info p { font-size: 11.5px; color: var(--text-muted); }
/* ════════════════════════════════════════════════════════════════
   TICKET ITEMS
   ════════════════════════════════════════════════════════════════ */
.ticket-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    background: var(--bg-raised);
    border-radius: var(--r-xs);
    border: 1px solid var(--border-faint);
    transition: var(--t-base); cursor: pointer;
}
.ticket-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-hover);
}
.ticket-icon {
    width: 34px; height: 34px;
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
/* ════════════════════════════════════════════════════════════════
   CART FAB
   ════════════════════════════════════════════════════════════════ */
.cart-fab {
    position: fixed; bottom: 26px; right: 26px;
    background: var(--flame-gradient);
    color: white;
    padding: 11px 20px;
    border-radius: var(--r-pill);
    z-index: 500;
    text-decoration: none;
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 13.5px;
    box-shadow: var(--shadow-flame-md), var(--shadow-md);
    transition: var(--t-base);
    border: 1px solid rgba(255,255,255,0.10);
}
.cart-fab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-flame-lg), var(--shadow-lg);
}
.cart-fab i { font-size: 19px; }
/* ════════════════════════════════════════════════════════════════
   DROPDOWN MENUS
   ════════════════════════════════════════════════════════════════ */
.dropdown-container { 
    position: relative; 
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.3);
    padding: 6px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease-out), 
                transform 0.2s var(--ease-out),
                visibility 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1px;
    pointer-events: none;
}

.dropdown-menu.show { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}
.dropdown-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 11px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--r-xs);
    font-size: 12.5px; font-weight: 600;
    transition: var(--t-fast);
    border: none; background: transparent;
    width: 100%; cursor: pointer;
    text-align: left; font-family: inherit;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-bright); }
.dropdown-item i {
    font-size: 16px; color: var(--text-muted);
    width: 18px; text-align: center;
}
.dropdown-item:hover i { color: var(--flame-core); }
.dropdown-item.danger:hover { background: var(--danger-dim); color: var(--danger); }
.dropdown-item.danger:hover i { color: var(--danger); }
.dropdown-divider {
    height: 1px; background: var(--border-faint); margin: 5px 3px;
}
.dropdown-header { padding: 9px 11px 5px; }
.dropdown-header-name { font-size: 12.5px; font-weight: 700; color: var(--text-bright); display: block; }
.dropdown-header-email { font-size: 10.5px; color: var(--text-muted); display: block; }
.notifications-dropdown {
    width: 320px !important;
    padding: 0 !important;
    overflow: hidden;
    max-height: 480px;
}
.notifications-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-faint);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-overlay);
}
.notifications-header span { font-size: 12.5px; font-weight: 700; color: var(--text-bright); }
.notifications-list { max-height: 340px; overflow-y: auto; }
.notification-item {
    display: flex; gap: 11px;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-faint);
    transition: var(--t-fast);
}
.notification-item:hover { background: var(--bg-hover); }
.notification-item:last-child { border-bottom: none; }
.notification-icon {
    width: 34px; height: 34px;
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.notification-icon.ticket  { background: var(--warning-dim); color: var(--warning); }
.notification-icon.invoice { background: var(--flame-smoke);  color: var(--flame-core); }
.notification-icon.success { background: var(--success-dim);  color: var(--success); }
.notification-icon.danger  { background: var(--danger-dim);   color: var(--danger); }
.notification-content { flex-grow: 1; min-width: 0; }
.notification-title  { font-size: 12.5px; font-weight: 700; color: var(--text-bright); display: block; margin-bottom: 1px; }
.notification-msg    { font-size: 11.5px; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-date   { font-size: 10.5px; color: var(--text-faint); display: block; margin-top: 3px; }
.notifications-footer {
    padding: 9px; text-align: center;
    border-top: 1px solid var(--border-faint);
    background: var(--bg-overlay);
}
.notifications-footer a {
    font-size: 11.5px; color: var(--flame-core);
    text-decoration: none; font-weight: 600;
}
.notifications-footer a:hover { color: var(--flame-warm); }
.empty-notifications { padding: 36px 20px; text-align: center; color: var(--text-muted); }
.empty-notifications i { font-size: 30px; display: block; margin-bottom: 9px; opacity: 0.4; }

.badge-count {
    background: var(--flame-gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--r-pill);
    min-width: 18px;
    text-align: center;
}

.notification-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-icon-wrapper.ticket {
    background: var(--warning-dim);
    color: var(--warning);
}

.notification-icon-wrapper.invoice {
    background: var(--flame-smoke);
    color: var(--flame-core);
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.notification-msg {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-date {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
}

.profile-menu {
    width: 240px !important;
    padding: 0 !important;
}

.user-info-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-faint);
    background: var(--bg-overlay);
}

.user-full-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.user-email {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.admin-badge {
    display: inline-block;
    background: var(--flame-gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    margin-top: 4px;
}

.menu-items {
    padding: 6px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 600;
    transition: var(--t-fast);
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.menu-link:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
}

.menu-link i {
    font-size: 17px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.menu-link:hover i {
    color: var(--flame-core);
}

.menu-link.highlight {
    background: var(--flame-smoke);
    color: var(--flame-core);
}

.menu-link.highlight:hover {
    background: var(--flame-gradient);
    color: white;
}

.menu-link.highlight:hover i {
    color: white;
}

.menu-link.logout-btn:hover {
    background: var(--danger-dim);
    color: var(--danger);
}

.menu-link.logout-btn:hover i {
    color: var(--danger);
}

.menu-divider {
    height: 1px;
    background: var(--border-faint);
    margin: 6px 0;
}

.empty-state i {
    font-size: 32px;
    opacity: 0.3;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   LOADING & ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
.loading { animation: blink 1.5s ease-in-out infinite; }
.spinner { animation: spin 0.9s linear infinite; }
.skeleton {
    background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-elevated) 50%, var(--bg-raised) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--r-xs);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.fade-in   { animation: fadeUp 0.25s var(--ease-out); }
.slide-up  { animation: fadeUp 0.38s var(--ease-out); }
.scale-in  { animation: scaleIn 0.22s var(--ease-spring); }
/* ════════════════════════════════════════════════════════════════
   TOOLTIPS
   ════════════════════════════════════════════════════════════════ */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 5px); left: 50%;
    transform: translateX(-50%);
    background: var(--bg-overlay);
    color: var(--text-bright);
    padding: 5px 9px;
    border-radius: var(--r-xs);
    font-size: 11px; font-weight: 500;
    white-space: nowrap; z-index: 9999;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    pointer-events: none;
}
/* ════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════════════════════ */
.text-primary  { color: var(--flame-core) !important; }
.text-success  { color: var(--success)    !important; }
.text-danger   { color: var(--danger)     !important; }
.text-warning  { color: var(--warning)    !important; }
.text-info     { color: var(--info)       !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-bright   { color: var(--text-bright)!important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { display: flex; flex-direction: column; }
.items-center  { align-items: center; }
.gap-4  { gap: 4px; }  .gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }  .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.w-full     { width: 100%; }
.mt-0       { margin-top: 0; }    .mb-0  { margin-bottom: 0; }
.mt-8       { margin-top: 8px; }  .mb-8  { margin-bottom: 8px; }
.mt-16      { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.sep { height: 1px; background: var(--border-faint); margin: 14px 0; }
/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .topbar { padding: 0 14px; }
    .content-container { padding: 14px 16px; }
    .search-bar { width: 200px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .search-bar { display: none; }
    .breadcrumb { display: none; }
    .auth-card { padding: 28px 22px; }
    .page-header { flex-direction: column; gap: 10px; }
}
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
}
/* ════════════════════════════════════════════════════════════════
   🔥 MEJORAS ADICIONALES - FLAMEHOSTING PREMIUM
   ════════════════════════════════════════════════════════════════ */
.glass {
    background: rgba(12, 14, 24, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-subtle);
}
.glass-strong {
    background: rgba(12, 14, 24, 0.90);
    backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--border-light);
}
.panel-hover-lift {
    transition: var(--t-slow);
}
.panel-hover-lift:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), var(--shadow-flame-sm);
}
@keyframes flameBorder {
    0%, 100% { border-color: var(--border-flame); }
    50% { border-color: var(--flame-hot); }
}
.flame-border-animated {
    animation: flameBorder 2s ease-in-out infinite;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-raised);
    border-radius: var(--r-pill);
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: var(--flame-gradient);
    border-radius: var(--r-pill);
    transition: width 0.6s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--flame-shine);
    animation: shine 2s ease-in-out infinite;
}
.stat-card-premium {
    position: relative;
    overflow: hidden;
}
.stat-card-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--flame-gradient);
    border-radius: var(--r-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.stat-card-premium:hover::before {
    opacity: 0.15;
}
@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}
.notification-dot {
    animation: notificationPulse 2s ease-in-out infinite;
}
.data-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: var(--bg-raised);
    box-shadow: inset 2px 0 0 var(--flame-core);
}
.flame-glow-text {
    color: var(--flame-core);
    text-shadow: 0 0 20px var(--flame-glow-md);
    font-weight: 800;
}
.action-btn {
    position: relative;
    overflow: hidden;
}
.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.action-btn:active::after {
    width: 300px;
    height: 300px;
}
.nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--flame-gradient);
    transition: height 0.3s var(--ease-out);
    border-radius: var(--r-pill);
}
.nav-item:hover::after {
    height: 60%;
}
.nav-item.active::after {
    height: 80%;
}
.form-control:focus {
    box-shadow: 0 0 0 3px var(--flame-glow-sm), 
                0 4px 12px rgba(245, 93, 30, 0.15),
                inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: cardShine 6s ease-in-out infinite;
}
@keyframes cardShine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
.status-badge.success::before {
    animation: blink 2s ease-in-out infinite;
}
.status-badge.danger::before {
    animation: blink 1.5s ease-in-out infinite;
}
.cart-fab {
    animation: fabPulse 3s ease-in-out infinite;
}
@keyframes fabPulse {
    0%, 100% {
        box-shadow: var(--shadow-flame-md), var(--shadow-md);
    }
    50% {
        box-shadow: var(--shadow-flame-lg), var(--shadow-lg);
    }
}
.panel-header-gradient {
    background: linear-gradient(
        135deg,
        var(--bg-raised) 0%,
        var(--bg-elevated) 100%
    );
    position: relative;
}
.panel-header-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--flame-gradient-h);
    opacity: 0.3;
}
.action-btn:active {
    transform: translateY(1px) scale(0.98);
}
::-webkit-scrollbar-thumb {
    background: var(--flame-gradient);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--flame-gradient-r);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4), var(--shadow-flame-sm);
}
.empty-state {
    position: relative;
}
.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        var(--flame-haze) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}
.empty-state > * {
    position: relative;
    z-index: 1;
}
.modal-overlay {
    backdrop-filter: blur(8px) saturate(120%);
}
.flame-accent-line {
    width: 100%;
    height: 2px;
    background: var(--flame-gradient-h);
    border-radius: var(--r-pill);
    margin: 16px 0;
}
.topbar {
    box-shadow: 0 1px 0 var(--border-faint), 
                0 4px 12px rgba(0, 0, 0, 0.15);
}
.sidebar-nav {
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20px,
        black calc(100% - 20px),
        transparent 100%
    );
}
.quick-btn:hover {
    box-shadow: 0 4px 16px rgba(245, 93, 30, 0.15);
}
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
}
.flame-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--flame-core);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 4s ease-in-out infinite;
    pointer-events: none;
}
.service-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateX(4px);
}
.auth-card {
    box-shadow: var(--shadow-xl), 
                0 0 80px rgba(245, 93, 30, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.flame-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--flame-core) 50%,
        transparent 100%
    );
    margin: 20px 0;
}
.logo-icon {
    box-shadow: var(--shadow-flame-sm), 
                0 0 20px rgba(245, 93, 30, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.page-transition {
    animation: fadeUp 0.4s var(--ease-out);
}
.stat-value {
    background: linear-gradient(
        135deg,
        var(--text-bright) 0%,
        var(--flame-ember) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.panel-glow {
    box-shadow: 0 0 0 1px var(--border-faint),
                0 4px 20px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(245, 93, 30, 0.05);
}
.panel-glow:hover {
    box-shadow: 0 0 0 1px var(--border-flame),
                0 8px 30px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(245, 93, 30, 0.15);
}
.badge {
    box-shadow: 0 0 10px rgba(245, 93, 30, 0.3);
}
.flame-cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--flame-core);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: cursorFade 0.8s ease-out forwards;
}
@keyframes cursorFade {
    to {
        opacity: 0;
        transform: scale(2);
    }
}
.indicator {
    animation: notificationPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--danger);
}
@media print {
    .sidebar,
    .topbar,
    .action-btn,
    .cart-fab,
    .quick-actions {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .panel {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
[data-theme="light"] {
    --bg-base: #f8f9fa;
    --bg-surface: #ffffff;
    --text-bright: #1a1a1a;
    --text-primary: #2d3748;
}
/* ════════════════════════════════════════════════════════════════
   🎯 PERFORMANCE OPTIMIZATIONS
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.action-btn,
.stat-card,
.panel,
.nav-item,
.service-item {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* ════════════════════════════════════════════════════════════════
   🔥 END OF FLAMEHOSTING PREMIUM ENHANCEMENTS
   ════════════════════════════════════════════════════════════════ */


.invoice-card { background: var(--bg-surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 20px; transition: var(--t-slow); position: relative; overflow: hidden; }
.invoice-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--flame-gradient-h); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.invoice-card:hover::before { transform: scaleX(1); }
.invoice-card:hover { border-color: var(--border-flame); box-shadow: 0 8px 30px rgba(0,0,0,0.35), var(--shadow-flame-sm); transform: translateY(-3px); }
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.invoice-number { font-size: 18px; font-weight: 800; color: var(--text-bright); font-family: 'JetBrains Mono', monospace; letter-spacing: -0.5px; }
.invoice-amount { font-size: 24px; font-weight: 800; color: var(--flame-core); letter-spacing: -1px; }
.invoice-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.invoice-detail-item { display: flex; flex-direction: column; gap: 3px; }
.invoice-detail-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.invoice-detail-value { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.pricing-card { background: var(--bg-surface); border: 2px solid var(--border-faint); border-radius: var(--r-lg); padding: 28px 24px; transition: var(--t-slow); position: relative; overflow: hidden; }
.pricing-card::after { content: ''; position: absolute; top: -100px; right: -100px; width: 200px; height: 200px; background: radial-gradient(circle, var(--flame-haze), transparent 70%); transition: var(--t-slow); }
.pricing-card:hover { border-color: var(--border-flame); transform: translateY(-8px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--shadow-flame-md); }
.pricing-card:hover::after { top: -50px; right: -50px; opacity: 1.5; }
.pricing-card.featured { border-color: var(--flame-core); border-width: 2px; box-shadow: 0 0 0 1px var(--flame-core), var(--shadow-flame-md); background: linear-gradient(135deg, var(--bg-surface) 0%, var(--flame-haze) 100%); }
.pricing-header { text-align: center; margin-bottom: 20px; position: relative; z-index: 1; }
.pricing-name { font-size: 16px; font-weight: 800; color: var(--text-bright); margin-bottom: 8px; letter-spacing: -0.3px; }
.pricing-price { font-size: 42px; font-weight: 900; color: var(--flame-core); line-height: 1; letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price-small { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.pricing-description { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.pricing-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); padding: 8px 0; border-bottom: 1px solid var(--border-faint); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 16px; flex-shrink: 0; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled i { color: var(--text-faint); }
.pricing-cta { margin-top: 20px; position: relative; z-index: 1; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--flame-core) 0%, var(--flame-hot) 50%, transparent 100%); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; background: var(--flame-gradient); border-radius: 50%; border: 2px solid var(--bg-surface); box-shadow: 0 0 0 3px var(--flame-glow-sm); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-content { background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-xs); padding: 14px 16px; transition: var(--t-base); }
.timeline-content:hover { background: var(--bg-hover); border-color: var(--border-subtle); }
.timeline-date { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.timeline-title { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 3px; }
.timeline-description { font-size: 12px; color: var(--text-secondary); }

.metric-card { background: var(--bg-surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 20px; position: relative; overflow: hidden; transition: var(--t-slow); }
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--flame-gradient); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease-out); }
.metric-card:hover::before { transform: scaleY(1); }
.metric-card:hover { border-color: var(--border-flame); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.metric-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.metric-trend { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); }
.metric-trend.up { background: var(--success-dim); color: var(--success); }
.metric-trend.down { background: var(--danger-dim); color: var(--danger); }
.metric-value { font-size: 32px; font-weight: 900; color: var(--text-bright); line-height: 1; letter-spacing: -1.5px; margin-bottom: 8px; }
.metric-comparison { font-size: 12px; color: var(--text-muted); }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; border: 1px solid; }
.tag.primary { background: var(--flame-smoke); color: var(--flame-core); border-color: var(--border-flame); }
.tag.success { background: var(--success-dim); color: var(--success); border-color: var(--success-border); }
.tag.danger { background: var(--danger-dim); color: var(--danger); border-color: var(--danger-border); }
.tag.warning { background: var(--warning-dim); color: var(--warning); border-color: var(--warning-border); }
.tag.info { background: var(--info-dim); color: var(--info); border-color: var(--info-border); }
.tag.ghost { background: transparent; color: var(--text-muted); border-color: var(--border-subtle); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--text-secondary); transition: var(--t-fast); cursor: pointer; }
.chip:hover { background: var(--bg-hover); border-color: var(--border-subtle); color: var(--text-bright); }
.chip i { font-size: 14px; }
.chip.active { background: var(--flame-smoke); border-color: var(--border-flame); color: var(--flame-core); }

.avatar-group { display: flex; align-items: center; }
.avatar-group .avatar { margin-left: -8px; border: 2px solid var(--bg-surface); transition: var(--t-fast); }
.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-group .avatar:hover { transform: translateY(-2px); z-index: 10; }
.avatar-more { width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--bg-raised); border: 2px solid var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-left: -8px; }

.breadcrumb-enhanced { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-xs); }
.breadcrumb-enhanced a { color: var(--text-muted); font-size: 12px; font-weight: 600; transition: var(--t-fast); }
.breadcrumb-enhanced a:hover { color: var(--flame-core); }
.breadcrumb-enhanced .current { color: var(--text-bright); font-weight: 700; }
.breadcrumb-enhanced i { color: var(--text-faint); font-size: 10px; }

.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-xs); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t-fast); }
.pagination-btn:hover { background: var(--bg-hover); border-color: var(--border-subtle); color: var(--text-bright); }
.pagination-btn.active { background: var(--flame-gradient); border-color: var(--flame-core); color: white; box-shadow: var(--shadow-flame-sm); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.filter-bar { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-sm); margin-bottom: 20px; flex-wrap: wrap; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.filter-select { padding: 6px 10px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-xs); color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--t-fast); }
.filter-select:hover { border-color: var(--border-light); background: var(--bg-overlay); }
.filter-select:focus { border-color: var(--border-flame); box-shadow: 0 0 0 3px var(--flame-glow-sm); }

.stats-mini { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-xs); }
.stats-mini-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--flame-smoke); color: var(--flame-core); border-radius: var(--r-xs); font-size: 16px; }
.stats-mini-content { display: flex; flex-direction: column; }
.stats-mini-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.stats-mini-value { font-size: 16px; font-weight: 800; color: var(--text-bright); letter-spacing: -0.5px; }

.activity-feed { display: flex; flex-direction: column; gap: 12px; }
.activity-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: var(--r-xs); transition: var(--t-base); }
.activity-item:hover { background: var(--bg-hover); border-color: var(--border-subtle); }
.activity-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--flame-smoke); color: var(--flame-core); border-radius: var(--r-xs); font-size: 18px; flex-shrink: 0; }
.activity-content { flex-grow: 1; min-width: 0; }
.activity-title { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 2px; }
.activity-description { font-size: 12px; color: var(--text-muted); }
.activity-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.code-block { background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); overflow-x: auto; position: relative; }
.code-block::before { content: attr(data-language); position: absolute; top: 8px; right: 12px; font-size: 10px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.8px; }
.code-block code { color: var(--text-secondary); }
.code-block .keyword { color: var(--flame-core); }
.code-block .string { color: var(--success); }
.code-block .number { color: var(--info); }
.code-block .comment { color: var(--text-muted); font-style: italic; }

.info-box { padding: 14px 16px; background: var(--info-dim); border: 1px solid var(--info-border); border-left: 3px solid var(--info); border-radius: var(--r-xs); display: flex; gap: 12px; align-items: flex-start; }
.info-box i { font-size: 18px; color: var(--info); flex-shrink: 0; margin-top: 2px; }
.info-box-content { flex-grow: 1; }
.info-box-title { font-size: 13px; font-weight: 700; color: var(--info); margin-bottom: 4px; }
.info-box-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.success-box { padding: 14px 16px; background: var(--success-dim); border: 1px solid var(--success-border); border-left: 3px solid var(--success); border-radius: var(--r-xs); display: flex; gap: 12px; align-items: flex-start; }
.success-box i { font-size: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.warning-box { padding: 14px 16px; background: var(--warning-dim); border: 1px solid var(--warning-border); border-left: 3px solid var(--warning); border-radius: var(--r-xs); display: flex; gap: 12px; align-items: flex-start; }
.warning-box i { font-size: 18px; color: var(--warning); flex-shrink: 0; margin-top: 2px; }

.danger-box { padding: 14px 16px; background: var(--danger-dim); border: 1px solid var(--danger-border); border-left: 3px solid var(--danger); border-radius: var(--r-xs); display: flex; gap: 12px; align-items: flex-start; }
.danger-box i { font-size: 18px; color: var(--danger); flex-shrink: 0; margin-top: 2px; }

.stepper { display: flex; align-items: center; justify-content: space-between; margin: 24px 0; position: relative; }
.stepper::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--border-faint); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.step-circle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); border: 2px solid var(--border-subtle); border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: var(--t-base); }
.step.active .step-circle { background: var(--flame-gradient); border-color: var(--flame-core); color: white; box-shadow: var(--shadow-flame-sm); }
.step.completed .step-circle { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.step.active .step-label { color: var(--flame-core); font-weight: 700; }
.step.completed .step-label { color: var(--success); }

.file-upload { border: 2px dashed var(--border-subtle); border-radius: var(--r-sm); padding: 32px 24px; text-align: center; background: var(--bg-raised); transition: var(--t-base); cursor: pointer; }
.file-upload:hover { border-color: var(--border-flame); background: var(--bg-hover); }
.file-upload.dragover { border-color: var(--flame-core); background: var(--flame-haze); }
.file-upload-icon { font-size: 40px; color: var(--text-muted); margin-bottom: 12px; }
.file-upload-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.file-upload-hint { font-size: 11px; color: var(--text-muted); }

.kbd { display: inline-block; padding: 3px 8px; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-bottom-width: 2px; border-radius: var(--r-xs); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--text-secondary); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

.divider-text { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border-faint); }

.gradient-text { background: var(--flame-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

.pulse-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; position: relative; }
.pulse-dot::before { content: ''; position: absolute; inset: -4px; background: var(--success); border-radius: 50%; opacity: 0.4; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.5); opacity: 0; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card-list { display: flex; flex-direction: column; gap: 12px; }

.hover-lift { transition: var(--t-slow); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.hover-glow { transition: var(--t-base); }
.hover-glow:hover { box-shadow: 0 0 30px var(--flame-glow-md); }

.text-gradient { background: linear-gradient(135deg, var(--flame-core), var(--flame-hot)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.border-gradient { border: 2px solid transparent; background-origin: border-box; background-clip: padding-box, border-box; background-image: linear-gradient(var(--bg-surface), var(--bg-surface)), var(--flame-gradient); }

.glow-border { box-shadow: 0 0 0 1px var(--border-flame), 0 0 20px var(--flame-glow-sm); }

.rotate-on-hover { transition: transform 0.3s var(--ease); }
.rotate-on-hover:hover { transform: rotate(5deg); }

.scale-on-hover { transition: transform 0.3s var(--ease-spring); }
.scale-on-hover:hover { transform: scale(1.05); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-animation { animation: float 3s ease-in-out infinite; }

@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.slide-in-left { animation: slideInLeft 0.4s var(--ease-out); }

@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.slide-in-right { animation: slideInRight 0.4s var(--ease-out); }

.blur-bg { backdrop-filter: blur(12px) saturate(180%); background: rgba(12, 14, 24, 0.8); }

.frosted-glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.1); }

.neon-glow { text-shadow: 0 0 10px var(--flame-core), 0 0 20px var(--flame-core), 0 0 30px var(--flame-core); }

.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }

.box-glow { box-shadow: 0 0 20px var(--flame-glow-md), 0 8px 32px rgba(0, 0, 0, 0.4); }
    
/* =========================================
   MOBILE RESPONSIVE TWEAKS 
   ========================================= */
.mobile-menu-btn { display: none; margin-right: 12px; }
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.show {
    opacity: 1;
}

@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: var(--shadow-flame-lg);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-backdrop.show {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 16px;
    }

    .content-container {
        padding: 16px;
    }

    /* Ocultar barra de b�squeda o achicar el breadcrumb en m�vil si molesta */
    .breadcrumb-brand { display: none; }
    .breadcrumb-sep:first-of-type { display: none; }

    .search-bar-wrapper { display: none; } /* Mucho espacio en m�vil */

    .dashboard-layout {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en movil, o 1 si es muy peq */
    }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .topbar-actions .dropdown-menu {
        width: 280px;
        right: -50px;
    }
}


@media (max-width: 900px) {
    .data-table, .admin-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }
}

