/* ============================================
   HOSTFLOW PREMIUM DESIGN SYSTEM
   Ocean Flow Brand Identity
   Linear/Notion/Stripe-quality aesthetics
   ============================================ */

/* ============================================
   DESIGN TOKENS - OCEAN FLOW PALETTE
   ============================================ */
:root {
    /* === OCEAN FLOW PRIMARY COLORS === */
    --ocean-deep: #0B2B3C;
    --ocean-dark: #0A2230;
    --ocean-mid: #0F3D4A;
    
    /* Primary Ocean Scale */
    --primary-50: #E6F7F8;
    --primary-100: #B3E8EC;
    --primary-200: #80D9E0;
    --primary-300: #4DCAD4;
    --primary-400: #1ABBC8;
    --primary-500: #00A8B5;
    --primary-600: #008A94;
    --primary-700: #006B73;
    --primary-800: #004D52;
    --primary-900: #002E31;
    
    /* Teal Accents */
    --teal-primary: #00A8B5;
    --teal-bright: #00D4E4;
    --teal-glow: #00E5EE;
    
    /* Warm Coral Accent */
    --coral: #FF6B6B;
    --coral-soft: #FF8A8A;
    --coral-dark: #E85A5A;
    
    /* === NEUTRAL COLORS - Sophisticated Slates === */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    
    /* Gray scale for dark UI */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-850: #1f1f23;
    --gray-900: #18181b;
    --gray-950: #0f0f12;
    
    /* === SEMANTIC COLORS === */
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --error: #EF4444;
    --error-light: #F87171;
    --info: #00A8B5;
    --info-light: #00D4E4;
    
    /* === BACKGROUND SYSTEM === */
    --bg-base: #09090b;
    --bg-elevated: #18181b;
    --bg-surface: #1f1f23;
    --bg-overlay: #27272a;
    --bg-muted: #3f3f46;
    
    /* === BORDER SYSTEM === */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-focus: var(--teal-primary);
    --border-ocean: rgba(0, 168, 181, 0.3);
    
    /* === SHADOW SYSTEM - Ocean Flow Glow === */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 168, 181, 0.2);
    --shadow-glow-strong: 0 0 50px rgba(0, 168, 181, 0.3);
    --shadow-glow-coral: 0 0 25px rgba(255, 107, 107, 0.2);
    
    /* === RADIUS SYSTEM === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* === SPACING SYSTEM === */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* === TYPOGRAPHY === */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Letter Spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    
    /* === TRANSITIONS === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   GOOGLE FONTS - Plus Jakarta Sans + Inter
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--gray-100);
    background: var(--bg-base);
    min-height: 100vh;
    display: flex;
}

/* Selection - Ocean Flow */
::selection {
    background: var(--teal-primary);
    color: white;
}

/* Focus Ring - Accessible & Beautiful */
:focus-visible {
    outline: 2px solid var(--teal-primary);
    outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY - Plus Jakarta Sans Headings
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--gray-50);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tighter);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--slate-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-header h3 svg {
    opacity: 0.7;
    color: var(--teal-primary);
}

/* ============================================
   SIDEBAR - OCEAN FLOW NAVIGATION
   ============================================ */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-dark) 100%);
    border-right: 1px solid var(--border-ocean);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: var(--space-5) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 168, 181, 0.15);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-wordmark {
    display: block;
    height: 44px;
    width: auto;
}

/* Fallback text logo styles (if SVG doesn't load) */
.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-text .logo-host {
    color: white;
}

.logo-text .logo-flow {
    font-weight: 300;
    color: var(--teal-bright);
}

.property-selector {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(0, 168, 181, 0.15);
}

.property-selector label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--slate-400);
    margin-bottom: var(--space-2);
}

.property-selector select {
    width: 100%;
    background: var(--ocean-mid);
    border: 1px solid rgba(0, 168, 181, 0.2);
    color: var(--gray-100);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.property-selector select:hover {
    border-color: var(--teal-primary);
    background: rgba(0, 168, 181, 0.1);
}

.property-selector select:focus {
    border-color: var(--teal-bright);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2);
}

/* Navigation Links */
.nav-links {
    list-style: none;
    padding: var(--space-4) var(--space-3);
    flex: 1;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(0, 168, 181, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(0, 168, 181, 0.15);
    color: var(--teal-bright);
    font-weight: 600;
    border-left-color: var(--teal-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.nav-link.active .nav-icon {
    opacity: 1;
    color: var(--teal-bright);
}

.nav-badge {
    background: var(--coral);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: auto;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.sidebar-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid rgba(0, 168, 181, 0.15);
}

.time-filter label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--slate-400);
    margin-bottom: var(--space-2);
}

.time-filter select {
    width: 100%;
    background: var(--ocean-mid);
    border: 1px solid rgba(0, 168, 181, 0.2);
    color: var(--gray-100);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-6);
    min-height: 100vh;
    background: var(--bg-base);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Year Toggle - Ocean Flow Pills */
.year-toggle {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 3px;
    border: 1px solid var(--border-subtle);
}

.year-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.year-btn:hover {
    color: var(--gray-200);
}

.year-btn.active {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--teal-primary) 100%);
    color: white;
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}

/* ============================================
   BUTTONS - OCEAN FLOW DESIGN
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--teal-primary) 100%);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(0, 168, 181, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 168, 181, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--gray-200);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-overlay);
    border-color: var(--teal-primary);
    color: var(--gray-50);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, var(--coral-dark) 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-bright) 100%);
    color: white;
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn-coral {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-soft) 100%);
    color: white;
    box-shadow: var(--shadow-sm), var(--shadow-glow-coral);
}

.btn-coral:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(255, 107, 107, 0.3);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

/* Icon buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.btn-icon:hover {
    background: var(--bg-overlay);
    border-color: var(--teal-primary);
    color: var(--teal-bright);
}

/* ============================================
   CARDS - ELEVATED DESIGN
   ============================================ */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

.card > *:not(.card-header) {
    padding: var(--space-5);
}

.card > .card-header + * {
    padding-top: var(--space-5);
}

/* ============================================
   STAT CARDS - OCEAN FLOW METRICS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1400px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid-5,
    .stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    border-color: var(--teal-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card.income .stat-icon {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.2) 0%, rgba(0, 168, 181, 0.1) 100%);
    color: var(--teal-bright);
}

.stat-card.expenses .stat-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: var(--coral-soft);
}

.stat-card.mileage .stat-icon {
    background: linear-gradient(135deg, rgba(0, 212, 228, 0.2) 0%, rgba(0, 212, 228, 0.1) 100%);
    color: var(--teal-glow);
}

.stat-card.property-costs .stat-icon {
    background: linear-gradient(135deg, rgba(11, 43, 60, 0.4) 0%, rgba(0, 168, 181, 0.2) 100%);
    color: var(--teal-primary);
}

.stat-card.profit .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(0, 168, 181, 0.1) 100%);
    color: var(--success-light);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-500);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--gray-50);
    line-height: 1;
}

.stat-card.income .stat-value { color: var(--teal-bright); }
.stat-card.expenses .stat-value { color: var(--coral-soft); }
.stat-card.profit .stat-value { color: var(--success-light); }
.stat-card.profit.negative .stat-value { color: var(--coral-soft); }

.stat-sublabel {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

/* ============================================
   HERO ACTIVE HOURS - STUNNING OCEAN FLOW
   ============================================ */
.hero-active-hours {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, rgba(0, 168, 181, 0.15) 100%);
    border: 2px solid rgba(0, 168, 181, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    cursor: pointer;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.hero-active-hours::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 181, 0.15) 0%, transparent 50%);
    animation: oceanPulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

.hero-active-hours:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
    border-color: var(--teal-primary);
}

.hero-active-hours.qualified {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, rgba(0, 168, 181, 0.3) 50%, rgba(0, 229, 238, 0.2) 100%);
    border-color: var(--teal-bright);
}

.hero-active-hours.qualified::before {
    background: radial-gradient(circle, rgba(0, 229, 238, 0.2) 0%, transparent 50%);
}

.hero-active-hours-content {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

/* Hero Progress Ring */
.hero-progress-ring {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.hero-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 20px rgba(0, 168, 181, 0.4));
}

.hero-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.hero-progress-fill {
    fill: none;
    stroke: url(#heroGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534.07;
    stroke-dashoffset: 534.07;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-active-hours.qualified .hero-progress-fill {
    stroke: var(--teal-glow);
    filter: drop-shadow(0 0 15px rgba(0, 229, 238, 0.6));
}

.hero-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--ocean-deep);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(0, 168, 181, 0.3);
}

.hero-active-hours.qualified .hero-progress-center {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--ocean-deep) 100%);
    border-color: var(--teal-bright);
}

.hero-hours {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-active-hours.qualified .hero-hours {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--slate-400);
    margin-top: var(--space-1);
}

.hero-active-hours.qualified .hero-label {
    color: var(--teal-glow);
}

/* Hero Info Section */
.hero-active-hours-info {
    flex: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.hero-active-hours.qualified .hero-title::after {
    content: ' ✓';
    color: var(--teal-glow);
}

.hero-subtitle {
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

.hero-active-hours.qualified .hero-subtitle {
    color: var(--teal-bright);
}

/* Hero Progress Bar */
.hero-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.hero-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-deep) 0%, var(--teal-primary) 50%, var(--teal-bright) 100%);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    border-radius: var(--radius-full);
}

.hero-active-hours.qualified .hero-progress-bar-fill {
    background: linear-gradient(90deg, var(--teal-primary) 0%, var(--teal-glow) 100%);
    box-shadow: 0 0 10px rgba(0, 229, 238, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.hero-stat {
    font-size: var(--text-sm);
    color: var(--slate-400);
}

.hero-stat-percent {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--teal-bright);
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-bright) 100%);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.hero-active-hours:hover .hero-cta {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

/* ============================================
   FORM ELEMENTS - PREMIUM INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--gray-100);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-strong);
    background: var(--bg-overlay);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2);
    background: var(--bg-surface);
}

/* Input with prefix/suffix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.input-with-prefix:focus-within {
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2);
}

.input-with-prefix .input-prefix {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-muted);
    color: var(--gray-400);
    font-weight: 500;
    border-right: 1px solid var(--border-default);
    display: flex;
    align-items: center;
}

.input-with-prefix input {
    border: none;
    background: transparent;
    flex: 1;
    padding: var(--space-3) var(--space-4);
}

.input-with-prefix input:focus {
    box-shadow: none;
}

/* Search input */
.search-input {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--gray-100);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2);
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px !important;
}

/* ============================================
   DATA TABLES - PREMIUM DESIGN
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-500);
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--gray-200);
    font-size: var(--text-sm);
}

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

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

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table row hover with left border indicator */
.data-table tbody tr {
    border-left: 3px solid transparent;
    transition: border-color var(--transition-fast);
}

.data-table tbody tr:hover {
    border-left-color: var(--teal-primary);
}

/* Sortable headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sortable-header:hover {
    color: var(--teal-bright);
}

/* ============================================
   MODALS - PREMIUM OVERLAY
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-wide {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--bg-elevated) 100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border: none;
    border-radius: var(--radius-md);
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-lg);
}

.modal-close:hover {
    background: var(--coral);
    color: white;
}

/* ============================================
   UPLOAD ZONES - BEAUTIFUL DROPZONES
   ============================================ */
.upload-zone,
.upload-area,
.capture-zone {
    background: var(--bg-surface);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.upload-zone:hover,
.upload-area:hover,
.capture-zone:hover {
    border-color: var(--teal-primary);
    background: rgba(0, 168, 181, 0.05);
}

.upload-zone.dragover,
.upload-zone.drag-over {
    border-color: var(--teal-bright);
    background: rgba(0, 168, 181, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    margin-bottom: var(--space-4);
    color: var(--gray-500);
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-placeholder p {
    color: var(--gray-400);
    margin: var(--space-2) 0;
}

.upload-placeholder p strong {
    color: var(--teal-bright);
}

.upload-formats,
.upload-hint {
    font-size: var(--text-xs);
    color: var(--gray-600);
}

/* ============================================
   BANNERS & ALERTS
   ============================================ */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.15) 0%, rgba(0, 168, 181, 0.05) 100%);
    border: 1px solid rgba(0, 168, 181, 0.25);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.banner-icon {
    flex-shrink: 0;
    color: var(--teal-bright);
}

.banner-content strong {
    color: var(--teal-bright);
    display: block;
    margin-bottom: var(--space-1);
}

.banner-content p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Pending review banner */
.pending-review-banner {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--teal-primary) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.pending-icon {
    color: white;
}

.pending-content {
    flex: 1;
    color: white;
}

.pending-content strong {
    display: block;
    margin-bottom: var(--space-1);
}

.pending-content span {
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-xl);
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 300px;
}

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

.toast.success {
    border-left: 4px solid var(--teal-primary);
}

.toast.error {
    border-left: 4px solid var(--coral);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

/* ============================================
   TIMER CARD - OCEAN FLOW DESIGN
   ============================================ */
.timer-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    transition: all var(--transition-base);
}

.timer-card.timer-active {
    border-color: var(--teal-primary);
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.15) 0%, var(--bg-elevated) 100%);
    box-shadow: var(--shadow-glow);
}

.timer-display {
    display: flex;
    flex-direction: column;
}

.timer-time {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gray-50);
    letter-spacing: var(--tracking-tight);
}

.timer-activity {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.timer-select {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--gray-200);
    font-size: var(--text-sm);
    min-width: 180px;
}

/* ============================================
   TAX IMPACT & SCHEDULE C
   ============================================ */
.tax-estimate {
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
}

.tax-estimate .estimate-label {
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin-bottom: var(--space-2);
}

.tax-estimate .estimate-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--teal-glow);
    display: block;
    margin: var(--space-3) 0;
    text-shadow: 0 0 20px rgba(0, 229, 238, 0.3);
}

.tax-estimate .estimate-note {
    font-size: var(--text-xs);
    color: var(--slate-500);
}

/* Deductions Checklist */
.deductions-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.checklist-item.has-data {
    border-left: 3px solid var(--teal-primary);
    background: rgba(0, 168, 181, 0.05);
}

.checklist-item.no-data {
    opacity: 0.5;
}

.checklist-icon {
    font-size: var(--text-lg);
}

.checklist-info {
    flex: 1;
}

.checklist-label {
    font-size: var(--text-sm);
    display: block;
    color: var(--gray-300);
}

.checklist-amount {
    font-size: var(--text-xs);
    color: var(--teal-bright);
    font-weight: 600;
}

/* Schedule C */
.schedule-c {
    font-size: var(--text-sm);
}

.schedule-line {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.schedule-line.header {
    font-weight: 600;
    background: var(--bg-surface);
    padding: var(--space-3) var(--space-4);
    margin: 0 calc(var(--space-5) * -1);
    border-radius: var(--radius-md);
    color: var(--teal-bright);
}

.line-number {
    color: var(--gray-600);
    font-size: var(--text-xs);
    margin-right: var(--space-3);
}

/* ============================================
   YEAR GOAL CARDS - OCEAN FLOW STYLE
   ============================================ */
.year-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.goal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.goal-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.goal-card.qualified {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.2) 0%, var(--bg-elevated) 100%);
    border-color: var(--teal-primary);
    box-shadow: var(--shadow-glow);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.goal-year {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-50);
}

.goal-purpose {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    color: var(--gray-400);
}

.goal-card.qualified .goal-purpose {
    background: var(--teal-primary);
    color: white;
}

/* Circle Progress */
.circle-progress-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-4);
}

.circle-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--bg-muted);
    stroke-width: 8;
}

.circle-fill {
    fill: none;
    stroke: var(--teal-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.goal-card.qualified .circle-center {
    background: var(--ocean-deep);
    border-color: var(--teal-primary);
}

.circle-hours {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-50);
    line-height: 1;
}

.goal-card.qualified .circle-hours {
    color: var(--teal-glow);
}

.circle-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.goal-card.qualified .circle-label {
    color: var(--teal-bright);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-primary);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-overlay) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-muted);
    border-top-color: var(--teal-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1200px) {
    .hero-active-hours-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
    }
    
    .hero-active-hours-info {
        width: 100%;
    }
}

/* ============================================
   FILE DROP ZONE (Income CSV Import)
   ============================================ */
.file-drop-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--teal-primary);
    background: rgba(0, 168, 181, 0.05);
}

.file-drop-zone a {
    color: var(--teal-bright);
    text-decoration: underline;
}

.import-summary {
    background: rgba(0, 168, 181, 0.08);
    border: 1px solid var(--teal-primary);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.import-summary h3 {
    margin: 0 0 8px 0;
    color: var(--teal-bright);
    font-size: var(--text-base);
}

.import-summary .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: var(--text-sm);
}

.import-summary .import-warning {
    margin-top: 8px;
    padding: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--amber);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--amber);
}

/* ============================================
   ONBOARDING PROGRESS METER
   ============================================ */
.onboarding-progress-card {
    border: 1px solid var(--teal-primary);
    background: rgba(0, 168, 181, 0.05);
}

.onboarding-body {
    padding: var(--space-4);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-bright));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: var(--text-sm);
    color: var(--gray-300);
    display: block;
    margin-bottom: var(--space-4);
}

.onboarding-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--gray-400);
    transition: background 0.15s;
}

.onboarding-step:hover {
    background: rgba(255, 255, 255, 0.04);
}

.onboarding-step.done {
    color: var(--teal-bright);
    opacity: 0.7;
}

.onboarding-step.done .step-label {
    text-decoration: line-through;
}

.step-icon {
    flex-shrink: 0;
}

/* ============================================
   MOBILE ACTION BAR
   ============================================ */
.mobile-action-bar {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 280px;
    }

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

    .main-content {
        margin-left: 0;
        padding: var(--space-4);
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .page-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }

    .year-goals-grid {
        grid-template-columns: 1fr;
    }

    .timer-card {
        flex-direction: column;
        text-align: center;
    }

    .timer-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Onboarding: single column on mobile */
    .onboarding-steps {
        grid-template-columns: 1fr;
    }

    /* Mobile action bar */
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-subtle);
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .mobile-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: var(--space-2);
        background: var(--bg-tertiary);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        color: var(--teal-bright);
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-action-btn:active {
        background: var(--teal-primary);
        color: white;
    }

    /* Larger touch targets for table rows */
    .data-table tbody td {
        padding: 14px 10px;
        font-size: var(--text-sm);
    }

    .checklist-item {
        padding: var(--space-4);
        min-height: 48px;
    }

    .nav-link {
        padding: 14px 16px;
        min-height: 48px;
    }

    .action-btn, .btn-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Responsive card grid */
    .quick-stats-bar {
        flex-direction: column;
        gap: var(--space-3);
    }

    .quick-stat-card {
        width: 100%;
    }

    .deductions-score {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .schedule-c {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-actions-inline {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .card {
        padding: var(--space-3);
    }

    .card-header {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    /* Full-screen modals on mobile */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow-y: auto;
    }

    .modal-body {
        padding: var(--space-4);
    }

    /* Prevent iOS zoom on input focus */
    .form-input, .form-select, .form-textarea {
        font-size: 16px;
        padding: 12px;
        min-height: 48px;
    }

    .form-group {
        margin-bottom: var(--space-4);
    }

    .modal-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar,
    .page-header button,
    .btn,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   MICRO-INTERACTIONS & POLISH
   ============================================ */

/* Smooth page transitions */
.page {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.page.active {
    display: block;
    animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Interactive card press effect */
.stat-card.clickable:active {
    transform: scale(0.98);
}

/* Button press feedback */
.btn:active:not(:disabled) {
    transform: scale(0.97);
}

/* Enhanced link hover */
.view-all {
    position: relative;
    color: var(--teal-bright);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
}

.view-all::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: width var(--transition-base);
}

.view-all:hover::after {
    width: 100%;
}

/* Input focus glow animation */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: oceanFocusPulse 0.3s ease;
}

@keyframes oceanFocusPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 181, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0, 168, 181, 0.1); }
    100% { box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2); }
}

/* Nav link hover indicator */
.nav-link {
    position: relative;
    overflow: hidden;
}

/* Badge pulse for notifications */
.nav-badge {
    animation: coralPulse 2s ease-in-out infinite;
}

@keyframes coralPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 107, 107, 0.5); }
}

/* Category badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-300);
    transition: all var(--transition-fast);
}

.category-badge:hover {
    background: var(--bg-overlay);
    border-color: var(--teal-primary);
}

/* Action buttons */
.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--bg-surface);
    color: var(--teal-bright);
}

.action-btn.delete:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--coral-soft);
}

/* Transaction items */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.transaction-item:hover {
    background: var(--bg-overlay);
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

.transaction-amount {
    font-family: var(--font-display);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.transaction-amount.income {
    color: var(--teal-bright);
}

.transaction-amount.expense {
    color: var(--coral-soft);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.empty-state .empty-icon {
    margin-bottom: var(--space-4);
    opacity: 0.5;
    color: var(--teal-primary);
}

.empty-state p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

/* Form hints */
.form-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-2);
    line-height: var(--leading-relaxed);
}

.form-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--teal-primary);
}

/* Platform cards */
.platform-income-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.platform-income-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.platform-income-card:focus-within {
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.15);
}

/* Email forward card */
.email-forward-card {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(0, 168, 181, 0.3);
}

.email-box code {
    color: var(--teal-glow);
    font-weight: 600;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
}

.status-badge.qualified {
    background: rgba(0, 168, 181, 0.2);
    color: var(--teal-glow);
}

.status-badge.warning {
    background: rgba(255, 107, 107, 0.2);
    color: var(--coral-soft);
}

/* Goal banner */
.goal-banner {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    border: 1px solid rgba(0, 168, 181, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.goal-banner .progress-bar {
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-glow));
}

/* Placeholder override for Ocean Flow consistency */
.page-subtitle {
    font-size: var(--text-sm);
    color: var(--slate-400);
    font-weight: 400;
    margin-left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: rgba(0, 168, 181, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 168, 181, 0.2);
}
