/* ===================================
   WYKRYWACZ AI PLATFORM - GLOBAL STYLES
   Design System Foundation
   Version: 2.0 - UI/UX Refactor
   =================================== */

/* ===================================
   CSS VARIABLES - DESIGN TOKENS
   =================================== */

:root {
    /* ============= COLOR TOKENS ============= */
    
    /* Primary Colors (Deep Blue) */
    --color-primary: #1a237e;
    --color-primary-light: #534bae;
    --color-primary-dark: #000051;
    --color-primary-contrast: #ffffff;
    
    /* Accent Colors */
    --color-accent: #90caf9;
    --color-accent-light: #c3fdff;
    --color-accent-dark: #5d99c6;
    
    /* Semantic Colors */
    --color-success: #66bb6a;
    --color-success-light: #98ee99;
    --color-success-dark: #338a3e;
    
    --color-warning: #ffb74d;
    --color-warning-light: #ffe97d;
    --color-warning-dark: #c88719;
    
    --color-danger: #ef5350;
    --color-danger-light: #ff867c;
    --color-danger-dark: #b61827;
    
    --color-info: #64b5f6;
    --color-info-light: #9be7ff;
    --color-info-dark: #2286c3;
    
    /* Background Colors (Dark Theme) */
    --color-bg-primary: #1e1e1e;
    --color-bg-secondary: #252525;
    --color-bg-tertiary: #2d2d2d;
    --color-bg-elevated: #333333;
    
    /* Surface Colors */
    --color-surface: #252525;
    --color-surface-hover: #2d2d2d;
    --color-surface-active: #333333;
    
    /* Text Colors */
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #aaaaaa;
    --color-text-tertiary: #777777;
    --color-text-disabled: #555555;
    --color-text-inverse: #1e1e1e;
    
    /* Border Colors */
    --color-border: #333333;
    --color-border-light: #444444;
    --color-border-dark: #222222;
    
    /* Overlay Colors */
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-overlay-light: rgba(0, 0, 0, 0.3);
    
    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-accent: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
    --gradient-success: linear-gradient(135deg, #66bb6a 0%, #338a3e 100%);
    
    /* ============= SPACING SCALE ============= */
    /* Base: 8px grid system */
    
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    
    /* Component-specific spacing */
    --gap-xs: var(--space-xs);
    --gap-sm: var(--space-sm);
    --gap-md: var(--space-md);
    --gap-lg: var(--space-lg);
    --gap-xl: var(--space-xl);
    
    /* ============= TYPOGRAPHY SCALE ============= */
    
    --font-family-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Roboto', sans-serif;
    --font-family-mono: 'Courier New', Courier, monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ============= BORDER RADIUS ============= */
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* ============= SHADOWS ============= */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 16px 32px rgba(0, 0, 0, 0.5);
    
    /* ============= Z-INDEX SCALE ============= */
    
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ============= TRANSITIONS ============= */
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* ============= BREAKPOINTS ============= */
    
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ============= LAYOUT CONSTRAINTS ============= */
    
    --max-width-container: 1400px;
    --max-width-content: 768px;
    --sidebar-width: 280px;
    --header-height: 64px;
    --footer-height: 80px;
    --bottom-nav-height: 56px;
    
    /* ============= MOBILE TOUCH TARGETS ============= */
    
    --touch-target-min: 44px;
}

/* ===================================
   GLOBAL RESETS & BASE STYLES
   =================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

/* ===================================
   LAYOUT COMPONENTS
   =================================== */

/* Main Layout */
.main-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    padding: var(--space-md);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    color: white;
}

.header-user-icon {
    color: white;
    font-size: var(--font-size-2xl);
}

.header-user-name {
    color: white;
}

.header-link {
    color: white;
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}

/* Body */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    background-color: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    width: var(--sidebar-width);
    overflow-y: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--color-bg-primary);
}

.content-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
}

/* Footer */
.app-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-lg);
}

.footer-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
}

.footer-text {
    color: var(--color-text-secondary);
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-separator {
    color: var(--color-text-tertiary);
}

.footer-icon {
    color: var(--color-accent);
    font-size: var(--font-size-2xl);
}

/* Error UI */
.blazor-error-ui {
    background: var(--color-danger);
    color: white;
    padding: var(--space-md);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: var(--z-tooltip);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.blazor-error-ui .reload {
    color: white;
    margin-left: var(--space-md);
}

.blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: var(--space-md);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Spacing Utilities */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.my-3 { 
    margin-top: var(--space-md); 
    margin-bottom: var(--space-md);
}

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }

/* Layout Utilities */
.container {
    max-width: var(--max-width-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.content-max {
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Text Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }

.font-bold { font-weight: var(--font-weight-bold); }
.font-medium { font-weight: var(--font-weight-medium); }

/* Visibility Utilities */
.hidden { display: none; }
.hidden-mobile { display: none; }
.hidden-desktop { display: block; }

@media (min-width: 768px) {
    .hidden-mobile { display: block; }
    .hidden-desktop { display: none; }
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Mobile First: 0-767px (default styles above) */

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    
    .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .grid-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===================================
   COMPONENT STYLES
   =================================== */

/* Cards */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    background-color: var(--color-surface-hover);
    box-shadow: var(--shadow-md);
}

/* Stat Card */
.stat-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-title {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.stat-trend {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--color-text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
}

/* Form Styles */
.form-section {
    margin-bottom: var(--space-xl);
}

.form-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

/* Auth / Public form shell */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background:
        radial-gradient(circle at top, rgba(144, 202, 249, 0.18), transparent 32%),
        linear-gradient(135deg, #0f0c29 0%, #1a237e 45%, #24243e 100%);
}

.auth-card {
    width: min(100%, 28rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a2e;
    box-shadow: 0 24px 60px rgba(6, 10, 28, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
}

.auth-card.auth-card--wide {
    width: min(100%, 36rem);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.auth-brand img {
    display: block;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #30439b;
    background: rgba(83, 75, 174, 0.1);
}

.auth-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.2;
    color: #161b36;
}

.auth-subtitle {
    margin: 0;
    color: #5f647a;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    color: #464b62;
    font-weight: var(--font-weight-medium);
}

.form-help {
    margin: 0;
    font-size: var(--font-size-xs);
    color: #6f7489;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid #d7d9e4;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1b223d;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.14);
}

.form-input::placeholder {
    color: #969bb1;
}

.validation-message {
    color: #c62828;
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.form-alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-alert--error {
    background: #fff1f1;
    border-color: #f3c0c0;
    color: #8d2424;
}

.form-alert--info {
    background: #eef4ff;
    border-color: #c7d8ff;
    color: #27407a;
}

.form-alert--success {
    background: #edf8ef;
    border-color: #b7dfbe;
    color: #1f6a2a;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: #4b5168;
}

.auth-check input {
    accent-color: #5568d0;
}

.auth-button,
.auth-button-secondary {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.auth-button {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    box-shadow: 0 10px 24px rgba(85, 104, 208, 0.28);
}

.auth-button:hover:not(:disabled),
.auth-button-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.auth-button:hover:not(:disabled) {
    box-shadow: 0 14px 28px rgba(85, 104, 208, 0.34);
}

.auth-button:disabled,
.auth-button-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-button-secondary {
    background: #eef1f8;
    color: #2f3c66;
    border: 1px solid #d8deee;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    text-align: center;
}

.auth-links--inline {
    gap: var(--space-xs);
}

.auth-note,
.auth-link {
    font-size: var(--font-size-sm);
    color: #60657b;
}

.auth-link {
    color: #5568d0;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-inline-button {
    border: none;
    background: transparent;
    padding: 0;
    color: #5568d0;
    font: inherit;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.auth-inline-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-top-color: transparent;
    border-radius: 50%;
    animation: auth-spinner 0.6s linear infinite;
}

@keyframes auth-spinner {
    to {
        transform: rotate(360deg);
    }
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-password-guidance {
    margin-top: var(--space-xl);
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #f5f7fc;
    border: 1px solid #e1e6f2;
}

.auth-password-guidance h4 {
    margin: 0 0 0.6rem;
    font-size: var(--font-size-sm);
    color: #273051;
}

.auth-password-guidance ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #5d657d;
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

.auth-password-guidance li + li {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .auth-page {
        padding: 1rem;
        align-items: stretch;
    }

    .auth-card,
    .auth-card.auth-card--wide {
        width: 100%;
        margin: auto 0;
        border-radius: 20px;
    }

    .auth-options {
        flex-direction: column;
        align-items: stretch;
    }
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    padding: var(--space-lg);
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    position: sticky;
    bottom: 0;
    z-index: var(--z-sticky);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}

/* ===================================
   ROUTE STATES / ADMIN / SESSION FLOWS
   =================================== */

.route-state {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
}

.route-state-card {
    width: min(560px, 100%);
    padding: 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 48px rgba(19, 27, 61, 0.12);
    border: 1px solid #e7ebf5;
}

.route-state-card h1 {
    margin: 0 0 0.75rem;
    color: #1a1a2e;
}

.route-state-card p {
    margin: 0;
    color: #5a6077;
    line-height: 1.7;
}

.route-state-actions,
.session-form-actions,
.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.route-state-link {
    color: #5568d0;
    font-weight: 600;
    text-decoration: none;
}

.session-type-grid {
    margin-bottom: 1.5rem;
}

.session-type-card {
    width: 100%;
    text-align: left;
    border: 1px solid #e4e9f5;
    background: #fbfcff;
    cursor: pointer;
    font: inherit;
}

.session-type-card--selected {
    border-color: #667eea;
    box-shadow: 0 16px 32px rgba(85, 104, 208, 0.12);
    background: #f3f5ff;
}

.session-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.session-form-grid--full {
    grid-column: 1 / -1;
}

.session-textarea {
    min-height: 140px;
    resize: vertical;
}

.session-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.session-insight-card,
.admin-chip {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid #e7ebf5;
    background: #fbfcff;
}

.session-insight-card h3 {
    margin: 0 0 0.5rem;
    color: #1a1a2e;
    font-size: 1rem;
}

.session-insight-card p {
    margin: 0;
    color: #5a6077;
    line-height: 1.6;
}

.admin-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-chip strong {
    color: #1a1a2e;
}

.admin-chip span {
    color: #5568d0;
    font-weight: 700;
}

.admin-inline-action {
    border: 1px solid #d7dff4;
    background: #f6f8ff;
    color: #32448f;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-inline-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        box-shadow: none;
    }

    .dashboard-main,
    .billing-page {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .dashboard-page-header,
    .route-state-actions,
    .session-form-actions,
    .admin-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .session-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-height);
        background-color: var(--color-bg-secondary);
        border-top: 1px solid var(--color-border);
        z-index: var(--z-fixed);
        justify-content: space-around;
        align-items: center;
        padding: 0;
    }
    
    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xs);
        min-height: var(--touch-target-min);
        color: var(--color-text-secondary);
        text-decoration: none;
        font-size: var(--font-size-xs);
        transition: color var(--transition-fast);
    }
    
    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: var(--color-accent);
    }
    
    .mobile-bottom-nav .fab {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-full);
        background: var(--gradient-primary);
        color: white;
        border: none;
        box-shadow: var(--shadow-lg);
        margin-top: -28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    right: var(--space-md);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

@media (min-width: 768px) {
    .fab {
        bottom: var(--space-xl);
    }
}

/* ===================================
   RADZEN OVERRIDES (Dark Theme)
   =================================== */

.rz-layout {
    background-color: var(--color-bg-primary);
}

.rz-sidebar {
    background-color: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
}

.rz-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    height: var(--header-height);
}

.rz-body {
    background-color: var(--color-bg-primary);
}

.rz-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    min-height: var(--footer-height);
}

/* ===================================
   COMPONENTS SHOWCASE STYLES
   =================================== */

.showcase-title {
    color: var(--color-accent);
}

.showcase-title-icon {
    vertical-align: middle;
}

.showcase-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.showcase-section-title {
    color: var(--color-accent);
}

.showcase-form-control {
    width: 100%;
}

.showcase-icon-container {
    padding: var(--space-md);
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-md);
}

.showcase-icon-label {
    color: var(--color-text-secondary);
    text-align: center;
    font-size: 0.7rem;
}

.showcase-progress-bar {
    height: 8px;
}

.showcase-tab-content {
    padding: var(--space-md);
}

.showcase-color-swatch {
    height: 80px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.showcase-color-label {
    color: var(--color-text-secondary);
    text-align: center;
}

.showcase-color-hex {
    font-family: monospace;
    font-size: 0.7rem;
}

.showcase-icon-large {
    font-size: 2rem;
}

.showcase-badge-icon {
    color: var(--color-accent);
}

.showcase-badge-relative {
    position: relative;
    top: -8px;
    left: -8px;
}

/* ===================================
   DASHBOARD PAGE STYLES
   =================================== */

/* Dashboard Header */
.dashboard-header {
    color: var(--color-accent);
    margin: 0;
}

.dashboard-header-icon {
    vertical-align: middle;
    margin-right: var(--space-sm);
}

.dashboard-subtitle {
    color: var(--color-text-secondary);
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
    height: 140px;
}

.dashboard-stat-card-primary {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.dashboard-stat-card-success {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.dashboard-stat-card-warning {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
}

.dashboard-stat-card-purple {
    background: linear-gradient(135deg, #512da8 0%, #673ab7 100%);
}

.dashboard-stat-content {
    height: 100%;
}

.dashboard-stat-label-primary {
    color: #90caf9;
}

.dashboard-stat-label-success {
    color: #a5d6a7;
}

.dashboard-stat-label-warning {
    color: #ffe0b2;
}

.dashboard-stat-label-purple {
    color: #d1c4e9;
}

.dashboard-stat-value {
    color: white;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.dashboard-stat-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.dashboard-stat-icon-primary {
    color: #90caf9;
}

.dashboard-stat-icon-success {
    color: #a5d6a7;
}

.dashboard-stat-icon-warning {
    color: #ffe0b2;
}

.dashboard-stat-icon-purple {
    color: #d1c4e9;
}

.dashboard-stat-trend {
    font-size: var(--font-size-sm);
}

.dashboard-stat-trend-icon {
    font-size: 1rem;
    vertical-align: middle;
}

/* Dashboard Charts */
.dashboard-chart-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    min-height: 400px;
}

.dashboard-chart-title {
    color: var(--color-accent);
}

.dashboard-chart-title-icon {
    vertical-align: middle;
}

/* Dashboard Activity Table */
.dashboard-activity-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.dashboard-activity-icon {
    font-size: 1.5rem;
}

.dashboard-activity-timestamp {
    color: var(--color-text-secondary);
}

.dashboard-table-transparent {
    background-color: transparent;
}

/* ===================================
   HOME PAGE STYLES
   =================================== */

/* Hero Section */
.hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-3xl);
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-md);
}

.hero-content .lead {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    margin-top: var(--space-3xl);
}

.feature-card {
    text-align: center;
    height: 100%;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
}

.feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(144, 202, 249, 0.3);
    transition: all var(--transition-base);
}

.feature-icon {
    font-size: 3rem;
}

.feature-icon-blue { color: var(--color-accent); }
.feature-icon-green { color: var(--color-success); }
.feature-icon-orange { color: var(--color-warning); }

.feature-title {
    font-weight: var(--font-weight-medium);
}

.feature-title-blue { color: var(--color-accent); }
.feature-title-green { color: var(--color-success); }
.feature-title-orange { color: var(--color-warning); }

.feature-description {
    text-align: center;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: var(--font-size-4xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* ===================================
   MOBILE RESPONSIVE ENHANCEMENTS
   =================================== */

/* Mobile Sidebar Drawer */
@media (max-width: 767px) {
    .mobile-drawer {
        position: fixed !important;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        z-index: var(--z-modal);
        box-shadow: var(--shadow-2xl);
        transition: transform var(--transition-base);
    }
    
    .mobile-main-content {
        margin-bottom: var(--bottom-nav-height);
    }
    
    .mobile-sidebar-toggle {
        /* Hamburger menu button on mobile */
    }
    
    /* Hide sidebar when not expanded */
    .rz-sidebar:not(.rz-sidebar-expanded) {
        transform: translateX(-100%);
    }
    
    .rz-sidebar.rz-sidebar-expanded {
        transform: translateX(0);
    }
    
    /* Mobile Drawer Backdrop */
    .mobile-drawer-backdrop {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-overlay);
        z-index: calc(var(--z-modal) - 1);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }
    
    .mobile-drawer-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Desktop - Sidebar always visible */
@media (min-width: 768px) {
    .app-sidebar {
        position: relative !important;
    }
    
    /* Hide mobile-only elements */
    .mobile-drawer-backdrop {
        display: none;
    }
}

/* ===================================
   NAVIGATION MENU STYLES
   =================================== */

/* Nav Menu Container */
.nav-menu-header {
    padding: var(--space-md);
    background-color: var(--color-bg-secondary);
}

.nav-menu-title-container {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
}

.nav-menu-icon {
    color: var(--color-accent);
    font-size: 1.8rem;
}

.nav-menu-title {
    color: white;
    font-weight: var(--font-weight-medium);
}

/* Nav Scrollable Area */
.nav-scrollable {
    background-color: var(--color-bg-secondary);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Radzen Panel Menu Overrides */
.rz-panel-menu {
    background-color: transparent !important;
    width: 100%;
}

.rz-panel-menu-item {
    color: var(--color-text-primary) !important;
    padding: 0.75rem 1rem !important;
    transition: all var(--transition-base) !important;
    border-radius: var(--radius-sm);
    margin: 2px 8px;
}

.rz-panel-menu-item:hover {
    background-color: var(--color-surface-hover) !important;
    color: white !important;
    transform: translateX(4px);
}

.rz-panel-menu-item.rz-state-active,
.rz-panel-menu-item[aria-current="page"] {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-left: 4px solid var(--color-accent) !important;
    font-weight: var(--font-weight-medium) !important;
    box-shadow: var(--shadow-md);
}

/* Parent menu items (groups) */
.rz-panel-menu-item.rz-panel-menu-parent {
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
}

.rz-panel-menu-item.rz-panel-menu-parent:hover {
    opacity: 1;
}

/* Expanded/collapsed icon animation */
.rz-panel-menu-item .rz-panel-menu-toggle {
    transition: transform var(--transition-base);
}

.rz-panel-menu-item.rz-state-expanded .rz-panel-menu-toggle {
    transform: rotate(180deg);
}

/* Mobile Bottom Nav Active States */
.mobile-bottom-nav .nav-item {
    position: relative;
    transition: all var(--transition-fast);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
}

.mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

.mobile-bottom-nav .fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.mobile-bottom-nav .fab:active {
    transform: scale(0.95);
}

/* ===================================
   PUBLIC MARKETING PAGES
   =================================== */

.marketing-page {
    min-height: 100vh;
    background: #ffffff;
    color: #1a1a2e;
}

.landing-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a2e;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0 0 0 1.5rem;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.btn-nav-login {
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-nav-login:hover {
    background: #f0f2ff;
}

.btn-nav-cta {
    padding: 0.5rem 1.25rem;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-nav-cta:hover {
    background: #5568d0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: #667eea;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #5568d0;
    transform: translateY(-1px);
}

.faq-cta .btn-primary {
    background: white;
    color: #667eea;
}

.faq-cta .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-lg,
.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary-lg {
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    color: white;
    box-shadow: 0 12px 28px rgba(85, 104, 208, 0.25);
    cursor: pointer;
}

.btn-primary-lg:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(85, 104, 208, 0.32);
}

.btn-primary-lg:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline-lg {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-lg:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f0f2ff;
}

.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

.footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.85rem;
}

.hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 5rem 2rem 6rem;
    text-align: center;
}

.hero-container,
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.2);
    color: #a0b4f5;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-headline {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, #667eea, #a8c0f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
}

.marketing-section {
    padding: 5rem 2rem;
}

.marketing-section--muted {
    background: #f8f9ff;
}

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    color: #1a1a2e;
}

.section-sub {
    margin: 0 auto 3rem;
    max-width: 720px;
    text-align: center;
    color: #5a6077;
    font-size: 1.05rem;
    line-height: 1.7;
}

.features-grid,
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card,
.testimonial,
.public-form-card,
.public-info-card,
.public-success-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(19, 27, 61, 0.08);
}

.feature-card {
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(19, 27, 61, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.public-info-card h3 {
    margin: 0 0 0.75rem;
    color: #1a1a2e;
}

.feature-card p,
.public-info-card p,
.public-info-card small {
    color: #5a6077;
    line-height: 1.65;
}

.feature-card ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.feature-card ul li {
    padding: 0.3rem 0;
    color: #555;
    font-size: 0.92rem;
}

.feature-card ul li::before {
    content: "✓ ";
    color: #667eea;
    font-weight: 700;
}

.social-proof {
    padding: 4rem 2rem;
    background: #fff;
}

.testimonial {
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    background: #f8f9ff;
}

.testimonial p {
    margin: 0 0 1rem;
    color: #333;
    line-height: 1.7;
    font-style: italic;
}

.testimonial cite {
    color: #667eea;
    font-size: 0.9rem;
    font-style: normal;
}

.lead-capture {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.public-page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.public-page-header {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.public-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #1a1a2e;
}

.public-page-subtitle {
    margin: 0;
    color: #5a6077;
    line-height: 1.7;
}

.public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.public-form-card {
    padding: 2rem;
}

.public-form-card--centered {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.public-form-card h2 {
    margin: 0 0 0.75rem;
    color: #1a1a2e;
}

.public-form-card p {
    color: #5a6077;
    line-height: 1.7;
}

.public-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
    text-align: left;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.public-textarea {
    min-height: 140px;
    resize: vertical;
}

.public-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #5a6077;
    font-size: 0.92rem;
    line-height: 1.6;
}

.public-consent input {
    margin-top: 0.2rem;
    accent-color: #5568d0;
}

.public-consent a,
.public-info-card a {
    color: #5568d0;
    text-decoration: none;
}

.public-consent a:hover,
.public-info-card a:hover {
    text-decoration: underline;
}

.public-submit {
    width: 100%;
}

.public-success-card {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.public-success-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.public-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-info-card {
    padding: 1.5rem;
    background: #f8f9ff;
}

.public-info-card p,
.public-info-card small {
    margin: 0;
}

.pricing-page-shell,
.faq-page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.faq-page-shell {
    max-width: 960px;
}

.pricing-header,
.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1,
.faq-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    color: #1a1a2e;
}

.pricing-header p,
.faq-header p {
    margin: 0;
    color: #5a6077;
    line-height: 1.7;
}

.faq-header a,
.faq-answer a {
    color: #5568d0;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #f4f6ff;
    color: #5a6077;
    font-size: 0.95rem;
}

.billing-toggle .active {
    color: #4254b8;
    font-weight: 600;
}

.badge-save {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e7f6eb;
    color: #1f6a2a;
    font-size: 0.75rem;
    font-weight: 600;
}

.toggle-btn {
    width: 48px;
    height: 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.toggle-btn.on {
    background: #667eea;
}

.toggle-btn.off {
    background: #bcc3d6;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: left 0.2s;
}

.toggle-btn.on .toggle-thumb {
    left: 25px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid #dfe3f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(19, 27, 61, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 24px 48px rgba(19, 27, 61, 0.12);
}

.plan-card.popular {
    border-color: #667eea;
    box-shadow: 0 24px 50px rgba(85, 104, 208, 0.18);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.price-currency,
.price-period,
.price-yearly-note,
.plan-desc {
    color: #5a6077;
}

.price-amount {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    color: #1a1a2e;
}

.price-yearly-note {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.plan-desc {
    min-height: 3em;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-plan-primary,
.btn-plan-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-plan-primary {
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    color: white;
    box-shadow: 0 10px 24px rgba(85, 104, 208, 0.22);
}

.btn-plan-primary:hover,
.btn-plan-outline:hover {
    transform: translateY(-1px);
}

.btn-plan-outline {
    border: 1px solid #667eea;
    color: #5568d0;
    background: #f6f8ff;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features li {
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: #40465c;
    border-bottom: 1px solid #eef1f7;
}

.plan-features li.excluded {
    color: #9aa1b4;
}

.feature-matrix,
.pricing-faq {
    margin-bottom: 4rem;
}

.feature-matrix h2,
.pricing-faq h2 {
    margin: 0 0 2rem;
    font-size: 1.75rem;
    text-align: center;
    color: #1a1a2e;
}

.matrix-table-wrapper {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #e8ecf5;
    box-shadow: 0 16px 34px rgba(19, 27, 61, 0.07);
    background: white;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    padding: 0.9rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #eef1f7;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
    text-align: left;
    color: #28304d;
}

.matrix-table th {
    background: #f8f9ff;
    color: #5b6277;
    font-weight: 600;
}

.matrix-table tbody tr:hover {
    background: #fafbff;
}

.popular-col {
    background: rgba(102, 126, 234, 0.06);
}

.pricing-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pricing-faq-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: #f8f9ff;
    box-shadow: inset 0 0 0 1px #e9edff;
}

.pricing-faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #1a1a2e;
}

.pricing-faq-item p {
    margin: 0;
    color: #5a6077;
    line-height: 1.65;
    font-size: 0.92rem;
}

.faq-page-shell .faq-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-category h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef1fb;
    color: #5568d0;
    font-size: 1.3rem;
}

.faq-item {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #e6eaf4;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 24px rgba(19, 27, 61, 0.05);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover,
.faq-item.open {
    border-color: #667eea;
    box-shadow: 0 14px 28px rgba(85, 104, 208, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
}

.faq-icon {
    color: #667eea;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: #5a6077;
    font-size: 0.96rem;
    line-height: 1.75;
}

.faq-cta {
    margin-top: 3rem;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 50px rgba(93, 72, 162, 0.28);
}

.faq-cta h2 {
    margin: 0 0 0.75rem;
    font-size: 1.9rem;
}

.faq-cta p {
    margin: 0 0 1.5rem;
    opacity: 0.92;
}

.checkout-result {
    max-width: 560px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.checkout-result-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(19, 27, 61, 0.12);
    border: 1px solid #e7ebf5;
}

.checkout-result.success .checkout-result-card {
    box-shadow: 0 24px 60px rgba(31, 106, 42, 0.12);
}

.checkout-result.cancel .checkout-result-card {
    box-shadow: 0 24px 60px rgba(141, 36, 36, 0.1);
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    font-size: 2.3rem;
    background: #eef2ff;
}

.checkout-result.success .result-icon {
    background: #edf8ef;
}

.checkout-result.cancel .result-icon {
    background: #fff1f1;
}

.checkout-result h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: #1a1a2e;
}

.checkout-result p {
    margin: 0;
    color: #5a6077;
    line-height: 1.7;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.legal-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.legal-page h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a1a2e;
}

.last-updated {
    margin: 0 0 2rem;
    color: #8a90a5;
    font-size: 0.92rem;
}

.legal-content {
    padding: 2rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(19, 27, 61, 0.08);
    border: 1px solid #e7ebf5;
}

.legal-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #444b61;
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* ===================================
   APP PAGES
   =================================== */

.dashboard-shell {
    display: flex;
    min-height: 100vh;
    background: #f4f6fb;
}

.dashboard-sidebar {
    width: 248px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    background: #141a33;
    color: white;
    box-shadow: 12px 0 28px rgba(11, 18, 42, 0.18);
}

.dashboard-sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-nav {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.dashboard-sidebar-nav a,
.dashboard-sidebar-footer a,
.dashboard-logout-button {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dashboard-sidebar-nav a:hover,
.dashboard-sidebar-nav a.active,
.dashboard-sidebar-footer a:hover,
.dashboard-logout-button:hover {
    color: white;
    background: rgba(102, 126, 234, 0.2);
}

.dashboard-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-logout-button {
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
}

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard-page-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.9rem;
    color: #1a1a2e;
}

.dashboard-page-subtitle {
    margin: 0;
    color: #5a6077;
    line-height: 1.6;
}

.dashboard-primary-action,
.billing-upgrade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(85, 104, 208, 0.22);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 36px rgba(19, 27, 61, 0.08);
    border: 1px solid #e7ebf5;
}

.dashboard-summary-card--plan {
    background: linear-gradient(135deg, #eef2ff 0%, #f8f9ff 100%);
}

.dashboard-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    background: #eef2ff;
    font-size: 1.6rem;
}

.dashboard-summary-card h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #1a1a2e;
}

.dashboard-summary-card p {
    margin: 0.2rem 0 0;
    color: #7c8398;
    font-size: 0.92rem;
}

.dashboard-upgrade-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: #5568d0;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-panel,
.billing-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 18px 36px rgba(19, 27, 61, 0.08);
    border: 1px solid #e7ebf5;
}

.dashboard-panel h2,
.billing-section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dashboard-action-card {
    display: block;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e4e9f5;
    background: #fbfcff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 14px 28px rgba(85, 104, 208, 0.12);
}

.dashboard-action-icon {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.7rem;
}

.dashboard-action-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #1a1a2e;
}

.dashboard-action-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c7389;
}

.dashboard-loading,
.billing-loading {
    padding: 1.25rem 0;
    color: #7c8398;
}

.dashboard-table-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}

.dashboard-empty-state {
    padding: 2rem;
    text-align: center;
    color: #7c8398;
}

.dashboard-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #5568d0 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* ===================================
   ACCESSIBILITY UTILITIES
   WCAG 2.1 AA compliance helpers
   =================================== */

/* Screen-reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Restore visibility when focused (used for skip links) */
.sr-only:focus,
.sr-only:focus-within {
    position: static;
    width: auto;
    height: auto;
    padding: 0.4rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-primary-contrast);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.1s;
}

.skip-link:focus {
    top: 0;
}

/* Keyboard focus indicator for buttons */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Radzen button focus override */
.rz-button:focus-visible,
.rz-button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Ensure focus ring is visible on form inputs (supplement existing box-shadow) */
.form-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 0;
}

/* High-contrast mode support */
@media (forced-colors: active) {
    button:focus-visible,
    a:focus-visible,
    [role="button"]:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid ButtonText;
        outline-offset: 2px;
    }

    .form-input:focus {
        outline: 2px solid ButtonText;
        box-shadow: none;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.dashboard-table-wrapper,
.billing-table-wrapper {
    overflow-x: auto;
}

.dashboard-table,
.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td,
.billing-table th,
.billing-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eef1f7;
    font-size: 0.92rem;
}

.dashboard-table th,
.billing-table th {
    color: #7c8398;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-table td a,
.billing-table td a {
    color: #5568d0;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-status-badge,
.billing-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-status-badge.completed,
.billing-status-badge.paid {
    background: #edf8ef;
    color: #1f6a2a;
}

.dashboard-status-badge.active,
.billing-status-badge.pending {
    background: #eef4ff;
    color: #27407a;
}

.dashboard-status-badge.failed,
.billing-status-badge.failed {
    background: #fff1f1;
    color: #8d2424;
}

.billing-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.billing-top-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.billing-top-nav a {
    color: #5568d0;
    text-decoration: none;
    font-weight: 500;
}

.billing-top-nav span {
    color: #7c8398;
}

.billing-plan-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.billing-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
}

.billing-plan-badge.free {
    background: #edf0f5;
    color: #61697f;
}

.billing-plan-badge.basic {
    background: #eef4ff;
    color: #27407a;
}

.billing-plan-badge.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.billing-plan-badge.enterprise {
    background: #1a1a2e;
    color: #f5d36b;
}

.billing-plan-details {
    flex: 1;
}

.billing-plan-details p {
    margin: 0.3rem 0;
    color: #4e5468;
}

.billing-empty {
    margin: 0;
    color: #7c8398;
}

.billing-danger-zone {
    border: 1px solid #f0c2c2;
    background: linear-gradient(180deg, #fff9f9 0%, #fff 100%);
}

.billing-cancel-button,
.billing-cancel-confirm-button,
.billing-keep-button {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.billing-cancel-button,
.billing-cancel-confirm-button {
    background: #dc3545;
    color: white;
}

.billing-keep-button {
    background: #edf8ef;
    color: #1f6a2a;
}

.billing-hint {
    margin: 0.65rem 0 0;
    color: #7c8398;
    font-size: 0.9rem;
}

.billing-cancel-confirm {
    padding: 1.25rem;
    border-radius: 16px;
    background: #fbfcff;
    border: 1px solid #e7ebf5;
}

.billing-cancel-confirm p {
    margin: 0 0 1rem;
    color: #3f465c;
    line-height: 1.6;
}

.billing-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.billing-error {
    margin-top: 0.9rem;
    color: #8d2424;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
    }

    .public-grid,
    .public-form-grid {
        grid-template-columns: 1fr;
    }

    .pricing-page-shell,
    .faq-page-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .checkout-result {
        padding: 3rem 1rem;
    }

    .checkout-result-card,
    .legal-content {
        padding: 1.5rem;
    }

    .legal-page {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main,
    .billing-page {
        padding: 1.25rem;
    }

    .dashboard-page-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero,
    .marketing-section,
    .lead-capture,
    .public-page-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
    }

    .btn-nav-login,
    .btn-nav-cta {
        width: auto;
    }

    .hero-sub br {
        display: none;
    }
}

.section-heading {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(144, 202, 249, 0.12);
    color: var(--color-accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.problem-solution-grid,
.benefits-grid,
.demo-showcase-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.problem-solution-card,
.benefit-card,
.demo-showcase-card,
.faq-item {
    border: 1px solid rgba(144, 202, 249, 0.16);
    background: linear-gradient(180deg, rgba(37, 37, 37, 0.98), rgba(26, 35, 126, 0.14));
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.problem-solution-card h2 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.problem-solution-card--accent {
    background: linear-gradient(180deg, rgba(26, 35, 126, 0.32), rgba(83, 75, 174, 0.14));
}

.problem-list,
.solution-checks {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.problem-list-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.problem-list-item strong,
.benefit-card strong,
.demo-showcase-header strong {
    font-size: 1rem;
    color: #fff;
}

.solution-checks span,
.demo-showcase-card li {
    display: block;
    padding-left: 1.1rem;
    position: relative;
}

.solution-checks span::before,
.demo-showcase-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.demo-showcase-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.demo-showcase-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.demo-showcase-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(144, 202, 249, 0.18);
    color: #fff;
    font-weight: 700;
}

.benefit-card p,
.demo-showcase-card p,
.problem-solution-card p {
    margin: 0;
    color: var(--color-text-secondary);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
}

.faq-item p {
    margin: 0.9rem 0 0;
    color: var(--color-text-secondary);
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .no-print,
    .rz-sidebar,
    .rz-header,
    .rz-footer,
    .mobile-bottom-nav,
    .fab {
        display: none !important;
    }
}

.desktop-ad-slot {
    display: none;
}

@media (min-width: 1100px) {
    .desktop-ad-slot {
        display: block;
        width: min(1120px, calc(100% - 48px));
        margin: 1.5rem auto;
    }

    .desktop-ad-slot--hero {
        margin-top: -1.5rem;
        margin-bottom: 2rem;
    }

    .desktop-ad-slot--dashboard {
        margin-top: 0;
    }
}

.desktop-ad-slot__frame {
    background: linear-gradient(180deg, rgba(10, 17, 34, 0.96), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 0.85rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.desktop-ad-slot__label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.84);
    margin-bottom: 0.65rem;
}

.desktop-ad-slot__ins,
.desktop-ad-slot__preview {
    display: block;
    min-height: 110px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.98));
}

.desktop-ad-slot__preview {
    border: 1px dashed rgba(96, 165, 250, 0.35);
    color: #dbeafe;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
}


/* ==========================================================================
   PREMIUM REFACTOR: SaaS Modern Glassmorphism & Neon Glow Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Plus Jakarta Sans', sans-serif;
    
    /* Neon accents */
    --color-primary: #4f46e5;
    --color-primary-light: #818cf8;
    --color-primary-dark: #3730a3;
    
    --color-accent: #c084fc;
    --color-accent-light: #e9d5ff;
    --color-accent-dark: #8b5cf6;
    
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c084fc 100%);
    --gradient-accent: linear-gradient(135deg, #c084fc 0%, #8b5cf6 100%);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Glassmorphism panels */
.dashboard-panel, .auth-card, .dashboard-summary-card, .dashboard-action-card, .session-type-card, .legal-page {
    background: rgba(22, 28, 45, 0.45) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-premium) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effects */
.dashboard-summary-card:hover, .dashboard-action-card:hover, .session-type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.3) !important;
    box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.25), 0 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Premium Buttons */
.dashboard-primary-action, .btn-primary, .auth-button {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-primary-action:hover, .btn-primary:hover, .auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6) !important;
}

.dashboard-primary-action:active, .btn-primary:active, .auth-button:active {
    transform: translateY(0);
}

/* Inputs & Form Fields */
.form-input, .form-select, .session-textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-md) !important;
    color: #f1f5f9 !important;
    padding: 0.8rem 1rem !important;
    transition: all 0.2s ease-in-out !important;
}

.form-input:focus, .form-select:focus, .session-textarea:focus {
    outline: none !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Sidebar Styling */
.dashboard-sidebar, .app-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.dashboard-sidebar-nav a, .app-sidebar a {
    border-radius: var(--radius-md) !important;
    margin: 4px 12px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}

.dashboard-sidebar-nav a:hover, .app-sidebar a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
}

.dashboard-sidebar-nav a.active, .app-sidebar a.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

/* Table Enhancements */
.dashboard-table, .billing-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    width: 100%;
}

.dashboard-table tr, .billing-table tr {
    background: rgba(30, 41, 59, 0.25);
    transition: background 0.2s ease;
}

.dashboard-table tr:hover, .billing-table tr:hover {
    background: rgba(30, 41, 59, 0.5) !important;
}

.dashboard-table th, .billing-table th {
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 16px !important;
}

.dashboard-table td, .billing-table td {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.dashboard-table td:first-child, .billing-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.dashboard-table td:last-child, .billing-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* Status Badges */
.dashboard-status-badge, .billing-status-badge {
    padding: 6px 12px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-status-badge.completed, .billing-status-badge.paid, .dashboard-status-badge.success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.dashboard-status-badge.active, .billing-status-badge.pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.dashboard-status-badge.failed, .billing-status-badge.canceled, .dashboard-status-badge.error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Mobile bottom nav active indicator */
.mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: var(--bottom-nav-height);
}

.mobile-bottom-nav .nav-item {
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: #a855f7 !important;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.mobile-bottom-nav .fab {
    background: var(--gradient-primary) !important;
    border-radius: var(--radius-full) !important;
    width: 54px !important;
    height: 54px !important;
    margin-top: -15px !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4); transform: scale(1); }
    100% { box-shadow: 0 6px 25px rgba(168, 85, 247, 0.7); transform: scale(1.04); }
}
