/* === COHESIVE, ELEGANT CSS THEME FOR TIPX WEB MANAGEMENT SYSTEM === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --bg-main: #FAFAFA;
    --bg-canvas: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF5F5;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #E5E7EB;
    --border: #E5E7EB;
    --border-glow: rgba(6, 182, 212, 0.15);
    --border-focus: #06b6d4;
    --focus-ring: 0 0 0 3px rgba(6, 182, 212, 0.25);
    --logo-text-color: #0F172A;
    --logo-cross-color-1: #0F172A;
    --logo-cross-color-2: #334155;
    
    /* Dedicated Swiss Red Brand Colors -> Modernized TipX Logo Teal/Cyan */
    --color-brand: #06b6d4;
    --color-brand-light: rgba(6, 182, 212, 0.08);
    --color-brand-dark: #0d9488;
    --color-brand-glow: rgba(6, 182, 212, 0.25);
    --primary: #06b6d4;
    --primary-dark: #0d9488;
    --accent: #06b6d4;
    
    /* True Professional Teal (Emerald/Mint) for Success, Highlights and Security */
    --color-teal: #06b6d4;
    --color-teal-light: rgba(6, 182, 212, 0.08);
    --color-teal-dark: #0d9488;
    --color-teal-glow: rgba(6, 182, 212, 0.20);
    --text-teal: #06b6d4;
    
    /* True Professional Blue for Information and Accents */
    --color-blue: #0ea5e9;
    --color-blue-light: rgba(14, 165, 233, 0.08);
    --color-blue-dark: #0369a1;
    
    /* True Warning/Danger Red & Warning Yellow */
    --color-red: #EF4444;
    --color-red-light: rgba(239, 68, 68, 0.08);
    --color-yellow: #E2B93B;
    --color-yellow-light: rgba(226, 185, 59, 0.08);
    --color-warning: #F59E0B;
    --swiss-red: #DA291C;
    
    /* Stripe Brand Colors */
    --stripe-indigo: #635bff;
    --stripe-indigo-hover: #543bf0;
    
    --text-primary: #0F172A;
    --text-main: #0F172A;
    --text-secondary: #1E293B;
    --text-muted: #475569;
    
    --text-brand-primary: #06b6d4;
    --text-brand-secondary: #0d9488;
    --text-brand-muted: #0891b2;
    
    --bg-hover: rgba(0, 0, 0, 0.03);
    --bg-input: #FAFAFA;
    --bg-dark: #0B0F19;
    --bg-slate: #1E293B;
    --bg-left: #FAFAFA;
    --bg-right: #FFFFFF;
    
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --transition-speed: 0.22s;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --input-height: 42px;
    
    /* 8px Spacing System variables */
    --space-8px-1: 8px;
    --space-8px-1-5: 12px;
    --space-8px-2: 16px;
    --space-8px-3: 24px;
    --space-8px-4: 32px;
    --space-8px-5: 40px;
    --space-8px-6: 48px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-main: #0B0F19 !important;
    --bg-canvas: #0B0F19 !important;
    --bg-card: #151D30 !important;
    --bg-card-hover: #1E2942 !important;
    --bg-glass: rgba(21, 29, 48, 0.85) !important;
    --border-color: #24314F !important;
    --border: #24314F !important;
    --border-glow: rgba(6, 182, 212, 0.25) !important;
    --border-focus: #06b6d4 !important;
    --focus-ring: 0 0 0 3px rgba(6, 182, 212, 0.35) !important;
    --logo-text-color: #FFFFFF !important;
    --logo-cross-color-1: #FFFFFF !important;
    --logo-cross-color-2: #cbd5e1 !important;
    
    /* Dedicated Swiss Red Brand Colors in Dark Mode -> TipX Teal/Cyan */
    --color-brand: #06b6d4 !important;
    --color-brand-light: rgba(6, 182, 212, 0.12) !important;
    --color-brand-dark: #0d9488 !important;
    --color-brand-glow: rgba(6, 182, 212, 0.3) !important;
    --primary: #06b6d4 !important;
    --primary-dark: #0d9488 !important;
    --accent: #06b6d4 !important;
    
    /* Clean Teal/Green Success Colors in Dark Mode for Premium Contrast */
    --color-teal: #06b6d4 !important;
    --color-teal-light: rgba(6, 182, 212, 0.12) !important;
    --color-teal-dark: #0d9488 !important;
    --color-teal-glow: rgba(6, 182, 212, 0.25) !important;
    --text-teal: #06b6d4 !important;
    
    --color-blue: #38bdf8 !important;
    --color-blue-light: rgba(56, 189, 248, 0.1) !important;
    --color-blue-dark: #0284c7 !important;
    
    --color-red: #F87171 !important;
    --color-red-light: rgba(248, 113, 113, 0.12) !important;
    --color-warning: #FBBF24 !important;
    --swiss-red: #EF4444 !important;
    
    /* Stripe Brand Colors in Dark Mode */
    --stripe-indigo: #7a73ff !important;
    --stripe-indigo-hover: #938eff !important;
    
    /* Highly professional, elegant dark theme color scheme with premium readability and brand-perfect accents */
    --text-primary: #FFFFFF !important;       /* Crisp, bright pure white for titles, headers, and major readable text */
    --text-main: #FFFFFF !important;
    --text-secondary: #94A3B8 !important;     /* Sleek Slate-Gray for subtitles, labels, unselected options and perfect UI balance */
    --text-muted: #64748B !important;         /* Muted blue-gray for captions, small descriptions, and secondary details */
    
    --text-brand-primary: #F8FAFC !important;   /* Beautiful Pearl White in dark mode */
    --text-brand-secondary: #CBD5E1 !important; /* Elegant Pearl Silver/Gray in dark mode (alternated) */
    --text-brand-muted: #94A3B8 !important;     /* Sleek Slate-Gray in dark mode (alternated) */
    
    --bg-hover: rgba(255, 255, 255, 0.05) !important;
    --bg-input: #101622 !important;
    --bg-dark: #070B12 !important;
    --bg-slate: #0F172A !important;
    --bg-left: #151D30 !important;
    --bg-right: #0B0F19 !important;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(6, 182, 212, 0.08) !important;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(6, 182, 212, 0.12) !important;
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65), 0 4px 24px rgba(6, 182, 212, 0.18) !important;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(6, 182, 212, 0.12) !important;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.02) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.06) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.03) 0px, transparent 55%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Header bar styling */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 42px;
    width: 42px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--color-brand);
    box-shadow: 0 0 12px var(--color-brand-glow);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--logo-text-color, #0F172A);
    background: linear-gradient(135deg, #0e7490, #0f766e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .logo-text h1 {
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-secondary, #1E293B);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.connection-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.08);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-sm);
}

.connection-pill.disconnected {
    background-color: var(--color-red-light);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

/* Layout container */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-8px-5); /* 40px, multiple of 8px */
    display: grid;
    grid-template-columns: 1fr !important; /* Single column layout for modern desktop/mobile with collapsible drawer */
    gap: var(--space-8px-5); /* 40px, multiple of 8px */
}

/* Sidebar navigation */
.sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: var(--space-8px-1); /* 8px spacing for modern compact density */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
    width: 310px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: var(--bg-card) !important;
    border-right: 1px solid var(--border-color) !important;
    z-index: 1000 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    overflow-y: auto !important;
    padding: 1.5rem 1.1rem !important;
    box-shadow: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sidebar-navigation.open {
    left: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-8px-1-5, 12px); /* consistent multiple of 4/8px */
    padding: var(--space-8px-1-5, 12px) var(--space-8px-2); /* 12px top/bottom, 16px left/right */
    border-radius: var(--radius-md);
    color: var(--text-secondary, #1E293B);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item svg {
    flex-shrink: 0;
    color: var(--text-secondary, #1E293B);
    opacity: 0.85;
    transition: color var(--transition-speed), opacity var(--transition-speed);
}

.nav-item:hover {
    color: var(--text-primary, #0F172A);
    background-color: rgba(14, 116, 144, 0.08);
    transform: translateX(4px);
}

.nav-item:hover svg {
    color: var(--text-primary, #0F172A);
    opacity: 1;
}

.nav-item.active {
    color: #0F172A;
    background-color: rgba(14, 116, 144, 0.1);
    border-left: 3.5px solid var(--color-brand);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 700;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05), 0 0 10px var(--color-brand-glow);
}

[data-theme="dark"] .nav-item.active {
    color: #FFFFFF;
    background-color: var(--color-brand-light);
}

.nav-item.active svg {
    color: #0e7490;
}

[data-theme="dark"] .nav-item.active svg {
    color: var(--color-brand);
}

/* Dashboard content manager */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats Card grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.stats-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 95px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: var(--shadow-md);
}

.stats-card .title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.stats-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stats-card .footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}

/* Tab/Section content wrapper */
.content-section {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section.active {
    display: flex !important;
}

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

/* Section elements card */
.section-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: var(--shadow-md);
}

.text-gradient {
    color: var(--color-brand);
    display: inline-block;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Tables and database listing UI */
.table-scroller, .table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
    transition: box-shadow var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-speed) ease;
}

.table-scroller:hover, .table-responsive:hover {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(20, 184, 166, 0.05);
}

.table-scroller::-webkit-scrollbar, .table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-scroller::-webkit-scrollbar-track, .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.table-scroller::-webkit-scrollbar-thumb, .table-responsive::-webkit-scrollbar-thumb {
    background: var(--color-teal);
    border-radius: 3px;
}

table, .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

th {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background-color 0.15s ease;
    font-size: 0.85rem;
}

tr {
    transition: background-color 0.15s ease;
}

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

tr:hover td {
    background-color: var(--bg-hover);
}

tr:hover td:first-child {
    border-left: 2px solid var(--color-brand);
    padding-left: 14px;
}

/* Badges indicators styles (Minimalist) */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: capitalize;
    transition: all 0.15s ease;
}

.badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge.success::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 50%;
}

.badge.info {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--color-brand);
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.badge.info::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 50%;
}

.badge.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge.danger::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 50%;
}

.badge.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge.warning::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 50%;
}

/* Minimalist Swiss Buttons UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-heading);
    user-select: none;
}

.btn:active {
    transform: scale(0.98) !important;
}

.btn-primary {
    background-color: var(--color-brand);
    color: #FFFFFF !important;
    border-color: var(--color-brand);
}
.btn-primary:hover {
    background-color: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
}

.btn-secondary {
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(6, 182, 212, 0.3);
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #F87171;
}
.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Form layouts and style details */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control, select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease, box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

.form-control:hover, select:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background-color: var(--bg-hover);
}

.form-control:focus, select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-glow);
    background-color: var(--bg-card);
}

/* Custom switch toggle styling */
.switch-container {
    user-select: none;
}
.switch-container input:checked + .slider-round {
    background-color: var(--color-brand) !important;
    box-shadow: 0 0 10px var(--color-brand-glow);
}
.switch-container .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.switch-container input:checked + .slider-round:before {
    transform: translateX(24px);
}

/* Console details logs */
.console-box {
    background-color: #060913;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    max-height: 250px;
    overflow-y: auto;
    color: #34D399;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.console-line {
    margin-bottom: 6px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.console-line.error { color: #f87171; }
.console-line.info { color: #60a5fa; }

/* Alerts and popups notifications */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-error {
    background-color: var(--color-red-light);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Branding layouts */
.branding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.branding-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.branding-image-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Language Switcher & identifier */
.lang-switcher a {
    transition: all var(--transition-speed) ease;
}
.lang-switcher a:hover {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.08) !important;
}

.zone-identifier {
    transition: all var(--transition-speed) ease;
}
.zone-identifier:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

/* Code styling tags */
code {
    font-family: var(--font-mono);
}

/* Minimalist Swiss-inspired TIPX Brand Logo */
.minimal-app-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    user-select: none;
}

.minimal-app-logo-badge {
    position: relative;
    background-color: var(--color-brand); /* Brand Teal */
    border-radius: 28%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--color-brand-glow);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minimal-app-logo-badge:hover {
    transform: scale(1.08);
}

.minimal-app-logo-cross {
    position: relative;
    width: 55%;
    height: 55%;
}

.minimal-app-logo-cross::before,
.minimal-app-logo-cross::after {
    content: '';
    position: absolute;
    background-color: #FFFFFF;
    border-radius: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Vertical bar */
.minimal-app-logo-cross::before {
    width: 32%;
    height: 100%;
}

/* Horizontal bar */
.minimal-app-logo-cross::after {
    width: 100%;
    height: 32%;
}

.minimal-app-logo-text {
    font-weight: 850;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.minimal-app-logo-text .tip {
    color: #0e7490; /* High-contrast teal for light mode */
}

[data-theme="dark"] .minimal-app-logo-text .tip {
    color: var(--color-brand);
}

.minimal-app-logo-text .x {
    color: var(--text-primary, #0F172A); /* Crisp high-contrast dark shade in light mode */
}

/* SVG Wordmark adaptive theme fills: ensures TIP is dark in Light Mode & brilliant white in Dark Mode */
.tipx-wordmark-tip {
    fill: #0F172A !important;
    transition: fill 0.2s ease;
}
.tipx-wordmark-x {
    fill: #00BAC7 !important;
    transition: fill 0.2s ease;
}
.tipx-wordmark-sub {
    fill: #475569 !important;
    transition: fill 0.2s ease;
}

[data-theme="dark"] .tipx-wordmark-tip {
    fill: #FFFFFF !important;
}
[data-theme="dark"] .tipx-wordmark-x {
    fill: #00F2FE !important;
}
[data-theme="dark"] .tipx-wordmark-sub {
    fill: #94A3B8 !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary, #0F172A);
    text-decoration: none;
    vertical-align: middle;
    letter-spacing: -0.02em;
    user-select: none;
}

.logo .flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
}

.logo .accent {
    color: var(--primary, #06b6d4);
    line-height: 1;
}

@media (max-width: 480px) {
    .logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Grid Utilities & Custom Dashboard Layouts */
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.grid-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
}

.grid-240 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 0.75rem;
}

.grid-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.grid-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0.5rem;
}

/* MÓDULO: Responsive System & Breakpoints */

/* 1️⃣ Breakpoint: Desktop (>1024px) */
@media (min-width: 1025px) {
    /* Main container and sidebar have unified offcanvas styling everywhere */
}

/* 2️⃣ Breakpoint: Tablet (640px to 1024px) & Mobile (<640px) */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr !important;
        padding: 1rem 1.25rem !important;
        gap: 1.25rem !important;
    }

    .top-bar {
        padding: 1rem 1.25rem 1rem 0.6rem !important;
    }

    .mobile-sidebar-header {
        display: flex !important;
    }

    /* Hide text indicators or resize stats grids */
    .stats-grid, .grid-4col {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    /* Boost touch targets to meet or exceed 44x44px standard */
    .nav-item, .sidebar-group-toggle, .btn, .sub-tab-btn, .service-pill-item {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column !important;
        gap: 14px !important;
        align-items: stretch !important;
        padding: 1rem 1.25rem !important;
    }
    .logo-container {
        justify-content: space-between !important;
        width: 100% !important;
    }
    .header-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .header-actions .zone-identifier,
    .header-actions .lang-switcher,
    .header-actions .theme-toggle-btn {
        margin: 0 !important;
    }
}

/* 3️⃣ Breakpoint: Mobile (<640px) */
@media (max-width: 640px) {
    .stats-grid, .grid-4col, .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tablas apiladas como tarjetas en Mobile para evitar scroll horizontal molesto */
    .table-responsive table, 
    .table-responsive thead, 
    .table-responsive tbody, 
    .table-responsive th, 
    .table-responsive td, 
    .table-responsive tr {
        display: block !important;
    }

    .table-responsive thead {
        display: none !important; /* Escondemos cabeceras */
    }

    .table-responsive tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: var(--shadow-sm);
    }

    [data-theme="dark"] .table-responsive tr {
        background: rgba(0, 0, 0, 0.15);
    }

    .table-responsive td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 4px !important;
        border-bottom: 1px solid var(--border-color) !important;
        font-size: 0.825rem !important;
        text-align: right !important;
        color: var(--text-primary) !important;
    }

    .table-responsive td:last-child {
        border-bottom: none !important;
        justify-content: flex-end !important;
    }

    /* Insertamos el header original vía data-label */
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--text-secondary);
        margin-right: 15px;
        font-size: 0.8rem;
    }
}

/* MÓDULO: Sidebar Accordion */
.sidebar-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-speed);
    border-radius: var(--radius-md);
}

.sidebar-group-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sidebar-group.active .sidebar-group-toggle {
    color: var(--color-teal);
    background: rgba(20, 184, 166, 0.05);
}

.sidebar-group-toggle .chevron-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-group.active .sidebar-group-toggle .chevron-icon {
    transform: rotate(180deg);
}

.sidebar-subitems {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    margin-top: 4px;
    border-left: 2px solid rgba(20, 184, 166, 0.15);
}

.sidebar-group.active .sidebar-subitems {
    display: flex;
}

.sidebar-subitems .nav-item {
    font-size: 0.825rem !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.sidebar-subitems .nav-item.active {
    color: var(--color-teal) !important;
    background: rgba(20, 184, 166, 0.08) !important;
    font-weight: 700 !important;
}

/* MÓDULO: Expandable Cards & Rows */
.collapsable-card {
    position: relative;
    transition: all 0.3s ease;
}

.card-expandable-content {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-expandable-content.expanded {
    max-height: 2000px !important;
}

.card-expandable-content .fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-theme="dark"] .card-expandable-content .fade-overlay {
    background: linear-gradient(to top, #0f172a, transparent);
}

.card-expandable-content.expanded .fade-overlay {
    opacity: 0 !important;
}

.expandable-tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expandable-tr:hover {
    background-color: rgba(20, 184, 166, 0.03) !important;
}

.details-row {
    background-color: rgba(20, 184, 166, 0.015) !important;
}

.details-container {
    padding: 16px 20px;
    border-top: 1.5px dashed rgba(20, 184, 166, 0.15);
    border-bottom: 1.5px dashed rgba(20, 184, 166, 0.15);
    font-size: 0.85rem;
    animation: slideDownFade 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === MOBILE-FIRST QR CODE & SERVICE SELECTION OPTIMIZATIONS === */

/* QR Code Display Container */
.qr-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.qr-display-wrapper:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-teal);
}

.qr-canvas-holder-custom {
    padding: 1.25rem;
    background: #FFFFFF; /* High contrast white for QR scanning readability */
    border: 3px solid var(--text-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    display: inline-block;
    transition: transform var(--transition-speed) ease;
    max-width: 100%;
    box-sizing: border-box;
}

.qr-canvas-holder-custom:active {
    transform: scale(0.98);
}

.qr-canvas-holder-custom img, 
.qr-canvas-holder-custom canvas {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* Service Selection Lists (Grid & Pills) */
.service-selection-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.service-touch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background-color: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-speed) ease;
    min-height: 80px; /* Generous touch area */
    box-sizing: border-box;
    gap: 6px;
}

.service-touch-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--color-teal-glow);
}

.service-touch-card.active {
    background-color: var(--color-teal) !important;
    border-color: var(--color-teal) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px var(--color-teal-glow) !important;
    transform: scale(1.03);
}

.service-touch-card.active .service-icon,
.service-touch-card.active .service-label {
    color: #ffffff !important;
}

.service-touch-card .service-icon {
    font-size: 1.5rem;
}

.service-touch-card .service-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Horizontal Scrollable Service Pill Bar for Compact Mobile Views */
.service-pill-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE10+ */
    width: 100%;
    box-sizing: border-box;
}

.service-pill-bar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.service-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    height: 38px; /* Comfortable mobile touch size */
}

.service-pill-item:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.service-pill-item.active {
    background-color: var(--color-teal);
    color: #FFFFFF !important;
    border-color: var(--color-teal);
    box-shadow: 0 4px 10px var(--color-teal-glow);
}

/* Swiss Branding Details & Scan Assist */
.scan-instructions-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(16, 185, 129, 0.05);
    border: 1.5px dashed rgba(16, 185, 129, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.scan-instructions-banner .badge-swiss {
    width: 24px;
    height: 24px;
    background-color: #0d9488; /* TipX logo teal background */
    color: #FFFFFF;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.scan-instructions-banner p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .qr-display-wrapper {
        padding: 1rem;
    }
    
    .qr-canvas-holder-custom {
        padding: 1rem;
    }
    
    .service-selection-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
    }
    
    .service-touch-card {
        min-height: 72px;
        padding: 0.75rem 0.5rem;
    }
}

/* 4️⃣ ESTILOS PREMIUM PARA SPINNER & CARGAS (BASADOS EN EL LOGO) */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-teal);
    border-right-color: #06b6d4;
    animation: tipx-spin 0.8s linear infinite;
}

.spinner-tipx {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(30, 41, 59, 0.5);
    border-radius: 50%;
    border-top: 4px solid #06b6d4;
    border-right: 4px solid #0d9488;
    animation: tipx-spin 0.85s cubic-bezier(0.4, 0.1, 0.2, 0.9) infinite;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.3));
}

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

/* Estilos de tabla expandible y drilldown */
.table-row-hover {
    cursor: pointer;
}
.table-row-hover:hover {
    background: rgba(20, 184, 166, 0.05) !important;
}
[data-theme="dark"] .table-row-hover:hover {
    background: rgba(6, 182, 212, 0.07) !important;
}

.details-row {
    background: rgba(15, 23, 42, 0.02) !important;
}
[data-theme="dark"] .details-row {
    background: rgba(0, 0, 0, 0.2) !important;
}

.details-container {
    animation: slideDownFade 0.25s ease-out;
}

.row-drilldown-card {
    border-left: 4px solid var(--color-teal);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Breadcrumbs fluidos */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.breadcrumbs span {
    transition: color 0.2s;
}
.breadcrumbs span.active {
    color: var(--color-teal);
    font-weight: 700;
}

/* ========================================================== */
/* TIPX LOADER & SKELETON COMPONENT STYLES                  */
/* ========================================================== */
@keyframes tipxHexSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tipxPulseGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
        opacity: 0.85;
    }
    50% { 
        filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.95));
        opacity: 1;
    }
}

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

.tipx-loading-svg {
    transform-origin: center;
    animation: tipxPulseGlow 2s infinite ease-in-out;
}

.tipx-loading-svg .hexagon {
    transform-origin: 50px 50px;
    animation: tipxHexSpin 6s infinite linear;
}

/* Loader Overlay Container */
.tipx-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tipx-loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tipx-loader-text {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Skeleton Shimmer Classes */
.tipx-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.07) 37%, rgba(255, 255, 255, 0.02) 63%);
    background-size: 400% 100%;
    animation: tipxShimmer 1.6s infinite linear;
    border-radius: 6px;
}

.tipx-skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.tipx-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

/* KPI Card loading representation */
.tipx-kpi-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    min-height: 110px;
}

/* Table loading representation */
.tipx-table-skeleton {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tipx-table-skeleton-row {
    display: flex;
    gap: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.tipx-table-skeleton-cell {
    height: 16px;
    flex: 1;
}

/* Cascade Step Locking on Client Portal */
.client-step-locked {
    opacity: 0.35 !important;
    filter: grayscale(80%) !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Ajustes de centrado y elevación para pestañas desde Configuración hasta Soporte & Control */
@media (min-width: 1025px) {
    #settings, #branding, #plans_sect, 
    #audit_trail_sect, #users, #super_control_sect, 
    #secure_folders_sect, #legal_terms_sect, #legal_privacy_sect, 
    #legal_impressum_sect {
        max-width: 980px !important;
        width: 100% !important;
        margin-top: -30px !important; /* Eleva el contenido */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Theme Toggle Button Micro-interactions */
.theme-toggle-btn {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.theme-toggle-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-teal) !important;
    box-shadow: 0 0 10px var(--color-teal-glow);
}
.theme-toggle-btn:hover #theme-icon-indicator {
    transform: rotate(35deg);
}
#theme-icon-indicator {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Premium KPI Cards styles */
.kpi-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 18px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}

/* Glassmorphism utility for modern headers */
.glass-panel {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Premium Pricing/Subscription Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(6, 182, 212, 0.1);
    border-color: var(--color-brand);
}

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

/* Featured/Most Popular Pricing Card */
.pricing-card.featured {
    border: 2px solid var(--color-brand);
    background: linear-gradient(185deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.02) 100%);
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(6, 182, 212, 0.05);
}

.pricing-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-lg), 0 15px 35px rgba(6, 182, 212, 0.18);
}

/* Active plan badge and style */
.pricing-card.active-plan {
    border: 2px solid var(--color-teal);
    background: linear-gradient(185deg, var(--bg-card) 0%, rgba(20, 184, 166, 0.04) 100%);
}

.pricing-card .badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
    z-index: 10;
}

.pricing-card .badge-active {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
    z-index: 10;
}

.pricing-card-header h4 {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.pricing-card-header .description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.pricing-card-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features-list li .check-icon {
    color: var(--color-teal);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-features-list li .cross-icon {
    color: var(--text-muted);
    opacity: 0.5;
    flex-shrink: 0;
}

.pricing-features-list li.disabled {
    color: var(--text-muted);
    opacity: 0.75;
    text-decoration: line-through;
}


/* ==========================================================================
   MÓDULO PREMIUM: Hamburguesa & Menú de Navegación Alineado a la Perfección
   ========================================================================== */

/* Hide duplicate sub-navigation tabs globally to maintain single Hamburger Menu navigation */
.sub-nav-tabs {
    display: none !important;
}

/* Botón Hamburguesa Premium en Header */
.desktop-hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.06) !important;
    border: 1px solid rgba(6, 182, 212, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    width: 42px !important;
    height: 42px !important;
    cursor: pointer !important;
    flex-shrink: 0;
    margin-right: 15px !important;
    margin-left: 5px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.05);
}

.desktop-hamburger-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    pointer-events: none;
}

.desktop-hamburger-btn:hover {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: var(--color-teal) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.desktop-hamburger-btn:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.desktop-hamburger-btn:active {
    transform: scale(0.95);
    background: rgba(6, 182, 212, 0.2) !important;
}

/* Micro-interacciones de las líneas del ícono hamburguesa */
.desktop-hamburger-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-hamburger-btn svg line {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease, stroke-width 0.3s ease;
    transform-origin: center;
}

.desktop-hamburger-btn:hover svg line:nth-child(1) {
    transform: translateY(-2px);
    stroke: var(--color-teal) !important;
    stroke-width: 2.5px;
}

.desktop-hamburger-btn:hover svg line:nth-child(2) {
    transform: scaleX(0.85);
    stroke: var(--color-teal) !important;
}

.desktop-hamburger-btn:hover svg line:nth-child(3) {
    transform: translateY(2px);
    stroke: var(--color-teal) !important;
    stroke-width: 2.5px;
}

/* Sidebar Drawer con Efecto Satinado (Glassmorphism) */
.sidebar-navigation {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-right: 1px solid var(--border-color) !important;
    padding: 1.5rem 1.1rem !important;
    width: 310px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Cabecera del Sidebar Drawer */
.mobile-sidebar-header {
    margin-bottom: 25px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Sidebar Pin Button in Header */
.sidebar-pin-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-pin-btn:hover {
    color: var(--color-teal) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    transform: scale(1.05);
}

.sidebar-pin-btn.active {
    background: var(--color-teal) !important;
    border-color: var(--color-teal) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3) !important;
}

.sidebar-pin-btn.active svg {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

/* Sidebar Pin Action Card / Switch in Drawer */
.sidebar-pin-toggle-card {
    margin-bottom: 16px !important;
    padding: 10px 14px !important;
    background: rgba(6, 182, 212, 0.05) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none;
}

.sidebar-pin-toggle-card:hover {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
    transform: translateY(-1px);
}

.sidebar-pin-toggle-card.active {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: var(--color-teal) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12) !important;
}

.sidebar-pin-toggle-card.active .pin-icon-wrapper {
    background: var(--color-teal) !important;
}

.sidebar-pin-toggle-card.active .pin-icon-card {
    stroke: #ffffff !important;
    transform: rotate(-45deg);
}

.sidebar-pin-switch-track {
    width: 36px !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    position: relative !important;
    transition: background 0.25s ease !important;
    flex-shrink: 0;
}

.sidebar-pin-toggle-card.active .sidebar-pin-switch-track {
    background: var(--color-teal) !important;
}

.sidebar-pin-switch-thumb {
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sidebar-pin-toggle-card.active .sidebar-pin-switch-thumb {
    transform: translateX(16px) !important;
}

/* Responsive Pinned Layout */
body.sidebar-pinned .sidebar-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15) !important;
}

@media (min-width: 992px) {
    body.sidebar-pinned .main-container {
        margin-left: 310px !important;
        width: calc(100% - 310px) !important;
        max-width: calc(1440px - 310px) !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.sidebar-pinned header {
        padding-left: 330px !important;
        transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.sidebar-pinned #sidebar-overlay {
        display: none !important;
    }
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-close-btn:hover {
    color: var(--color-red) !important;
    background: var(--color-red-light) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.sidebar-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Estructura del Acordeón y Submenús Alineados a la Perfección */
.sidebar-group {
    border-radius: 12px !important;
    margin-bottom: 6px !important;
    border: 1px solid transparent !important;
    transition: all 0.25s ease !important;
}

.sidebar-group.active {
    background: rgba(6, 182, 212, 0.02) !important;
    border-color: rgba(6, 182, 212, 0.08) !important;
}

/* Botón Toggle del Grupo */
.sidebar-group-toggle {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sidebar-group-toggle::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: scaleY(0.5);
}

.sidebar-group-toggle:hover {
    color: var(--text-primary) !important;
    background: var(--bg-hover) !important;
    padding-left: 18px !important; /* Slide sutil */
}

.sidebar-group.active .sidebar-group-toggle {
    color: var(--color-teal) !important;
    background: rgba(6, 182, 212, 0.06) !important;
    font-weight: 700 !important;
}

.sidebar-group.active .sidebar-group-toggle::after {
    opacity: 1;
    transform: scaleY(1);
}

/* Línea de Conexión de Submenús */
.sidebar-subitems {
    padding-left: 20px !important;
    margin: 4px 0 10px 14px !important;
    border-left: 2px dashed rgba(6, 182, 212, 0.2) !important;
    position: relative;
    transition: border-color 0.3s ease !important;
}

.sidebar-group.active .sidebar-subitems {
    border-left: 2px solid rgba(6, 182, 212, 0.35) !important;
}

/* Elementos del Submenú Individuales */
.sidebar-subitems .nav-item {
    font-size: 0.85rem !important;
    padding: 10px 14px 10px 12px !important;
    border-radius: 8px !important;
    color: var(--text-secondary, #1E293B) !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Punto indicador alineado con la línea vertical */
.sidebar-subitems .nav-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
    opacity: 0.6;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: -2px; /* Alineación perfecta con el conector */
}

.sidebar-subitems .nav-item:hover {
    color: var(--text-primary, #0F172A) !important;
    background: var(--bg-hover) !important;
    padding-left: 16px !important; /* Desplazamiento orgánico */
}

.sidebar-subitems .nav-item:hover::before {
    background: #0e7490 !important;
    opacity: 0.9;
    transform: scale(1.3);
}

.sidebar-subitems .nav-item.active {
    color: #0e7490 !important;
    background: rgba(14, 116, 144, 0.08) !important;
    font-weight: 700 !important;
    padding-left: 16px !important;
}

[data-theme="dark"] .sidebar-subitems .nav-item.active {
    color: var(--color-brand) !important;
    background: rgba(6, 182, 212, 0.08) !important;
}

.sidebar-subitems .nav-item.active::before {
    background: #0e7490 !important;
    opacity: 1 !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 8px rgba(14, 116, 144, 0.25) !important;
}

[data-theme="dark"] .sidebar-subitems .nav-item.active::before {
    background: var(--color-brand) !important;
    box-shadow: 0 0 8px var(--color-brand-glow) !important;
}

/* Corrección de padding en dispositivos pequeños */
@media (max-width: 768px) {
    .desktop-hamburger-btn {
        margin-right: 8px !important;
        margin-left: 0 !important;
        width: 44px !important; /* Incrementamos para accesibilidad touch */
        height: 44px !important;
    }
}

/* COMPLIANCE CLICKABLE CARDS & MODAL ANIMATION */
.compliance-clickable-card {
    cursor: pointer !important;
    user-select: none;
}

.compliance-clickable-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 12px 25px -5px rgba(20, 184, 166, 0.2), 0 0 15px rgba(20, 184, 166, 0.15) !important;
    border-color: var(--color-teal) !important;
}

/* ==========================================================================
   ENTERPRISE PARTNERSHIP CONTACT FORM STYLES & SUBTLE ENTRANCE TRANSITIONS
   ========================================================================== */
@keyframes enterpriseCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.995);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes enterpriseFieldFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeGlowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.25);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(13, 148, 136, 0.35);
    }
}

@keyframes btnShimmerSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(200%) rotate(25deg);
    }
}

.enterprise-contact-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 2.2rem;
    margin: 35px 0 25px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    animation: enterpriseCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.enterprise-contact-section:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 20px rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
}

.enterprise-contact-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem auto;
    animation: enterpriseFieldFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--color-teal);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    animation: badgeGlowPulse 3s ease-in-out infinite;
}

.enterprise-badge:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: var(--color-teal);
    transform: translateY(-1px);
}

.enterprise-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .enterprise-contact-grid {
        grid-template-columns: 1fr;
    }
}

.enterprise-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: enterpriseFieldFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enterprise-contact-grid .enterprise-form-group:nth-child(1) { animation-delay: 0.08s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(2) { animation-delay: 0.12s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(3) { animation-delay: 0.16s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(4) { animation-delay: 0.20s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(5) { animation-delay: 0.24s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(6) { animation-delay: 0.28s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(7) { animation-delay: 0.32s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(8) { animation-delay: 0.36s; }

.enterprise-form-group.full-width {
    grid-column: 1 / -1;
}

.enterprise-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.enterprise-form-group:focus-within .enterprise-form-label {
    color: var(--color-teal);
}

.enterprise-form-input, .enterprise-form-select, .enterprise-form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input, rgba(0,0,0,0.03));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.enterprise-form-input:hover, .enterprise-form-select:hover, .enterprise-form-textarea:hover {
    border-color: rgba(13, 148, 136, 0.4);
}

.enterprise-form-input:focus, .enterprise-form-select:focus, .enterprise-form-textarea:focus {
    border-color: var(--color-teal);
    background: var(--bg-card);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18), 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.enterprise-form-input.is-invalid, .enterprise-form-select.is-invalid, .enterprise-form-textarea.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: inputShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes inputShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.enterprise-form-input.is-valid, .enterprise-form-select.is-valid, .enterprise-form-textarea.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.field-error-text {
    font-size: 0.78rem;
    color: #ef4444;
    font-weight: 500;
    display: none;
    animation: enterpriseFieldFadeIn 0.25s ease-out;
}

.enterprise-btn-submit {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.enterprise-btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%) rotate(25deg);
    transition: none;
    pointer-events: none;
}

.enterprise-btn-submit:hover:not(:disabled)::after {
    animation: btnShimmerSweep 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.enterprise-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.42);
}

.enterprise-btn-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25);
}

.enterprise-btn-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

/* Submitting / Loading State */
.enterprise-btn-submit.is-submitting {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3) !important;
}

/* Success Tick State */
.enterprise-btn-submit.is-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    transform: scale(1.02) !important;
    animation: btnSuccessPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Error Shake State */
.enterprise-btn-submit.is-error {
    animation: btnShakeError 0.4s ease-in-out;
}

/* Animated Checkmark SVG inside Submit Button */
.ent-checkmark-svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

.ent-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #ffffff;
    fill: none;
    animation: entCircleDraw 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ent-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #ffffff;
    fill: none;
    animation: entCheckmarkDraw 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.25s forwards;
}

/* Spinner animation */
.ent-spinner-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: entSpinnerRotate 0.8s linear infinite;
}

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

@keyframes entCircleDraw {
    100% { stroke-dashoffset: 0; }
}

@keyframes entCheckmarkDraw {
    100% { stroke-dashoffset: 0; }
}

@keyframes btnSuccessPop {
    0% { transform: scale(0.96); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1.02); }
}

@keyframes btnShakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   WCAG 2.1 ACCESSIBILITY & SOCIAL ICON STYLES
   ========================================================================== */
.enterprise-form-input:focus-visible,
.enterprise-form-select:focus-visible,
.enterprise-form-textarea:focus-visible,
.enterprise-btn-submit:focus-visible {
    outline: 2px solid var(--color-teal, #2dd4bf) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25) !important;
}

.social-links-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-secondary, #94a3b8);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.social-icon-link:hover {
    color: var(--color-teal, #2dd4bf);
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-2px);
}

.social-icon-link:focus-visible {
    outline: 2px solid var(--color-teal, #2dd4bf) !important;
    outline-offset: 3px !important;
    color: var(--color-teal, #2dd4bf) !important;
    background: rgba(45, 212, 191, 0.2) !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25) !important;
}

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

/* ==========================================================================
   PRINT MEDIA QUERY STYLES
   Compliance Framework & Enterprise Partnership Contact Formatting
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 1.5cm 1.5cm 1.5cm 1.5cm;
}

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #0f172a !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }

    html, body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    nav,
    header nav,
    .nav-link,
    .btn-submit,
    .enterprise-btn-submit,
    #swiss-cookie-consent-banner,
    #offline-notification-banner,
    .floating-fab,
    .modal-close,
    .btn-primary,
    .btn-secondary,
    button[type="submit"],
    input[type="hidden"],
    input[style*="display:none"],
    .social-links-list,
    .footer-social-wrapper,
    .footer-social-section,
    .no-print {
        display: none !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #0f172a !important;
        font-weight: 800 !important;
        page-break-after: avoid;
        break-after: avoid;
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    p, blockquote, ul, ol, table, .feature-card, .stats-card, .enterprise-contact-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .container, main, section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header {
        position: static !important;
        border-bottom: 2px solid #0d9488 !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        background: #ffffff !important;
    }

    header .logo {
        font-size: 18pt !important;
        font-weight: 900 !important;
        color: #0d9488 !important;
    }

    /* COMPLIANCE SECTION PRINT STYLES */
    #compliance,
    .features-section,
    .compliance-section,
    #legal_terms_sect,
    #legal_privacy_sect,
    #legal_impressum_sect {
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 20px !important;
        margin-bottom: 24px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .section-header h2 {
        font-size: 16pt !important;
        color: #0f172a !important;
        border-bottom: 2px solid #0d9488 !important;
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
    }

    .section-header p {
        font-size: 10pt !important;
        color: #334155 !important;
        margin-bottom: 16px !important;
    }

    .grid-3,
    .grid-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
    }

    .feature-card,
    .stats-card,
    .compliance-clickable-card {
        flex: 1 1 30% !important;
        min-width: 200px !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .feature-icon {
        font-size: 18pt !important;
        margin-bottom: 8px !important;
    }

    .feature-card h3,
    .stats-card h4 {
        font-size: 12pt !important;
        color: #0f172a !important;
        margin-bottom: 6px !important;
    }

    .feature-card p,
    .stats-card p {
        font-size: 9.5pt !important;
        color: #334155 !important;
        line-height: 1.4 !important;
    }

    /* ENTERPRISE PARTNERSHIP INQUIRY & CONTACT DETAILS PRINT STYLES */
    #enterprise-inquiry-section,
    .enterprise-contact-section {
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
        border: 2px solid #0d9488 !important;
        border-radius: 12px !important;
        padding: 20px !important;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .enterprise-badge {
        display: inline-block !important;
        background: #f0fdf4 !important;
        border: 1px solid #16a34a !important;
        color: #15803d !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        font-size: 9pt !important;
        font-weight: 800 !important;
        margin-bottom: 10px !important;
    }

    .enterprise-contact-header h3 {
        font-size: 15pt !important;
        color: #0f172a !important;
        margin-bottom: 6px !important;
    }

    .enterprise-contact-header p {
        font-size: 10pt !important;
        color: #475569 !important;
        margin-bottom: 16px !important;
    }

    .enterprise-contact-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 20px !important;
    }

    .enterprise-form-group {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .enterprise-form-group.full-width {
        grid-column: span 2 !important;
    }

    .enterprise-form-label {
        font-weight: 700 !important;
        font-size: 9pt !important;
        color: #1e293b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

/* ==========================================================================
   FRAMER-MOTION STYLE SCROLL ANIMATIONS ("CÓMO FUNCIONA" BENEFIT CARDS)
   ========================================================================== */
.framer-scroll-animate {
    opacity: 0;
    transform: translateY(45px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    will-change: opacity, transform;
}

.framer-scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Delays for Framer-style staggered entrance */
.framer-delay-100 { transition-delay: 0.10s !important; }
.framer-delay-200 { transition-delay: 0.22s !important; }
.framer-delay-300 { transition-delay: 0.34s !important; }
.framer-delay-400 { transition-delay: 0.46s !important; }

/* Interactive Hover Physics for Benefit Cards */
.framer-benefit-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}

.framer-benefit-card:hover {
    transform: translateY(-8px) scale(1.025);
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.25), 0 0 20px rgba(45, 212, 191, 0.15);
}

.framer-benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.12) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.framer-benefit-card:hover::before {
    opacity: 1;
}

.framer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #2dd4bf;
    font-size: 0.725rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.framer-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.framer-benefit-card:hover .framer-card-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(45, 212, 191, 0.4);
}

    .enterprise-form-input,
    .enterprise-form-select,
    .enterprise-form-textarea {
        background: #f8fafc !important;
        border: 1px solid #94a3b8 !important;
        color: #0f172a !important;
        border-radius: 6px !important;
        padding: 8px 12px !important;
        font-size: 10pt !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .enterprise-form-textarea {
        min-height: 60px !important;
    }

    .enterprise-contact-section::after {
        content: "TIPX Switzerland Enterprise Partnerships • Corporate Contact: enterprise@tipx.ch • Lugano / Zürich, Switzerland";
        display: block !important;
        margin-top: 16px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #cbd5e1 !important;
        font-size: 8.5pt !important;
        color: #64748b !important;
        text-align: center !important;
        font-weight: 600 !important;
    }

    footer {
        border-top: 1px solid #cbd5e1 !important;
        margin-top: 20px !important;
        padding-top: 12px !important;
        font-size: 8.5pt !important;
        color: #64748b !important;
        text-align: center !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    footer::before {
        content: "Official Document — TIPX Switzerland Real-Time Tip Compliance System (Art. 8bis OAVS / Art. 21 L-GAV / nLPD 2023)";
        display: block !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin-bottom: 6px !important;
    }

    a[href^="http"]:not(.social-icon-link)::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #475569;
    }
}

/* ==========================================================================
   MÓDULO ACCESIBILIDAD: High Contrast & Large Font Mode
   ========================================================================== */
html.accessibility-mode, body.accessibility-mode {
    font-size: 118% !important;
    --bg-primary: #000000 !important;
    --bg-card: #0a0a0a !important;
    --bg-sidebar: #050505 !important;
    --text-primary: #ffffff !important;
    --text-muted: #f1f5f9 !important;
    --border-color: #facc15 !important;
    --color-teal: #facc15 !important;
}

html.accessibility-mode *, body.accessibility-mode * {
    letter-spacing: 0.02em !important;
    text-shadow: none !important;
}

html.accessibility-mode .legal-modal-content,
html.accessibility-mode .faq-section,
html.accessibility-mode .legal-section,
html.accessibility-mode .accordion-header,
html.accessibility-mode .accordion-content,
html.accessibility-mode p,
html.accessibility-mode td,
html.accessibility-mode th,
html.accessibility-mode li {
    font-size: 1.15em !important;
    line-height: 1.75 !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

html.accessibility-mode .faq-section,
html.accessibility-mode .legal-modal-content,
html.accessibility-mode .legal-section-card,
html.accessibility-mode .card,
html.accessibility-mode .stat-card {
    border: 2px solid #facc15 !important;
    background-color: #000000 !important;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.4) !important;
}

html.accessibility-mode button,
html.accessibility-mode .btn,
html.accessibility-mode .sub-tab-btn {
    font-size: 1.1em !important;
    font-weight: 800 !important;
    border: 2px solid #ffffff !important;
}

html.accessibility-mode a {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

.accessibility-toggle-btn.active {
    background: #facc15 !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6) !important;
}

/* ==========================================================================
   SENIOR MASTER DESIGN: STAFF CARDS, ACCORDION & SUBTLE HOVER ANIMATIONS
   ========================================================================== */

/* Staff Member Cards & Table Rows */
.staff-member-row {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
}

.staff-member-row:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 0 #38bdf8, 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

.staff-avatar {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.staff-member-row:hover .staff-avatar {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5) !important;
}

.staff-badge-share {
    transition: all 0.2s ease !important;
}

.staff-member-row:hover .staff-badge-share {
    transform: scale(1.05);
    background: rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

/* Staff KPI Cards */
.staff-kpi-card {
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: default;
}

.staff-kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

/* ==========================================================================
   FAQ ACCORDION & COLLAPSABLE ITEMS: SUBTLE ENTRANCE & TRANSITIONS
   ========================================================================== */
@keyframes faqItemCascadeIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.faq-accordion,
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Accordion Items & Collapsable Cards */
.faq-item,
.accordion-item,
.collapsable-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    background: var(--bg-card);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease !important;
    animation: faqItemCascadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
}

/* Staggered entrance for up to 10 items */
.faq-accordion .faq-item:nth-child(1), .accordion-group .accordion-item:nth-child(1) { animation-delay: 0.05s; }
.faq-accordion .faq-item:nth-child(2), .accordion-group .accordion-item:nth-child(2) { animation-delay: 0.10s; }
.faq-accordion .faq-item:nth-child(3), .accordion-group .accordion-item:nth-child(3) { animation-delay: 0.15s; }
.faq-accordion .faq-item:nth-child(4), .accordion-group .accordion-item:nth-child(4) { animation-delay: 0.20s; }
.faq-accordion .faq-item:nth-child(5), .accordion-group .accordion-item:nth-child(5) { animation-delay: 0.25s; }
.faq-accordion .faq-item:nth-child(6), .accordion-group .accordion-item:nth-child(6) { animation-delay: 0.30s; }
.faq-accordion .faq-item:nth-child(7), .accordion-group .accordion-item:nth-child(7) { animation-delay: 0.35s; }
.faq-accordion .faq-item:nth-child(8), .accordion-group .accordion-item:nth-child(8) { animation-delay: 0.40s; }

.faq-item:hover,
.accordion-item:hover,
.collapsable-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15), 0 0 16px rgba(56, 189, 248, 0.08) !important;
}

/* ==========================================================================
   ENTERPRISE CONTACT FORM & ACCORDION TRANSITION & ENTRANCE ANIMATIONS
   ========================================================================== */

@keyframes enterpriseCardReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes enterpriseFieldSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqItemEntrance {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleInputGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
    }
}

/* Enterprise Contact Section Entrance */
.enterprise-contact-section {
    animation: enterpriseCardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
}

.enterprise-contact-header {
    animation: enterpriseFieldSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

/* Enterprise Form Groups with Staggered Entrance */
.enterprise-contact-grid .enterprise-form-group {
    animation: enterpriseFieldSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enterprise-contact-grid .enterprise-form-group:nth-child(1) { animation-delay: 0.08s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(2) { animation-delay: 0.12s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(3) { animation-delay: 0.16s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(4) { animation-delay: 0.20s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(5) { animation-delay: 0.24s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(6) { animation-delay: 0.28s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(7) { animation-delay: 0.32s; }
.enterprise-contact-grid .enterprise-form-group:nth-child(8) { animation-delay: 0.36s; }

/* Enhanced Form Controls Transition */
.enterprise-form-input,
.enterprise-form-select,
.enterprise-form-textarea {
    transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.enterprise-form-input:hover,
.enterprise-form-select:hover,
.enterprise-form-textarea:hover {
    border-color: rgba(45, 212, 191, 0.4) !important;
    background-color: rgba(30, 41, 59, 0.8) !important;
}

.enterprise-form-input:focus,
.enterprise-form-select:focus,
.enterprise-form-textarea:focus {
    border-color: var(--color-teal, #0d9488) !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    animation: subtleInputGlow 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(-1px);
}

/* Submit Button Animated States */
.enterprise-btn-submit {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.enterprise-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35), 0 0 0 1px rgba(45, 212, 191, 0.4);
}

.enterprise-btn-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.enterprise-btn-submit.is-submitting {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    cursor: wait;
    opacity: 0.9;
}

.enterprise-btn-submit.is-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.45) !important;
}

.enterprise-btn-submit.is-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #f87171 !important;
    animation: shakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeError {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Checkmark SVG Animation */
.ent-checkmark-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.ent-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #ffffff;
    fill: none;
    animation: entStrokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ent-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3.5;
    stroke: #ffffff;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: entStrokeCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes entStrokeCircle {
    100% { stroke-dashoffset: 0; }
}

@keyframes entStrokeCheck {
    100% { stroke-dashoffset: 0; }
}

.ent-spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: entSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

/* ==========================================================================
   FAQ ACCORDION ITEM ENTRANCE AND SMOOTH TRANSITION ANIMATIONS
   ========================================================================== */

.faq-accordion-container,
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item,
.accordion-item {
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease;
    animation: faqItemEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.10s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.20s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.30s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.40s; }

.faq-item:hover,
.accordion-item:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.4) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 16px rgba(45, 212, 191, 0.1) !important;
}

.faq-item.active,
.accordion-item.active {
    border-color: var(--color-teal, #0d9488) !important;
    background: var(--bg-hover) !important;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15), 0 0 0 1px rgba(45, 212, 191, 0.25) !important;
}

[data-theme="dark"] .faq-item.active,
[data-theme="dark"] .accordion-item.active {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
}

.faq-header,
.accordion-header,
.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    min-height: 52px;
    outline: none;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                padding 0.25s ease !important;
    box-sizing: border-box;
}

.faq-header:hover,
.accordion-header:hover,
.accordion-button:hover {
    background: rgba(45, 212, 191, 0.05) !important;
    color: #2dd4bf !important;
}

.faq-header:focus-visible,
.accordion-header:focus-visible,
.accordion-button:focus-visible {
    outline: 2px solid var(--color-teal, #0d9488);
    outline-offset: -2px;
    border-radius: 10px;
}

.faq-icon,
.accordion-icon,
.accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.1);
    color: var(--color-teal, #2dd4bf);
    font-size: 1.15rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease !important;
}

.faq-item:hover .faq-icon,
.accordion-item:hover .accordion-icon {
    background: rgba(45, 212, 191, 0.2);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.25);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg) scale(1.08);
    background: var(--color-teal, #0d9488);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}

.accordion-header.active .accordion-icon,
.accordion-header.active .accordion-chevron,
.accordion-button:not(.collapsed) .accordion-icon,
.accordion-button:not(.collapsed) .accordion-chevron {
    transform: rotate(180deg) scale(1.08);
    background: var(--color-teal, #0d9488);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}

.faq-content,
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.4rem;
    color: var(--text-secondary);
    font-size: 0.915rem;
    line-height: 1.65;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-content,
.accordion-item.active .accordion-content {
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.95rem;
    padding-bottom: 1.4rem;
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SENIOR WEB DESIGNER: ADMIN NAVIGATION, SECURITY SHIELD & VISUAL POLISH
   ========================================================================== */

/* Admin Security Status Pill in Top Header */
.admin-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 5px 12px;
    color: #10b981;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
    user-select: none;
    flex-shrink: 0;
}

.admin-security-pill:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.security-radar-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.security-radar-dot::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: securityRadarPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    opacity: 0;
}

@keyframes securityRadarPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    50% { opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Admin Quick Navigation & Command Bar (Minimalist Swiss Design) */
.admin-navigation-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 84px;
    z-index: 95;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease;
}

.admin-navigation-command-bar:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.admin-breadcrumb::-webkit-scrollbar {
    display: none;
}

.admin-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.8rem;
}

.admin-breadcrumb-item:hover {
    color: var(--color-teal);
}

.admin-breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 6px;
}

.admin-breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 11px;
}

/* Quick Action Toolbar Group (Minimalist) */
.admin-quick-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    outline: none;
}

.admin-quick-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-brand);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.admin-quick-btn.primary {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #ffffff;
    font-weight: 600;
}

.admin-quick-btn.primary:hover {
    background: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    color: #ffffff;
}

/* Security Health Modal / Drawer */
.security-health-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.security-health-modal-overlay.show {
    display: flex !important;
}

.security-health-modal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    box-sizing: border-box;
}

[data-theme="dark"] .security-health-modal-card {
    background: #0f172a;
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}

.sec-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sec-check-item:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.sec-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Security Form Badge */
.security-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Enhanced Table Container */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .table-responsive-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.table-responsive-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive-wrapper th {
    background: var(--bg-hover);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--border-color);
}

[data-theme="dark"] .table-responsive-wrapper th {
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.table-responsive-wrapper td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

[data-theme="dark"] .table-responsive-wrapper td {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.table-responsive-wrapper tr:hover td {
    background: var(--bg-hover);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
    .admin-navigation-command-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        position: relative;
        top: auto;
        padding: 8px 12px;
    }
    .admin-quick-actions-group {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-quick-actions-group::-webkit-scrollbar {
        display: none;
    }
    .admin-security-pill .sec-pill-desc {
        display: none;
    }
}

/* ==========================================================================
   SWISS SECURITY SENTINEL HUD & ZERO-TRUST TELEMETRY POLISH
   ========================================================================== */
.swiss-sentinel-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    gap: 12px;
    flex-wrap: wrap;
}

[data-theme="dark"] .swiss-sentinel-hud {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.swiss-sentinel-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swiss-sentinel-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.swiss-sentinel-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.swiss-flag-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.15);
}

.swiss-sentinel-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sentinel-metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--color-brand-light);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
}

[data-theme="dark"] .sentinel-metric-item {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.sentinel-metric-item strong {
    color: var(--text-primary);
    font-family: var(--font-mono, monospace);
}

.sentinel-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: sentinelPulse 2s infinite ease-in-out;
}

.sentinel-live-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.sentinel-live-dot.critical {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes sentinelPulse {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px #10b981; }
    100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
}

/* Biometric Security Modal Micro-styling */
.biometric-prompt-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.biometric-fingerprint-wave {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(56, 189, 248, 0.4);
    animation: biometricScan 2.5s infinite ease-in-out;
}

@keyframes biometricScan {
    0%, 100% { border-color: rgba(56, 189, 248, 0.3); transform: scale(1); }
    50% { border-color: #38bdf8; transform: scale(1.06); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
}

/* ==========================================================================
   MOBILE & RESPONSIVE REFINEMENTS (TABLES, MODALS, ACCORDION & TAX SHEETS)
   ========================================================================== */
@media (max-width: 768px) {
    .tax-report-modal-dialog {
        width: 98% !important;
        margin: 10px auto !important;
        max-height: 96vh !important;
    }
    
    .tax-report-modal-header {
        padding: 14px 16px !important;
    }
    
    .tax-report-toolbar {
        padding: 12px 16px !important;
        gap: 10px !important;
    }
    
    .tax-report-toolbar > div {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .tax-report-sheet {
        padding: 20px 16px !important;
        font-size: 13px !important;
    }
    
    .swiss-sentinel-hud {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .swiss-sentinel-metrics {
        justify-content: space-between !important;
        gap: 8px !important;
    }
    
    .faq-accordion-header {
        padding: 12px 14px !important;
        font-size: 0.86rem !important;
    }
}

@media (max-width: 480px) {
    .tax-report-sheet {
        padding: 16px 12px !important;
    }
    
    .tax-report-sheet table th,
    .tax-report-sheet table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
    
    .sentinel-metric-item {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
    }
}

/* ==========================================================================
   SENIOR GRAPHIC DESIGN & SWISS TYPOGRAPHY HARMONY ENHANCEMENTS
   ========================================================================== */

/* Universal Typographic & Visual Refinement */
body, input, button, select, textarea {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optical Display Kerning for Swiss Headers */
h1, h2, h3, .section-title, .logo-text h1, .marketing-modal-container h3 {
    letter-spacing: -0.035em;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
}

/* Micro-interaction & Tactile Feedback */
.btn {
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--color-brand-glow), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0px) scale(0.97) !important;
}

.section-card {
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

/* Marketing Mockup Visual Elevators */
.marketing-mockup-view {
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.marketing-tab-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketing-tab-btn:hover {
    transform: translateY(-1px);
}

/* High-Definition QR Code Borders & Contrast */
.marketing-qr-container {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marketing-qr-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Polished Modal Backdrop Blur */
.modal, #marketing-materials-modal, #user_profile_modal, #securityHealthModal, #monthlyTaxReportModal {
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

/* Smooth Focus Rings */
input:focus-visible, button:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-brand) !important;
    outline-offset: 2px !important;
}

/* Custom Minimalist Swiss Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 15, 25, 0.4);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Ambient Card Polish & Depth */
.stat-card, .metric-box, .overview-kpi-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-box,
[data-theme="dark"] .overview-kpi-card {
    background: linear-gradient(145deg, rgba(26, 36, 56, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Interactive Data Table Row Glow */
.data-table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.data-table tbody tr:hover {
    background-color: var(--bg-hover) !important;
}

/* Smooth Image & Canvas Rendering */
canvas, img {
    image-rendering: -webkit-optimize-contrast;
}

/* ==========================================================================
   TIPX SWITZERLAND - UNIVERSAL MODAL & EMERGENT POPUP DESIGN SYSTEM 2.0
   Unified visual perfection across Light Theme, Dark Theme & Accessibility
   ========================================================================== */

/* 1. Backdrop Blur & Entrance Animations */
@keyframes tipxOverlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
}

@keyframes tipxModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Backdrops (Universal targeting for all popups) */
.modal,
.modal-overlay,
.swiss-profile-modal-overlay,
.security-health-modal-overlay,
#google-auth-overlay,
#forgot-password-modal,
#compliance-detail-modal,
#tipx-mailing-system-modal,
#dashboard-privacy-modal,
#client-legal-modal,
#qr-modal,
#staff-modal,
#venue-collaborators-modal,
#pwa-install-modal,
#swiss-privacy-notice-modal,
#command-palette-modal,
#monthlyTaxReportModal,
#marketing-materials-modal,
#admin-direct-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: tipxOverlayFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Light Theme Backdrop Tint */
:root .modal,
:root .modal-overlay,
:root .swiss-profile-modal-overlay,
:root .security-health-modal-overlay,
html[data-theme="light"] .modal,
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .swiss-profile-modal-overlay,
html[data-theme="light"] .security-health-modal-overlay,
html[data-theme="light"] #google-auth-overlay,
html[data-theme="light"] #forgot-password-modal,
html[data-theme="light"] #compliance-detail-modal,
html[data-theme="light"] #tipx-mailing-system-modal,
html[data-theme="light"] #dashboard-privacy-modal,
html[data-theme="light"] #client-legal-modal,
html[data-theme="light"] #qr-modal,
html[data-theme="light"] #staff-modal,
html[data-theme="light"] #venue-collaborators-modal,
html[data-theme="light"] #pwa-install-modal,
html[data-theme="light"] #swiss-privacy-notice-modal,
html[data-theme="light"] #command-palette-modal,
html[data-theme="light"] #monthlyTaxReportModal,
html[data-theme="light"] #marketing-materials-modal,
html[data-theme="light"] #admin-direct-password-modal {
    background: rgba(15, 23, 42, 0.44) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
}

/* Dark Theme Backdrop Tint */
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal-overlay,
html[data-theme="dark"] .swiss-profile-modal-overlay,
html[data-theme="dark"] .security-health-modal-overlay,
html[data-theme="dark"] #google-auth-overlay,
html[data-theme="dark"] #forgot-password-modal,
html[data-theme="dark"] #compliance-detail-modal,
html[data-theme="dark"] #tipx-mailing-system-modal,
html[data-theme="dark"] #dashboard-privacy-modal,
html[data-theme="dark"] #client-legal-modal,
html[data-theme="dark"] #qr-modal,
html[data-theme="dark"] #staff-modal,
html[data-theme="dark"] #venue-collaborators-modal,
html[data-theme="dark"] #pwa-install-modal,
html[data-theme="dark"] #swiss-privacy-notice-modal,
html[data-theme="dark"] #command-palette-modal,
html[data-theme="dark"] #monthlyTaxReportModal,
html[data-theme="dark"] #marketing-materials-modal,
html[data-theme="dark"] #admin-direct-password-modal {
    background: rgba(3, 7, 18, 0.78) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
}

/* Accessibility Mode Backdrop */
html.accessibility-mode .modal,
html.accessibility-mode .modal-overlay,
html.accessibility-mode .swiss-profile-modal-overlay,
html.accessibility-mode .security-health-modal-overlay {
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 2. Universal Modal Cards & Surfaces */
.modal-content,
.modal-card,
.section-card.marketing-modal-container,
.security-health-modal-card,
.swiss-profile-modal-card,
.tax-report-modal-dialog,
.cp-container,
.pwa-modal-card,
.google-auth-card,
#pwa-install-card,
#swiss-privacy-notice-card,
#qr-modal .section-card,
#compliance-detail-modal .section-card,
#tipx-mailing-system-modal .section-card,
#dashboard-privacy-modal .section-card,
#client-legal-modal .section-card,
#admin-direct-password-modal .section-card,
#forgot-password-modal .section-card {
    position: relative;
    border-radius: 18px;
    max-height: 92vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: tipxModalPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* Light Theme Card Design */
:root .modal-content,
:root .modal-card,
:root .security-health-modal-card,
:root .swiss-profile-modal-card,
:root .tax-report-modal-dialog,
:root .cp-container,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .modal-card,
html[data-theme="light"] .section-card.marketing-modal-container,
html[data-theme="light"] .security-health-modal-card,
html[data-theme="light"] .swiss-profile-modal-card,
html[data-theme="light"] .tax-report-modal-dialog,
html[data-theme="light"] .cp-container,
html[data-theme="light"] .pwa-modal-card,
html[data-theme="light"] .google-auth-card,
html[data-theme="light"] #pwa-install-card,
html[data-theme="light"] #swiss-privacy-notice-card,
html[data-theme="light"] #qr-modal .section-card,
html[data-theme="light"] #compliance-detail-modal .section-card,
html[data-theme="light"] #tipx-mailing-system-modal .section-card,
html[data-theme="light"] #dashboard-privacy-modal .section-card,
html[data-theme="light"] #client-legal-modal .section-card,
html[data-theme="light"] #admin-direct-password-modal .section-card,
html[data-theme="light"] #forgot-password-modal .section-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.14), 0 0 1px rgba(15, 23, 42, 0.08), inset 0 2px 0 0 #0d9488 !important;
}

/* Dark Theme Card Design */
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .section-card.marketing-modal-container,
html[data-theme="dark"] .security-health-modal-card,
html[data-theme="dark"] .swiss-profile-modal-card,
html[data-theme="dark"] .tax-report-modal-dialog,
html[data-theme="dark"] .cp-container,
html[data-theme="dark"] .pwa-modal-card,
html[data-theme="dark"] .google-auth-card,
html[data-theme="dark"] #pwa-install-card,
html[data-theme="dark"] #swiss-privacy-notice-card,
html[data-theme="dark"] #qr-modal .section-card,
html[data-theme="dark"] #compliance-detail-modal .section-card,
html[data-theme="dark"] #tipx-mailing-system-modal .section-card,
html[data-theme="dark"] #dashboard-privacy-modal .section-card,
html[data-theme="dark"] #client-legal-modal .section-card,
html[data-theme="dark"] #admin-direct-password-modal .section-card,
html[data-theme="dark"] #forgot-password-modal .section-card {
    background: linear-gradient(180deg, #151d30 0%, #0f172a 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.14), inset 0 2px 0 0 rgba(45, 212, 191, 0.7) !important;
}

/* High Contrast Accessibility Mode Card */
html.accessibility-mode .modal-content,
html.accessibility-mode .modal-card,
html.accessibility-mode .section-card.marketing-modal-container,
html.accessibility-mode .security-health-modal-card,
html.accessibility-mode .swiss-profile-modal-card,
html.accessibility-mode .tax-report-modal-dialog,
html.accessibility-mode .cp-container,
html.accessibility-mode .pwa-modal-card,
html.accessibility-mode .google-auth-card,
html.accessibility-mode #pwa-install-card,
html.accessibility-mode #swiss-privacy-notice-card,
html.accessibility-mode #qr-modal .section-card,
html.accessibility-mode #compliance-detail-modal .section-card,
html.accessibility-mode #tipx-mailing-system-modal .section-card,
html.accessibility-mode #dashboard-privacy-modal .section-card,
html.accessibility-mode #client-legal-modal .section-card,
html.accessibility-mode #admin-direct-password-modal .section-card,
html.accessibility-mode #forgot-password-modal .section-card {
    border: 2px solid currentColor !important;
    box-shadow: none !important;
}

/* 3. Universal Modal Headers & Footers */
.modal-header,
.tax-report-modal-header,
.sec-modal-header,
.swiss-profile-header,
.mkt-modal-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

:root .modal-header,
:root .tax-report-modal-header,
:root .sec-modal-header,
:root .swiss-profile-header,
:root .mkt-modal-header,
html[data-theme="light"] .modal-header,
html[data-theme="light"] .tax-report-modal-header,
html[data-theme="light"] .sec-modal-header,
html[data-theme="light"] .swiss-profile-header,
html[data-theme="light"] .mkt-modal-header {
    background: linear-gradient(180deg, #f8fafc 0%, rgba(248, 250, 252, 0.6) 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .tax-report-modal-header,
html[data-theme="dark"] .sec-modal-header,
html[data-theme="dark"] .swiss-profile-header,
html[data-theme="dark"] .mkt-modal-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Modal Footers */
.modal-footer,
.tax-report-modal-footer,
.sec-modal-footer,
.swiss-profile-actions {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

:root .modal-footer,
:root .tax-report-modal-footer,
:root .sec-modal-footer,
:root .swiss-profile-actions,
html[data-theme="light"] .modal-footer,
html[data-theme="light"] .tax-report-modal-footer,
html[data-theme="light"] .sec-modal-footer,
html[data-theme="light"] .swiss-profile-actions {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .tax-report-modal-footer,
html[data-theme="dark"] .sec-modal-footer,
html[data-theme="dark"] .swiss-profile-actions {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 4. Universal Interactive Close Button */
.btn-close,
.sec-modal-close-btn,
.swiss-profile-close-btn,
.modal-close-btn,
button[onclick*="close"]:not(.btn),
span[onclick*="close"]:not(.btn) {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}

:root .btn-close,
:root .sec-modal-close-btn,
:root .swiss-profile-close-btn,
html[data-theme="light"] .btn-close,
html[data-theme="light"] .sec-modal-close-btn,
html[data-theme="light"] .swiss-profile-close-btn,
html[data-theme="light"] button[onclick*="close"]:not(.btn),
html[data-theme="light"] span[onclick*="close"]:not(.btn) {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

html[data-theme="dark"] .btn-close,
html[data-theme="dark"] .sec-modal-close-btn,
html[data-theme="dark"] .swiss-profile-close-btn,
html[data-theme="dark"] button[onclick*="close"]:not(.btn),
html[data-theme="dark"] span[onclick*="close"]:not(.btn) {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

.btn-close:hover,
.sec-modal-close-btn:hover,
.swiss-profile-close-btn:hover,
button[onclick*="close"]:not(.btn):hover,
span[onclick*="close"]:not(.btn):hover {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* 5. Modal Navigation Tabs */
.sec-modal-tabs,
.swiss-profile-tabs-nav,
.marketing-tabs-strip,
.mkt-tabs-strip,
div[role="tablist"] {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 8px 16px;
    box-sizing: border-box;
}

:root .sec-modal-tabs,
:root .swiss-profile-tabs-nav,
html[data-theme="light"] .sec-modal-tabs,
html[data-theme="light"] .swiss-profile-tabs-nav,
html[data-theme="light"] .marketing-tabs-strip,
html[data-theme="light"] .mkt-tabs-strip {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="dark"] .sec-modal-tabs,
html[data-theme="dark"] .swiss-profile-tabs-nav,
html[data-theme="dark"] .marketing-tabs-strip,
html[data-theme="dark"] .mkt-tabs-strip {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Tab Buttons */
.sec-tab-btn,
.swiss-profile-tab-btn,
.marketing-tab-btn,
.btn-tab {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:root .sec-tab-btn,
:root .swiss-profile-tab-btn,
:root .marketing-tab-btn,
:root .btn-tab,
html[data-theme="light"] .sec-tab-btn,
html[data-theme="light"] .swiss-profile-tab-btn,
html[data-theme="light"] .marketing-tab-btn,
html[data-theme="light"] .btn-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #1e293b;
    font-weight: 600 !important;
}

html[data-theme="dark"] .sec-tab-btn,
html[data-theme="dark"] .swiss-profile-tab-btn,
html[data-theme="dark"] .marketing-tab-btn,
html[data-theme="dark"] .btn-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
}

:root .sec-tab-btn:hover,
:root .swiss-profile-tab-btn:hover,
:root .marketing-tab-btn:hover,
:root .btn-tab:hover,
html[data-theme="light"] .sec-tab-btn:hover,
html[data-theme="light"] .swiss-profile-tab-btn:hover,
html[data-theme="light"] .marketing-tab-btn:hover,
html[data-theme="light"] .btn-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-theme="dark"] .sec-tab-btn:hover,
html[data-theme="dark"] .swiss-profile-tab-btn:hover,
html[data-theme="dark"] .marketing-tab-btn:hover,
html[data-theme="dark"] .btn-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

/* Active State */
:root .sec-tab-btn.active,
:root .swiss-profile-tab-btn.active,
:root .marketing-tab-btn.active,
:root .btn-tab.active,
html[data-theme="light"] .sec-tab-btn.active,
html[data-theme="light"] .swiss-profile-tab-btn.active,
html[data-theme="light"] .marketing-tab-btn.active,
html[data-theme="light"] .btn-tab.active {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3) !important;
}

html[data-theme="dark"] .sec-tab-btn.active,
html[data-theme="dark"] .swiss-profile-tab-btn.active,
html[data-theme="dark"] .marketing-tab-btn.active,
html[data-theme="dark"] .btn-tab.active {
    background: rgba(6, 182, 212, 0.18) !important;
    border: 1px solid rgba(6, 182, 212, 0.45) !important;
    color: #2dd4bf !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.22) !important;
}

/* 6. Form Inputs & Select Controls in Modals */
.modal input.form-control,
.modal select.form-control,
.modal textarea.form-control,
.modal-content input,
.modal-content select,
.modal-content textarea,
.swiss-profile-input,
.swiss-profile-select,
.swiss-profile-textarea,
.sec-input {
    border-radius: 9px !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

:root .modal input.form-control,
:root .modal select.form-control,
:root .modal textarea.form-control,
:root .modal-content input,
:root .modal-content select,
:root .modal-content textarea,
:root .swiss-profile-input,
:root .swiss-profile-select,
:root .swiss-profile-textarea,
:root .sec-input,
html[data-theme="light"] .modal input.form-control,
html[data-theme="light"] .modal select.form-control,
html[data-theme="light"] .modal textarea.form-control,
html[data-theme="light"] .modal-content input,
html[data-theme="light"] .modal-content select,
html[data-theme="light"] .modal-content textarea,
html[data-theme="light"] .swiss-profile-input,
html[data-theme="light"] .swiss-profile-select,
html[data-theme="light"] .swiss-profile-textarea,
html[data-theme="light"] .sec-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="dark"] .modal input.form-control,
html[data-theme="dark"] .modal select.form-control,
html[data-theme="dark"] .modal textarea.form-control,
html[data-theme="dark"] .modal-content input,
html[data-theme="dark"] .modal-content select,
html[data-theme="dark"] .modal-content textarea,
html[data-theme="dark"] .swiss-profile-input,
html[data-theme="dark"] .swiss-profile-select,
html[data-theme="dark"] .swiss-profile-textarea,
html[data-theme="dark"] .sec-input {
    background: #0b111e !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}

/* Crucial Select Option Styling for Dark Mode */
html[data-theme="dark"] select option {
    background-color: #151d30 !important;
    color: #f8fafc !important;
}

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

/* Focus States */
:root .modal input:focus,
:root .modal select:focus,
:root .modal textarea:focus,
:root .swiss-profile-input:focus,
:root .swiss-profile-select:focus,
:root .swiss-profile-textarea:focus,
html[data-theme="light"] .modal input:focus,
html[data-theme="light"] .modal select:focus,
html[data-theme="light"] .modal textarea:focus,
html[data-theme="light"] .swiss-profile-input:focus,
html[data-theme="light"] .swiss-profile-select:focus,
html[data-theme="light"] .swiss-profile-textarea:focus {
    background: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22) !important;
}

html[data-theme="dark"] .modal input:focus,
html[data-theme="dark"] .modal select:focus,
html[data-theme="dark"] .modal textarea:focus,
html[data-theme="dark"] .swiss-profile-input:focus,
html[data-theme="dark"] .swiss-profile-select:focus,
html[data-theme="dark"] .swiss-profile-textarea:focus {
    background: #111827 !important;
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25) !important;
}

/* 7. Toast Notifications & Emergent Popups */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 48px);
}

.tipx-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-teal, #2dd4bf);
    transform: translateY(100%) scale(0.92);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.tipx-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

:root .tipx-toast,
html[data-theme="light"] .tipx-toast {
    background: #ffffff;
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

html[data-theme="dark"] .tipx-toast {
    background: #151d30;
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 15px rgba(6, 182, 212, 0.15);
}

.tipx-toast-title {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
}

:root .tipx-toast-title,
html[data-theme="light"] .tipx-toast-title {
    color: #0f172a;
}

html[data-theme="dark"] .tipx-toast-title {
    color: #ffffff;
}

.tipx-toast-msg {
    font-size: 0.8rem;
    margin-top: 2px;
    line-height: 1.4;
}

:root .tipx-toast-msg,
html[data-theme="light"] .tipx-toast-msg {
    color: #475569;
}

html[data-theme="dark"] .tipx-toast-msg {
    color: #94a3b8;
}

/* 8. Command Palette Emergent Modal Specifics */
#command-palette-modal .cp-container {
    width: 92% !important;
    max-width: 640px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

:root #command-palette-modal .cp-container,
html[data-theme="light"] #command-palette-modal .cp-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.18), 0 0 1px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="dark"] #command-palette-modal .cp-container {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.15) !important;
}

#command-palette-modal .cp-search-input {
    border: none !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
}

:root #command-palette-modal .cp-search-input,
html[data-theme="light"] #command-palette-modal .cp-search-input {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="dark"] #command-palette-modal .cp-search-input {
    background: transparent !important;
    color: #ffffff !important;
}

#command-palette-modal .cp-item {
    transition: all 0.15s ease !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}

:root #command-palette-modal .cp-item:hover,
:root #command-palette-modal .cp-item.selected,
html[data-theme="light"] #command-palette-modal .cp-item:hover,
html[data-theme="light"] #command-palette-modal .cp-item.selected {
    background: rgba(13, 148, 136, 0.08) !important;
    color: #0f172a !important;
}

html[data-theme="dark"] #command-palette-modal .cp-item:hover,
html[data-theme="dark"] #command-palette-modal .cp-item.selected {
    background: rgba(6, 182, 212, 0.14) !important;
    color: #ffffff !important;
}

/* 9. Monthly Compliance Tax Report Modal Specifics */
#monthlyTaxReportModal .tax-report-modal-dialog {
    width: 95% !important;
    max-width: 1060px !important;
}

html[data-theme="dark"] #monthlyTaxReportModal .tax-report-modal-body {
    background: #0b0f19 !important;
}

html[data-theme="light"] #monthlyTaxReportModal .tax-report-modal-body {
    background: #f1f5f9 !important;
}

/* 10. Marketing Materials 9 Mockups Stage Polish */
#marketing-materials-modal .marketing-modal-container {
    width: 95% !important;
    max-width: 1100px !important;
}

/* 11. Responsive Behavior on Mobile Screens */
@media (max-width: 768px) {
    .modal,
    .modal-overlay,
    .swiss-profile-modal-overlay,
    .security-health-modal-overlay {
        padding: 10px !important;
        align-items: flex-end !important;
    }

    .modal-content,
    .modal-card,
    .section-card.marketing-modal-container,
    .security-health-modal-card,
    .swiss-profile-modal-card,
    .tax-report-modal-dialog,
    .cp-container,
    .pwa-modal-card,
    .google-auth-card,
    #pwa-install-card,
    #swiss-privacy-notice-card,
    #qr-modal .section-card,
    #compliance-detail-modal .section-card,
    #tipx-mailing-system-modal .section-card,
    #dashboard-privacy-modal .section-card,
    #client-legal-modal .section-card,
    #admin-direct-password-modal .section-card,
    #forgot-password-modal .section-card {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        max-height: 94vh !important;
        width: 100% !important;
    }

    .sec-modal-tabs,
    .swiss-profile-tabs-nav,
    .marketing-tabs-strip,
    .mkt-tabs-strip {
        padding: 6px 10px !important;
    }

    .form-grid-double-col,
    .swiss-profile-grid {
        grid-template-columns: 1fr !important;
    }

    #toast-container {
        bottom: 12px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
    }
}



