/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
    :root {
    /* Color Palette - Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-card: #FFFFFF;
    
    --text-primary: #26053A;
    --text-secondary: #52525B;
    
    /* Accents - Custom Palette */
    --accent-primary: #26053A;
    --accent-vibrant: #FC4D10;
    --accent-purple: #7433FF;
    --accent-purple-glow: rgba(116, 51, 255, 0.15);
    
    --accent-blue: var(--accent-purple); /* Aliasing for existing classes */
    --accent-green: #10B981;
    --accent-red: var(--accent-vibrant);
    --accent-orange: var(--accent-vibrant);

    /* Semantic accent tokens — use these in new code instead of raw hex.
       Phase 7 of the smart-logic overhaul introduced them so pillar
       colours (fitness), account badge colours (dashboard) and rule
       statuses (insights.js) share one palette.

         signal-positive : "doing well" / on-track  (green)
         signal-warning  : "watch this"             (orange)
         signal-critical : "act now"                (red)
         signal-neutral  : no judgement / unknown   (grey)
         signal-accent   : draws attention / brand  (purple)
    */
    --signal-positive: #10B981;
    --signal-warning:  #ff9f0a;
    --signal-critical: #ff6370;
    --signal-neutral:  #E5E7EB;
    --signal-accent:   #7433FF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);
    
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Shared Progress Bar
   ========================================================================== */
.progress-bar {
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-vibrant);
    border-radius: 3px;
}

/* ==========================================================================
   Components (Buttons, Tags, etc.)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
    background: #6026FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(116, 51, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.03);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
}

.block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.badge.success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--accent-green);
    border-color: rgba(48, 209, 88, 0.2);
}

.badge.pro-badge {
    background: rgba(116, 51, 255, 0.1);
    color: var(--accent-purple);
    border-color: rgba(116, 51, 255, 0.2);
}

.tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag.alert {
    background: rgba(255, 69, 58, 0.1);
    color: var(--accent-red);
}

/* --- Standardized Action Buttons --- */
.edit-action-btn, .delete-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.edit-action-btn {
    color: var(--text-secondary);
}

.edit-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-purple);
    opacity: 1;
}

.delete-action-btn {
    color: var(--accent-red);
}

.delete-action-btn:hover {
    background: rgba(252, 77, 16, 0.05);
    color: var(--accent-red);
    opacity: 1;
}

.edit-action-btn i, .delete-action-btn i {
    width: 15px;
    height: 15px;
    display: block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
/* ==========================================================================
   Global Utilities & Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-img {
    height: 54px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: none;
    gap: 12px;
}

@media (min-width: 768px) {
    .nav-links, .nav-actions {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section & Wrapper — Enhanced Immersive Background
   ========================================================================== */
.hero-wrapper {
    position: relative;
    overflow: visible; /* Allow spill over */
    background: #FFFFFF;
    z-index: 1;
}

.hero-mesh {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    transition: all 1s ease;
}

.hb-1 {
    width: 500px;
    height: 500px;
    background: rgba(116, 51, 255, 0.15);
    top: 0;
    left: 10%;
    animation: blobFloat 20s infinite alternate;
}

.hb-2 {
    width: 450px;
    height: 450px;
    background: rgba(252, 77, 16, 0.12);
    top: 20%;
    right: 10%;
    animation: blobFloat 25s infinite alternate-reverse;
}

.hb-3 {
    width: 600px;
    height: 600px;
    background: rgba(16, 185, 129, 0.1);
    bottom: 0;
    left: 20%;
    animation: blobFloat 30s infinite alternate;
}

.hb-4 {
    width: 400px;
    height: 400px;
    background: rgba(255, 99, 112, 0.1);
    top: 40%;
    left: 40%;
    animation: blobFloat 18s infinite alternate-reverse;
}

.hb-5 {
    width: 550px;
    height: 550px;
    background: rgba(116, 51, 255, 0.08);
    bottom: 10%;
    right: 20%;
    animation: blobFloat 22s infinite alternate;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -50px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    opacity: 0.5;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, white 85%);
    z-index: 0;
    pointer-events: none;
}

.hero {
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-badge {
    animation: fadeSlideUp 0.6s ease both;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s 0.1s ease both;
}

.text-gradient {
    color: var(--accent-vibrant);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.65;
    animation: fadeSlideUp 0.6s 0.2s ease both;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s 0.3s ease both;
}

.hero-btn-outline {
    border-color: rgba(38, 5, 58, 0.15);
    color: var(--text-primary);
}

.hero-btn-outline:hover {
    background: rgba(116, 51, 255, 0.06);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
    animation: fadeSlideUp 0.6s 0.4s ease both;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideUp 0.8s 0.3s ease both;
}

/* Multi-color glow orbs behind mockup */
.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Purple glow — top-left */
.hero-visual::before {
    width: 280px;
    height: 280px;
    top: -10%;
    left: -5%;
    background: rgba(116, 51, 255, 0.18);
    animation: glowDrift1 8s ease-in-out infinite alternate;
}

/* Orange glow — bottom-right */
.hero-visual::after {
    width: 240px;
    height: 240px;
    bottom: -5%;
    right: -8%;
    background: rgba(252, 77, 16, 0.14);
    animation: glowDrift2 7s ease-in-out infinite alternate;
}

/* Hover intensify */
.hero-visual:hover::before {
    transform: translate(-8px, -12px) scale(1.2);
    opacity: 1;
}

.hero-visual:hover::after {
    transform: translate(8px, 10px) scale(1.2);
    opacity: 1;
}

@keyframes glowDrift1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%  { transform: translate(-10px, 8px) scale(1.08); opacity: 0.9; }
    100% { transform: translate(5px, -6px) scale(1.04); opacity: 0.75; }
}

@keyframes glowDrift2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.65; }
    50%  { transform: translate(8px, -10px) scale(1.1); opacity: 0.85; }
    100% { transform: translate(-6px, 5px) scale(1.02); opacity: 0.7; }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Green glow — top-right */
.glow-green {
    width: 260px;
    height: 260px;
    top: -5%;
    right: -2%;
    background: rgba(16, 185, 129, 0.12);
    animation: glowDrift3 9s ease-in-out infinite alternate;
}

/* Coral glow — bottom-left */
.glow-coral {
    width: 220px;
    height: 220px;
    bottom: -8%;
    left: -4%;
    background: rgba(255, 99, 112, 0.1);
    animation: glowDrift4 10s ease-in-out infinite alternate;
}

.hero-visual:hover .glow-green {
    transform: translate(12px, -8px) scale(1.25);
    opacity: 0.9;
}

.hero-visual:hover .glow-coral {
    transform: translate(-10px, 12px) scale(1.2);
    opacity: 0.9;
}

@keyframes glowDrift3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(12px, 6px) scale(1.05); opacity: 0.8; }
    100% { transform: translate(-4px, -8px) scale(1.03); opacity: 0.65; }
}

@keyframes glowDrift4 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%  { transform: translate(-8px, -12px) scale(1.1); opacity: 0.75; }
    100% { transform: translate(6px, 4px) scale(1.01); opacity: 0.6; }
}

.mockup-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 48px 80px rgba(116, 51, 255, 0.08);
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.8s ease;
    max-width: 520px;
    width: 100%;
}

.mockup-container:hover {
    transform: perspective(1200px) rotateY(0) rotateX(0);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 24px 48px rgba(0, 0, 0, 0.06),
        0 64px 120px rgba(116, 51, 255, 0.12);
}

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

.avatar-circle {
    width: 44px;
    height: 44px;
    background: var(--accent-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mockup-actions {
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 50%;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.m-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.m-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.mockup-main-card {
    background: #f8f9ff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.03);
}

.mockup-main-card h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

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

.mockup-card.small-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 0;
}

.small-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.survival-icon { background: rgba(255, 99, 112, 0.1); color: #ff6370; }
.transport-icon { background: rgba(255, 159, 10, 0.1); color: #ff9f0a; }

.small-card h4 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.small-card p {
    font-weight: 700;
    font-size: 1rem;
}

/* Floating Alert */
.floating-alert {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(116, 51, 255, 0.05);
    max-width: 260px;
    z-index: 10;
    animation: alertFloat 3s ease-in-out infinite alternate;
}

.floating-alert-1 {
    bottom: -15px;
    right: -25px;
}

.floating-alert-2 {
    top: 40px;
    left: -40px;
    animation-delay: 1.5s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(252, 77, 16, 0.05);
}

@keyframes alertFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ==========================================================================
   Banks Section
   ========================================================================== */
.banks-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 48px;
    opacity: 0.6;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    margin-bottom: 40px;
}

.bank-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    opacity: 0.2;
    filter: grayscale(1);
    transition: var(--transition);
}

.bank-logo:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

.security-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Features / Categories Section
   ========================================================================== */
.features-section {
    padding: 120px 0;
    background: var(--bg-secondary); /* Solid background */
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--accent-purple-glow);
}

.cat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Trigger / Debt Section
   ========================================================================== */
.trigger-section {
    padding: 120px 0;
    background: var(--bg-primary); /* Solid background */
    position: relative;
    z-index: 2;
}

.trigger-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
}

@media (min-width: 1024px) {
    .trigger-container {
        grid-template-columns: 1fr 1fr;
    }
}

.trigger-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.trigger-content > p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.f-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-list span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.strategy-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.strategy-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.strategy-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.debt-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.debt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.d-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.d-rate {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-vibrant);
}

.d-val {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.strategy-projection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius-md);
}

.proj-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.proj-item strong {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* ==========================================================================
   AI Coach Section
   ========================================================================== */
.ai-section {
    padding: 120px 0;
    background: var(--bg-secondary); /* Solid background */
    position: relative;
    z-index: 2;
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
}

@media (min-width: 1024px) {
    .ai-container {
        grid-template-columns: 1fr 1fr;
    }
}

.ai-visual {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

.ai-chat-window {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.chat-header {
    background: var(--accent-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header strong {
    display: block;
    font-size: 0.9rem;
}

.chat-header .status {
    font-size: 0.7rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header .status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.check-list i {
    color: var(--accent-green);
    width: 20px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    padding: 120px 0;
    background: white;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.pricing-section .section-header h2 {
    color: var(--text-primary);
}

.pricing-section .section-header p {
    color: var(--text-secondary);
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.pricing-card.premium .pricing-toggle-wrapper {
    justify-content: flex-start;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-card.premium .toggle-label {
    color: rgba(255,255,255,0.7) !important;
}

.discount-badge {
    background: rgba(116, 51, 255, 0.15);
    color: #b388ff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: 700;
    border: 1px solid rgba(116, 51, 255, 0.2);
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.05);
    transition: .4s;
    border-radius: 34px;
    border: 1.5px solid var(--accent-vibrant);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--accent-purple);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.pricing-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 56px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.pricing-card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.pricing-card.premium {
    background: #1a0633 !important;
    border-color: var(--accent-purple);
    box-shadow: 0 20px 80px rgba(116, 51, 255, 0.15);
}

.pricing-card.premium * {
    color: white !important;
}

.pricing-card.premium .popular-tag,
.pricing-card.premium .popular-tag * {
    color: white !important;
}

.pricing-card.premium .plan-features i {
    color: var(--accent-purple) !important;
}

.pricing-card.premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(116, 51, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.card-type {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    background: rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.pricing-card.premium .card-type {
    color: var(--accent-purple) !important;
    background: rgba(255,255,255,0.08);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.price .amount {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.5;
    margin-left: 6px;
}

.plan-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.7;
    margin-bottom: 20px;
    min-height: auto;
}

.feature-group-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pricing-card.premium .feature-group-label {
    color: var(--accent-purple) !important;
    border-color: rgba(255,255,255,0.1);
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

@media (min-width: 640px) {
    .pricing-card.premium .plan-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.plan-features i {
    width: 14px;
    height: 14px;
    color: var(--accent-purple);
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features li.unavailable {
    opacity: 0.5;
    color: var(--text-tertiary);
}

.plan-features li.unavailable i {
    color: rgba(0, 0, 0, 0.3);
}

.trial-info {
    padding: 14px 0;
    margin-top: 16px;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.trial-info p {
    margin: 0;
}

.trial-info strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.plan-limits {
    margin-top: auto;
    padding: 24px;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 32px;
}

.pricing-card.premium .plan-limits {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.plan-limits h4 {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.pricing-card.premium .plan-limits h4 {
    color: rgba(255,255,255,0.5) !important;
}

.plan-limits ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.plan-limits li {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pricing-card.premium .plan-limits li {
    color: rgba(255,255,255,0.6) !important;
}

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

.popular-tag {
    background: var(--accent-vibrant);
    color: white;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(252, 77, 16, 0.2);
}

.pricing-card-header .card-type {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* End of file cleanup */

.footer {
    padding: 120px 0 60px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 2fr;
        gap: 100px;
    }
}

.footer-brand p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 32px 0;
    max-width: 400px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
    stroke: currentColor;
    display: block;
}

.social-links a:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 24px var(--accent-purple-glow);
    border-color: var(--accent-purple);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.link-group h4 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 48px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hosting-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.hosting-note i {
    width: 14px;
    height: 14px;
    color: #ff6370;
}

@media (max-width: 640px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Auth Pages (Login/Signup)
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.auth-card {
    background: var(--bg-primary);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    background: #FAFAFA;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(116, 51, 255, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.form-footer a {
    color: var(--accent-purple);
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.06);
}

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

.social-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.btn-social {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-social:hover {
    background: #F9FAFB;
    border-color: rgba(0,0,0,0.15);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent-purple);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Onboarding Wizard — Full-Screen Immersive Experience
   ========================================================================== */
.onboarding-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Animated Mesh Background */
.bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    animation: meshMove 25s infinite alternate ease-in-out;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.blob-1 { background: var(--accent-purple); top: -10%; left: -10%; }
.blob-2 { background: var(--accent-vibrant); bottom: -10%; right: -10%; }
.blob-3 { background: #7433FF; top: 40%; right: 10%; width: 35vw; height: 35vw; }

/* Step-specific Background Magic */
.step-bg-2 .blob-1 { transform: translate(30%, 20%); background: var(--accent-vibrant); }
.step-bg-2 .blob-2 { transform: translate(-20%, -30%); }

.step-bg-3 .blob-1 { transform: translate(-10%, 40%); }
.step-bg-3 .blob-3 { transform: translate(-30%, -20%) scale(1.5); background: var(--accent-purple); }

.step-bg-4 .blob-2 { transform: translate(40%, -20%); background: var(--accent-purple); }
.step-bg-4 .blob-1 { transform: scale(1.2); }

.step-bg-5 .blob-1 { transform: translate(15%, 15%) scale(1.8); background: var(--accent-vibrant); filter: blur(120px); opacity: 0.3; transition: all 5s ease-in-out; }
.step-bg-5 .blob-2 { transform: translate(-15%, -15%) scale(1.8); background: var(--accent-purple); filter: blur(120px); opacity: 0.3; transition: all 5s ease-in-out; }
.step-bg-5 .blob-3 { transform: translate(5%, 5%) scale(1.6); background: var(--accent-green); filter: blur(100px); opacity: 0.2; transition: all 5s ease-in-out; }

@keyframes meshMove {
    0% { border-radius: 50% 50% 50% 50%; transform: translate(0, 0); }
    33% { border-radius: 40% 60% 70% 30%; transform: translate(10%, 5%); }
    66% { border-radius: 70% 30% 50% 50%; transform: translate(-5%, 10%); }
    100% { border-radius: 50% 50% 50% 50%; transform: translate(0, 0); }
}

.onboarding-wrapper {
    width: 100%;
    max-width: 560px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.onboarding-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    animation: logoEntrance 0.8s ease forwards;
}

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

/* Progress Bar — pill style */
.progress-tracker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 48px;
    padding: 0 40px;
    animation: fadeSlideUp 0.6s 0.2s ease both;
}

.progress-step {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.progress-step.active {
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(116, 51, 255, 0.2);
}

.progress-step.completed {
    background: var(--accent-green);
}

/* Step Container */
.step {
    display: none;
    perspective: 1000px;
}

.step.active {
    display: block;
}

/* Transition Variations */
.step-slide-up.active { animation: slideUpEnter 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }
.step-slide-right.active { animation: slideRightEnter 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }
.step-zoom.active { animation: zoomEnter 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }
.step-flip.active { animation: flipEnter 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }

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

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

@keyframes zoomEnter {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes flipEnter {
    from { opacity: 0; transform: rotateX(-30deg) translateY(50px); }
    to { opacity: 1; transform: rotateX(0) translateY(0); }
}

.step.exit {
    animation: stepExit 0.4s ease forwards;
}

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

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

.step-card {
    background: var(--bg-primary);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.step-header {
    margin-bottom: 36px;
}

.step-header .step-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-purple);
    margin-bottom: 14px;
    padding: 4px 10px;
    background: rgba(116, 51, 255, 0.06);
    border-radius: var(--radius-full);
}

.step-header h1 {
    font-size: 1.85rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Option Cards (for selection steps) */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.option-grid.single-col {
    grid-template-columns: 1fr;
}

.option-card {
    border: 2px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    position: relative;
    background: white;
}

.option-card:hover {
    border-color: rgba(116, 51, 255, 0.25);
    background: rgba(116, 51, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(116, 51, 255, 0.06);
}

.option-card.selected {
    border-color: var(--accent-purple);
    background: rgba(116, 51, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(116, 51, 255, 0.1);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--accent-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: checkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.option-card .option-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.option-card .option-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-card .option-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Large option cards for tracking method */
.option-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.option-card-large {
    border: 2px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    padding: 28px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    position: relative;
}

.option-card-large:hover {
    border-color: rgba(116, 51, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(116, 51, 255, 0.06);
}

.option-card-large.selected {
    border-color: var(--accent-purple);
    background: rgba(116, 51, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(116, 51, 255, 0.1);
}

.option-card-large.selected::after {
    content: '✓';
    position: absolute;
    top: 14px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--accent-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: checkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option-card-large .option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(116, 51, 255, 0.06);
}

.option-card-large .option-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.option-card-large .option-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Budget Setup */
.budget-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s ease;
}

.budget-category:last-child {
    border-bottom: none;
}

.budget-category:hover {
    background: rgba(116, 51, 255, 0.01);
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: 8px;
}

.budget-cat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.budget-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.budget-cat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.budget-cat-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.budget-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.budget-input-wrapper span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.budget-input {
    width: 110px;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
    background: #FAFAFA;
    transition: var(--transition);
}

.budget-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(116, 51, 255, 0.1);
}

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 8px;
    border-top: 2px solid rgba(0,0,0,0.08);
}

.budget-total-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.budget-total-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-purple);
}

/* Summary / Ready Screen */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.summary-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: transform 0.2s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
}

.summary-item .summary-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    font-weight: 500;
}

.summary-item .summary-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

/* Celebration / Ready Screen */
.ready-message {
    text-align: center;
    padding: 32px 0;
}

.ready-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: celebrationBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes celebrationBounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ready-message h2 {
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    animation: fadeSlideUp 0.5s 0.2s ease both;
}

.ready-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 360px;
    margin: 0 auto;
    animation: fadeSlideUp 0.5s 0.35s ease both;
}

.ready-message .insight-callout {
    background: rgba(116, 51, 255, 0.04);
    border: 1px solid rgba(116, 51, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    animation: fadeSlideUp 0.5s 0.5s ease both;
}

.ready-message .insight-callout strong {
    color: var(--accent-purple);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 12px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    color: var(--text-primary);
}

.btn-next {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.btn-next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-next:hover::after {
    width: 300px;
    height: 300px;
}

.btn-next:hover {
    background: #6026FF;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(116, 51, 255, 0.2);
}

.btn-next.btn-full,
.btn-finish.btn-full {
    width: 100%;
    margin-left: 0;
    text-align: center;
    justify-content: center;
    display: flex;
}

.btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next:disabled:hover::after {
    width: 0;
    height: 0;
}

.btn-finish {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    text-align: center;
    animation: fadeSlideUp 0.5s 0.65s ease both;
}

.btn-finish:hover {
    background: #6026FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(116, 51, 255, 0.25);
}

/* Select Dropdown */
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    background: #FAFAFA;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352525B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(116, 51, 255, 0.1);
}

/* Welcome step specifics */
.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: transform 0.2s ease;
}

.welcome-feature:hover {
    transform: translateX(4px);
}

.welcome-feature:nth-child(1) { animation: fadeSlideUp 0.4s 0.15s ease both; }
.welcome-feature:nth-child(2) { animation: fadeSlideUp 0.4s 0.25s ease both; }
.welcome-feature:nth-child(3) { animation: fadeSlideUp 0.4s 0.35s ease both; }

.welcome-feature .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.welcome-feature .feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.welcome-feature .feature-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 480px) {
    .option-grid {
        grid-template-columns: 1fr;
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .step-card {
        padding: 28px 20px;
    }
    .progress-tracker {
        padding: 0;
    }
}

/* ==========================================================================
   Landing Page — Platform Features Section
   ========================================================================== */
.lp-features-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lp-features-grid { grid-template-columns: 1fr; }
}

.lp-feature-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.lp-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-color: rgba(116, 51, 255, 0.15);
}

.lp-feature-card-gradient {
    background: #1a0633 !important;
    position: relative;
    border-color: rgba(255,255,255,0.1);
}

/* Glow BEHIND the card */
.lp-feature-card-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(116, 51, 255, 0.12) 0%, 
        rgba(252, 77, 16, 0.06) 40%, 
        transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
    animation: coachGlow 12s ease-in-out infinite alternate;
}

@keyframes coachGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-48%, -52%) scale(1.1); opacity: 0.8; }
}

.lp-feature-card-gradient:hover {
    background: #1a0633 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(116, 51, 255, 0.3) !important;
    border-color: rgba(252, 77, 16, 0.4) !important;
}

.lp-feature-card-gradient h3 { 
    color: #FFFFFF !important; 
    letter-spacing: -0.01em;
}
.lp-feature-card-gradient p { 
    color: #FFFFFF !important; 
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 1 !important;
}

.lp-feature-pill {
    position: absolute;
    top: 28px;
    right: 28px;
    background: var(--accent-vibrant);
    color: white;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(252, 77, 16, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.lp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.lp-feature-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.lp-feature-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

.lp-feature-preview {
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: auto;
}

/* Mini budget bars in feature cards */
.mini-budget-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mini-budget-row:last-child { margin-bottom: 0; }

.mini-budget-row .progress-bar { flex: 1; height: 5px; }

.mini-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 28px;
    text-align: right;
}

/* Mini debt preview */
.lp-debt-mini { display: flex; flex-direction: column; gap: 10px; }
.lp-debt-row { display: flex; justify-content: space-between; font-size: 0.8rem; }
.lp-debt-saved {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mini goal preview */
.lp-goal-mini { display: flex; flex-direction: column; gap: 6px; }
.lp-goal-row { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }
.lp-goal-mini .progress-bar { height: 5px; margin-bottom: 4px; }

/* Mini transaction preview */
.lp-tx-mini { display: flex; flex-direction: column; gap: 10px; }
.lp-tx-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 500; }
.lp-tx-row span:nth-child(2) { flex: 1; }
.lp-tx-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--bg-secondary); display: flex;
    align-items: center; justify-content: center;
}
.lp-tx-neg { font-weight: 700; color: var(--text-primary); }
.lp-tx-pos { font-weight: 700; color: var(--accent-green); }

/* Mini fitness preview */
.lp-fitness-mini { text-align: center; }
.lp-fitness-score { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: var(--accent-purple); }
.lp-fitness-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-green); margin-bottom: 12px; }
.lp-fitness-bars { display: flex; flex-direction: column; gap: 6px; }
.lp-fb { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.lp-fb .progress-bar { flex: 1; height: 5px; }

/* Mini coach preview */
.lp-coach-mini { display: flex; flex-direction: column; gap: 8px; }
.lp-coach-bubble {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}
.lp-coach-right {
    align-self: flex-end;
    background: rgba(252, 77, 16, 0.15);
    border-color: rgba(252, 77, 16, 0.2);
    border-radius: 12px 12px 4px 12px;
    color: white;
    font-weight: 600;
}

/* ==========================================================================
   Landing Page — How It Works
   ========================================================================== */
.lp-how-section {
    padding: 140px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.lp-how-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(116, 51, 255, 0.03) 0%, transparent 70%);
    z-index: 1;
}

.lp-steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.lp-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.lp-step-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
    width: 100%;
}

.lp-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.06);
    border-color: var(--accent-purple);
}

.lp-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.lp-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: var(--transition);
}

.lp-step-card:hover .lp-step-icon {
    transform: scale(1.1) rotate(5deg);
    background: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}

.lp-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lp-step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lp-step-connector {
    display: flex;
    align-items: center;
    padding-top: 56px; /* Align with card center */
    opacity: 0.4;
}

@media (max-width: 991px) {
    .lp-steps-grid {
        flex-direction: column;
        gap: 40px;
    }
    .lp-step-connector {
        display: none;
    }
}
    justify-content: center;
    padding: 0 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lp-steps-grid { flex-direction: column; gap: 24px; }
    .lp-step-connector { transform: rotate(90deg); padding: 8px 0; }
}

/* ==========================================================================
   Landing Page — Stats Strip
   ========================================================================== */


/* ==========================================================================
   Landing Page — CTA Banner
   ========================================================================== */
.lp-cta-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.lp-cta-card {
    background: #1a0633;
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
    color: white;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.text-orange {
    color: var(--accent-vibrant);
}

.btn-vibrant {
    background: var(--accent-vibrant) !important;
    border-color: var(--accent-vibrant) !important;
}

.btn-vibrant:hover {
    background: #e6450e !important;
    box-shadow: 0 8px 25px rgba(252, 77, 16, 0.4);
}

/* External Mesh Glow behind the CTA card */
.lp-cta-card::before,
.lp-cta-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%;
    height: 125%;
    z-index: -1;
    pointer-events: none;
    filter: blur(35px);
}

.lp-cta-card::before {
    background: 
        radial-gradient(circle at 15% 15%, rgba(116, 51, 255, 0.3) 0%, transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(252, 77, 16, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.2) 0%, transparent 35%);
    animation: ctaMesh1 18s ease-in-out infinite alternate;
}

.lp-cta-card::after {
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 99, 112, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(116, 51, 255, 0.15) 0%, transparent 45%);
    animation: ctaMesh2 12s ease-in-out infinite alternate-reverse;
}

@keyframes ctaMesh1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.5; }
    100% { transform: translate(-45%, -55%) rotate(10deg) scale(1.1); opacity: 0.9; }
}

@keyframes ctaMesh2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.2); opacity: 0.4; }
    100% { transform: translate(-55%, -45%) rotate(-10deg) scale(1); opacity: 0.7; }
}

.lp-cta-content { position: relative; z-index: 2; }

.lp-cta-content h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    color: #FFFFFF;
}

.lp-cta-content > p {
    font-size: 1.15rem;
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .lp-cta-card { padding: 48px 24px; }
    .lp-cta-content h2 { font-size: 1.75rem; }
}

/* Mockup budget bars in hero */
.mockup-budget-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-budget-bars .mini-budget-row {
    margin-bottom: 0;
}

/* ==========================================================================
   Shared components (consolidated from the page stylesheets)
   Modal system, colour picker, chart legend and goal/progress ring — shared
   by the Budget, Goals, Debt, Settings and Fitness pages. Page stylesheets
   may still layer small scoped overrides (e.g. a wider modal on Goals, a
   larger legend on Fitness).
   ========================================================================== */

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 5, 58, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0; /* override card margin */
    padding: 32px;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-row {
    display: flex;
    gap: 16px;
}

/* Form-group styling inside modals — the canonical .form-group used on the
   auth/onboarding pages differs visually; modals use a tighter, transparent
   variant. Scope keeps the auth pages unaffected. */
.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.modal-body .form-group label {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.modal-body .form-group input,
.modal-body .form-group select {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

/* --- Colour picker --- */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent-purple);
}

/* --- Chart legend --- */
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Goal / progress ring (Goals + Debt) --- */
.goal-progress-section {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 20px 0;
}

.goal-ring-container {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.goal-ring-container svg {
    transform: rotate(-90deg);
}

.goal-ring-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 8;
}

.goal-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.goal-ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.goal-ring-pct {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.goal-ring-sub {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.goal-amounts {
    flex: 1;
}

.goal-saved-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
}

.goal-target-amount {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.goal-amounts .progress-bar-thin {
    margin-top: 12px;
}

.goal-meta-row {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.goal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.goal-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.goal-card-footer {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.log-contribution-btn {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.log-contribution-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(116, 51, 255, 0.04);
}

/* ==========================================================================
   Bento Grid Features Section (Stripe-Inspired)
   ========================================================================== */
.bento-section {
    padding: 100px 0 80px;
    background: var(--bg-primary);
    overflow: visible;
    position: relative;
}

.bento-section .container {
    position: relative;
    z-index: 1;
}

/* Hover Mesh Glow Effect */
.bento-section::before,
.bento-section::after {
    content: '';
    position: absolute;
    top: var(--glow-y, 50%);
    left: var(--glow-x, 50%);
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), 
                left 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-section:hover::before {
    opacity: 0.5;
    background: 
        radial-gradient(circle at 20% 30%, rgba(116, 51, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(252, 77, 16, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 20% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    animation: bentoMesh1 20s ease-in-out infinite alternate;
}

.bento-section:hover::after {
    opacity: 0.4;
    background: 
        radial-gradient(circle at 80% 30%, rgba(255, 99, 112, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(116, 51, 255, 0.1) 0%, transparent 50%);
    animation: bentoMesh2 15s ease-in-out infinite alternate-reverse;
}

@keyframes bentoMesh1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    100% { transform: translate(-48%, -52%) rotate(5deg) scale(1.05); }
}

@keyframes bentoMesh2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); }
    100% { transform: translate(-52%, -48%) rotate(-5deg) scale(1); }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Base Card --- */
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 28px 28px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                grid-column 0.4s ease;
    cursor: default;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

/* --- Card Header (Title + Expand Button) --- */
.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 16px;
    position: relative;
    z-index: 3;
}

.bento-card-header h3 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.bento-expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.bento-expand-btn:hover {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.bento-expand-btn i,
.bento-expand-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* --- Visual Placeholder (Image area) --- */
.bento-visual-placeholder {
    flex: 1;
    min-height: 200px;
    border-radius: 16px 16px 0 0;
    margin: 0 -28px;
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Bento Modal Dialogs (Stripe Style)
   ========================================================================== */
.bento-modal {
    margin: auto;
    border: none;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 0;
    max-width: 1080px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-modal[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bento-modal::backdrop {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-modal[open]::backdrop {
    opacity: 1;
}

.bento-modal-inner {
    padding: 60px 80px;
    position: relative;
}

.bento-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.bento-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* Modal Layout */
.bento-modal-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.bento-modal-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.bento-modal-intro p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.bento-modal-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bento-modal-link {
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bento-modal-link:hover {
    opacity: 0.8;
}

.bento-modal-benefits {
    padding-top: 12px;
}

.bento-modal-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-modal-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.bento-modal-benefits li i,
.bento-modal-benefits li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bento-modal-visual {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bento-modal-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bento-modal-highlight {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.highlight-icon i,
.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.bento-modal-highlight h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.bento-modal-highlight p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Grid Span Variants --- */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-third {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-full {
    grid-column: span 3;
    grid-row: span 1;
}

/* ==========================================================================
   Bento Inline Mockups
   ========================================================================== */

/* Bar Chart (Dashboard) */
.bento-mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    width: 100%;
    max-width: 320px;
}

.bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bar {
    width: 100%;
    background: rgba(116, 51, 255, 0.15);
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out;
}

.bar.active {
    background: var(--accent-purple);
}

.bar-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Fraud Score */
.bento-fraud-mockup {
    text-align: center;
}

.fraud-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fraud-score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6370;
    letter-spacing: -0.04em;
    line-height: 1;
}

.fraud-score-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Debt Toggle */
.bento-debt-mockup {
    text-align: center;
    width: 100%;
    max-width: 240px;
}

.debt-toggle {
    display: inline-flex;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.debt-toggle-option {
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.debt-toggle-option.active {
    background: var(--accent-purple);
    color: white;
}

.debt-timeline {
    position: relative;
    padding-top: 16px;
}

.debt-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-green) 100%);
    border-radius: 4px;
    margin-bottom: 12px;
}

.debt-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Streak Counter */
.bento-streak-mockup {
    text-align: center;
}

.streak-count {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
    letter-spacing: -0.04em;
}

.streak-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Drift Bars */
.bento-drift-mockup {
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drift-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.drift-bar span {
    display: block;
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* Score Ring */
.bento-score-mockup {
    text-align: center;
}

.score-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.08);
}

.score-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.03em;
}

/* Chat Mockup Inline */
.chat-mockup-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.chat-bubble {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 0.9375rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chat-bubble.ai {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.chat-bubble.user {
    background: var(--accent-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ==========================================================================
   Bento Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large { grid-column: span 2; }
    .bento-full { grid-column: span 2; }
    
    .bento-modal-inner {
        padding: 40px;
    }
    .bento-modal-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bento-modal-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-medium, .bento-third, .bento-full {
        grid-column: span 1;
    }
    .bento-visual-placeholder {
        min-height: 160px;
    }
    
    .bento-modal-inner {
        padding: 32px 24px;
    }
    .bento-modal-intro h2 {
        font-size: 1.75rem;
    }
    .bento-modal-visual {
        height: 240px;
        margin-bottom: 32px;
    }
    .bento-modal-highlights {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bento-modal-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ==========================================================================
   Testimonials Section (Redesigned for Premium Aesthetic)
   ========================================================================== */
.testimonials-section {
    padding: 80px 0 120px;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: transparent;
    padding: 32px 0 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.t-author strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.t-author span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.t-author strong::after {
    content: '·';
    margin: 0 4px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================================================
   Prose Layout (For text-heavy pages like About, Legal, etc.)
   ========================================================================== */
.page-header {
    padding: 160px 0 80px;
    background: var(--bg-primary);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/*
 * Dashboard-page override.
 *
 * `.page-header` was designed for prose pages (about / privacy / terms),
 * where it wants a centred 160px-padded white block. Budget / Goals /
 * Debt / Transactions reuse the same class on a `<div>` inside
 * `.dashboard-container`, and that prose treatment doesn't belong in
 * an app layout — it produces a white panel with a stray border.
 *
 * Scope by ancestor so we never break the prose pages.
 */
.dashboard-container > .page-header {
    padding: 0 0 24px;
    background: transparent;
    border-bottom: 0;
    text-align: left;
}
.dashboard-container > .page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.dashboard-container > .page-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: none;
    margin: 0;
}

.prose-section {
    padding: 80px 0 120px;
    background: #ffffff;
}

.prose-layout {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose-layout h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px;
    letter-spacing: -0.03em;
}

.prose-layout h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.prose-layout p {
    margin-bottom: 24px;
}

.prose-layout ul, .prose-layout ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.prose-layout li {
    margin-bottom: 12px;
}

.prose-layout a {
    color: var(--accent-purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.prose-layout a:hover {
    color: var(--text-primary);
}

.prose-layout strong {
    color: var(--text-primary);
    font-weight: 600;
}
