/* =================================================================================
   CSS VARIABLES THEME SYSTEM
   ================================================================================= */

/* ✅ WCAG-Compliant Hardcoded Color Overrides */
/* These classes override hardcoded Tailwind colors with theme-aware CSS variables */
.bg-\[#FEE715\], .bg-\[#FFD700\] {
    background-color: var(--accent-primary) !important;
}

.text-\[#FEE715\], .text-\[#FFD700\] {
    color: var(--accent-primary) !important;
}

.border-\[#FEE715\], .border-\[#FFD700\] {
    border-color: var(--accent-primary) !important;
}

/* Hover state overrides */
.hover\:text-\[#FEE715\]:hover, .hover\:text-\[#FFD700\]:hover,
.group-hover\:text-\[#FFD700\]:hover {
    color: var(--accent-secondary) !important;
}

/* Opacity variants - these need special handling */
.border-\[#FEE715\]\/20 {
    border-color: rgba(var(--accent-primary-rgb, 255, 215, 0), 0.2) !important;
}

.bg-\[#FEE715\]\/20 {
    background-color: rgba(var(--accent-primary-rgb, 255, 215, 0), 0.2) !important;
}

.hover\:shadow-\[#FEE715\]\/10:hover {
    --tw-shadow-color: rgba(var(--accent-primary-rgb, 255, 215, 0), 0.1) !important;
}

/* Light theme specific overrides for brand colors */
body.light-theme .bg-\[#FEE715\], 
body.light-theme .bg-\[#FFD700\] {
    background-color: var(--color-brand-darker) !important;
}

body.light-theme .text-\[#FEE715\], 
body.light-theme .text-\[#FFD700\] {
    color: var(--color-brand-darker) !important;
}

body.light-theme .border-\[#FEE715\], 
body.light-theme .border-\[#FFD700\] {
    border-color: var(--color-brand-darker) !important;
}

:root {
    /* ✅ PHASE 4B: WCAG-Compliant Color Token System */
    /* Dark Theme Variables (Default) */
    --bg-primary: #0f172a;
    --bg-secondary: rgba(30, 41, 59, 0.8);
    --bg-tertiary: rgba(30, 41, 59, 0.7);
    --bg-quaternary: rgba(30, 41, 59, 0.6);
    --bg-glass: rgba(30, 41, 59, 0.4);
    --bg-input: rgba(248, 250, 252, 0.95);
    --bg-skeleton: rgba(30, 41, 59, 0.4);
    --bg-skeleton-shine: rgba(30, 41, 59, 0.6);
    
    /* Packages Section Colors (from nanobanana.ai) */
    --pkg-bg: rgba(249, 250, 251, 0.03);
    --pkg-card-bg: rgba(255, 255, 255, 0.05);
    --pkg-border: rgba(229, 231, 235, 0.1);
    --pkg-text-primary: #f1f5f9;
    --pkg-text-secondary: #94a3b8;
    --pkg-checkmark: #4f46e5;
    --pkg-popular-accent: #4f46e5;
    --pkg-popular-badge-bg: #4f46e5;
    --pkg-popular-badge-text: #ffffff;
    --pkg-popular-cta-bg: #4f46e5;
    --pkg-popular-cta-text: #ffffff;
    --pkg-standard-cta-bg: rgba(255, 255, 255, 0.05);
    --pkg-standard-cta-text: #4f46e5;
    --pkg-standard-cta-border: rgba(229, 231, 235, 0.2);
    
    /* Brand Color Tokens - Dark Theme Optimized */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-input: #111827;
    --text-gradient-from: #FFD700; /* Bright gold for dark backgrounds */
    --text-gradient-to: #D4A017;   /* Darker gold for gradient */
    
    --border-primary: #334155;
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-input-focus: #FFD700; /* Bright gold for dark theme focus */
    
    /* Brand Accent Colors - Dark Theme */
    --accent-primary: #FFD700;    /* Bright gold - optimal for dark backgrounds */
    --accent-secondary: #D4A017;  /* Darker gold for variety */
    --accent-tertiary: #7c3aed;
    
    /* Brand Color Variants for Different Contexts */
    --color-brand-bright: #FFD700;     /* 4.5:1 on dark backgrounds */
    --color-brand-medium: #D4A017;     /* Balanced gold */
    --color-brand-dark: #B8860B;       /* For light backgrounds */
    --color-brand-darker: #8B6914;     /* WCAG AA compliant on white (7:1 ratio) */
    
    /* RGB Values for Opacity Calculations */
    --accent-primary-rgb: 255, 215, 0;   /* #FFD700 as RGB */
    --accent-secondary-rgb: 212, 160, 23; /* #D4A017 as RGB */
    
    /* Semantic Color Tokens */
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.3);
    
    --warning-color: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.2);
    --warning-border: rgba(245, 158, 11, 0.3);
    
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
    
    --shadow-primary: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    --shadow-accent: 0 4px 15px rgba(212, 160, 23, 0.4);
    --shadow-accent-hover: 0 6px 20px rgba(212, 160, 23, 0.6);
    
    --glow-primary: rgba(212, 160, 23, 0.4);
    --glow-secondary: rgba(212, 160, 23, 0);
    --glow-hover: rgba(212, 160, 23, 0.6);
    
    --backdrop-blur: blur(12px);
    --backdrop-blur-strong: blur(20px);
    
    /* Layout Variables */
    --header-height: 60px;
    --bottom-nav-height: 60px;
}

/* Light Theme Variables */
body.light-theme {
    /* ✅ WCAG AA Compliant Light Theme Overrides */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(248, 250, 252, 0.9);
    --bg-tertiary: rgba(241, 245, 249, 0.8);
    --bg-quaternary: rgba(226, 232, 240, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-input: #ffffff;
    --bg-skeleton: rgba(226, 232, 240, 0.6);
    --bg-skeleton-shine: rgba(203, 213, 225, 0.8);
    
    /* WCAG-Compliant Text Colors for Light Backgrounds */
    --text-primary: #1e293b;           /* 15.6:1 contrast ratio on white */
    --text-secondary: #475569;         /* 7.4:1 contrast ratio on white - improved from #64748b (5.7:1) */
    --text-input: #1e293b;
    --text-gradient-from: #8B6914;     /* 7:1 contrast ratio - WCAG AA compliant */
    --text-gradient-to: #B8860B;       /* 4.5:1 contrast ratio */
    
    --border-primary: #e2e8f0;
    --border-glass: rgba(226, 232, 240, 0.3);
    --border-input-focus: #8B6914;     /* WCAG AA compliant focus color - 5.1:1 contrast */
    
    /* Brand Accent Colors - Light Theme WCAG Compliant */
    --accent-primary: #8B6914;         /* 5.1:1 contrast on white - WCAG AA compliant */
    --accent-secondary: #8B6914;       /* 5.1:1 contrast on white - Darker gold */
    --accent-tertiary: #7c3aed;
    
    /* Brand Color Overrides for Light Theme */
    --color-brand-bright: #8B6914;     /* Use darker variant on light backgrounds */
    --color-brand-medium: #8B6914;     /* WCAG compliant gold - 5.1:1 contrast */
    --color-brand-dark: #D4A017;       /* Can be used for backgrounds */
    --color-brand-darker: #8B6914;     /* Primary text color on light backgrounds */
    
    /* RGB Values for Light Theme Opacity Calculations */
    --accent-primary-rgb: 139, 105, 20;  /* #8B6914 as RGB for light theme */
    --accent-secondary-rgb: 139, 105, 20; /* #8B6914 as RGB for light theme */
    
    /* Package/Billing Text Colors for Light Mode */
    --pkg-text-primary: #1e293b;
    --pkg-text-secondary: #475569;     /* 7.4:1 contrast ratio - WCAG compliant */
    --pkg-bg: rgba(248, 250, 252, 0.5);
    --pkg-card-bg: rgba(255, 255, 255, 0.8);
    --pkg-border: rgba(226, 232, 240, 0.3);
    --pkg-checkmark: #059669;
    
    --success-color: #059669;
    --success-bg: rgba(5, 150, 105, 0.1);
    --success-border: rgba(5, 150, 105, 0.3);
    
    --warning-color: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --warning-border: rgba(217, 119, 6, 0.3);
    
    --error-color: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.1);
    --error-border: rgba(220, 38, 38, 0.3);
    
    --shadow-primary: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 4px 15px rgba(212, 160, 23, 0.3);
    --shadow-accent-hover: 0 6px 20px rgba(212, 160, 23, 0.4);
    
    --glow-primary: rgba(212, 160, 23, 0.2);
    --glow-secondary: rgba(212, 160, 23, 0);
    --glow-hover: rgba(212, 160, 23, 0.3);
    
    --backdrop-blur: blur(12px);
    --backdrop-blur-strong: blur(20px);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Input text color fix - CRITICAL for visibility */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"],
select,
.form-input {
    color: var(--text-input) !important;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    backdrop-filter: var(--backdrop-blur-strong);
    border-right: 1px solid var(--border-primary);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-primary);
    transition: border-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    padding: 12px 20px;
    margin: 4px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: calc(100% - 32px); /* Full width minus margins */
    box-sizing: border-box;
}

/* Ensure sidebar navigation items always display horizontally */
.sidebar .nav-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Specific styling for digitize button in sidebar */
.sidebar .digitize-nav-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

.nav-item:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-accent);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 24px;
    background: transparent;
    max-width: 1600px;
    margin-right: auto;
}

/* Page Content Routing System */
.page-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content[style*="display: none"] {
    display: none !important;
}

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

/* Placeholder Page Styles */
.settings-container, .billing-container, .upload-container {
    text-align: left;
    padding: 0px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.settings-container h2, .billing-container h2, .upload-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.upload-page-actions {
    margin-top: 32px;
}

.upload-page-actions .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Standardized App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    height: var(--header-height);
    padding: 0 16px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.header-subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* User Dropdown Container */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown-trigger {
    background: var(--bg-secondary);
    backdrop-filter: var(--backdrop-blur-strong);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown-trigger:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-accent);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: var(--shadow-accent);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-secondary);
    backdrop-filter: var(--backdrop-blur-strong);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.user-info {
    flex: 1;
}

.user-email {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 0 16px;
}

.user-dropdown-actions {
    padding: 12px;
}

.dropdown-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.dropdown-action-btn.logout-action:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-action-btn .material-icons {
    font-size: 20px;
}

.logout-btn {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-theme-toggle .theme-toggle-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.header-theme-toggle .theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.header-theme-toggle input:checked + .theme-toggle-btn {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.header-theme-toggle input:checked + .theme-toggle-btn .material-icons {
    content: 'dark_mode';
}

.logout-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

/* Stats Cards */
/* Mobile-first responsive stats grid */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* 2-column layout for mobile landscape and small tablets */
@media (min-width: 480px) {
    .stats-grid {
        flex-direction: row;
        gap: 1.25rem;
    }
    
    .stats-grid .stat-card {
        flex: 1 1 50%;
    }
}

/* Larger screens - allow more flexible grid */
@media (min-width: 768px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }
}

.stat-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Purple glow effects for glassmorphism containers */
.stat-card::before,
.usage-chart::before,
.modal-content::before,
.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.15;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

/* Subtle grey effect for data sections (tables) */
.data-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(156, 163, 175, 0.05) 0%,
        rgba(156, 163, 175, 0.02) 50%,
        rgba(156, 163, 175, 0.05) 100%
    );
    opacity: 0.1;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.stat-card:hover,
.data-section:hover,
.usage-chart:hover,
.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Enhanced glow on hover */
.stat-card:hover::before,
.usage-chart:hover::before,
.quick-action:hover::before {
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

/* Enhanced subtle effect for data sections on hover */
.data-section:hover::before {
    opacity: 0.3;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--bg-quaternary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

/* Documents Processed - White */
#stat-docs-processed {
    color: #ffffff !important;
}

/* Accuracy Rate - Green */
#stat-accuracy-rate {
    color: #10b981 !important;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 500;
}

.trend-up { 
    color: var(--success-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.trend-down { 
    color: var(--error-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Data Tables */
.data-section {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.data-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: border-color 0.3s ease;
}

.data-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.data-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-hover);
}

.btn-secondary {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    box-shadow: 0 4px 15px var(--error-border);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--error-border);
}

.search-box {
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    font-size: 0.9rem;
    width: 200px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.data-controls select {
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.data-controls select:focus {
    outline: none;
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

/* =================================================================================
   BULK ACTION BAR STYLES
   ================================================================================= */

.bulk-action-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bulk-action-bar .selection-count {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
    background: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bulk-action-bar .bulk-delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bulk-action-bar .bulk-delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.bulk-action-bar .bulk-cancel-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.bulk-action-bar .bulk-cancel-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

/* Selected row highlighting */
tr.bulk-selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Animation for bulk delete */
tr.bulk-deleting {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Integrated Bulk Actions */
.table-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.integrated-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

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

.integrated-bulk-actions .selection-count {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-bulk-delete {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bulk-delete:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-bulk-delete .material-icons {
    font-size: 18px;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-primary);
    opacity: 0.6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    vertical-align: middle;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.data-table tr:hover {
    background-color: rgba(15, 23, 42, 0.4);
    transition: background-color 0.3s ease;
}

/* Light theme hover background */
body.light-theme .data-table tr:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-success {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning-color);
    border: 1px solid var(--warning-border);
}

.status-error {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

.action-btn {
    padding: 8px 10px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.quick-action {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-tertiary);
}

.quick-action.full-width {
    background: var(--bg-quaternary);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.quick-action-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.quick-action-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Usage Chart */
.usage-chart {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Yellow Monthly Usage Title (no glow) - Readable in both themes */
.chart-title--yellow {
    /* Use standard text color for readability in both light and dark themes */
    color: var(--text-primary); 
}

/* Neutral Table Theme - Removes Yellow Colors from Tables */
.data-table-neutral-theme {
    /* Define a neutral accent color using a professional blue */
    --table-accent-color: #3b82f6; /* Tailwind's blue-500 */

    /* Override the global theme variables ONLY within this container */
    --accent-primary: var(--table-accent-color);
    --border-input-focus: var(--table-accent-color);
    
    /* Override native form control colors (checkboxes, radios, etc.) */
    accent-color: var(--table-accent-color);
}

/* Professional Grey Theme - Removes Yellow Tint from Dashboard Cards */
.professional-grey-theme {
    /* Define professional grey color palette */
    --grey-primary: #6b7280;    /* Tailwind gray-500 */
    --grey-secondary: #4b5563;  /* Tailwind gray-600 */
    --grey-light: #9ca3af;      /* Tailwind gray-400 */
    --grey-dark: #374151;       /* Tailwind gray-700 */
    
    /* Override accent colors with professional greys */
    --accent-primary: var(--grey-primary);
    --accent-secondary: var(--grey-secondary);
    
    /* Override glow colors with subtle grey glows */
    --glow-primary: rgba(107, 114, 128, 0.3);
    --glow-secondary: rgba(75, 85, 99, 0.2);
}

/* OCR Value Impact Icons - Subtle Bright Yellow */
.dashboard-value-card .value-icon {
    background: linear-gradient(135deg, var(--text-gradient-from), var(--text-gradient-to)) !important;
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3) !important;
    color: #1f2937 !important; /* Dark text for contrast on brand background */
}

/* Dashboard Stat Icons - Yellow Theme */
.professional-grey-theme .stat-card .stat-icon {
    background: rgba(254, 231, 21, 0.15) !important; /* Light yellow background */
    color: #FEE715 !important; /* Bright yellow icon */
    border: 1px solid rgba(254, 231, 21, 0.3) !important;
}

.usage-bar {
    background: var(--bg-primary);
    opacity: 0.8;
    height: 20px;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.usage-fill {
    height: 100%;
    /* Brand color - theme-aware */
    background: var(--accent-primary);
    border-radius: 20px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

/* Ensure yellow color for usage fill */
.usage-fill, .usage-fill--glowing {
    background: #FFD700 !important; /* Bright yellow/gold */
}

.usage-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.usage-bar:hover .usage-fill::before,
.usage-fill:hover::before {
    left: 150%;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* =================================================================================
   DASHBOARD VALUE PROPOSITION SECTION
   ================================================================================= */

/* Dashboard Value Proposition Section */
.dashboard-value-proposition {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.dashboard-value-proposition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.15;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.dashboard-value-proposition:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.dashboard-value-proposition:hover::before {
    opacity: 0.25;
}

.value-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.calculation-note {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.dashboard-value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-value-card {
    background: var(--bg-quaternary);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.dashboard-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-secondary) 0%,
        transparent 50%,
        var(--glow-secondary) 100%
    );
    opacity: 0.1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.dashboard-value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.dashboard-value-card:hover::before {
    opacity: 0.2;
}

.dashboard-value-card .value-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-accent);
    flex-shrink: 0;
}

.dashboard-value-card .value-content {
    flex: 1;
}

.dashboard-value-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dashboard-value-card .value-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Responsive Design for Dashboard Value Cards */
/* Mobile-first: Stack value cards vertically */
@media (max-width: 480px) {
    .dashboard-value-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .dashboard-value-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Small tablets and mobile landscape: 3-column layout */
@media (min-width: 481px) and (max-width: 768px) {
    .dashboard-value-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .dashboard-value-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-height: 120px;
    }
    
    .dashboard-value-number {
        font-size: 1.1rem;
    }
    
    .value-label {
        font-size: 0.8rem;
    }
}
    
    .value-section-title {
        font-size: 1.5rem;
    }
    
    .dashboard-value-number {
        font-size: 1.4rem;
    }


@media (max-width: 480px) {
    .dashboard-value-proposition {
        padding: 24px 20px;
    }
    
    .dashboard-value-card {
        padding: 16px;
    }
    
    .dashboard-value-card .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .dashboard-value-number {
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Enhanced table density for mobile touch targets */
    .data-table th, .data-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Adjust card containers for mobile */
    .stat-card,
    .data-section,
    .usage-chart {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    /* Reduce glow effect height on mobile for performance */
    .stat-card::before,
    .data-section::before,
    .usage-chart::before {
        height: 60px;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.4) 25%, rgba(30, 41, 59, 0.6) 50%, rgba(30, 41, 59, 0.4) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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

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

/* Authentication Styles */
#auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    z-index: 1000;
}

.glass-effect {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(255, 255, 255, 0.05) 60%, 
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    filter: blur(30px);
    opacity: 0.6;
}

.input-field {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(157, 118, 248, 0.4) !important;
    box-shadow: 
        0 4px 20px rgba(157, 118, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(157, 118, 248, 0.1) !important;
}

/* Google Sign-In Button */
.google-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    border: 1px solid rgba(219, 234, 254, 0.5) !important;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.google-logo {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
}

.gradient-text {
    background: linear-gradient(90deg, 
        #ff6b6b, /* Red */
        #4ecdc4, /* Teal */
        #45b7d1, /* Blue */
        #96ceb4, /* Green */
        #feca57, /* Yellow */
        #ff9ff3, /* Pink */
        #54a0ff, /* Light Blue */
        #5f27cd, /* Purple */
        #00d2d3, /* Cyan */
        #ff9f43, /* Orange */
        #ee5a24, /* Red-Orange */
        #0abde3, /* Sky Blue */
        #006ba6  /* Dark Blue */
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 12s linear infinite;
    font-weight: 600;
    text-decoration-color: #D4A017;
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Professional Billing Tabs */
.billing-tabs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
}

.billing-tab {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    min-width: 0;
}

.billing-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.billing-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.billing-tab .material-icons {
    font-size: 18px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Professional Pricing Table Layout */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
}

/* Individual Pricing Plan Cards */
.pricing-plan {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-plan:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Most Popular Plan Highlight */
.plan-popular {
    border: 2px solid rgba(157, 118, 248, 0.4);
    transform: scale(1.05);
    background: linear-gradient(145deg, 
        rgba(157, 118, 248, 0.1),
        rgba(157, 118, 248, 0.05)
    );
    box-shadow: 
        0 12px 40px rgba(157, 118, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.plan-popular:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 48px rgba(157, 118, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.plan-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4A017, #B8860B);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(157, 118, 248, 0.3);
}

/* Plan Content Styling */
.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1;
}

.golden-price {
    color: #FFC300;
}

@keyframes golden-shine {
    0%, 100% {
        background-position: 0% center;
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3)) brightness(1);
    }
    50% {
        background-position: 200% center;
        filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5)) brightness(1.3);
    }
}

.plan-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.plan-button {
    background: linear-gradient(135deg, #D4A017, #B8860B);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(157, 118, 248, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(157, 118, 248, 0.4);
    background: linear-gradient(135deg, #D4A017, #B8860B);
}

.plan-button:active {
    transform: translateY(0);
}

.plan-popular .plan-button {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.plan-popular .plan-button:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .plan-popular {
        transform: scale(1);
    }
    
    .plan-popular:hover {
        transform: translateY(-8px) scale(1);
    }
}

/* Signup Form Differentiation */
.signup-variant::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPurple 4s ease-in-out infinite alternate;
}

@keyframes glowPurple {
    0% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
    100% { opacity: 0.7; transform: scale(1.1) rotate(-180deg); }
}

/* Tailwind animate-spin utility */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

.auth-form-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    backdrop-filter: blur(10px);
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f1f5f9;
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #334155;
    text-align: right;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.drop-zone {
    border: 2px dashed #334155;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.3);
}

.drop-zone.drag-over {
    background: rgba(15, 23, 42, 0.6);
    border-color: #D4A017;
    transform: scale(1.02);
}

/* Camera Interface Styles */
.upload-alternatives {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.camera-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-width: 180px;
    justify-content: center;
}

.camera-option-btn .material-icons {
    font-size: 1.2rem;
}

.camera-container {
    text-align: center;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.camera-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.camera-feed-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#camera-feed {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.camera-capture-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.camera-capture-btn .material-icons {
    font-size: 1.3rem;
}

.error-message {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    color: var(--error-color);
    text-align: center;
}

.error-message p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments for camera interface */
@media (max-width: 640px) {
    .camera-options {
        flex-direction: column;
        align-items: center;
    }
    
    .camera-option-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .camera-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* QR Modal Container - Clean Modern Design */
.qr-modal-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 1. Back Button - Top left aligned */
.qr-back-section {
    display: flex;
    justify-content: flex-start;
}

.back-button {
    background: none;
    border: none;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    color: #111827;
    text-decoration: underline;
}

/* 2. Upload to Table Section - Main heading */
.qr-section-header {
    text-align: center;
}

.qr-section-header h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 600;
}

/* 3. Quick Upload Section - Instructions */
.quick-upload-section {
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.quick-upload-section p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* 4. QR Code Section - Centered */
.qr-code-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-container {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

#qr-code-display {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
}

#qr-code-display canvas,
#qr-code-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
}

/* 5. Timer and Regenerate Button - Single row */
.timer-controls-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.timer-display {
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.regenerate-button {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.regenerate-button:hover {
    background: #2563eb;
}

.regenerate-button:active {
    background: #1d4ed8;
    transform: translateY(1px);
}

/* Status Block */
.qr-status-block {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .qr-modal-container {
        padding: 16px;
        gap: 1rem;
        max-width: 90vw;
    }
    
    #qr-code-display,
    .qr-loading {
        width: 160px;
        height: 160px;
    }
    
    .timer-controls-section {
        gap: 12px;
    }
    
    .qr-section-header h2 {
        font-size: 20px;
    }
}


.qr-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-status span {
    color: #94a3b8;
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}

.status-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.qr-timer {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.pending {
    background: #fbbf24;
}

.status-dot.scanned {
    background: #3b82f6;
}

.status-dot.uploaded {
    background: #10b981;
}

.status-dot.completed {
    background: #06d6a0;
}

.status-dot.expired {
    background: #ef4444;
    animation: none;
}

#status-label {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.85rem;
}

.qr-code-container {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-code-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-code-display img,
#qr-code-display canvas,
#qr-code-display svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
}

.qr-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.qr-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-timer {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.qr-timer.warning {
    color: #f97316;
}

.qr-timer.danger {
    color: #ef4444;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive QR Code */
@media (max-width: 768px) {
    .qr-container {
        padding: 15px;
    }
    
    .qr-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #qr-code-display {
        min-width: 240px;
        min-height: 240px;
        padding: 15px;
    }
}

#file-preview-container {
    margin-top: 24px;
}

#file-preview-container h4 {
    color: #f1f5f9;
    margin-bottom: 12px;
    font-weight: 600;
}

#file-preview-list {
    list-style: none;
    margin-top: 12px;
    max-height: 150px;
    overflow-y: auto;
}

#file-preview-list li {
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #f1f5f9;
    backdrop-filter: blur(10px);
    border: 1px solid #334155;
}

/* Edit Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #334155;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(157, 118, 248, 0.1);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-quaternary);
    opacity: 0.3;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-quaternary);
    opacity: 0.6;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-secondary);
    opacity: 0.8;
}

/* =================================================================================
   SETTINGS PAGE STYLES
   ================================================================================= */

.settings-header {
    margin-bottom: 32px;
}

.settings-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1200px;
}

.settings-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.settings-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.settings-card h3 .material-icons {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.setting-item input,
.setting-item select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-input);
    transition: all 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus {
    outline: none;
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

/* Readonly Account Information Inputs */
.readonly-account-input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-secondary) !important;
    color: var(--text-primary) !important;
    cursor: not-allowed;
    font-weight: 500;
    opacity: 0.8;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 200px;
    height: 50px;
    background: var(--bg-quaternary);
    border-radius: 25px;
    border: 2px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.toggle-switch:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 92px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 19px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    z-index: 2;
}

#theme-toggle {
    display: none;
}

#theme-toggle:checked + .toggle-switch::before {
    transform: translateX(94px);
}

.dark-label,
.light-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.dark-label {
    left: 20px;
    color: white;
}

.light-label {
    right: 20px;
    color: var(--text-secondary);
    opacity: 0.7;
}

#theme-toggle:checked ~ .toggle-switch .dark-label {
    color: var(--text-secondary);
    opacity: 0.7;
}

#theme-toggle:checked ~ .toggle-switch .light-label {
    color: white;
    opacity: 1;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-input);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

/* Storage Usage */
.storage-usage {
    margin-bottom: 20px;
}

.storage-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-primary);
    opacity: 0.6;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px var(--glow-primary);
}

.storage-usage span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.export-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .toggle-switch {
        width: 160px;
        height: 40px;
    }
    
    .toggle-switch::before {
        width: 72px;
        height: 30px;
    }
    
    #theme-toggle:checked + .toggle-switch::before {
        transform: translateX(74px);
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .export-buttons .btn {
        flex: none;
    }
}

/* =================================================================================
   BILLING PAGE STYLES
   ================================================================================= */

/* Billing Container */
.billing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.billing-section {
    margin-bottom: 48px;
    position: relative;
}

.billing-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

/* =================================================================================
   CURRENT PLAN & USAGE SECTION
   ================================================================================= */

.plan-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.current-plan-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.15;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.current-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.current-plan-card:hover::before {
    opacity: 0.25;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.plan-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.plan-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =================================================================================
   VALUE PROPOSITION SECTION
   ================================================================================= */

.value-proposition-section {
    text-align: center;
}

.calculation-note {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
    font-size: 1rem;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.value-card:hover::before {
    opacity: 0.2;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-accent);
}

.value-content {
    flex: 1;
    text-align: left;
}

.value-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.value-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =================================================================================
   PLAN COMPARISON SECTION
   ================================================================================= */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.plan-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.plan-card:hover::before {
    opacity: 0.2;
}

/* Plan Card Variants */
.plan-card.starter-plan {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(157, 118, 248, 0.05));
}

.plan-card.business-plan::before {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.3) 0%,
        transparent 30%,
        transparent 70%,
        rgba(245, 158, 11, 0.3) 100%
    );
}

.plan-card.payg-plan::before {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.3) 0%,
        transparent 30%,
        transparent 70%,
        rgba(16, 185, 129, 0.3) 100%
    );
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.plan-price {
    margin: 20px 0;
    text-align: center;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features {
    flex: 1;
    margin: 24px 0;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.plan-feature .material-icons {
    font-size: 1.1rem;
    color: var(--success-color);
}

.plan-feature:last-child {
    margin-bottom: 0;
}

/* Plan Badges */
.trial-badge {
    background: var(--warning-bg);
    color: var(--warning-color);
    border: 1px solid var(--warning-border);
}

.popular-badge {
    background: var(--accent-primary);
    color: white;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 8px rgba(254, 231, 21, 0.3), 0 0 16px rgba(254, 231, 21, 0.2);
    animation: glow-pulse-subtle 3s ease-in-out infinite alternate;
}

.enterprise-badge {
    background: linear-gradient(135deg, var(--text-gradient-from), var(--text-gradient-to));
    color: #1f2937;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4), 0 0 20px rgba(var(--accent-secondary-rgb), 0.3);
    animation: glow-pulse-subtle 3s ease-in-out infinite alternate;
}

.flexible-badge {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

/* Plan Buttons */
.plan-button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-button.trial-button {
    background: var(--bg-quaternary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.plan-button.upgrade-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-accent);
}

.plan-button.upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-hover);
}

/* Top-up Options */
.topup-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.topup-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.topup-option:hover {
    background: var(--bg-glass);
    border-color: var(--accent-primary);
}

.topup-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topup-pages {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.topup-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.topup-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.topup-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* =================================================================================
   PAYMENT & SUBSCRIPTION MANAGEMENT SECTION
   ================================================================================= */

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.payment-method-card,
.subscription-actions-card {
    background: var(--bg-tertiary);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method-card::before,
.subscription-actions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--glow-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--glow-primary) 100%
    );
    opacity: 0.1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.payment-method-card:hover,
.subscription-actions-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.payment-method-card:hover::before,
.subscription-actions-card:hover::before {
    opacity: 0.2;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 .material-icons {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.current-payment-method {
    margin-bottom: 24px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
}

.payment-info .material-icons {
    color: var(--text-secondary);
}

.action-buttons {
    margin-bottom: 32px;
}

.danger-zone {
    border-top: 1px solid var(--border-primary);
    padding-top: 24px;
    margin-top: 24px;
}

.danger-zone h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--error-color);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-zone h4 .material-icons {
    font-size: 1.2rem;
}

.danger-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Stripe Disclaimer */
.stripe-disclaimer {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(254, 231, 21, 0.15); /* Faint yellow background for warning */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FEE715; /* Bright yellow warning icon */
    border: 1px solid rgba(254, 231, 21, 0.3);
}

.disclaimer-content p {
    margin: 0;
    color: rgba(254, 231, 21, 0.7); /* Faint yellow text */
    font-size: 0.9rem;
    line-height: 1.6;
}

.disclaimer-content strong {
    color: rgba(254, 231, 21, 0.9); /* Slightly brighter yellow for emphasis */
}

/* =================================================================================
   RESPONSIVE DESIGN - BILLING PAGE
   ================================================================================= */

@media (max-width: 1024px) {
    .plan-usage-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .billing-container {
        padding: 0 16px;
    }
    
    .billing-section {
        margin-bottom: 32px;
    }
    
    .billing-section h2 {
        font-size: 1.5rem;
    }
    
    .value-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .current-plan-card,
    .payment-method-card,
    .subscription-actions-card {
        padding: 24px;
    }
    
    .value-card {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .value-content {
        text-align: center;
    }
    
    .stripe-disclaimer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* =================================================================================
   CREATE CUSTOM TABLE PAGE STYLES
   ================================================================================= */

.create-table-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}

.create-table-header {
    text-align: center;
    margin-bottom: 40px;
}

.create-table-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.create-table-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.help-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-banner .material-icons {
    color: #d97706;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.help-banner div {
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.help-banner strong {
    color: #78350f;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 8px 0 16px 0;
    font-style: italic;
}

/* Field system name preview styling */
.system-name-preview {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.system-name-preview small {
    color: #6b7280;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-name-preview small::before {
    content: '⚡';
    color: #3b82f6;
    font-size: 14px;
}

.field-system-name {
    color: #1e40af;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
}

.create-table-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-primary);
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-quaternary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(157, 118, 248, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.help-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

.error-text {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Field Definition Row */
.field-row {
    display: grid;
    grid-template-columns: 1fr 120px auto auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-quaternary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.field-input-group {
    display: flex;
    flex-direction: column;
}

.field-input-group label {
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.field-input {
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.field-select {
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.primary-key-radio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-key-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.remove-field-btn {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.remove-field-btn:hover {
    background: #dc2626;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: var(--error-color);
}

.notification.warning {
    background: var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-table-container {
        margin: 16px;
        padding: 24px;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}



/* Search Loading Indicator */
.search-loading {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.search-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Date Range Picker Styling */
.search-box[readonly] {
    cursor: pointer;
    background: var(--bg-input);
}

.search-box[readonly]:hover {
    border-color: var(--accent-primary);
}

/* Flatpickr Theme Integration */
.flatpickr-calendar {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.flatpickr-day {
    color: var(--text-primary) !important;
}

.flatpickr-day:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

.flatpickr-day.selected {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.flatpickr-day.inRange {
    background: rgba(157, 118, 248, 0.2) !important;
    border-color: var(--accent-primary) !important;
}

.flatpickr-months {
    background: var(--bg-secondary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.modal-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* No results styling for table */
.no-results-row {
    text-align: center;
    padding: 40px 20px;
}

.no-results-row .no-results {
    color: var(--text-secondary);
}

.no-results-row .material-icons {
    font-size: 2rem;
    opacity: 0.5;
    display: block;
    margin: 0 auto 12px;
}

/* Export Format Modal */
.export-format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.export-format-btn {
    padding: 16px 20px;
    border-radius: 8px;
    text-align: left;
    justify-content: flex-start;
    transition: all 0.2s ease;
    border: 2px solid var(--border-primary);
}

.export-format-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.export-format-btn .material-icons {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* =================================================================================
   LOADING SPINNER STYLES - Phase 6 UX Enhancement
   ================================================================================= */

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Button loading state */
button:disabled .loading-spinner {
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.8);
}

/* =================================================================================
   ENHANCED NAVIGATION STYLES - Phase 6 UX Enhancement
   ================================================================================= */

/* Navigation section headers */
.nav-section-header {
    padding: 12px 20px 8px 20px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.nav-section-header .section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom table navigation items */
.custom-table-nav-item {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px;
    overflow: hidden;
    justify-content: space-between !important;
}

.custom-table-nav-item .nav-item-text {
    flex-grow: 1;
    flex-shrink: 1;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-record-count {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 0;
}

.record-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Hover effects for custom table nav items */
.custom-table-nav-item:hover .record-count-badge {
    background: var(--accent-color);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* =================================================================================
   TABLE MANAGEMENT STYLES
   ================================================================================= */

/* Table Management Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: black;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    box-shadow: var(--shadow-primary);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-input);
}

.dropdown-item:hover {
    background-color: rgba(157, 118, 248, 0.1);
}

.dropdown-item .material-icons {
    font-size: 18px;
}

/* Column editor styles */
.column-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-tertiary);
}

.column-row input, .column-row select {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-input);
}

.remove-column-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-column-btn:hover {
    background: #dc2626;
}

/* =================================================================================
   PACKAGES SECTION (NANOBANANA.AI INSPIRED)
   ================================================================================= */

.packages-section {
    background-color: transparent;
    padding: 4rem 0;
    margin: 2rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.packages-title-centered {
    text-align: center !important;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pkg-text-primary);
    margin-bottom: 0.5rem;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.packages-subtitle {
    text-align: center;
    color: var(--pkg-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.packages-subtitle-neon {
    position: relative;
    text-align: center;
    color: var(--pkg-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Individual letter colors using green hues */
.packages-subtitle-neon > span {
    display: inline-block;
    /* Start with base green color */
    color: hsl(120, 30%, 60%);
    transition: all 0.8s ease;
    /* Green hue flow animation */
    animation: green-hue-flow 4s infinite ease-in-out;
    /* Stagger the animation for each letter */
    animation-delay: calc(var(--i) * 0.3s);
}


@keyframes green-hue-flow {
    0%, 70% {
        color: hsl(120, 30%, 60%);
    }
    15%, 35% {
        color: hsl(140, 60%, 65%);
    }
    50% {
        color: hsl(160, 50%, 70%);
    }
    100% {
        color: hsl(120, 30%, 60%);
    }
}



/* Plan Tabs (inspired by nanobanana.ai) */
.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem auto 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 6px;
    max-width: 320px;
}

.plan-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--pkg-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.plan-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.plan-tab:hover {
    color: var(--pkg-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(157, 118, 248, 0.1);
}

.plan-tab:hover::before {
    left: 100%;
}

.plan-tab.active {
    background: linear-gradient(135deg, rgba(157, 118, 248, 0.15), rgba(157, 118, 248, 0.08));
    color: var(--accent-primary);
    box-shadow: 0 2px 12px rgba(157, 118, 248, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(157, 118, 248, 0.2);
}

/* Billing Toggle (keeping for compatibility) */
.packages__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    color: var(--pkg-text-secondary);
    font-weight: 500;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.billing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--pkg-border);
    transition: 0.3s;
    border-radius: 30px;
}

.billing-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.billing-switch input:checked + .billing-slider {
    background-color: var(--pkg-popular-accent);
}

.billing-switch input:checked + .billing-slider:before {
    transform: translateX(30px);
}

.packages__toggle-discount {
    background-color: var(--pkg-popular-accent);
    color: var(--pkg-popular-badge-text);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Packages Container */
.packages__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Credit Packs - accommodate 4 packages better */
#credit-packs.packages__container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Package Cards */
.package-card {
    background-color: var(--pkg-card-bg);
    border: 1px solid var(--pkg-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Popular Package Variant */
.package-card--popular {
    border: 2px solid var(--pkg-popular-accent);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.package-card--popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(79, 70, 229, 0.4), 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}

.package-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pkg-popular-badge-bg);
    color: var(--pkg-popular-badge-text);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.package-card__badge--trial {
    background-color: var(--warning-color);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.package-card__badge--enterprise {
    background: linear-gradient(135deg, var(--text-gradient-from), var(--text-gradient-to));
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.6), 0 0 30px rgba(var(--accent-secondary-rgb), 0.4);
    animation: enterprise-glow-enhanced 2.5s ease-in-out infinite alternate;
    color: #1f2937; /* Dark text for contrast */
}

/* Enhanced Pro Package Styling */
.package-card--popular {
    border: 2px solid #FEE715 !important;
    background: linear-gradient(145deg, 
        rgba(254, 231, 21, 0.08),
        rgba(255, 215, 0, 0.05)
    ) !important;
    box-shadow: 0 0 20px rgba(254, 231, 21, 0.3), 0 20px 25px -5px rgba(254, 231, 21, 0.2) !important;
}

.package-card--popular:hover {
    box-shadow: 0 0 30px rgba(254, 231, 21, 0.4), 0 25px 30px -5px rgba(254, 231, 21, 0.3) !important;
}

/* Card Content */
.package-card__header {
    margin-bottom: 1.5rem;
}

.package-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pkg-text-primary);
    margin: 0 0 0.5rem 0;
}

.package-card__description {
    color: var(--pkg-text-secondary);
    margin: 0;
    min-height: 48px;
    line-height: 1.5;
}

.package-card__pricing {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.package-card__price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--text-gradient-from), var(--text-gradient-to));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
}

/* Light mode pricing gradient - WCAG compliant darker colors for visibility */
body.light-theme .package-card__price {
    background: linear-gradient(to right, var(--text-gradient-from), var(--text-gradient-to));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-card__billing-cycle {
    color: #6b7280;
    font-size: 1rem;
}

/* Light mode billing cycle */
body.light-theme .package-card__billing-cycle {
    color: #6b7280;
}

.package-card__credits {
    color: #b45309;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(254, 249, 195, 0.5);
    border: 1px solid rgba(202, 138, 4, 0.3);
    border-radius: 999px;
    display: inline-block;
}

/* Light mode credits badge */
body.light-theme .package-card__credits {
    color: #fcd34d;
    background-color: rgba(113, 63, 18, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Savings text styling inspired by nanobanana.ai */
.package-savings-text {
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Light mode savings text */
body.light-theme .package-savings-text {
    color: #4ade80;
}

.package-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    color: var(--pkg-text-secondary);
    flex-grow: 1;
}

.package-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.feature-check {
    color: var(--pkg-checkmark);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.package-card__footer {
    margin-top: auto;
}

/* Package Buttons */
.btn-pkg {
    /* Normalization for both <a> and <button> elements */
    display: inline-block;
    text-decoration: none;
    font-family: inherit;

    /* Base styles */
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-pkg--primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(157, 118, 248, 0.3);
}

.btn-pkg--primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 118, 248, 0.4);
}

.btn-pkg--secondary {
    background-color: var(--pkg-standard-cta-bg);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-pkg--secondary:hover {
    background-color: rgba(157, 118, 248, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .packages-section {
        padding: 2rem 1rem;
    }
    
    .packages-section h2 {
        font-size: 2rem;
    }
    
    .packages__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-card--popular {
        transform: none;
        margin: 0;
    }
    
    .package-card--popular:hover {
        transform: translateY(-8px);
    }
    
    .package-card__price {
        font-size: 2.5rem;
    }
}

/* Enhanced Enterprise Package Glow Animation */
@keyframes enterprise-glow-enhanced {
    from {
        box-shadow: 0 0 15px rgba(254, 231, 21, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 0 25px rgba(254, 231, 21, 0.8), 0 0 40px rgba(255, 215, 0, 0.6), 0 0 55px rgba(254, 231, 21, 0.3);
    }
}

/* Glow animations for package badges and usage bar */
@keyframes glow-pulse-subtle {
    0% {
        box-shadow: 0 0 8px rgba(254, 231, 21, 0.2), 0 0 16px rgba(254, 231, 21, 0.1);
    }
    100% {
        box-shadow: 0 0 12px rgba(254, 231, 21, 0.4), 0 0 24px rgba(255, 215, 0, 0.3);
    }
}

@keyframes usage-glow-subtle {
    0% {
        box-shadow: var(--shadow-accent-hover), var(--shadow-accent), 0 0 15px rgba(180, 189, 204, 0.25), 0 0 30px rgba(180, 189, 204, 0.15);
    }
    100% {
        box-shadow: var(--shadow-accent-hover), var(--shadow-accent), 0 0 20px rgba(180, 189, 204, 0.35), 0 0 40px rgba(180, 189, 204, 0.25);
    }
}

/* Enhanced Glowing Usage Bar - Layered Yellow Glow */
.usage-fill--glowing {
    /* 
     * Layered glow approach for better visibility:
     * Layer 1: Tight, bright inner corona for visibility
     * Layer 2: Medium, softer gold glow for main effect
     * Layer 3: Wide, subtle ambient glow for smooth falloff
     */
    box-shadow: 
        0 0 7px rgba(254, 231, 21, 0.7),  /* Inner Corona (#FEE715) */
        0 0 15px rgba(255, 215, 0, 0.5),  /* Main Glow (#FFD700) */
        0 0 25px rgba(212, 160, 23, 0.3); /* Ambient Falloff (accent-primary) */

    /* Subtle pulse animation */
    animation: pulse-yellow-glow 2.5s ease-in-out infinite alternate;
}

@keyframes pulse-yellow-glow {
    from {
        /* Base state */
        box-shadow: 
            0 0 7px rgba(254, 231, 21, 0.7),
            0 0 15px rgba(255, 215, 0, 0.5),
            0 0 25px rgba(212, 160, 23, 0.3);
    }
    to {
        /* Enhanced state - slightly larger and more intense */
        box-shadow: 
            0 0 10px rgba(254, 231, 21, 0.8),
            0 0 22px rgba(255, 215, 0, 0.6),
            0 0 35px rgba(212, 160, 23, 0.3);
    }
}


/* Digitize Button Special Styling */
.digitize-nav-item {
    position: relative;
    background: linear-gradient(135deg, rgba(254, 231, 21, 0.1) 0%, rgba(254, 231, 21, 0.05) 100%);
    border: 1px solid rgba(254, 231, 21, 0.2);
    box-shadow: 0 0 15px rgba(254, 231, 21, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.digitize-nav-item:hover {
    background: linear-gradient(135deg, rgba(254, 231, 21, 0.15) 0%, rgba(254, 231, 21, 0.08) 100%);
    box-shadow: 0 0 20px rgba(254, 231, 21, 0.25);
    border-color: rgba(254, 231, 21, 0.3);
}

.digitize-hamburger-item {
    position: relative;
    background: linear-gradient(135deg, rgba(254, 231, 21, 0.1) 0%, rgba(254, 231, 21, 0.05) 100%);
    border: 1px solid rgba(254, 231, 21, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(254, 231, 21, 0.15);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

.digitize-hamburger-item:hover {
    background: linear-gradient(135deg, rgba(254, 231, 21, 0.15) 0%, rgba(254, 231, 21, 0.08) 100%);
    box-shadow: 0 0 20px rgba(254, 231, 21, 0.25);
    border-color: rgba(254, 231, 21, 0.3);
}

.digitize-text {
    color: var(--text-primary);
    font-weight: 600;
}

.sparkle-icon {
    font-size: 16px !important;
    color: #FEE715;
    margin-left: 0;
    animation: sparkle 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Ensure the icon and count do not shrink */
.custom-table-nav-item .material-icons,
.custom-table-nav-item .table-record-count {
    flex-shrink: 0;
}

/* Additional styling for record count text */
.table-record-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Dropdown Item Color Theming */
.dropdown-item {
    color: #000000;
}

/* Delete table buttons - red color */
.dropdown-item[class$="-delete-table-btn"] {
    color: #D32F2F;
}

/* Enhanced hover/focus states for delete buttons */
.dropdown-item[class$="-delete-table-btn"]:hover,
.dropdown-item[class$="-delete-table-btn"]:focus {
    color: #FFFFFF;
    background-color: #D32F2F;
}


/* Hide desktop sidebar on mobile and adjust main content */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .dashboard-container {
        padding-left: 0 !important;
    }
}

/* Mobile Navigation Items */
.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Enhanced Center Navigation Item */
.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-20px);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    min-width: 3.75rem; /* 60px in rem */
    position: relative;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn:focus {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    outline: 2px solid rgba(255, 215, 0, 0.5);
    outline-offset: 2px;
}

/* Center Digitize Button */
.nav-center .nav-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    width: 4.375rem; /* 70px in rem for zoom resistance */
    height: 4.375rem; /* 70px in rem for zoom resistance */
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    border: 0.1875rem solid white; /* 3px in rem */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: 0.25rem; /* 4px in rem */
}

.nav-center .nav-btn:hover {
    transform: translateY(-0.1875rem) scale(1.05); /* 3px in rem */
    box-shadow: 0 0.375rem 1.25rem rgba(255, 215, 0, 0.6); /* 6px 20px in rem */
}

.nav-center .nav-btn .nav-label {
    margin-top: 0.375rem; /* 6px in rem */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.5625rem; /* 9px in rem */
}

.digitize-icon {
    font-size: 1.5rem; /* 24px in rem for zoom resistance */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Labels */
.nav-label {
    font-size: 0.625rem; /* 10px in rem for zoom resistance */
    font-weight: 500;
    margin-top: 0.25rem; /* 4px in rem */
    text-align: center;
    white-space: nowrap;
}

/* Drop-up Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 8px 0;
    margin-bottom: 8px;
    min-width: 200px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.dropdown-item .material-icons {
    margin-right: 12px;
    font-size: 20px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 16px;
}

.dropdown-arrow {
    margin-left: 4px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== BOTTOM SHEET COMPONENT (Mobile Tables Menu) ===== */

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bottom-sheet {
    width: 100%;
    max-height: 70vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bottom-sheet-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 0.5rem;
    position: relative;
}

.bottom-sheet-handle {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.bottom-sheet-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-sheet-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.close-sheet-btn:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.bottom-sheet-content {
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sheet-section {
    margin-bottom: 1.5rem;
}

.sheet-section h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sheet-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.sheet-item:hover,
.sheet-item:focus {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sheet-item .material-icons {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    opacity: 0.8;
}

.sheet-item span:last-child {
    font-weight: 500;
}

/* ===== HAMBURGER MENU COMPONENT (Mobile Settings & Billing) ===== */

.hamburger-btn {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hamburger Menu Overlay */
.hamburger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hamburger-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.hamburger-menu-overlay.active .hamburger-menu {
    transform: translateX(0);
}

.hamburger-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-menu-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-hamburger-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.close-hamburger-btn:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.hamburger-menu-content {
    padding: 1rem 0;
    flex: 1;
}

.hamburger-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    border-left: 3px solid transparent;
}

.hamburger-menu-item:hover,
.hamburger-menu-item:focus {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-left-color: #ffd700;
    transform: translateX(4px);
}

.hamburger-menu-item .material-icons {
    margin-right: 1rem;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hamburger-menu-item:hover .material-icons {
    opacity: 1;
}

.hamburger-menu-item span:last-child {
    font-weight: 500;
    font-size: 1rem;
}

/* Show hamburger menu on mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    /* Mobile header adjustments for app-header */
    .app-header {
        height: var(--header-height);
        padding: 0 12px;
        margin-bottom: 16px;
    }
    
    .header-left {
        flex: 1;
    }
    
    .header-right {
        flex: 0 0 auto;
    }
    
    .header-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .header-subtitle {
        font-size: 0.75rem;
        margin: 0;
    }
}

/* Mobile Table Optimizations */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .data-table {
        min-width: 600px; /* Prevent table from becoming too narrow */
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 12px;
        white-space: nowrap;
    }

    /* Stack table info on mobile */
    .table-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .table-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Mobile-friendly pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    /* Compact action buttons */
    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Alternative: Card-based layout for very small screens */
@media (max-width: 480px) {
    .table-card-view .data-table {
        display: none;
    }

    .table-card-view .card-container {
        display: block;
    }

    .data-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 14px;
    }

    .card-field {
        display: flex;
        flex-direction: column;
    }

    .field-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 2px;
    }

    .field-value {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
}


/* Mobile Upload Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 120px); /* Leave space for mobile nav */
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 20px 16px;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
}

/* =================================================================================
   USE CASES PAGE STYLES
   ================================================================================= */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.1);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* Use Case Hero Section */
.use-case-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.use-case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.cta-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    font-size: 1.1rem;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

/* Hero Visual with Floating Cards */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.floating-card.card-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1.2s;
}

.floating-card.card-3 {
    bottom: 40%;
    left: 10%;
    animation-delay: 2.4s;
}

.floating-card.card-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 3.6s;
}

.floating-card.card-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4.8s;
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Use Cases Grid */
.use-cases-grid {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.use-cases-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Use Case Cards */
.use-case-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.use-case-card.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* Use Case Background Placeholders */
.receipt-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-bg {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-bg {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.use-case-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.use-case-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .material-icons {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.card-content {
    padding: 2rem;
}

.card-category {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item .material-icons {
    font-size: 1rem;
    color: var(--accent-primary);
}

.card-benefits {
    margin-bottom: 1.5rem;
}

.card-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-benefits li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.card-benefits li::before {
    content: '•';
    color: var(--accent-primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.keyword-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Benefits Overview Section */
.benefits-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    position: relative;
}

.benefits-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-badge .material-icons {
    font-size: 1rem;
    color: var(--accent-primary);
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .use-case-hero {
        padding: 6rem 0 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .use-case-hero {
        padding: 4rem 0 3rem;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .use-cases-grid,
    .benefits-overview,
    .final-cta {
        padding: 4rem 0;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-features {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .use-case-card {
        margin: 0 0.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
}

/* Credit Cards Styling */
.credits-summary {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.credit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(254, 231, 21, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.credit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(254, 231, 21, 0.2);
    transform: translateY(-1px);
}

.credit-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(254, 231, 21, 0.1);
    border-radius: 8px;
    color: #FEE715;
}

.credit-card-icon .material-icons {
    font-size: 20px;
}

.credit-card-content {
    flex: 1;
}

.credit-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FEE715;
    line-height: 1.2;
}

.credit-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Responsive credit cards */
@media (max-width: 768px) {
    .credits-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .credit-card {
        padding: 12px;
    }
    
    .credit-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .credit-card-icon .material-icons {
        font-size: 18px;
    }
    
    .credit-amount {
        font-size: 1.3rem;
    }
    
    .credit-label {
        font-size: 0.8rem;
    }
}

