/* ═══════════════════════════════════════════════════════════
   Immigro — Design System v2
   ═══════════════════════════════════════════════════════════ */

:root {
    --navy: #0a1628; --navy-light: #132040; --navy-mid: #1a2d50;
    --slate: #2a3f5f; --steel: #8899b4; --silver: #b8c5d9;
    --cloud: #e2e8f0; --white: #f8fafc;
    --accent: #3b82f6; --accent-glow: #60a5fa; --accent-dark: #2563eb;
    --green: #22c55e; --green-bg: #052e16;
    --yellow: #eab308; --yellow-bg: #422006;
    --red: #ef4444; --red-bg: #450a0a;
    --emerald: #10b981;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius: 12px; --radius-sm: 8px; --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--cloud);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59,130,246,0.06), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(16,185,129,0.04), transparent);
    pointer-events: none; z-index: 0;
}

#app { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-weight: 600; color: var(--white); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.95rem; color: var(--silver); font-weight: 500; }
p { color: var(--silver); }
a { color: var(--accent-glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ═══ NAV ═══ */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.nav-logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.nav-logo span { color: var(--accent-glow); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer; transition: all 0.25s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 24px rgba(59,130,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(59,130,246,0.4); }
.btn-outline { background: transparent; color: var(--silver); border: 1px solid var(--slate); }
.btn-outline:hover { border-color: var(--accent); color: var(--white); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; line-height: 1.4; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ═══ HERO ═══ */
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 100px; padding: 0.4rem 1rem;
    font-size: 0.8rem; font-weight: 500; color: var(--accent-glow);
    margin-bottom: 1.5rem; animation: fadeInUp 0.6s ease;
}
.hero h1 { margin-bottom: 1rem; animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-glow), var(--emerald));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero > p { font-size: 1.15rem; max-width: 580px; margin: 0 auto 2.5rem; color: var(--silver); line-height: 1.65; animation: fadeInUp 0.6s ease 0.2s both; }
.hero-sub { margin-top: 1rem; }
.hero-sub a { color: var(--accent-glow); font-size: 0.9rem; text-decoration: none; }
.hero-sub a:hover { text-decoration: underline; }

.countries-row { display: flex; justify-content: center; gap: 1.5rem; margin: 2.5rem 0; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }
.country-chip {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px; padding: 0.5rem 1rem; font-size: 0.875rem;
    color: var(--silver); transition: all 0.25s; text-decoration: none; cursor: pointer;
}
.country-chip:hover { border-color: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.country-chip .flag { font-size: 1.25rem; }

/* ═══ FEATURES ═══ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; padding: 3rem 0; }
.feature-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.75rem; transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; }

/* ═══ WIZARD ═══ */
.wizard-container { max-width: 640px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.wizard-progress { display: flex; gap: 0.375rem; margin-bottom: 2.5rem; }
.wizard-progress-step { flex: 1; height: 4px; border-radius: 4px; background: var(--slate); transition: background 0.4s; }
.wizard-progress-step.active { background: var(--accent); }
.wizard-progress-step.done { background: var(--green); }
.wizard-step-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.wizard-step h2 { margin-bottom: 0.5rem; }
.wizard-step > p { margin-bottom: 2rem; font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--silver); margin-bottom: 0.4rem; }
.form-hint { font-size: 0.78rem; color: var(--steel); margin-top: 0.25rem; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 0.3rem; font-weight: 500; }
.input-error { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }

input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--navy-mid); border: 1px solid var(--slate); border-radius: var(--radius-sm);
    color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
    transition: all 0.2s; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238899b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}

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

/* Toggle checkbox */
.form-toggle {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; background: var(--navy-mid); border: 1px solid var(--slate);
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
    font-size: 0.9rem; color: var(--silver); user-select: none;
}
.form-toggle:hover { border-color: var(--accent); }
.form-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.form-toggle.checked { border-color: var(--accent); background: rgba(59,130,246,0.08); color: var(--white); }

.wizard-nav {
    display: flex; justify-content: space-between; margin-top: 2.5rem;
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ═══ RESULTS ═══ */
.results-header { text-align: center; padding: 2.5rem 0 1.5rem; }
.results-header h1 { margin-bottom: 0.5rem; }

/* Summary counters */
.summary-counters {
    display: flex; justify-content: center; align-items: center; gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.5rem 2rem;
}
.summary-counter { text-align: center; }
.counter-value { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.counter-label { font-size: 0.8rem; color: var(--steel); margin-top: 0.25rem; }
.summary-divider { width: 1px; height: 40px; background: var(--slate); }

/* Best match */
.best-match {
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(16,185,129,0.05));
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
    text-align: center;
}
.best-match-label { font-size: 0.8rem; font-weight: 600; color: var(--green); margin-bottom: 0.25rem; }
.best-match-title { font-size: 1.15rem; font-weight: 600; color: var(--white); }
.best-match-sub { font-size: 0.85rem; color: var(--emerald); margin-top: 0.15rem; }

/* Program cards */
.program-cards { display: grid; gap: 0.75rem; padding-bottom: 2rem; }
.program-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
    transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden;
}
.program-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.program-card.status-above::before { background: var(--green); }
.program-card.status-below::before { background: var(--yellow); }
.program-card.status-not::before { background: var(--red); }
.program-card:hover { border-color: rgba(255,255,255,0.1); }
.program-card.expanded { border-color: rgba(59,130,246,0.25); background: rgba(19,32,64,0.9); }

.program-card-header { display: flex; align-items: center; justify-content: space-between; }
.program-card-title { display: flex; align-items: center; gap: 0.75rem; }
.program-card-title .flag { font-size: 1.4rem; }
.program-card-title h3 { font-size: 0.95rem; font-weight: 600; }
.program-card-title .program-type { font-size: 0.72rem; color: var(--steel); font-weight: 400; }

/* Expand icon */
.expand-icon {
    font-size: 0.9rem; color: var(--steel); transition: transform 0.3s;
    display: inline-block;
}
.program-card.expanded .expand-icon { transform: rotate(180deg); }

/* Status badge */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.65rem; border-radius: 100px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.status-badge.green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.status-badge.yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.status-badge.red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* Score bar */
.score-bar-container { margin-top: 0.75rem; }
.score-bar-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--steel); margin-bottom: 0.35rem; }
.score-number { font-family: var(--font-mono); color: var(--white); font-weight: 700; font-size: 0.9rem; }
.score-bar { height: 8px; background: var(--navy); border-radius: 8px; position: relative; overflow: visible; }
.score-bar-fill { height: 100%; border-radius: 8px; transition: width 1s ease; }
.score-bar-fill.green { background: linear-gradient(90deg, var(--green), var(--emerald)); }
.score-bar-fill.yellow { background: linear-gradient(90deg, #b45309, var(--yellow)); }
.score-bar-fill.red { background: linear-gradient(90deg, #991b1b, var(--red)); }

.score-bar-cutoff {
    position: absolute; top: -5px; bottom: -5px; width: 2px;
    background: rgba(255,255,255,0.6);
}
.cutoff-label {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: 0.65rem; font-family: var(--font-mono); color: var(--steel); white-space: nowrap;
}
.score-gap { font-size: 0.78rem; color: var(--steel); margin-top: 0.4rem; }
.score-gap strong { color: var(--yellow); font-family: var(--font-mono); }

/* Binary checks */
.binary-checks { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.binary-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--silver); padding: 0.3rem 0; }
.check-icon { font-weight: 700; width: 20px; text-align: center; }
.check-pass .check-icon { color: var(--green); }
.check-fail .check-icon { color: var(--red); }

/* Expandable details */
.program-card-details { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.program-card.expanded .program-card-details { display: block; animation: fadeIn 0.3s ease; }

/* Breakdown grid */
.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.breakdown-item { background: var(--navy); border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; }
.breakdown-item-label { font-size: 0.65rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; }
.breakdown-item-value { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.breakdown-item-max { font-size: 0.65rem; color: var(--steel); font-weight: 400; }

/* Tips */
.tips-section { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.05); }
.tips-section h4 { margin-bottom: 0.5rem; }
.tip-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.tip-row:last-child { border-bottom: none; }
.tip-gain { font-family: var(--font-mono); font-weight: 700; color: var(--green); white-space: nowrap; min-width: 45px; }
.tip-text { color: var(--silver); flex: 1; }
.tip-meta { font-size: 0.72rem; color: var(--steel); white-space: nowrap; }

/* CTA */
.cta-section { text-align: center; padding: 2.5rem 0; }
.cta-section h3 { margin-bottom: 0.5rem; }
.cta-section p { margin-bottom: 1.25rem; }

/* ═══ SAVE PROMPT ═══ */
.save-prompt {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
    border-radius: var(--radius-sm); padding: 0.7rem 1rem;
    font-size: 0.85rem; color: var(--silver); margin-bottom: 1.5rem;
}
.save-prompt a { font-weight: 600; }
.save-prompt-ok {
    background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.15);
}
.save-prompt-ok strong { color: var(--white); }

/* ═══ TOAST ═══ */
.toast {
    position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
    background: var(--navy-light); border: 1px solid var(--slate);
    color: var(--white); padding: 0.75rem 1.5rem; border-radius: var(--radius);
    font-size: 0.9rem; z-index: 9999; transition: bottom 0.3s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.toast.show { bottom: 2rem; }

/* ═══ UTILITIES ═══ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-red { color: var(--red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.4s ease both; }
.fade-in-up { animation: fadeInUp 0.5s ease both; }

.spinner { width: 40px; height: 40px; border: 3px solid var(--slate); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ FOOTER ═══ */
.footer { text-align: center; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.04); margin-top: 3rem; }
.footer p { font-size: 0.8rem; color: var(--steel); }

/* ═══ AUTH ═══ */
.auth-container { max-width: 420px; margin: 2rem auto 4rem; padding: 0 1.25rem; }
.auth-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg); padding: 2rem;
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--slate); }
.auth-tab {
    flex: 1; padding: 0.65rem; text-align: center; font-size: 0.9rem; font-weight: 600;
    color: var(--steel); background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s; font-family: var(--font-body);
}
.auth-tab.active { color: var(--white); border-bottom-color: var(--accent); }
.auth-tab:hover { color: var(--silver); }

.auth-error {
    background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2);
    color: var(--red); padding: 0.65rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; margin-bottom: 1rem;
}

.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%; padding: 0.75rem; border-radius: var(--radius-sm);
    background: var(--white); color: #1f2937; font-weight: 600; font-size: 0.9rem;
    font-family: var(--font-body); text-decoration: none; transition: all 0.2s;
    border: 1px solid transparent;
}
.btn-google:hover { background: #f1f5f9; color: #1f2937; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.btn-google svg { flex-shrink: 0; }

.auth-divider {
    display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
    color: var(--steel); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--slate);
}

.auth-form .form-group { margin-bottom: 1rem; }
.auth-footer { font-size: 0.75rem; color: var(--steel); text-align: center; margin-top: 1.25rem; }

/* ═══ USER NAV ═══ */
.user-nav { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--slate);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--accent-glow); overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 0.85rem; color: var(--silver); }
.user-menu {
    position: relative; cursor: pointer;
}
.user-dropdown {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 0.5rem;
    background: var(--navy-light); border: 1px solid var(--slate); border-radius: var(--radius-sm);
    min-width: 160px; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
    display: block; padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--silver);
    transition: all 0.15s;
}
.user-dropdown a:hover { background: var(--navy-mid); color: var(--white); }

/* ═══ PRICING ═══ */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 680px; margin: 0 auto; }
.pricing-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.pricing-card-pro { border-color: rgba(59,130,246,0.3); position: relative; }
.pricing-card-pro::before {
    content: '★ MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 0.2rem 0.75rem; border-radius: 100px; letter-spacing: 0.05em;
}
.pricing-badge { font-size: 0.75rem; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.pricing-badge-pro { color: var(--accent-glow); }
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1.25rem; color: var(--silver); }
.pricing-desc { color: var(--steel); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pricing-features li { font-size: 0.85rem; padding: 0.35rem 0; }
.pf-yes { color: var(--silver); }
.pf-no { color: var(--steel); opacity: 0.6; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ═══ PAYWALL ═══ */
.program-card.locked {
    position: relative; overflow: hidden; cursor: default;
    opacity: 0.7; filter: grayscale(0.3);
}
.program-card.locked:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.06); }
.locked-overlay {
    padding: 1.25rem; text-align: center;
    background: linear-gradient(180deg, transparent, rgba(10,22,40,0.95));
    color: var(--steel); font-size: 0.85rem;
}
.lock-icon { font-size: 1.1rem; }

.paywall-cta {
    text-align: center; padding: 2.5rem 2rem; margin: 1.5rem 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(234,179,8,0.04));
    border: 1px solid rgba(59,130,246,0.15); border-radius: var(--radius-lg);
}
.paywall-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.paywall-cta h3 { margin-bottom: 0.5rem; }
.paywall-cta > p { color: var(--silver); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; font-size: 0.95rem; }
.paywall-features {
    display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
    margin-top: 1rem; font-size: 0.8rem; color: var(--steel);
}
.paywall-features span { white-space: nowrap; }

/* ═══ COUNTRY PAGES ═══ */
.country-hero {
    text-align: center; padding: 3rem 0 2.5rem;
}
.country-hero-flag { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }
.country-hero h1 { margin-bottom: 0.5rem; }
.country-hero p { color: var(--silver); max-width: 550px; margin: 0 auto 1.5rem; font-size: 1.05rem; line-height: 1.6; }

.country-program-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; transition: all 0.3s;
}
.country-program-card:hover { border-color: rgba(59,130,246,0.15); }
.country-program-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.country-program-header h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.country-program-cutoff {
    font-size: 0.75rem; font-family: var(--font-mono); color: var(--accent-glow);
    background: rgba(59,130,246,0.08); padding: 0.3rem 0.65rem; border-radius: 4px;
    white-space: nowrap;
}
.country-program-card > p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.75rem; }
.country-program-scoring {
    font-size: 0.85rem; color: var(--silver); line-height: 1.6;
    background: rgba(255,255,255,0.02); padding: 0.75rem; border-radius: var(--radius-sm);
}
.country-program-scoring strong { color: var(--white); }

.requirements-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.requirement-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.requirement-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--accent-glow); }
.requirement-card p { font-size: 0.85rem; line-height: 1.6; }

.tips-list { max-width: 700px; margin: 0 auto; }
.country-tip {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem; line-height: 1.55;
}
.country-tip-icon { flex-shrink: 0; font-size: 1rem; }

.links-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem;
    max-width: 700px; margin: 0 auto;
}
.official-link {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm); padding: 0.85rem 1rem;
    font-size: 0.85rem; color: var(--silver); transition: all 0.2s;
}
.official-link:hover { border-color: rgba(59,130,246,0.25); color: var(--accent-glow); }
.link-arrow { color: var(--steel); font-size: 0.9rem; }

/* ═══ SECTIONS ═══ */
.section { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-subtitle { text-align: center; color: var(--steel); margin-bottom: 2.5rem; font-size: 1rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center;
    transition: all 0.3s;
}
.step-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(59,130,246,0.12); color: var(--accent-glow);
    font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem;
    margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; }

/* Programs info grid */
.programs-grid { display: grid; gap: 1rem; }
.program-info-card {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 1.5rem; transition: all 0.3s;
}
.program-info-card:hover { border-color: rgba(59,130,246,0.15); }
.program-info-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.flag-lg { font-size: 2rem; }
.program-info-header h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.program-info-type { font-size: 0.75rem; color: var(--steel); font-family: var(--font-mono); }
.program-info-card > p { font-size: 0.9rem; line-height: 1.65; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 0;
}
.faq-question {
    padding: 1.15rem 0; cursor: pointer; font-size: 1rem; font-weight: 600;
    color: var(--white); list-style: none; display: flex; justify-content: space-between;
    align-items: center; transition: color 0.2s;
}
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--steel); transition: transform 0.2s; }
.faq-item[open] .faq-question::after { content: '−'; color: var(--accent-glow); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--accent-glow); }
.faq-answer { padding: 0 0 1.25rem; }
.faq-answer p { font-size: 0.9rem; line-height: 1.7; color: var(--silver); }

/* Final CTA */
.final-cta {
    text-align: center; padding: 3.5rem 2rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(16,185,129,0.05));
    border: 1px solid rgba(59,130,246,0.12); border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.final-cta h2 { margin-bottom: 0.75rem; }
.final-cta p { margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer (rich) */
.footer { border-top: 1px solid rgba(255,255,255,0.04); margin-top: 3rem; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.footer-logo span { color: var(--accent-glow); margin-left: -0.05em; }
.footer-desc { font-size: 0.85rem; color: var(--steel); max-width: 280px; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); margin-bottom: 0.75rem; font-weight: 600; }
.footer a { display: block; font-size: 0.85rem; color: var(--silver); padding: 0.2rem 0; transition: color 0.2s; }
.footer a:hover { color: var(--accent-glow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--steel); text-align: center; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: 1fr 1fr; }
    .countries-row { gap: 0.75rem; }
    .country-chip { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
    .breakdown-grid { grid-template-columns: 1fr 1fr; }
    .wizard-nav { flex-direction: column-reverse; gap: 0.75rem; }
    .wizard-nav .btn { width: 100%; justify-content: center; }
    .summary-counters { gap: 1rem; padding: 1rem; }
    .counter-value { font-size: 1.75rem; }
    .program-card-title h3 { font-size: 0.85rem; }
    .tip-row { flex-wrap: wrap; }
    .tip-meta { width: 100%; margin-left: 45px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .programs-grid { gap: 0.75rem; }
    .program-info-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ═══ Legal Pages ═══ */
.legal-page {
    max-width: 720px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem;
}
.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.legal-updated {
    color: var(--steel);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: var(--white);
}
.legal-page p {
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}
.legal-page a {
    color: var(--accent);
}
.legal-page a:hover {
    text-decoration: underline;
}

/* ═══ Footer Links ═══ */
.footer-links {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.footer-links a {
    color: var(--steel);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--silver);
}

/* ═══ Nav Link ═══ */
.nav-link {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    line-height: 1.4;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

/* ═══ Language Toggle ═══ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--silver);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    line-height: 1.4;
    transition: all 0.2s;
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* ═══ Pricing Page ═══ */
.pricing-page {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem;
    text-align: center;
}
.pricing-page h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.pricing-subtitle {
    color: var(--silver);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.pricing-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    position: relative;
}
.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59,130,246,0.1);
}
.pricing-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}
.pricing-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--silver);
    margin-bottom: 0.5rem;
}
.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.pricing-once {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--steel);
}
.pricing-period {
    color: var(--steel);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.feature-yes { color: var(--silver); }
.feature-no { color: var(--steel); }
.feature-yes::first-letter { color: var(--accent-glow); }

/* Programs grid */
.pricing-programs {
    margin-bottom: 3rem;
}
.pricing-programs h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.pricing-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.pricing-program-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.pricing-program-item:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.pricing-program-flag { font-size: 1.5rem; }
.pricing-program-item strong { color: var(--white); font-size: 0.9rem; display: block; }
.pricing-program-count { color: var(--steel); font-size: 0.75rem; display: block; line-height: 1.35; }

/* FAQ */
.pricing-faq {
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
}
.pricing-faq h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem 0;
}
.faq-item h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.faq-item p {
    color: var(--silver);
    font-size: 0.9rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-amount { font-size: 2.5rem; }
}
