/* ═══════════════════════════════════════════════════════════════════════════
   WEYD PANEL - PREMIUM CYBERPUNK DESIGN SYSTEM
   Electric Violet + Neon Rose + Ice Blue
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url('../fonts/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');font-display:swap}
@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url('../fonts/KFOmCnqEu92Fr1Mu5mxK.woff2') format('woff2');font-display:swap}
@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url('../fonts/KFOmCnqEu92Fr1Mu7mxK.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Roboto Mono';font-style:normal;font-weight:400;src:url('../fonts/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_ROW9.woff2') format('woff2');font-display:swap}

:root {
    /* ── Primary: Electric Violet ── */
    --primary-color: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-hover: #5B21B6;
    --primary-100: rgba(124, 58, 237, 0.12);
    --primary-200: rgba(124, 58, 237, 0.20);
    --primary-glow: rgba(124, 58, 237, 0.4);

    /* ── Accent: Neon Rose ── */
    --accent-rose: #F43F5E;
    --accent-rose-light: #FB7185;
    --accent-rose-glow: rgba(244, 63, 94, 0.35);

    /* ── Secondary: Ice Blue ── */
    --secondary-color: #22D3EE;
    --secondary-light: #67E8F9;
    --secondary-dark: #06B6D4;
    --accent-glow: rgba(34, 211, 238, 0.3);

    /* ── Tertiary: Amber Spark ── */
    --accent-amber: #FBBF24;
    --accent-amber-glow: rgba(251, 191, 36, 0.3);

    /* ── Status Colors ── */
    --danger-color: #F43F5E;
    --danger-hover: #E11D48;
    --success-color: #10B981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning-color: #FBBF24;
    --error-color: #F43F5E;

    /* ── Dark Theme Backgrounds - Deep Void ── */
    --bg-dark: #09090B;
    --bg-darker: #030305;
    --bg-light: #18181B;
    --bg-hover: rgba(255, 255, 255, 0.03);
    --bg-surface: #111113;
    --bg-surface-variant: #1C1C1F;
    --bg-lighter: #27272A;
    --bg-card: linear-gradient(160deg, rgba(28, 28, 31, 0.9) 0%, rgba(17, 17, 19, 0.95) 100%);
    --bg-glass: rgba(17, 17, 19, 0.75);
    --bg-glass-heavy: rgba(9, 9, 11, 0.92);

    /* ── Mesh Gradient Backgrounds ── */
    --mesh-1: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    --mesh-2: radial-gradient(ellipse at 80% 20%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
    --mesh-3: radial-gradient(ellipse at 60% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);

    /* ── Text ── */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.60);
    --text-disabled: rgba(255, 255, 255, 0.30);
    --text-muted: rgba(255, 255, 255, 0.40);

    /* ── Elevation Shadows ── */
    --elevation-0: none;
    --elevation-1: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --elevation-2: 0 4px 12px -2px rgba(0,0,0,0.5), 0 2px 6px -2px rgba(0,0,0,0.4);
    --elevation-3: 0 12px 24px -4px rgba(0,0,0,0.5), 0 4px 8px -4px rgba(0,0,0,0.4);
    --elevation-4: 0 20px 40px -8px rgba(0,0,0,0.6), 0 8px 16px -8px rgba(0,0,0,0.4);
    --elevation-8: 0 32px 64px -16px rgba(0,0,0,0.7);
    --glow-primary: 0 0 20px rgba(124, 58, 237, 0.2), 0 0 60px rgba(124, 58, 237, 0.05);
    --glow-rose: 0 0 20px rgba(244, 63, 94, 0.2), 0 0 60px rgba(244, 63, 94, 0.05);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.2), 0 0 60px rgba(34, 211, 238, 0.05);

    /* ── Borders & Dividers ── */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(124, 58, 237, 0.25);
    --divider: rgba(255, 255, 255, 0.04);

    /* ── Radius ── */
    --border-radius: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 18px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;

    /* ── Layout ── */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 60px;

    /* ── Motion ── */
    --motion-duration-short2: 150ms;
    --motion-duration-medium1: 250ms;
    --motion-duration-long1: 400ms;
    --motion-easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
    --motion-easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1.0);
    --motion-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --motion-easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition: all var(--motion-duration-medium1) var(--motion-easing-standard);

    /* ── Typography ── */
    --font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    /* ── Spacing ── */
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    overflow-x: hidden;
    background-image: var(--mesh-1), var(--mesh-2), var(--mesh-3);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

::selection {
    background: rgba(124, 58, 237, 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

main {
    flex: 1;
    padding: 32px 36px 40px 36px;
    overflow-y: auto;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--motion-duration-long1) var(--motion-easing-standard);
    position: relative;
}

main::before {
    content: '';
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR - Glassmorphism
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--motion-duration-long1) var(--motion-easing-standard);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(124, 58, 237, 0.3) 20%, 
        rgba(244, 63, 94, 0.2) 50%, 
        rgba(34, 211, 238, 0.3) 80%, 
        transparent 100%);
    animation: sidebarBorderGlow 6s ease-in-out infinite;
}

@keyframes sidebarBorderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sidebar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-header-container {
    padding: var(--spacing-6) var(--spacing-5);
    border-bottom: 1px solid var(--divider);
    position: relative;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .logo-hex {
    width: 38px;
    height: 38px;
    color: var(--primary-color);
    opacity: 0.6;
    animation: logoRotate 20s linear infinite;
}

.logo-icon .logo-zap {
    position: absolute;
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sidebar-header {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-accent {
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    padding: var(--spacing-4) var(--spacing-3);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav li.nav-spacer {
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s var(--motion-easing-standard);
    position: relative;
    overflow: hidden;
    font-size: 13.5px;
    gap: 12px;
    border: 1px solid transparent;
}

.sidebar-nav a .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s var(--motion-easing-standard);
}

.sidebar-nav a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
    border-color: rgba(124, 58, 237, 0.1);
    transform: translateX(4px);
}

.sidebar-nav a:hover .nav-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.4));
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(244, 63, 94, 0.05));
    color: #fff;
    font-weight: 600;
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15), inset 0 0 30px rgba(124, 58, 237, 0.03);
}

.sidebar-nav a.active .nav-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.6));
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-rose));
    box-shadow: 0 0 8px var(--primary-glow);
}

.sidebar-nav a.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-nav a.logout-link:hover {
    background: rgba(244, 63, 94, 0.08);
    color: var(--accent-rose-light);
    border-color: rgba(244, 63, 94, 0.15);
}

.sidebar-nav a.logout-link:hover .nav-icon {
    color: var(--accent-rose);
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.4));
}

/* Nav Badge */
.nav-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: #fff;
    margin-left: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--spacing-4) var(--spacing-5);
    border-top: 1px solid var(--divider);
}

.sidebar-version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-family-mono);
}

.version-icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

/* QA Divider */
.qa-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--spacing-2) var(--spacing-4);
    list-style: none;
}

/* QA Toggle Link */
.qa-toggle-link {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(124, 58, 237, 0.04)) !important;
    border: 1px solid rgba(34, 211, 238, 0.12) !important;
}

.qa-toggle-link:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(124, 58, 237, 0.08)) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle .toggle-icon {
    width: 18px;
    height: 18px;
}

.sidebar-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════ */
.page-header {
    margin: 0 0 var(--spacing-6) 0;
    position: relative;
    z-index: 1;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-5);
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.top-bar h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
    letter-spacing: -0.75px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 40%, var(--accent-rose-light) 70%, var(--secondary-color) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease infinite;
}

@keyframes titleShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS - Premium Gradient Style
   ═══════════════════════════════════════════════════════════ */
.button, button[type="submit"], input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--motion-easing-standard);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.button::before, button[type="submit"]::before, input[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(124, 58, 237, 0.4), var(--glow-primary);
    border-color: var(--primary-light);
}

.button:hover::before, button[type="submit"]:hover::before, input[type="submit"]:hover::before {
    opacity: 1;
}

.button:active, button[type="submit"]:active, input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Button Variants */
.button-danger, .btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-hover) 100%);
    border-color: rgba(244, 63, 94, 0.3);
}

.button-danger:hover, .btn-danger:hover {
    box-shadow: 0 8px 25px -5px rgba(244, 63, 94, 0.4), var(--glow-rose);
    border-color: var(--accent-rose-light);
}

.button-secondary, .btn-secondary {
    background: var(--bg-surface-variant);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.button-secondary:hover, .btn-secondary:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--elevation-2);
}

/* ═══════════════════════════════════════════════════════════
   FORMS - Glassmorphism Cards
   ═══════════════════════════════════════════════════════════ */
.styled-form {
    background: var(--bg-card);
    padding: var(--spacing-8);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--elevation-3);
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-6);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.styled-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 20%, var(--accent-rose) 50%, var(--secondary-color) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: formTopBorder 4s linear infinite;
}

@keyframes formTopBorder {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.styled-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.form-group {
    margin-bottom: var(--spacing-5);
    position: relative;
    z-index: 1;
}

.form-group label, label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s var(--motion-easing-standard);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.03);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 0 20px rgba(124, 58, 237, 0.05);
}

input::placeholder, textarea::placeholder {
    color: var(--text-disabled);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select option {
    background-color: #1C1C1F;
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
}

/* Search Input */
.search-input {
    padding: 10px 16px 10px 40px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    min-width: 220px;
    transition: all 0.3s var(--motion-easing-standard);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.3)' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8' stroke='rgba(255,255,255,0.3)' stroke-width='2' fill='none'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65' stroke='rgba(255,255,255,0.3)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px;
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: rgba(124, 58, 237, 0.04);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
    min-width: 280px;
}

/* ═══════════════════════════════════════════════════════════
   TABLES - Premium Data Grid
   ═══════════════════════════════════════════════════════════ */
.table-container, .sortable-table {
    width: 100%;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--elevation-2);
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

table thead tr {
    background: linear-gradient(135deg, var(--bg-surface-variant) 0%, rgba(28, 28, 31, 0.95) 100%);
}

table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: relative;
}

table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

table td {
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table { background-color: var(--bg-surface); }

table tbody tr {
    background-color: var(--bg-surface);
    transition: all 0.3s ease;
    position: relative;
}

table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.01);
}

table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0%, rgba(244, 63, 94, 0.02) 50%, transparent 100%);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

table tbody tr:hover td:first-child {
    color: var(--primary-light);
}

tr:last-child td { border-bottom: none; }

td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* Sort indicators */
th[data-sort] {
    cursor: pointer;
    user-select: none;
}

th[data-sort]:hover {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════
   ALERTS - Floating Notifications
   ═══════════════════════════════════════════════════════════ */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-lg);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    animation: alertSlideIn 0.4s var(--motion-easing-spring);
}

@keyframes alertSlideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.alert-error, .alert-danger {
    background: rgba(244, 63, 94, 0.1);
    color: #FCA5A5;
    border-color: rgba(244, 63, 94, 0.2);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #FDE68A;
    border-color: rgba(251, 191, 36, 0.2);
}

.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: var(--elevation-4);
    animation: alertSlideIn 0.4s var(--motion-easing-spring), alertFadeOut 0.5s ease 4s forwards;
}

@keyframes alertFadeOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.95); pointer-events: none; }
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION - Pill Style
   ═══════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--spacing-6);
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: var(--spacing-4);
    font-family: var(--font-family-mono);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s var(--motion-easing-standard);
    cursor: pointer;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled):not(.current) {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.pagination-btn.current {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.pagination-btn.disabled {
    background: transparent;
    color: var(--text-disabled);
    border-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   STATUS BADGES - Glowing Pills
   ═══════════════════════════════════════════════════════════ */
.status-badge, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-success, .status-active {
    background: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-danger, .status-expired {
    background: rgba(244, 63, 94, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}

.badge-warning, .status-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #FDE68A;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-info {
    background: rgba(34, 211, 238, 0.12);
    color: #67E8F9;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH - Neon Style
   ═══════════════════════════════════════════════════════════ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-full);
    transition: all 0.3s var(--motion-easing-standard);
    border: 1px solid var(--border-color);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s var(--motion-easing-spring);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE - Animated Background
   ═══════════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-6);
    position: relative;
    overflow: hidden;
    background: #000;
}

.login-page::before {
    content: none;
}

.login-page::after {
    content: none;
}

/* Movie Poster Slideshow */
.login-bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgSlide 36s infinite;
    transform: scale(1.05);
}

.login-bg-slide-1 {
    background-image: url('https://image.tmdb.org/t/p/original/8Y43POKjjKDGI9MH89NW0NAzzp8.jpg');
    animation-delay: 0s;
}
.login-bg-slide-2 {
    background-image: url('https://image.tmdb.org/t/p/original/tmU7GeKVybMWFButWEGl2M4GeiP.jpg');
    animation-delay: 6s;
}
.login-bg-slide-3 {
    background-image: url('https://image.tmdb.org/t/p/original/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg');
    animation-delay: 12s;
}
.login-bg-slide-4 {
    background-image: url('https://image.tmdb.org/t/p/original/ztkUQFLlC19CCMYHW73GM6EQ3AU.jpg');
    animation-delay: 18s;
}
.login-bg-slide-5 {
    background-image: url('https://image.tmdb.org/t/p/original/4HodYYKEIsGOdinkGi2Ucz6X9i0.jpg');
    animation-delay: 24s;
}
.login-bg-slide-6 {
    background-image: url('https://image.tmdb.org/t/p/original/rSPw7tgCH9c6NqICZef4kZjFOQ5.jpg');
    animation-delay: 30s;
}

@keyframes bgSlide {
    0% { opacity: 0; transform: scale(1.05); }
    4% { opacity: 1; transform: scale(1.05); }
    16.67% { opacity: 1; transform: scale(1); }
    20.67% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

.login-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-2xl);
    padding: var(--spacing-10);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--elevation-8), 0 0 80px rgba(124, 58, 237, 0.08);
    animation: loginCardAppear 0.8s var(--motion-easing-spring);
}

@keyframes loginCardAppear {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-rose), var(--secondary-color));
    border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
}

.login-card h1, .login-card .login-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-2);
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: var(--spacing-8);
}

.login-card .form-group {
    margin-bottom: var(--spacing-5);
}

.login-card input[type="text"],
.login-card input[type="password"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    font-size: 14px;
    border-radius: var(--border-radius-lg);
}

.login-card .button, .login-card button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-rose) 100%);
    border: none;
    letter-spacing: 0.5px;
}

.login-card .button:hover, .login-card button[type="submit"]:hover {
    box-shadow: 0 12px 35px -5px rgba(124, 58, 237, 0.4), 0 0 60px rgba(244, 63, 94, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   CARDS & CONTENT BLOCKS
   ═══════════════════════════════════════════════════════════ */
.content {
    position: relative;
    z-index: 1;
}

.card, .panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--motion-easing-standard);
}

.card:hover, .panel-card:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: var(--elevation-2), 0 0 30px rgba(124, 58, 237, 0.05);
}

.card::before, .panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before, .panel-card:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   ACTION BUTTONS (Table Actions)
   ═══════════════════════════════════════════════════════════ */
.action-btn, .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--motion-easing-standard);
}

.action-btn:hover, .btn-sm:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.action-btn.edit:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: var(--secondary-color);
    color: var(--secondary-light);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.15);
}

.action-btn.delete:hover, .btn-sm.danger:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--accent-rose);
    color: var(--accent-rose-light);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   QUICK ACCESS PANEL - Cyberpunk Command Center
   ═══════════════════════════════════════════════════════════ */
.qa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qa-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.qa-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--motion-easing-spring);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.qa-panel.active {
    right: 0;
}

.qa-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-rose), var(--secondary-color));
    opacity: 0.5;
}

.qa-panel-header {
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-4);
    border-bottom: 1px solid var(--divider);
}

.qa-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qa-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qa-header-icon {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
    animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.qa-title-row h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.qa-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.qa-close:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

.qa-close-icon {
    width: 16px;
    height: 16px;
}

.qa-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.qa-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-5);
}

.qa-section {
    margin-bottom: var(--spacing-5);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4);
}

.qa-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-3);
}

.qa-section-header h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.qa-section-icon {
    width: 18px;
    height: 18px;
}

.qa-section-icon.danger { color: var(--accent-rose); }
.qa-section-icon.warning { color: var(--accent-amber); }
.qa-section-icon.info { color: var(--secondary-color); }
.qa-section-icon.accent { color: var(--primary-light); }

.qa-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    margin-left: auto;
}

.qa-badge-danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose-light);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.qa-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* QA Actions Grid */
.qa-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qa-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--spacing-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s var(--motion-easing-standard);
}

.qa-action-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.1);
}

.qa-action-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
}

.qa-action-btn:hover .qa-action-icon {
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
}

/* QA User List */
.qa-user-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    font-size: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.qa-user-item:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.04);
}

/* QA Loading */
.qa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-10);
    gap: var(--spacing-4);
    color: var(--text-muted);
    font-size: 13px;
}

.qa-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-rose);
    border-radius: 50%;
    animation: qaSpin 1s linear infinite;
}

@keyframes qaSpin {
    to { transform: rotate(360deg); }
}

/* QA API List */
.qa-api-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-api-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.qa-api-item .api-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.qa-api-item .api-bar {
    height: 4px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.qa-api-item .api-bar-fill {
    height: 100%;
    border-radius: var(--border-radius-full);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s var(--motion-easing-decelerate);
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-5);
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-6);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.4;
}

.settings-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--divider);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE - API Cards
   ═══════════════════════════════════════════════════════════ */

/* Service Type Selection Options */
.service-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s var(--motion-easing-standard);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.service-option:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

.service-option.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(244, 63, 94, 0.05));
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2), inset 0 0 20px rgba(124, 58, 237, 0.03);
}

.service-option.active::before {
    content: '✓';
    margin-right: 10px;
    color: var(--primary-light);
    font-weight: 700;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-4);
    transition: all 0.3s var(--motion-easing-standard);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--elevation-2), var(--glow-primary);
    transform: translateY(-2px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   MICRO-INTERACTIONS & ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.2) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface-variant) 25%, var(--bg-lighter) 50%, var(--bg-surface-variant) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > * {
    animation: fadeInUp 0.4s var(--motion-easing-decelerate) both;
}

.content > *:nth-child(1) { animation-delay: 0s; }
.content > *:nth-child(2) { animation-delay: 0.05s; }
.content > *:nth-child(3) { animation-delay: 0.1s; }
.content > *:nth-child(4) { animation-delay: 0.15s; }

/* Focus Ring */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    main {
        margin-left: 0;
        padding: 20px 16px;
    }

    main::before {
        left: 0;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar h1 {
        font-size: 1.5rem;
    }

    .search-input {
        min-width: 100%;
    }

    .qa-panel {
        width: 100%;
        max-width: 100%;
    }

    .qa-actions-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 10px 12px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: var(--spacing-6);
    }

    .styled-form {
        padding: var(--spacing-5);
    }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-rose {
    background: linear-gradient(135deg, var(--accent-rose-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-violet { box-shadow: var(--glow-primary); }
.glow-rose { box-shadow: var(--glow-rose); }
.glow-cyan { box-shadow: var(--glow-cyan); }

.mono { font-family: var(--font-family-mono); }

/* Hidden utility */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════════════════════
   EXPIRY STYLES
   ═══════════════════════════════════════════════════════════ */
.expiry-active {
    color: #6EE7B7;
    font-weight: 500;
}

.expiry-warning {
    color: #FDE68A;
    font-weight: 500;
}

.expiry-expired {
    color: #FCA5A5;
    font-weight: 500;
}

.expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 600;
}

.expiry-badge.active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.expiry-badge.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.expiry-badge.expired {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   FORM SECTIONS & FIELDSETS
   ═══════════════════════════════════════════════════════════ */
fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-5);
}

legend {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 8px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-5);
    border-top: 1px solid var(--divider);
}

/* ═══════════════════════════════════════════════════════════
   INLINE EDIT / MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-8);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--elevation-8);
    animation: modalAppear 0.3s var(--motion-easing-spring);
}

@keyframes modalAppear {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════════════════════ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 6px 12px;
    background: var(--bg-glass-heavy);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: var(--spacing-12) var(--spacing-6);
    color: var(--text-muted);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-4);
    color: var(--text-disabled);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
}

.empty-state p {
    font-size: 13px;
    max-width: 300px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   TABS (for settings/services)
   ═══════════════════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 3px;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-5);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.25s var(--motion-easing-standard);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */
@media print {
    .sidebar, .sidebar-toggle, .qa-panel, .qa-overlay { display: none !important; }
    main { margin-left: 0 !important; }
    body { background: #fff; color: #000; }
}