/**
 * JZ PANEL - Ultra-Modern Glassmorphism 3.0 & True 3D Tactile Buttons
 * Mobile-First Native App Experience
 */

:root {
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Dark Theme Colors (Deep Obsidian Glass) */
    --bg-base: #060913;
    --bg-surface: rgba(14, 20, 36, 0.76);
    --bg-surface-elevated: rgba(19, 27, 48, 0.88);
    --bg-surface-highlight: rgba(28, 39, 68, 0.94);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.09);
    --bg-glass-active: rgba(255, 255, 255, 0.14);
    
    /* Border & Glass Accents */
    --border-glass: rgba(255, 255, 255, 0.11);
    --border-glass-subtle: rgba(255, 255, 255, 0.06);
    --border-glass-glow: rgba(99, 102, 241, 0.6);
    --border-glass-cyan: rgba(6, 182, 212, 0.6);
    --border-glass-emerald: rgba(16, 185, 129, 0.6);
    --border-glass-amber: rgba(245, 158, 11, 0.6);
    
    /* Glassmorphism Blurs & Shadows */
    --blur-glass-sm: blur(14px) saturate(170%);
    --blur-glass: blur(28px) saturate(200%);
    --blur-glass-heavy: blur(42px) saturate(220%);
    --shadow-glass: 0 16px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --shadow-glass-elevated: 0 24px 55px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --shadow-glass-3d: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
    
    --shadow-glow-primary: 0 0 35px rgba(99, 102, 241, 0.55);
    --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.55);
    --shadow-glow-emerald: 0 0 35px rgba(16, 185, 129, 0.55);
    --shadow-glow-rose: 0 0 35px rgba(244, 63, 94, 0.55);
    --shadow-glow-amber: 0 0 35px rgba(245, 158, 11, 0.55);

    /* Brand Gradients & Accents */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --primary-gradient-3d: linear-gradient(180deg, #7c80ff 0%, #6366f1 40%, #4f46e5 100%);
    
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
    --cyan-gradient-3d: linear-gradient(180deg, #22d3ee 0%, #06b6d4 45%, #0284c7 100%);
    
    --emerald-gradient-3d: linear-gradient(180deg, #34d399 0%, #10b981 45%, #059669 100%);
    --rose-gradient-3d: linear-gradient(180deg, #fb7185 0%, #f43f5e 45%, #e11d48 100%);
    --amber-gradient-3d: linear-gradient(180deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    --purple-gradient-3d: linear-gradient(180deg, #c084fc 0%, #a855f7 45%, #7e22ce 100%);

    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #a855f7;
    
    /* Text Hierarchy */
    --text-main: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-inverse: #0f172a;
    
    /* 3D Button Depth Baselines */
    --btn-3d-depth: 4px;
    --btn-3d-depth-hover: 6px;
    --btn-3d-depth-active: 1px;
    
    --btn-primary-3d-bevel: #3730a3;
    --btn-success-3d-bevel: #047857;
    --btn-danger-3d-bevel: #be123c;
    --btn-cyan-3d-bevel: #0369a1;
    --btn-amber-3d-bevel: #b45309;
    --btn-purple-3d-bevel: #6b21a8;
    --btn-glass-3d-bevel: rgba(255, 255, 255, 0.08);

    /* Radii */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-elevated: rgba(255, 255, 255, 0.98);
    --bg-surface-highlight: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.035);
    --bg-glass-hover: rgba(0, 0, 0, 0.07);
    --bg-glass-active: rgba(0, 0, 0, 0.12);
    --border-glass: rgba(0, 0, 0, 0.1);
    --border-glass-subtle: rgba(0, 0, 0, 0.05);
    --border-glass-glow: rgba(99, 102, 241, 0.4);
    --shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-glass-elevated: 0 20px 40px -10px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --shadow-glass-3d: 0 10px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-body: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --btn-glass-3d-bevel: rgba(0, 0, 0, 0.15);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Ambient Background Glows */
.ambient-glow-1 {
    position: fixed;
    top: -140px;
    left: -100px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.04) 60%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: ambientFloat1 20s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -140px;
    right: -100px;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(168, 85, 247, 0.06) 60%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    filter: blur(65px);
    animation: ambientFloat2 24s ease-in-out infinite alternate;
}

.ambient-glow-3 {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    filter: blur(75px);
}

@keyframes ambientFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(45px, 35px) scale(1.12); }
    100% { transform: translate(-25px, 55px) scale(0.94); }
}

@keyframes ambientFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-45px, -35px) scale(1.1); }
    100% { transform: translate(35px, -55px) scale(0.92); }
}

/* ========================================================
   Glass Card Components
   ======================================================== */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding: 22px;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.glass-card-elevated {
    background: var(--bg-surface-elevated);
    backdrop-filter: var(--blur-glass-heavy);
    -webkit-backdrop-filter: var(--blur-glass-heavy);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass-elevated);
}

.glass-card-interactive {
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card-interactive:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-glow);
    box-shadow: 0 20px 45px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.3);
}

.glass-card-interactive:active {
    transform: translateY(-1px) scale(0.99);
}

/* ========================================================
   TRUE 3D TACTILE BUTTONS SYSTEM
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-height: 46px; /* Touch-friendly tap target */
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: visible; /* Required for 3D bottom bevel */
    
    /* 3D Smooth Physics Transition */
    transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), 
                box-shadow 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), 
                filter 0.15s ease, 
                background 0.2s ease;
}

/* Glossy 3D Highlight Sheen */
.btn::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.85;
}

/* 3D Button Push Down Action */
.btn:active {
    transform: translateY(3px) !important;
}

/* 1. PRIMARY 3D BUTTON (Indigo / Violet) */
.btn-primary, .btn-3d-primary {
    background: var(--primary-gradient-3d);
    color: #ffffff;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-primary-3d-bevel), 
                0 10px 22px rgba(99, 102, 241, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.btn-primary:hover, .btn-3d-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-primary-3d-bevel), 
                0 14px 28px rgba(99, 102, 241, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

.btn-primary:active, .btn-3d-primary:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-primary-3d-bevel), 
                0 4px 10px rgba(99, 102, 241, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 2. SUCCESS 3D BUTTON (Emerald Neon) */
.btn-success, .btn-3d-success {
    background: var(--emerald-gradient-3d);
    color: #ffffff;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-success-3d-bevel), 
                0 10px 22px rgba(16, 185, 129, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.btn-success:hover, .btn-3d-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-success-3d-bevel), 
                0 14px 28px rgba(16, 185, 129, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

.btn-success:active, .btn-3d-success:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-success-3d-bevel), 
                0 4px 10px rgba(16, 185, 129, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 3. DANGER / CANCEL 3D BUTTON (Ruby Rose) */
.btn-danger, .btn-3d-danger {
    background: var(--rose-gradient-3d);
    color: #ffffff;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-danger-3d-bevel), 
                0 10px 22px rgba(244, 63, 94, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.btn-danger:hover, .btn-3d-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-danger-3d-bevel), 
                0 14px 28px rgba(244, 63, 94, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

.btn-danger:active, .btn-3d-danger:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-danger-3d-bevel), 
                0 4px 10px rgba(244, 63, 94, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 4. CYAN / DISCOVER 3D BUTTON (Electric Sapphire) */
.btn-cyan, .btn-3d-cyan {
    background: var(--cyan-gradient-3d);
    color: #ffffff;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-cyan-3d-bevel), 
                0 10px 22px rgba(6, 182, 212, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.btn-cyan:hover, .btn-3d-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-cyan-3d-bevel), 
                0 14px 28px rgba(6, 182, 212, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

.btn-cyan:active, .btn-3d-cyan:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-cyan-3d-bevel), 
                0 4px 10px rgba(6, 182, 212, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 5. AMBER / VIP 3D BUTTON (Gold Gemstone) */
.btn-amber, .btn-3d-amber {
    background: var(--amber-gradient-3d);
    color: #0f172a;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-amber-3d-bevel), 
                0 10px 22px rgba(245, 158, 11, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.btn-amber:hover, .btn-3d-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-amber-3d-bevel), 
                0 14px 28px rgba(245, 158, 11, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.06);
}

.btn-amber:active, .btn-3d-amber:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-amber-3d-bevel), 
                0 4px 10px rgba(245, 158, 11, 0.35);
}

/* 6. PURPLE 3D BUTTON */
.btn-purple, .btn-3d-purple {
    background: var(--purple-gradient-3d);
    color: #ffffff;
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-purple-3d-bevel), 
                0 10px 22px rgba(168, 85, 247, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.btn-purple:hover, .btn-3d-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-purple-3d-bevel), 
                0 14px 28px rgba(168, 85, 247, 0.6);
}

.btn-purple:active, .btn-3d-purple:active {
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-purple-3d-bevel);
}

/* 7. GLASS 3D BUTTON (Frosted Acrylic Crystal) */
.btn-glass, .btn-3d-glass {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: var(--blur-glass-sm);
    -webkit-backdrop-filter: var(--blur-glass-sm);
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-glass-3d-bevel), 
                0 8px 18px rgba(0, 0, 0, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-glass:hover, .btn-3d-glass:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 var(--btn-3d-depth-hover) 0 var(--btn-glass-3d-bevel), 
                0 12px 24px rgba(0, 0, 0, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-glass:active, .btn-3d-glass:active {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 var(--btn-3d-depth-active) 0 var(--btn-glass-3d-bevel), 
                0 3px 8px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-glass.active {
    background: var(--primary-gradient-3d);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 var(--btn-3d-depth) 0 var(--btn-primary-3d-bevel), 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* 3D Button Sizing Modifiers */
.btn-sm {
    padding: 7px 16px;
    font-size: 12.5px;
    min-height: 38px;
    border-radius: var(--radius-sm);
    --btn-3d-depth: 3px;
    --btn-3d-depth-hover: 4px;
    --btn-3d-depth-active: 1px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 800;
    border-radius: var(--radius-lg);
    min-height: 52px;
    letter-spacing: 0.2px;
    --btn-3d-depth: 5px;
    --btn-3d-depth-hover: 7px;
    --btn-3d-depth-active: 1px;
}

.btn-block {
    width: 100%;
}

/* ========================================================
   Glass Form Inputs
   ======================================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.1px;
}

.form-control, .form-select {
    width: 100%;
    padding: 13px 18px;
    background: rgba(10, 15, 28, 0.82);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-fast);
    min-height: 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35), 0 0 25px rgba(99, 102, 241, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(15, 22, 42, 0.96);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

/* Select Dropdown Native Options */
select.form-select option {
    background-color: #0b101f;
    color: #f8fafc;
    padding: 12px 16px;
    font-size: 14px;
}

[data-theme="light"] select.form-select option {
    background-color: #ffffff;
    color: #0f172a;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* ========================================================
   Status Badges with 3D Depth
   ======================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-completed .badge-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }

.badge-processing {
    background: rgba(6, 182, 212, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.4);
}
.badge-processing .badge-dot { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }

.badge-inprogress, .badge-in-progress {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.badge-inprogress .badge-dot, .badge-in-progress .badge-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

.badge-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-pending .badge-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.badge-partial {
    background: rgba(139, 92, 246, 0.16);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}
.badge-partial .badge-dot { background: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }

.badge-canceled, .badge-cancelled {
    background: rgba(100, 116, 139, 0.16);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.4);
}
.badge-canceled .badge-dot { background: #64748b; }

.badge-failed {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.badge-failed .badge-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* ========================================================
   Toast Notifications
   ======================================================== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast {
    background: rgba(18, 24, 42, 0.95);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: auto;
    animation: slideInToast 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: var(--transition-fast);
}

.toast-success { border-left: 5px solid var(--accent-emerald); }
.toast-error { border-left: 5px solid var(--accent-rose); }
.toast-info { border-left: 5px solid var(--accent-cyan); }

@keyframes slideInToast {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========================================================
   Modals & Glass Bottom Sheets
   ======================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 16, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-glass-elevated);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================================
   Utility Classes & Typography
   ======================================================== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-cyan {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.text-purple { color: var(--accent-purple); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.gap-4 { gap: 20px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 14px; }
.p-4 { padding: 20px; }

/* Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-glass {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-glass th {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: rgba(13, 19, 33, 0.6);
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

.table-glass td {
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.table-glass tbody tr {
    transition: var(--transition-fast);
}

.table-glass tbody tr:hover {
    background: var(--bg-glass-hover);
}

/* Code Viewer */
.code-viewer {
    background: rgba(7, 10, 19, 0.88);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 13px;
    color: #38bdf8;
    overflow-x: auto;
    line-height: 1.5;
    white-space: pre;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Sleek Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================================
   Social OAuth 2.0 (Google Login) 3D Glass Button
   ======================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 18px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
}

.auth-divider span {
    padding: 0 14px;
}

.btn-google-3d {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 20px;
    border-radius: var(--radius-md, 14px);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast, all 0.2s);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-google-3d:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-google-3d:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.google-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}
