/* ============================================================
   CountrySafe — Modern Light Theme Design System (2026-Era)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* ── Reset & Variable Tokens ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #F8FAFC;           /* Soft Slate Light Background */
    --surface: #FFFFFF;      /* Solid White Cards and Surfaces */
    --surface-soft: #F1F5F9; /* Very Light Grey for Sidebar/Fills */
    --border: #E2E8F0;       /* Crisp slate-200 border */
    --border-hover: #CBD5E1; /* Slate-300 border */
    
    --primary: #2563EB;      /* Royal Blue */
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    
    --accent: #4F46E5;       /* Indigo */
    --accent-hover: #4338CA;
    --accent-light: #EEF2FF;
    
    --success: #10B981;      /* Emerald Green */
    --success-light: #ECFDF5;
    
    --warning: #F59E0B;      /* Warning Amber */
    --warning-light: #FFFBEB;
    
    --danger: #EF4444;       /* Alert Rose Red */
    --danger-light: #FEF2F2;
    
    --text: #0F172A;         /* Charcoal Primary Text */
    --text-muted: #475569;   /* Slate-600 Secondary Text */
    --text-light: #64748B;   /* Slate-500 Caption/Meta Text */
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    --heading-font: 'Outfit', 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbars ────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ── Premium Layout Shell & Header ────────────────────── */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.header-logo svg {
    color: var(--primary);
    flex-shrink: 0;
}

.header-spacer {
    flex: 1;
}

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

/* Profile avatar pill */
.profile-pill {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.85rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    transition: var(--transition);
}

.profile-pill:hover {
    background: var(--border);
    border-color: var(--border-hover);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

#creditsDisplay {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--success-light);
}

/* ── Hero Section (Sleek Modern Light Layout) ────────── */
.ts-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Accent glowing blobs - modified for clean light visuals */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: 5%;
    left: -10%;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 15%;
    right: -10%;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--success), transparent);
    bottom: 5%;
    left: 30%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-hover);
    background: var(--surface);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .4;
        transform: scale(0.8);
    }
}

.ts-hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.ts-hero h1 .grad {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #06B6D4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradShift 5s linear infinite;
}

@keyframes gradShift {
    to {
        background-position: 200% center;
    }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cta-primary {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
    white-space: nowrap;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.cta-secondary {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.75rem;
    height: 54px;
    border: 1px solid var(--border-hover);
    background: var(--surface);
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

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

/* Hero Social Proof */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.av-stack {
    display: flex;
}

.hav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.hav:first-child {
    margin-left: 0;
}

.hero-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.hero-sp {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-sp strong {
    color: var(--text);
}

/* Hero Stats Container */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.hstat {
    flex: 1;
    min-width: 130px;
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.hstat:last-child {
    border-right: none;
}

.hstat-num {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.2;
}

.hstat-num .green {
    color: var(--success);
}

.hstat-num .blue {
    color: var(--primary);
}

.hstat-lbl {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Feature Scrolling Cards */
.feat-scroll {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 260px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feat-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feat-icon svg {
    width: 22px;
    height: 22px;
}

.feat-name {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.feat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feat-free {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--success-light);
    color: var(--success);
}

.feat-paid {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── How It Works Section ────────────────────────────── */
.ts-hiw {
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    z-index: 10;
}

.ts-hiw-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.ts-hiw h2 {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.ts-hiw-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 3.5rem;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.hiw-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: left;
    position: relative;
    transition: var(--transition);
}

.hiw-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.step-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.hiw-step h3 {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hiw-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Connecting arrows in steps */
.step-conn {
    position: absolute;
    top: 3rem;
    right: -1rem;
    width: 2rem;
    height: 1px;
    background: var(--border-hover);
}

.step-conn::after {
    content: '›';
    position: absolute;
    right: -0.25rem;
    top: -0.65rem;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: bold;
}

/* ── Testimonials Section ────────────────────────────── */
.ts-testi {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.testi-hd {
    text-align: center;
    margin-bottom: 3rem;
}

.testi-hd h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.testi-hd p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.marquee-wrap {
    position: relative;
}

.ts-marquee {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: tsscroll 45s linear infinite;
    padding: 0.5rem 0;
}

.ts-marquee:hover {
    animation-play-state: paused;
}

@keyframes tsscroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 320px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.tcard-stars {
    color: #FBBF24;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.tcard q {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: block;
    margin-bottom: 1.25rem;
    quotes: none;
}

.tcard-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
}

.tname {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.ttrip {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ── Sticky Tools & Workspace Tab Bar ───────────────── */
.ts-tools {
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    padding-bottom: 5rem;
}

.ts-tab-bar {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 70px;
    z-index: 200;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.ts-tab-bar::-webkit-scrollbar {
    display: none;
}

.ts-tab-btn {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    font-family: var(--heading-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.ts-tab-btn:hover {
    color: var(--primary);
}

.ts-tab-btn.ts-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.ts-gap {
    flex: 1;
}

.ts-upgrade {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.5rem;
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    border-left: 1px solid var(--border);
    transition: var(--transition);
}

.ts-upgrade:hover {
    background: var(--border);
    color: var(--accent-hover);
}

/* ── Workspace Content & Panels ────────────────────── */
.ts-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.workspace-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.workspace-intro-main {
    text-align: left;
}

.workspace-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.workspace-intro h2 {
    font-family: var(--heading-font);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.workspace-intro p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.workspace-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.workspace-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.workspace-intro-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.workspace-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-soft);
}

.workspace-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.workspace-stat strong {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.workspace-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

/* Tab Panels */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Cards & Forms ───────────────────────────────────── */
.app-card,
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-header {
    margin-bottom: 1.75rem;
    text-align: left;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

/* When card-header is followed by schengen subtabs, remove the border
   (the pill-nav itself acts as the visual break) */
.card-header:has(+ .schengen-subtabs-nav),
.card-header + .schengen-subtabs-nav {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.card-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

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

/* Remove double-margin when form-group is inside form-grid */
.form-grid .form-group {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group > label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Checkbox labels inside form-group should NOT be uppercase */
.form-group .checkbox-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

/* Hidden native selects inside custom-select wrappers */
select.custom-select__native {
    all: unset;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    border: none;
    background: none;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

/* Lead icon — only direct SVG children */
.input-with-icon > svg {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 2.75rem;
}

/* Custom select inside input-with-icon — fill full width */
.input-with-icon .custom-select {
    flex: 1;
}

.input-with-icon .custom-select .custom-select__trigger {
    padding-left: 2.75rem;
}

.input-with-icon input:focus ~ svg,
.input-with-icon select:focus ~ svg {
    color: var(--primary);
}

/* When custom select is open, color the lead icon */
.input-with-icon .custom-select.open ~ svg,
.input-with-icon:has(.custom-select.open) > svg {
    color: var(--primary);
}

/* Checklist options grid */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--surface);
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    appearance: auto;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Form Buttons */
.btn {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-soft);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

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

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Safety Check Results Dashboard ──────────────────── */
.safety-results {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.favorite-btn {
    all: unset;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-light);
}

.favorite-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.favorite-btn.favorited {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

/* Live Alert Scan Banner */
.live-signal-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-align: left;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Report Header details */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.destination-info {
    text-align: left;
}

.destination-info h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.destination-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.status-pill.safe {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.status-pill.caution {
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.status-pill.unsafe {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.score-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.score-value {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Report grid card content */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.report-section {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.report-section.full-width {
    grid-column: 1 / -1;
    background: var(--surface);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-head svg {
    width: 20px;
    height: 20px;
}

.section-head h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.overview-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.report-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 0;
}

.report-list li .list-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.18rem;
}

.report-list.caution li .list-icon {
    color: var(--warning);
}

.report-list.success li .list-icon {
    color: var(--success);
}

/* Emergency Contacts Section */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.emergency-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.emergency-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.emergency-num {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--danger);
}

.emergency-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
}

/* ── Itinerary Results Timeline ──────────────────────── */
.itinerary-results {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary-day-card {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.itinerary-day-title {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-node {
    position: relative;
    padding: 1rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.activity-time {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.activity-cost {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.activity-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.activity-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Recommendations grids */
.recs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.rec-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.rec-card h4 {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.rec-card ul {
    list-style: none;
}

.rec-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.rec-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Budget details */
.budget-card {
    padding: 1.5rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    margin-bottom: 2rem;
}

.budget-card h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.budget-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.budget-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Packing List Results ────────────────────────────── */
.packing-list-container {
    text-align: left;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.packing-list-container h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.packing-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.packing-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.packing-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.packing-category h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--surface-soft);
}

.packing-cat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.packing-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--primary-light);
    flex-shrink: 0;
}

.packing-cat-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--primary);
}

.packing-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.packing-checklist li {
    display: flex;
    align-items: center;
}

.packing-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.packing-checklist span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.packing-checklist input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: var(--text-light);
}

.packing-tips {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.packing-tips h4 {
    font-family: var(--heading-font);
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.packing-tips ul {
    padding-left: 1.2rem;
}

.packing-tips li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.packing-actions {
    display: flex;
    gap: 1rem;
}

/* ── Schengen Visa Dashboard ─────────────────────────── */
.schengen-subtabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--surface-soft);
    padding: 0.35rem;
    border-radius: var(--radius);
    width: fit-content;
}

.schengen-tab-btn {
    all: unset;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.schengen-tab-btn:hover {
    color: var(--primary);
}

.schengen-tab-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.schengen-subtab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.schengen-subtab.active {
    display: block;
}

.schengen-result {
    text-align: left;
    animation: slideUp 0.3s ease;
}

.eligibility-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.eligibility-badge.eligible {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.eligibility-badge.requires-visa {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.eligibility-badge h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.eligibility-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.eligibility-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-card strong {
    display: block;
    font-family: var(--heading-font);
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.detail-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.schengen-tip {
    padding: 1rem 1.25rem;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.schengen-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.schengen-countries-grid::-webkit-scrollbar {
    width: 4px;
}

.schengen-country-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.schengen-country-label:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.schengen-country-label input {
    accent-color: var(--primary);
}

.schengen-meta-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.schengen-itinerary-content {
    line-height: 1.8;
}

.schengen-itinerary-content h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.35rem;
}

.schengen-itinerary-content h4 {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    color: var(--accent);
    margin: 1.25rem 0 0.5rem;
}

.schengen-itinerary-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.schengen-itinerary-content th {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.schengen-itinerary-content td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.schengen-itinerary-content tr:hover td {
    background: var(--surface-soft);
}

.schengen-compliance-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: var(--success);
    font-size: 0.88rem;
}

.schengen-docs-content {
    margin: 1rem 0;
    line-height: 1.6;
}

.schengen-docs-content input[type="checkbox"],
.docs-checkbox {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.schengen-docs-content h3,
.docs-main-heading {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
}

.schengen-docs-content h4,
.docs-section-heading {
    font-family: var(--heading-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    padding-left: 0.6rem;
    border-left: 3px solid var(--primary);
}

.docs-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.3rem 0.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.docs-check-row:hover {
    background: var(--surface-soft);
}

.docs-check-row span {
    flex: 1;
}

.docs-check-row strong {
    color: var(--text);
}

.docs-title {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.docs-spacer {
    height: 0.6rem;
}

/* Schengen Financial Calculator Summary */
.fin-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.fin-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.fin-card.fin-main {
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.fin-card.fin-min {
    background: var(--surface);
    border: 1px solid var(--border);
}

.fin-amount {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
}

.fin-card.fin-main .fin-amount {
    color: var(--primary);
}

.fin-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.fin-card small {
    font-size: 0.78rem;
    color: var(--text-light);
}

.fin-breakdown,
.fin-insurance,
.fin-tips {
    margin-top: 1.5rem;
}

.fin-breakdown h4,
.fin-insurance h4,
.fin-tips h4 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fin-row.fin-total-row {
    background: var(--surface-soft);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.25rem 0;
    color: var(--text);
    font-weight: 700;
}

.fin-row.fin-grand {
    border-top: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.fin-tips ul {
    list-style: none;
}

.fin-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    padding-left: 1.25rem;
    position: relative;
}

.fin-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.eu-zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 99px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ── Phrasebook generator cards ──────────────────────── */
.phrases-container {
    text-align: left;
    animation: slideUp 0.3s ease;
}

.phrases-container h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.phrases-subtitle {
    font-size: 0.90rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.phrases-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.phrase-category h4 {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}

.phrase-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.phrase-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.phrase-english {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.phrase-local {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.phrase-pronunciation {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.phrases-actions {
    display: flex;
    gap: 1rem;
}

/* ── Modals & Popups ─────────────────────────────────── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: rgba(15, 23, 42, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.close-btn {
    all: unset;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Success modal icon wrapper */
.success-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Auth Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* OAuth Buttons */
.btn-google {
    background: var(--surface);
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
}

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

.btn-google img {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

/* Upgrade pricing cards */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    position: relative;
    text-align: left;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.pricing-card h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.pricing-card .price {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.pricing-card .price span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.pricing-card li {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.pricing-card .badge {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ── Toast Notifications ──────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.ts-toast-notif {
    pointer-events: auto;
    background: var(--surface);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.ts-toast-notif.info {
    border-left: 4px solid var(--primary);
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .workspace-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ts-hero h1 {
        font-size: 2.8rem;
    }
    
    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-conn {
        display: none;
    }
    
    .ts-tab-bar {
        padding: 0 1rem;
        top: 64px;
    }
    
    .ts-tab-btn {
        padding: 1rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .ts-main {
        padding: 2rem 1rem;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* Legacy Toast Notification (Copied alert) */
.ts-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.ts-toast.show {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ts-toast svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}


/* ============================================================
   CUSTOM DROPDOWN — replaces all native <select> OS dropdowns
   ============================================================ */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 0.8rem 2.75rem 0.8rem 1rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    user-select: none;
    min-height: 46px;
    box-sizing: border-box;
    outline: none;
}

.custom-select__trigger:focus,
.custom-select__trigger:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.custom-select.open .custom-select__trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: var(--surface);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.custom-select__trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.custom-select__trigger-text.placeholder {
    color: var(--text-light);
}

.custom-select__arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.2s ease, color 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.custom-select.open .custom-select__arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
}

.custom-select__panel {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
    pointer-events: none;
}

.custom-select.open .custom-select__panel {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
}

.custom-select__option {
    padding: 0.7rem 1rem;
    font-size: 0.93rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.12s ease, color 0.12s ease;
    border-bottom: 1px solid var(--border);
}

.custom-select__option:last-child {
    border-bottom: none;
}

.custom-select__option:hover {
    background: rgba(37, 99, 235, 0.07);
    color: var(--primary);
}

.custom-select__option.selected {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.custom-select__check {
    margin-left: auto;
    width: 14px;
    height: 14px;
    color: var(--primary);
    display: none;
}

.custom-select__option.selected .custom-select__check {
    display: block;
}

/* When inside .input-with-icon — align padding */
.input-with-icon .custom-select .custom-select__trigger {
    padding-left: 2.75rem;
}

/* Scrollbar for the panel */
.custom-select__panel::-webkit-scrollbar { width: 5px; }
.custom-select__panel::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 10px;
}

/* Hidden native select — retains form value access */
.custom-select__native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
