/* ==================== Design System ==================== */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);
    --primary-border: rgba(99, 102, 241, 0.2);
    --secondary: #ec4899;
    --accent: #10b981;

    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f9f9fb;

    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #aeaeb2;

    --border: #e5e5ea;
    --border-light: #f2f2f7;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-w: 1120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.heading-accent { color: var(--primary); }

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.92);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-logo-img {
    width: 28px; height: 28px;
    border-radius: 6px;
}

.header-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.header-brand-accent { color: var(--primary); }

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
}

.header-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-nav a:hover { color: var(--text); background: var(--bg-secondary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.625rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.lang-switcher-wrap i { font-size: 0.875rem; }

.lang-switcher-select {
    background: transparent; border: none;
    color: var(--text); font-size: 0.875rem; font-weight: 500;
    cursor: pointer; outline: none; font-family: inherit;
}

.header-login {
    padding: 0.4rem 0.875rem;
    font-size: 0.9375rem; font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-login:hover { color: var(--text); background: var(--bg-secondary); }

.header-cta {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem; font-weight: 600;
    background: var(--primary); color: #fff;
    border-radius: 980px;
    transition: var(--transition);
}

.header-cta:hover { background: var(--primary-hover); transform: scale(1.02); }
.header-cta i { font-size: 0.65rem; transition: transform 0.2s; }
.header-cta:hover i { transform: translateX(2px); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column; gap: 4px;
    background: none; border: none;
    padding: 6px; cursor: pointer;
}

.mobile-menu-btn span {
    width: 18px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    position: fixed; inset: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: none; overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav-inner {
    width: 100%;
    padding: 5rem 1.5rem 2rem;
    display: flex; flex-direction: column;
    gap: 0.125rem;
}

.mobile-nav-inner a {
    padding: 0.8rem 0.75rem;
    font-size: 1rem; font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-inner a:hover { color: var(--text); background: var(--bg-secondary); }
.mobile-nav-divider { height: 0.5px; background: var(--border); margin: 0.75rem 0; }

.mobile-lang-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.75rem; color: var(--text-secondary); font-size: 0.875rem;
}

.mobile-cta { margin-top: 0.75rem; justify-content: center; padding: 0.75rem 1.5rem !important; font-size: 0.95rem !important; color: #fff !important; }

/* ==================== HERO ==================== */
.hero-section {
    position: relative; overflow: hidden;
    padding: 7rem 0 4rem;
    background: var(--bg-secondary);
    border-bottom: 0.5px solid var(--border);
}

.hero-bg-layers { position: absolute; inset: 0; pointer-events: none; }

.hero-gradient-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(99,102,241,0.06) 0%, transparent 60%);
}

.hero-grid-pattern {
    position: absolute; inset: 0; opacity: 0.5;
    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-glow-orb {
    position: absolute; top: 10%; left: 50%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    transform: translateX(-50%); border-radius: 50%;
}

.hero-container {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; gap: 3rem;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 0.5px solid var(--primary-border);
    border-radius: 980px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem; font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-heading {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--text); margin-bottom: 1.25rem;
}

.hero-heading-accent { color: var(--primary); background: transparent; text-shadow: none; display: inline-block; }

.tw-cursor {
    font-weight: 300; color: var(--primary);
    animation: blink 0.7s step-end infinite;
    margin-left: 1px;
}

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

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.65; margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns { display: flex; gap: 0.625rem; flex-wrap: wrap; }

.cta-btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary); color: #fff;
    font-size: 1rem; font-weight: 600;
    border-radius: 980px; border: none; cursor: pointer;
    text-decoration: none; transition: var(--transition);
}

.cta-btn-primary:hover { background: var(--primary-hover); transform: scale(1.03); }
.cta-btn-primary i { font-size: 0.7rem; transition: transform 0.2s; }
.cta-btn-primary:hover i { transform: translateX(3px); }

.cta-btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--bg); color: var(--text);
    font-size: 1rem; font-weight: 500;
    border: 0.5px solid var(--border);
    border-radius: 980px; cursor: pointer;
    text-decoration: none; transition: var(--transition);
}

.cta-btn-secondary:hover { background: var(--surface-hover); border-color: var(--text-muted); }

/* Phone Mockup */
.hero-visual { flex-shrink: 0; display: flex; justify-content: center; margin-left: auto; }

.phone-mockup {
    position: relative;
    width: 260px; height: 520px;
    background: #1d1d1f;
    border-radius: 40px; padding: 10px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 20px 60px -10px rgba(0,0,0,0.2);
}

.phone-shine {
    position: absolute; inset: 0;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 50%);
    pointer-events: none;
}

.phone-notch {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 24px; background: #000;
    border-bottom-left-radius: 14px; border-bottom-right-radius: 14px;
    z-index: 3; display: flex; align-items: center; justify-content: center; gap: 5px;
}

.phone-speaker { width: 32px; height: 3px; background: #333; border-radius: 4px; }
.phone-camera { width: 7px; height: 7px; background: #1a1a2e; border-radius: 50%; border: 1px solid #333; }

.phone-btn { position: absolute; background: linear-gradient(180deg, #444, #222); border-radius: 2px; }
.phone-btn-left { left: -3px; top: 90px; width: 3px; height: 28px; }
.phone-btn-left-2 { left: -3px; top: 130px; width: 3px; height: 28px; }
.phone-btn-right { right: -3px; top: 110px; width: 3px; height: 42px; }

.phone-screen {
    width: 100%; height: 100%;
    background: var(--bg); border-radius: 32px;
    overflow: hidden; padding: 12px 10px 16px;
    position: relative;
}

.phone-status-bar {
    display: flex; justify-content: space-between;
    align-items: center; font-size: 10px; font-weight: 600;
    color: var(--text); margin-bottom: 8px; padding-top: 4px;
}

.phone-status-icons {
    display: flex; align-items: center; gap: 3px; font-size: 9px;
}

.phone-battery {
    width: 18px; height: 9px;
    border: 1.5px solid var(--text); border-radius: 2px;
    position: relative; display: inline-block;
}

.phone-battery::after {
    content: ''; position: absolute;
    right: -3.5px; top: 2px; width: 1.5px; height: 3px;
    background: var(--text); border-radius: 0 1px 1px 0;
}

.phone-battery-fill {
    position: absolute; left: 1px; top: 1px; bottom: 1px;
    width: 70%; background: var(--accent); border-radius: 1px;
}

.phone-app-header {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 6px 0; border-bottom: 0.5px solid var(--border);
    font-size: 11px; font-weight: 700; color: var(--text);
}

.phone-app-logo { width: 16px; height: 16px; border-radius: 4px; }

/* Budget UI inside phone */
.phone-budget { padding: 8px 2px 0; }

.phone-budget-title {
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-bottom: 6px;
}

.phone-donut-wrap {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 10px;
}

.phone-donut {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0deg 130deg,
        var(--secondary) 130deg 220deg,
        var(--accent) 220deg 290deg,
        #f59e0b 290deg 330deg,
        var(--border) 330deg 360deg
    );
    position: relative; flex-shrink: 0;
}

.phone-donut::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    background: var(--bg);
    border-radius: 50%;
}

.phone-donut-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; text-align: center;
}

.phone-donut-amount {
    font-size: 9px; font-weight: 800;
    color: var(--text); line-height: 1;
}

.phone-donut-label {
    font-size: 6px; color: var(--text-muted);
}

.phone-legend { display: flex; flex-direction: column; gap: 4px; }

.phone-legend-item {
    display: flex; align-items: center; gap: 4px;
    font-size: 7px; color: var(--text-secondary);
}

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

.phone-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }

.phone-bar-item { display: flex; flex-direction: column; gap: 2px; }

.phone-bar-header {
    display: flex; justify-content: space-between;
    font-size: 7px; font-weight: 600;
}

.phone-bar-name { color: var(--text-secondary); }
.phone-bar-val { color: var(--text); font-weight: 700; }

.phone-bar-track {
    height: 4px; background: var(--border-light);
    border-radius: 4px; overflow: hidden;
}

.phone-bar-fill { height: 100%; border-radius: 4px; }

.phone-summary-row {
    display: flex; justify-content: space-between;
    padding: 5px 0; border-top: 0.5px solid var(--border);
    font-size: 7px;
}

.phone-summary-label { color: var(--text-muted); }
.phone-summary-val { font-weight: 700; color: var(--text); }
.phone-summary-val.positive { color: var(--accent); }

/* ==================== STATS ==================== */
.stats-section { border-bottom: 0.5px solid var(--border); background: var(--bg); }

.stats-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 1.5rem; text-align: center;
}

.stats-label {
    font-size: 0.8125rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stats-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-bottom: 1.25rem; }

.stat-tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.3rem 0.75rem;
    border: 0.5px solid var(--border); border-radius: 980px;
    background: var(--bg-secondary);
    font-size: 0.8125rem; font-weight: 500;
    color: var(--text-secondary);
}

.stat-tag i { color: var(--primary); font-size: 0.6rem; }

.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.5px; background: var(--border);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
}

.stats-cell { padding: 1.25rem; background: var(--bg); text-align: center; }

.stats-number {
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.02em; color: var(--text);
    margin-bottom: 0.125rem;
}

.stats-cell-label {
    font-size: 0.8125rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
}

/* ==================== SHARED SECTION ==================== */
.section-bordered { border-bottom: 0.5px solid var(--border); }

.section-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-label {
    font-size: 0.8125rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--primary);
    font-weight: 600; margin-bottom: 0.5rem;
}

.section-label-center {
    font-size: 0.8125rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--primary);
    font-weight: 600; text-align: center; margin-bottom: 0.5rem;
}

.section-heading {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700; letter-spacing: -0.025em;
    color: var(--text); margin-bottom: 3rem;
}

.section-heading-sm {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 700; letter-spacing: -0.02em;
    color: var(--text);
}

.section-heading-center {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700; letter-spacing: -0.025em;
    color: var(--text); text-align: center;
    margin-bottom: 3rem;
}

/* ==================== FEATURES ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.feature-card {
    padding: 1.75rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
}

.feature-card.visible { animation: fadeUpCard 0.5s ease-out forwards; }

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.feature-icon-box {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary); font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--text); }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* ==================== USE CASES ==================== */
.use-cases-header { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }

.use-cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

.use-case-card {
    position: relative; overflow: hidden;
    padding: 1.25rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: all 0.3s ease;
    text-decoration: none; display: flex; flex-direction: column;
    opacity: 0; transform: translateY(20px);
}

.use-case-card.visible { animation: fadeUpCard 0.5s ease-out forwards; }
.use-case-card:nth-child(2).visible { animation-delay: 0.08s; }
.use-case-card:nth-child(3).visible { animation-delay: 0.16s; }
.use-case-card:nth-child(4).visible { animation-delay: 0.24s; }

.use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.use-case-glow {
    position: absolute; top: -28px; right: -28px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(99,102,241,0) 0%, transparent 70%);
    border-radius: 50%; transition: all 0.4s ease; pointer-events: none;
}

.use-case-card:hover .use-case-glow {
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
}

.use-case-icon { color: var(--primary); font-size: 1.125rem; margin-bottom: 0.75rem; }

.use-case-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }

.use-case-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 1rem; flex: 1; }

.use-case-link {
    font-size: 0.875rem; font-weight: 500;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.25rem;
    transition: var(--transition);
}

.use-case-link i { font-size: 0.75rem; transition: transform 0.2s; }
.use-case-card:hover .use-case-link { color: var(--primary); }
.use-case-card:hover .use-case-link i { transform: translateX(2px); }

/* ==================== HOW IT WORKS ==================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.step-card {
    position: relative; text-align: center;
    padding: 2.5rem 1.5rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
}

.step-card.visible { animation: fadeUpCard 0.5s ease-out forwards; }
.step-card:nth-child(2).visible { animation-delay: 0.08s; }
.step-card:nth-child(3).visible { animation-delay: 0.16s; }

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

.step-num {
    position: absolute; top: 0.75rem; right: 1rem;
    font-size: 2.5rem; font-weight: 800;
    color: var(--border-light); line-height: 1;
}

.step-icon { font-size: 2.25rem; color: var(--primary); margin-bottom: 1.25rem; }

.step-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--text); }
.step-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* ==================== FAQ ==================== */
.faq-inner { max-width: 800px; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.faq-card {
    padding: 1.25rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
}

.faq-card.visible { animation: fadeUpCard 0.5s ease-out forwards; }
.faq-card:nth-child(2).visible { animation-delay: 0.08s; }
.faq-card:nth-child(3).visible { animation-delay: 0.16s; }
.faq-card:nth-child(4).visible { animation-delay: 0.24s; }

.faq-card:hover { border-color: var(--primary-border); }

.faq-question { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }
.faq-answer { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

.faq-footer-link { text-align: center; margin-top: 2rem; }

.faq-footer-link a {
    font-size: 0.9375rem; font-weight: 500; color: var(--primary);
    display: inline-flex; align-items: center; gap: 0.25rem;
    transition: var(--transition);
}

.faq-footer-link a i { font-size: 0.75rem; transition: transform 0.2s; }
.faq-footer-link a:hover i { transform: translateX(3px); }

/* ==================== CTA ==================== */
.cta-inner { text-align: center; padding: 5rem 1.5rem; }

.cta-desc { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 2rem; text-align: center; }
.cta-btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--bg-secondary); border-top: 0.5px solid var(--border); }

.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 1.5rem; }

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

.footer-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; font-weight: 600; color: var(--text);
    margin-bottom: 0.75rem;
}

.footer-logo-img { width: 24px; height: 24px; border-radius: 6px; }

.footer-tagline { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; max-width: 260px; margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.375rem; }

.footer-social a {
    width: 32px; height: 32px;
    border: 0.5px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.8rem;
    background: var(--bg);
    transition: var(--transition);
}

.footer-social a:hover { color: var(--primary); border-color: var(--primary-border); background: var(--primary-light); }

.footer-col-title {
    font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 1rem;
}

.footer-link-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-link-col a { font-size: 0.8125rem; color: var(--text-secondary); transition: var(--transition); }
.footer-link-col a:hover { color: var(--primary); }

.footer-bottom { border-top: 0.5px solid var(--border); padding-top: 1rem; text-align: center; }
.footer-bottom p { font-size: 0.6875rem; color: var(--text-muted); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUpCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header-inner { display: flex; justify-content: space-between; width: 100%; }
    .header-nav { display: none; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-visual { display: none; }
    .hero-content { max-width: 100%; }

    .features-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0.6rem 1rem; }
    .hero-section { padding: 6rem 0 3rem; }
    .hero-container { padding: 0 1rem; }
    .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-heading { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 320px; }
    .cta-btn-primary, .cta-btn-secondary { width: 100%; justify-content: center; }

    .section-inner { padding: 3.5rem 1rem; }
    .use-cases-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .stats-inner { padding: 1.25rem 0.5rem; }
    .cta-inner { padding: 3.5rem 1rem; }
    .footer-inner { padding: 2.5rem 1rem 1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand-col { grid-column: span 1; }

    .phone-mockup { width: 220px; height: 440px; border-radius: 34px; }
    .phone-screen { border-radius: 26px; }
    .phone-notch { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
}

@media (max-width: 480px) {
    .hero-heading { font-size: 2.25rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
    .hero-desc { font-size: 0.95rem; }
    .section-heading, .section-heading-center { font-size: 1.35rem; }
    .section-heading-sm { font-size: 1.2rem; }
    .stats-number { font-size: 0.9rem; }
    .stats-cell-label { font-size: 0.7rem; }
}

/* ==================== PLANNER & INTERNAL PAGES ==================== */
.glass-pane {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.glass-card {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--spring);
    box-shadow: var(--shadow-card);
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1rem;
}

.bento-item-large { grid-column: span 8; grid-row: span 2; }
.bento-item-medium { grid-column: span 4; grid-row: span 2; }
.bento-item-small { grid-column: span 4; grid-row: span 1; }

.feature-icon-wrapper {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--primary); font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.875rem;
    cursor: pointer; transition: var(--spring);
    border: none; text-decoration: none;
    justify-content: center;
}

.btn-lg { padding: 1rem 2rem; font-size: 0.9375rem; }

.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.3); }

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

.btn-secondary:hover { background: var(--surface-hover); border-color: var(--primary-border); }

.btn-glow { position: relative; overflow: hidden; }

.btn-glow::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before { left: 100%; }
.btn-block { width: 100%; justify-content: center; }

.glass-btn {
    background: var(--bg); border: 0.5px solid var(--border);
    color: var(--text);
}

.glass-btn:hover { background: var(--surface-hover); border-color: var(--primary-border); }

/* Planner */
.planner-page main { padding-top: 6rem; }

.planner-header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 1rem 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.back-btn {
    display: flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem; font-size: 0.8125rem;
    background: var(--bg-secondary); color: var(--text-secondary);
    border: 0.5px solid var(--border); border-radius: var(--radius-sm);
    transition: var(--transition); text-decoration: none;
}

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

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

.planner-logo i { color: var(--primary); }

.planner-header .header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-switcher {
    background: var(--bg); border: 0.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.375rem 0.75rem;
    color: var(--text); font-weight: 500; font-size: 0.8125rem;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}

.lang-switcher:hover { border-color: var(--primary-border); }
.planner-page { padding-top: 65px; }

.planner-container {
    padding: 2rem 1.5rem; min-height: auto;
    margin: 1rem auto; max-width: 900px;
}

.progress-bar-container {
    height: 4px; border-radius: 100px;
    overflow: hidden; margin-bottom: 1rem;
    background: var(--border-light);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.8s var(--spring);
    box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.planner-progress { animation: fadeInUp 0.5s ease-out; }

.progress-steps { display: flex; justify-content: space-between; margin-bottom: 1.5rem; margin-top: 0.75rem; }

.progress-step {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    flex: 1; opacity: 0.4; transition: var(--transition);
}

.progress-step.active { opacity: 1; }
.progress-step span { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.progress-step.active span { color: var(--text); }

.step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8125rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-step.active .step-circle {
    background: var(--primary); border-color: var(--primary);
    color: #fff; box-shadow: 0 0 16px rgba(99,102,241,0.4);
    transform: scale(1.1);
}

.checkbox-grid { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }

.checkbox-item {
    padding: 0.75rem 1rem; text-align: center;
    cursor: pointer; position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: all 0.3s ease; flex: 1; min-width: 90px;
    border: 0.5px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg);
}

.checkbox-item:hover { background: var(--primary-light); border-color: var(--primary-border); transform: translateY(-2px); }
.checkbox-item input { position: absolute; opacity: 0; }

.checkbox-item i {
    font-size: 1.5rem; color: var(--text-muted);
    margin-bottom: 0.375rem; display: block; transition: all 0.3s ease;
}

.checkbox-item span { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); transition: all 0.3s ease; }
.checkbox-item:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.checkbox-item:has(input:checked) i { color: var(--primary); }

.category-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem; margin-top: 0.75rem;
}

.category-btn {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.5rem; padding: 1.25rem 0.5rem;
    cursor: pointer; border: 0.5px solid var(--border);
    transition: var(--spring); background: var(--bg);
    color: var(--text-secondary); min-height: 100px;
    border-radius: var(--radius-md);
}

.category-btn i { font-size: 1.5rem; transition: var(--transition); }
.category-btn span { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.3; }

.category-btn:hover { border-color: var(--primary-border); background: var(--primary-light); transform: translateY(-2px); }

.category-btn.active {
    background: var(--primary-light); border-color: var(--primary);
    color: var(--primary); box-shadow: 0 2px 12px rgba(99,102,241,0.15);
}

.category-btn.active i { transform: scale(1.1); }

.step-actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-top: 2.5rem;
    padding-top: 1.5rem; border-top: 0.5px solid var(--border);
}

.step-actions .btn { flex: 1; min-width: 120px; }

.expenses-list-container {
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 0.5px solid var(--border);
}

.expenses-list-container h3 {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 0.75rem; color: var(--text);
}

.expenses-list {
    display: flex; flex-direction: column; gap: 0.5rem;
    max-height: 350px; overflow-y: auto; padding-right: 0.25rem;
}

.expenses-list::-webkit-scrollbar { width: 4px; }
.expenses-list::-webkit-scrollbar-track { background: transparent; }
.expenses-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.empty-state {
    padding: 1.5rem; text-align: center;
    background: var(--bg-secondary);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.empty-state i { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.5rem; opacity: 0.5; }
.empty-state p { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.empty-state small { font-size: 0.8125rem; color: var(--text-muted); }

.expense-item {
    padding: 0.75rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.expense-item:hover { background: var(--surface-hover); border-color: var(--primary-border); }

.expense-info { flex: 1; display: flex; flex-direction: column; gap: 0.125rem; }
.expense-category { font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.5px; }
.expense-description { font-size: 0.8125rem; color: var(--text-secondary); }
.expense-amount { font-size: 1rem; font-weight: 800; color: var(--secondary); margin: 0 0.5rem; white-space: nowrap; }

.expense-item .btn-secondary { padding: 0.5rem 0.75rem; font-size: 0.75rem; min-width: auto; flex-shrink: 0; }
.expense-item .btn-secondary:hover { background: rgba(238,90,111,0.08); border-color: #ee5a6f; color: #ee5a6f; }

:root { --danger-color: #ee5a6f; }

/* Custom Select */
.custom-select-wrapper { position: relative; }

.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; }
.select-trigger i { transition: transform 0.3s ease; color: var(--text-muted); }
.custom-select.active .select-trigger i { transform: rotate(180deg); }

.select-options {
    position: absolute; top: calc(100% + 0.375rem); left: 0; right: 0;
    background: var(--bg); border: 0.5px solid var(--border);
    border-radius: var(--radius-md); max-height: 280px;
    overflow-y: auto; z-index: 100;
    opacity: 0; transform: translateY(-8px);
    pointer-events: none; transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.custom-select.active .select-options { opacity: 1; transform: translateY(0); pointer-events: all; }

.select-option {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.625rem 0.875rem; cursor: pointer;
    transition: all 0.15s ease; color: var(--text-secondary); font-size: 0.8125rem;
}

.select-option i { font-size: 1rem; width: 18px; text-align: center; color: var(--primary); }
.select-option span { flex: 1; }
.select-option:hover { background: var(--primary-light); color: var(--text); }
.select-option.selected { background: var(--primary-light); color: var(--primary); }

.select-options::-webkit-scrollbar { width: 4px; }
.select-options::-webkit-scrollbar-track { background: transparent; }
.select-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Form */
.step-content { animation: fadeInUp 0.5s ease-out; }

.step-header {
    text-align: center; margin-bottom: 1.5rem;
    padding-bottom: 1rem; border-bottom: 0.5px solid var(--border);
}

.step-header h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.375rem; color: var(--text); }
.step-header p { font-size: 0.875rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

.modern-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block; margin-bottom: 0.375rem;
    font-weight: 600; font-size: 0.8125rem;
    color: var(--text); text-align: left;
}

.glass-input {
    width: 100%; padding: 0.75rem 0.875rem;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); outline: none;
    transition: var(--transition); font-size: 0.875rem; font-family: inherit;
}

.glass-input::placeholder { color: var(--text-muted); }

.glass-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem; cursor: pointer;
}

.glass-select option { background: var(--bg); color: var(--text); padding: 0.5rem; }

.glass-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 1rem;
}

.form-hint {
    margin-top: 0.75rem; padding: 0.625rem 0.875rem;
    background: rgba(16,185,129,0.06);
    border: 0.5px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-sm);
    color: var(--accent); font-size: 0.8125rem;
    line-height: 1.4; display: flex;
    align-items: flex-start; gap: 0.375rem;
}

.form-hint i { margin-top: 0.125rem; flex-shrink: 0; }

#customCategoryGroup { animation: fadeInUp 0.3s ease-out; transition: none; }
#customCategoryGroup.hidden { display: none !important; }
#customCategoryGroup:not(.hidden) { display: block !important; }

/* Skeleton */
.skeleton-loader { padding: 2rem; animation: fadeIn 0.3s ease-out; }

.loader-text {
    text-align: center; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; font-size: 1.25rem;
    animation: pulse-op 2s infinite ease-in-out;
}

.shimmer {
    background: linear-gradient(90deg,
            var(--border-light) 0%, var(--bg-secondary) 50%, var(--border-light) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.skeleton-title { height: 32px; width: 40%; border-radius: var(--radius-sm); margin-bottom: 2.5rem; }

.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.skeleton-card { height: 140px; border-radius: var(--radius-lg); }
.skeleton-chart { height: 300px; border-radius: var(--radius-xl); }

/* Summary */
.summary-grid { margin-top: 2.5rem; }

.summary-card {
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center;
    border: 0.5px solid var(--border);
    background: var(--bg); border-radius: var(--radius-md);
}

.card-label {
    font-size: 0.6875rem; color: var(--text-muted);
    margin-bottom: 0.125rem; display: block;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.card-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.tint-primary { border-left: 4px solid var(--primary); }
.tint-secondary { border-left: 4px solid var(--secondary); }
.tint-accent { border-left: 4px solid var(--accent); }

.period-switcher { display: inline-flex; padding: 4px; border-radius: 980px; margin-bottom: 2.5rem; background: var(--bg-secondary); }

.period-btn {
    padding: 0.5rem 1.5rem; border-radius: 980px;
    border: none; background: transparent;
    color: var(--text-secondary); font-weight: 600; font-size: 0.8125rem;
    cursor: pointer; transition: var(--transition);
}

.period-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.25); }

.chart-container { height: 300px; margin-top: 1.5rem; }

.recommendations-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

.recommendation-item { padding: 1.25rem; border-left: 3px solid var(--primary); background: var(--bg-secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.recommendation-title { font-weight: 700; margin-bottom: 0.375rem; color: var(--text); font-size: 0.9375rem; }
.recommendation-desc { color: var(--text-secondary); font-size: 0.8125rem; }

.summary-actions {
    display: flex; justify-content: center; align-items: center;
    gap: 1rem; margin-top: 2.5rem;
    padding-top: 1.5rem; border-top: 0.5px solid var(--border);
}

.summary-actions .btn { min-width: 180px; }

/* Notification */
.hidden { display: none !important; }

.notification {
    position: fixed; bottom: 2rem; right: 2rem;
    padding: 1rem 2rem;
    transform: translateX(150%);
    transition: var(--spring); z-index: 2000;
    background: var(--bg); border: 0.5px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    color: var(--text);
}

.notification.show { transform: translateX(0); }
.notification-content { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 0.875rem; }

/* Navbar (internal pages) */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 1rem 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    transition: var(--transition);
}

.navbar.scrolled { background: rgba(255,255,255,0.92); padding: 0.6rem 0; }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.1rem; color: var(--text); text-decoration: none;
}

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

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }

.nav-menu a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.875rem; transition: var(--transition); }
.nav-menu a:hover { color: var(--text); }

.nav-cta { padding: 0.5rem 1rem !important; font-size: 0.8125rem !important; border-radius: 980px !important; }
.nav-cta-item { display: none; }
.nav-lang-item { display: flex; }

.lang-switcher-container {
    padding: 4px 10px; display: flex; align-items: center; gap: 6px;
    border-radius: 980px; border: 0.5px solid var(--border); background: var(--bg);
}

/* Footer simple (internal pages) */
.footer-simple {
    padding: 2rem 1.5rem; text-align: center;
    border-top: 0.5px solid var(--border);
    margin-top: 2rem; color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Hamburger (internal pages) */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1100;
}

.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive Planner & Internal */
@media (max-width: 1024px) {
    .bento-item-large { grid-column: span 12; }
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(255,255,255,0.96);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column; justify-content: flex-start;
        padding-top: 5rem; gap: 0.5rem;
        transition: var(--spring); z-index: 1050; overflow-y: auto;
    }

    .nav-menu.active { right: 0; }
    .nav-menu li:first-child { padding-top: 1rem; }

    .nav-menu a {
        font-size: 1.1rem; font-weight: 600;
        display: block; padding: 0.875rem 1.5rem;
        text-align: center; border-radius: var(--radius-md);
        margin: 0 1rem; transition: all 0.2s ease;
    }

    .nav-cta-item { display: list-item; }
    .nav-menu .nav-cta { font-size: 1rem !important; padding: 1rem 1.5rem !important; margin: 0 1rem; }
    .nav-lang-item { display: list-item; padding: 0.75rem 1.5rem; }

    .hamburger { display: flex; }

    .planner-container { padding: 1.5rem 1rem; }
    .planner-header { padding: 0.5rem 0; }
    .header-content { gap: 0.375rem; }
    .back-btn { padding: 0.375rem 0.625rem; font-size: 0.8125rem; min-width: auto; }
    .back-btn span { display: none; }
    .planner-logo { font-size: 1rem; gap: 0.375rem; }
    .lang-switcher { padding: 0.3rem 0.625rem; font-size: 0.8125rem; }

    .progress-steps { gap: 0.375rem; margin-bottom: 0.75rem; }
    .progress-step { gap: 0.25rem; }
    .progress-step span { font-size: 0.75rem; line-height: 1.2; }
    .step-circle { width: 28px; height: 28px; font-size: 0.8125rem; }

    .step-header { padding-bottom: 0.75rem; margin-bottom: 1rem; }
    .step-header h2 { font-size: 1.1rem; }
    .step-header p { font-size: 0.8125rem; }

    .checkbox-grid { gap: 0.375rem; }
    .checkbox-item { padding: 0.625rem 0.5rem; min-width: 75px; }
    .checkbox-item i { font-size: 1.25rem; margin-bottom: 0.3rem; }
    .checkbox-item span { font-size: 0.6875rem; }

    .summary-card { grid-column: span 12 !important; padding: 1.25rem; }
    .skeleton-grid { grid-template-columns: 1fr; }

    .expense-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .expense-amount { font-size: 1.25rem; margin: 0; }
    .expense-item .btn-secondary { width: 100%; }

    .form-row { grid-template-columns: 1fr; }
    .step-actions { flex-direction: column; }
    .step-actions .btn { width: 100%; }
    .summary-actions { flex-direction: column; }
    .summary-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand-col { grid-column: span 1; }

    .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .step-header h2 { font-size: 1rem; }
    .step-header p { font-size: 0.75rem; }
    .form-group { margin-bottom: 0.75rem; }
    .glass-input { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.375rem; }
    .category-btn { padding: 0.875rem 0.375rem; min-height: 80px; }
    .category-btn i { font-size: 1.25rem; }
    .category-btn span { font-size: 0.6875rem; }

    .card-value { font-size: 1.1rem; }
    .expense-item { padding: 0.625rem; }
    .expense-amount { font-size: 0.9375rem; }
    .expenses-list { max-height: 250px; }

    .step-actions { margin-top: 1.5rem; padding-top: 0.75rem; gap: 0.5rem; }

    .select-options { max-height: 200px; }
    .select-option { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }

    .notification { right: 0.5rem; left: 0.5rem; bottom: 0.75rem; width: auto; padding: 0.75rem; }

    .progress-step span { display: none; }
    .step-circle { width: 26px; height: 26px; font-size: 0.75rem; }
}

.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active { opacity: 1; transform: translateY(0); }

#customCategoryGroup {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    transform: translateY(16px) scale(0.98);
    opacity: 0; pointer-events: none; display: none;
}

#customCategoryGroup:not(.hidden) { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; display: block !important; }
#customCategoryGroup.hidden { display: none !important; }

.mb-large { margin-bottom: 2rem; }

.footer-simple {
    padding: 2rem 1.5rem; text-align: center;
    border-top: 0.5px solid var(--border);
    margin-top: 2rem; color: var(--text-muted);
    font-size: 0.8125rem;
}

@media (max-width: 480px) {
    .footer-simple { padding: 3rem 1.5rem 6rem; }
}
