/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
 display: inline-flex; align-items: center; justify-content: center;
 gap: 8px; padding: 12px 24px; border-radius: var(--radius-pill);
 font-family: var(--font-heading); font-weight: 700; font-size: 14px;
 border: none; transition: all var(--transition); white-space: nowrap;
 cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
}
/* Primary: dark bg + lime accent arrow */
.btn-primary {
 background: var(--surface-dark); color: var(--text-on-dark);
 box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-primary:hover {
 background: #111; transform: scale(1.02);
 box-shadow: 0 6px 24px rgba(0,0,0,0.18);
 color: var(--text-on-dark);
}
.btn-primary:active { transform: scale(0.97); }
/* Accent: lime bg + dark text */
.btn-accent {
 background: var(--accent); color: var(--accent-text);
 box-shadow: 0 4px 20px rgba(197,254,0,0.25);
}
.btn-accent:hover {
 background: var(--accent-dim); transform: scale(1.02);
 box-shadow: 0 6px 28px rgba(197,254,0,0.35);
 color: var(--accent-text);
}
.btn-accent:active { transform: scale(0.97); }
/* Secondary: outline */
.btn-secondary {
 background: transparent; color: var(--text-primary);
 border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--text-muted); }
/* Ghost */
.btn-ghost {
 background: transparent; color: var(--text-secondary);
 border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text-primary); background: var(--bg-tertiary); }
/* Danger */
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; }
/* White surface button */
.btn-surface {
 background: white; color: var(--text-primary);
 border: 1px solid var(--border);
}
.btn-surface:hover { background: var(--bg-secondary); }
/* Sizes */
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; letter-spacing: 0.08em; }
.btn-xs { padding: 5px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
 background: var(--surface); border: 1px solid var(--border);
 border-radius: var(--radius-2xl); padding: var(--space-xl);
 box-shadow: var(--shadow-card);
}
.card-sm { padding: var(--space-md); }
.card-dark {
 background: var(--surface-dark); border-color: rgba(255,255,255,0.05);
 color: var(--text-on-dark);
}
.card-hover { transition: all var(--transition); cursor: pointer; }
.card-hover:hover {
 border-color: var(--border-strong);
 box-shadow: var(--shadow-lg);
 transform: translateY(-2px);
}
.card-lime {
 background: var(--accent); border-color: var(--accent-dim);
 color: var(--accent-text);
}

/* ── METRIC CARD ────────────────────────────────────────────── */
.metric-card {
 background: var(--bg-secondary); border-radius: var(--radius-xl);
 padding: var(--space-md) var(--space-lg); border: 1px solid var(--border);
 box-shadow: var(--shadow-card);
}
.metric-label {
 font-size: 10px; color: var(--text-muted);
 text-transform: uppercase; letter-spacing: 1.5px;
 font-weight: 700; margin-bottom: 8px;
}
.metric-value {
 font-family: var(--font-heading); font-weight: 800;
 font-size: 36px; line-height: 1; letter-spacing: -1.5px;
}
.metric-delta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--error); }

/* ── FORM INPUTS ─────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }
.form-label {
 display: block;
 font-size: 10px; font-weight: 700;
 color: var(--text-muted); margin-bottom: 8px;
 text-transform: uppercase; letter-spacing: 1.5px;
 margin-left: 4px;
}
.form-input {
 width: 100%; padding: 14px 18px;
 background: var(--bg-tertiary); border: none;
 border-radius: var(--radius-lg); font-size: 15px;
 color: var(--text-primary); transition: all var(--transition);
 font-family: var(--font-body);
}
.form-input:focus {
 background: white;
 box-shadow: 0 0 0 2px var(--accent);
 outline: none;
}
.form-input::placeholder { color: rgba(117,119,119,0.5); }
.form-input.error { box-shadow: 0 0 0 2px var(--error); }
.field-error {
 font-size: 12px; color: var(--error);
 margin-top: 6px; display: none;
 margin-left: 4px;
}

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
 display: inline-flex; align-items: center; gap: 4px;
 padding: 4px 12px; border-radius: 100px;
 font-size: 10px; font-weight: 700;
 letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-lime   { background: var(--accent-light); color: var(--accent-text); }
.badge-blue   { background: #eff6ff; color: #1e40af; }
.badge-green  { background: var(--success-light); color: var(--success); }
.badge-orange { background: var(--warning-light); color: #b45309; }
.badge-red    { background: var(--error-light); color: var(--error); }
.badge-gold   { background: var(--gold-light); color: #92620a; }
.badge-muted  { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.badge-dark   { background: var(--surface-dark); color: var(--accent); }

/* ── SCORE RING ──────────────────────────────────────────────── */
.score-ring-wrap { position: relative; display: inline-block; }
.score-ring { transform: rotate(-90deg); display: block; }
.score-ring .ring-bg { fill: none; stroke: var(--border-strong); }
.score-ring .ring-fill {
 fill: none; stroke-linecap: round;
 transition: stroke-dashoffset 1.8s cubic-bezier(0.1,0.8,0.2,1);
}
.score-ring-center {
 position: absolute; inset: 0;
 display: flex; flex-direction: column;
 align-items: center; justify-content: center;
}
.score-ring-num {
 font-family: var(--font-heading); font-weight: 800;
 font-size: 44px; line-height: 1; letter-spacing: -2px;
}
.score-ring-label { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-wrap { margin-bottom: var(--space-lg); }
.progress-meta {
 display: flex; justify-content: space-between;
 font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
 font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.progress-track {
 height: 6px; background: var(--bg-tertiary); border-radius: 100px; overflow: hidden;
}
.progress-fill {
 height: 100%; border-radius: 100px;
 background: var(--accent);
 box-shadow: 0 0 12px rgba(197,254,0,0.4);
 transition: width 0.4s ease;
}

/* ── MILESTONE ITEM ──────────────────────────────────────────── */
.milestone-item {
 display: flex; align-items: flex-start; gap: 12px;
 padding: 14px 16px; background: var(--bg-secondary);
 border: 1px solid var(--border); border-radius: var(--radius-xl);
 margin-bottom: 8px; transition: all var(--transition);
}
.milestone-item:hover { border-color: var(--border-strong); }
.milestone-item.done { opacity: 0.65; }
.ms-dot {
 width: 20px; height: 20px; border-radius: 50%;
 border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 1px;
 display: flex; align-items: center; justify-content: center;
 font-size: 10px; transition: all var(--transition); cursor: pointer;
}
.ms-dot.done { background: var(--success); border-color: var(--success); color: white; }
.ms-text { flex: 1; }
.ms-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ms-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ms-impact { font-size: 12px; color: var(--accent-text); font-weight: 700; flex-shrink: 0; }

/* ── DIMENSION BAR ───────────────────────────────────────────── */
.dim-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dim-bar-label { font-size: 12px; color: var(--text-secondary); width: 80px; flex-shrink: 0; font-weight: 600; }
.dim-bar-track { flex: 1; height: 6px; background: var(--bg-tertiary); border-radius: 100px; overflow: hidden; }
.dim-bar-fill  { height: 100%; border-radius: 100px; transition: width 1s ease; }
.dim-bar-pct   { font-family: var(--font-heading); font-weight: 700; font-size: 13px; width: 38px; text-align: right; flex-shrink: 0; }

/* ── DESTINATION CARD ────────────────────────────────────────── */
.dest-card {
 background: var(--bg-secondary); border: 1.5px solid var(--border);
 border-radius: var(--radius-xl); padding: 16px 12px;
 cursor: pointer; text-align: center; transition: all var(--transition);
}
.dest-card:hover { border-color: var(--accent); background: var(--accent-light); }
.dest-card.selected { border-color: var(--surface-dark); background: var(--accent-light); }
.dest-card--other { border-style: dashed; opacity: 0.75; }
.dest-card--other:hover { opacity: 1; border-style: dashed; }
.dest-card--other .dest-flag { opacity: 0.7; }
.dest-flag { font-size: 28px; margin-bottom: 6px; }
.dest-name { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--text-primary); }
.dest-visa-type { font-size: 10px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ── QUESTION OPTION ─────────────────────────────────────────── */
.q-option {
 display: flex; align-items: center; gap: 14px;
 padding: 16px 20px; background: var(--bg-secondary);
 border: 1.5px solid var(--border); border-radius: var(--radius-xl);
 cursor: pointer; font-size: 15px; transition: all var(--transition);
 margin-bottom: 10px; font-family: var(--font-body);
}
.q-option:hover { border-color: var(--surface-dark); background: var(--bg-tertiary); }
.q-option.selected { border-color: var(--surface-dark); background: var(--surface-dark); color: white; }
.q-option-dot {
 width: 18px; height: 18px; border-radius: 50%;
 border: 2px solid var(--border-strong); flex-shrink: 0; transition: all var(--transition);
}
.q-option.selected .q-option-dot { background: var(--accent); border-color: var(--accent); }

/* ── LOCKED OVERLAY ──────────────────────────────────────────── */
.locked-wrap { position: relative; overflow: hidden; border-radius: var(--radius-2xl); }
.locked-overlay {
 position: absolute; inset: 0; z-index: 2;
 background: linear-gradient(to bottom, transparent 0%, rgba(246,246,246,0.97) 55%);
 display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
.lock-badge {
 background: white; border: 1px solid var(--border-strong);
 padding: 10px 20px; border-radius: var(--radius-pill);
 font-size: 13px; color: var(--text-secondary);
 box-shadow: var(--shadow-sm);
 display: flex; align-items: center; gap: 8px;
 font-weight: 600;
}

/* ── UPGRADE BANNER ──────────────────────────────────────────── */
.upgrade-banner {
 background: var(--surface-dark);
 border-radius: var(--radius-2xl);
 padding: var(--space-md) var(--space-xl);
 display: flex; align-items: center; justify-content: space-between;
 margin-bottom: var(--space-lg); color: white;
}
.upgrade-banner h4 { font-family: var(--font-heading); font-size: 15px; color: var(--accent); }
.upgrade-banner p  { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── TOGGLE SWITCH ───────────────────────────────────────────── */
.toggle-wrap {
 position: relative; display: inline-flex; align-items: center;
 width: 44px; height: 24px; cursor: pointer;
}
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
 position: absolute; inset: 0;
 background: var(--bg-tertiary); border-radius: 100px;
 transition: background var(--transition);
 border: 1.5px solid var(--border-strong);
}
.toggle-slider::after {
 content: ''; position: absolute;
 width: 17px; height: 17px; border-radius: 50%;
 background: white; top: 1px; left: 1px;
 transition: transform var(--transition);
 box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-wrap input:checked + .toggle-slider {
 background: var(--accent);
 border-color: var(--accent-dim);
}
.toggle-wrap input:checked + .toggle-slider::after {
 transform: translateX(20px);
}

/* ── CHIP / PILL ─────────────────────────────────────────────── */
.chip {
 display: inline-flex; align-items: center; gap: 6px;
 padding: 4px 14px; border-radius: 100px;
 font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
 text-transform: uppercase;
}
.chip-dark { background: var(--surface-dark); color: var(--accent); }
.chip-lime { background: var(--accent); color: var(--accent-text); }
.chip-surface { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-strong); }

/* ── MATERIAL SYMBOL ─────────────────────────────────────────── */
.icon-btn {
 width: 36px; height: 36px; border-radius: 50%;
 background: transparent; border: none; cursor: pointer;
 display: flex; align-items: center; justify-content: center;
 color: var(--text-secondary); transition: all var(--transition);
}
.icon-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-label {
 font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
 color: var(--text-muted); font-weight: 700; margin-bottom: 4px;
}
.section-title {
 font-family: var(--font-heading); font-weight: 800;
 font-size: 28px; letter-spacing: -0.5px; margin-bottom: 6px;
}

/* ── TOAST ───────────────────────────────────────────────────── */
#toast {
 position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
 background: var(--surface-dark); color: white;
 padding: 12px 24px; border-radius: 100px;
 font-size: 14px; font-weight: 600;
 box-shadow: var(--shadow-xl); z-index: 9999;
 display: none; white-space: nowrap;
}
#toast.show { display: block; animation: toastIn 0.3s ease; }
@keyframes toastIn {
 from { opacity: 0; transform: translateX(-50%) translateY(10px); }
 to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Flag utility classes (used with flag-icons CDN) ───────────── */
.nv-flag {
 display: inline-block;
 vertical-align: middle;
 line-height: 1;
 flex-shrink: 0;
}
.nv-flag-sm { width: 18px; height: 13.5px; }
.nv-flag-md { width: 24px; height: 18px; }
.nv-flag-lg { width: 40px; height: 30px; }
.nv-flag-xl { width: 64px; height: 48px; }

/* ISO flags (flag-icons library) — give them a subtle border + radius */
.nv-flag.fi {
 background-size: cover;
 background-position: 50%;
 background-repeat: no-repeat;
 border-radius: 3px;
 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Regional fallback badge (Material Symbol inside tinted square) */
.nv-flag-region {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: var(--bg-tertiary);
 border-radius: 6px;
}
.nv-flag-region .material-symbols-outlined {
 font-size: 14px;
 color: var(--text-secondary);
 line-height: 1;
}
.nv-flag-region.nv-flag-lg .material-symbols-outlined { font-size: 22px; }
.nv-flag-region.nv-flag-xl .material-symbols-outlined { font-size: 32px; }
