/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --stripe-purple: #635BFF;
    --stripe-dark:   #0A2540;
    --stripe-mid:    #1a3a5c;
    --stripe-cyan:   #00D4FF;
    --stripe-green:  #00C853;
    --text-primary:  #0A2540;
    --text-muted:    #5b7a99;
    --border:        rgba(10,37,64,.12);
    --card-bg:       #ffffff;
    --page-bg:       #f6f9fc;
    --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { height: 100%; }

body {
    min-height: 100%;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--page-bg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body.page-inner {
    background: #0A2540;
    color: #e2e8f0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-transparent {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-dark {
    background: var(--stripe-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    flex: 1;
}

.nav-links .nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Dropdown ── */
.nav-dropdown-wrap { position: relative; }

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #0d1f35;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 270px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 200;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.82);
    transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.dropdown-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-green-sm  { background: rgba(0,200,83,0.15);  color: #00C853; }
.icon-purple-sm { background: rgba(99,91,255,0.15);  color: #8b85ff; }
.icon-amber-sm  { background: rgba(255,180,0,0.15);  color: #FFB400; }

.dropdown-label { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.dropdown-sub   { display: block; font-size: 0.75rem;  color: rgba(255,255,255,0.48); margin-top: 2px; }

.btn-nav-primary {
    background: #ffffff;
    color: var(--stripe-dark);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-nav-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-nav-login {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.btn-nav-login:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.nav-user {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-right: 4px;
}

.btn-nav-logout {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.btn-nav-logout:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 32px 80px;
}

/* Animated mesh gradient — Stripe-style */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% -10%, rgba(99,91,255,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at -10% 50%, rgba(0,212,255,0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 110% 80%, rgba(0,200,83,0.2) 0%, transparent 50%),
        linear-gradient(160deg, #0A2540 0%, #0d1f35 60%, #0A2540 100%);
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(8deg) brightness(1.05); }
    100% { filter: hue-rotate(-4deg) brightness(0.98); }
}

/* Subtle grain texture overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(99,91,255,0.2);
    border: 1px solid rgba(99,91,255,0.4);
    color: #a8a3ff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-accent {
    background: linear-gradient(90deg, #635BFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 40px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary {
    background: var(--stripe-purple);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99,91,255,0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: #7a74ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,91,255,0.5);
    color: #fff;
    text-decoration: none;
}

.btn-hero-secondary {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.btn-hero-secondary:hover {
    color: #ffffff;
    border-color: #ffffff;
    text-decoration: none;
}

/* Live ticker */
.live-ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.tick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.tick-sym {
    font-weight: 700;
    color: #fff;
    width: 52px;
    flex-shrink: 0;
}

.tick-price {
    flex: 1;
    color: rgba(255,255,255,0.75);
}

.tick-var { font-weight: 600; font-size: 0.78rem; }
.tick-up   { color: #00C853; }
.tick-down { color: #ff5252; }
.tick-flat { color: rgba(255,255,255,0.4); }

.tick-err {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.ticker-skeleton {
    height: 120px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #00C853; }
    50%       { opacity: 0.4; box-shadow: none; }
}

/* Hero decorative chart card */
.hero-visual {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    padding-left: 60px;
}

.chart-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px;
    width: 280px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    animation: float 6s ease-in-out infinite;
}

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

.chart-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.chart-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.chart-dot.green { background: #00C853; box-shadow: 0 0 6px #00C853; }

.chart-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    margin-bottom: 16px;
}

.bar {
    flex: 1;
    background: rgba(99,91,255,0.35);
    border-radius: 3px 3px 0 0;
    transition: background 0.3s;
}

.bar.active {
    background: linear-gradient(180deg, #635BFF, #00D4FF);
    box-shadow: 0 0 10px rgba(99,91,255,0.6);
}

.chart-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00C853;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   SCROLLING TICKER BAR
   ============================================================ */
.ticker-bar {
    background: #060f1e;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.ticker-label {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #635BFF;
    background: rgba(99,91,255,0.12);
    border-right: 1px solid rgba(99,91,255,0.2);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
}

.ticker-sym {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.ticker-price {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

.ticker-var {
    font-size: 0.75rem;
    font-weight: 600;
}

.ticker-sep {
    color: rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.ticker-loading {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
    padding: 0 24px;
}

/* ============================================================
   SESSION RECAP BAND
   ============================================================ */
.session-recap {
    background: #0a1628;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 48px;
}

.recap-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 0;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 0 24px;
}

.recap-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.recap-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
}

.recap-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
    background: #ffffff;
    padding: 100px 48px;
}

.how-header {
    text-align: center;
    margin-bottom: 72px;
}

.how-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.how-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

.how-steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.how-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.how-connector {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #635BFF, rgba(99,91,255,0.2));
    margin-top: 44px;
    flex-shrink: 0;
}

.how-number {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--stripe-purple);
    margin-bottom: 16px;
}

.how-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99,91,255,0.08);
    border: 1px solid rgba(99,91,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stripe-purple);
    margin-bottom: 20px;
}

.how-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.how-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .how-steps { flex-direction: column; align-items: center; }
    .how-connector { width: 1px; height: 40px; background: linear-gradient(180deg, #635BFF, rgba(99,91,255,0.2)); margin: 0; }
    .session-recap { padding: 0 24px; }
    .recap-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .recap-divider { display: none; }
    .how-section { padding: 64px 24px; }
}

/* ============================================================
   MARKETS SECTION (home page)
   ============================================================ */
.markets-section {
    background: #0a1628;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.markets-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 40px;
}

.markets-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.markets-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
}

.markets-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 80px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: start;
}

.markets-panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,200,83,0.12);
    border: 1px solid rgba(0,200,83,0.25);
    color: #00C853;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.live-dot-sm {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00C853;
    animation: pulse 2s infinite;
}

/* Prices table */
.markets-prices {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 24px;
    max-height: 520px;
    display: flex;
    flex-direction: column;
}

.prices-table-wrap {
    overflow-y: auto;
    flex: 1;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.prices-table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0 10px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: #0d1e33;
}

.pt-row {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}

.pt-row:hover { background: rgba(255,255,255,0.04); }

.prices-table td { padding: 9px 10px; }

.pt-sym {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pt-name {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-price {
    color: rgba(255,255,255,0.8);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pt-var {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.prices-skeleton {
    height: 400px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.prices-err {
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
    padding: 40px 0;
}

/* Chart viewer */
.markets-chart {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 24px;
}

.chart-selector-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.chart-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.chart-chip:hover {
    border-color: rgba(99,91,255,0.4);
    color: rgba(255,255,255,0.8);
}

.chart-chip.active {
    background: rgba(99,91,255,0.15);
    border-color: rgba(99,91,255,0.45);
    color: #c7c3ff;
}

.chart-img-wrap {
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.chart-img-wrap img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.markets-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.markets-panel-title-row .markets-panel-title { margin-bottom: 0; }

.chart-db-info {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    font-weight: 500;
}

.plotly-wrap {
    min-height: 320px;
    border-radius: 10px;
    overflow: hidden;
}

.chart-no-data {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 24px;
}

.chart-no-data p  { margin: 0; font-size: 0.9rem; font-weight: 600; }
.chart-no-data small { font-size: 0.78rem; color: rgba(255,255,255,0.15); }

.chart-stock-name {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.4);
    padding: 3px 10px;
    border-radius: 6px;
}

/* Hero index + movers */
.hero-index-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-index-item { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.hero-index-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.hero-index-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.hero-index-val--sm { font-size: 0.82rem; }

.hero-movers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-movers-col { display: flex; flex-direction: column; gap: 6px; }

.movers-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.mover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Rates section grid variant */
.markets-grid--rates {
    grid-template-columns: 1fr 260px;
}

.markets-chart--wide { grid-column: 1; }

/* Rates info panel */
.rates-info-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rates-info-body { display: flex; flex-direction: column; gap: 18px; }

.rates-info-body p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0;
}

.rates-legend { display: flex; flex-direction: column; gap: 8px; }

.rates-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

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

.rates-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rates-meta-item { display: flex; flex-direction: column; gap: 3px; }

.rates-meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.rates-meta-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
    .markets-grid { grid-template-columns: 1fr; padding: 0 24px 60px; }
    .markets-grid--rates { grid-template-columns: 1fr; }
    .markets-header { padding: 0 24px 32px; }
}

/* ============================================================
   DATA PAGE (rates only)
   ============================================================ */
.data-shell {
    padding: 80px 0 60px;
}

.data-page-header {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 48px;
}

.data-page-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.data-page-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.rates-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.rates-sidebar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 88px;
}

.sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 12px;
}

.country-list { display: flex; flex-direction: column; gap: 2px; }

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.15s;
}

.country-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.country-item.active {
    background: rgba(99,91,255,0.12);
    color: #c7c3ff;
}

.country-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.country-item.active .country-dot { background: #635BFF; }

/* Chart area */
.rates-chart-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 28px;
}

.rates-chart-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.rates-chart-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Empty state */
.rates-empty {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 80px 40px;
    text-align: center;
}

.rates-empty-icon { color: rgba(255,255,255,0.1); margin-bottom: 20px; }

.rates-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.rates-empty-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .rates-layout { grid-template-columns: 1fr; padding: 0 24px; }
    .rates-sidebar { position: static; }
    .data-page-header { padding: 0 24px; }
}

/* ============================================================
   LOGOS BAND
   ============================================================ */
.logos-band {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px;
    text-align: center;
}

.logos-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.logos-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-chip {
    background: var(--page-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    background: var(--page-bg);
    padding: 100px 32px;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.features-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,37,64,0.1);
}

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

.icon-blue   { background: rgba(99,91,255,0.1);  color: var(--stripe-purple); }
.icon-purple { background: rgba(0,212,255,0.1);   color: #0099bb; }
.icon-green  { background: rgba(0,200,83,0.1);    color: var(--stripe-green); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.feature-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stripe-purple);
    text-decoration: none;
    transition: gap 0.2s;
}

.feature-link:hover {
    color: #7a74ff;
    text-decoration: none;
}

.feature-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feature-card-top .feature-icon {
    margin-bottom: 0;
}

.feature-card--soon {
    opacity: 0.85;
    border-style: dashed;
}

.badge-soon {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 3px 10px;
    border-radius: 20px;
}

.feature-link-disabled {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: default;
}

.icon-orange { background: rgba(234,88,12,0.1);  color: #ea580c; }
.icon-amber  { background: rgba(217,119,6,0.1);   color: #d97706; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
    background: var(--stripe-dark);
    padding: 80px 32px;
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-item { display: flex; flex-direction: column; gap: 8px; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #635BFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #635BFF 0%, #0A2540 100%);
    padding: 100px 32px;
    text-align: center;
}

.cta-inner { max-width: 560px; margin: 0 auto; }

.cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--stripe-dark);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 28px 32px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   INNER PAGES (data, pricing)
   ============================================================ */
body.page-inner main {
    background: #060f1e;
    padding-top: 64px;
    flex: 1;
    color: #e2e8f0;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-shell {
    display: flex;
    flex-direction: column;
}

/* Header */
.pricing-header {
    background: linear-gradient(135deg, #0d1f35 0%, #0a1628 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 48px 48px 36px;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 6px;
}

.pricing-subtitle {
    color: rgba(255,255,255,0.45);
    font-size: 0.95rem;
    margin: 0;
}

/* Product tabs */
.product-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 48px;
    background: #0a1628;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.product-tab:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.05);
}

.product-tab.active {
    background: rgba(99,91,255,0.12);
    border-color: rgba(99,91,255,0.35);
    color: #a8a3ff;
}

.tab-icon { display: flex; align-items: center; }

.tab-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(217,119,6,0.15);
    border: 1px solid rgba(217,119,6,0.3);
    color: #d97706;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 2px;
}

/* Body */
.pricing-body { flex: 1; padding: 40px 48px 60px; }

/* Panels */
.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

/* Two-column grid */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* ── Form side ── */
.panel-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 36px;
}

.form-section { margin-bottom: 28px; }

.form-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 0 28px;
}

/* Segmented buttons */
.seg-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.seg-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.seg-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
}

.seg-btn.active {
    background: rgba(99,91,255,0.2);
    border-color: rgba(99,91,255,0.5);
    color: #c7c3ff;
}

/* Input grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.field-unit {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
}

.p-input, .p-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.p-input::placeholder { color: rgba(255,255,255,0.2); }

.p-input:focus, .p-select:focus {
    border-color: rgba(99,91,255,0.6);
    box-shadow: 0 0 0 3px rgba(99,91,255,0.12);
}

.p-select option { background: #0d1f35; }

/* Run button */
.run-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: var(--stripe-purple);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99,91,255,0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.run-btn:hover {
    background: #7a74ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(99,91,255,0.45);
}

/* ── Result side ── */
.panel-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.result-card {
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
}

.result-card--active {
    background: linear-gradient(145deg, rgba(99,91,255,0.12), rgba(0,212,255,0.06));
    border-color: rgba(99,91,255,0.25);
}

.result-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(99,91,255,0.7);
    margin-bottom: 12px;
}

.result-price {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.result-currency {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0;
}

.result-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 20px 0;
}

.result-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.result-meta { display: flex; flex-direction: column; gap: 2px; }

.meta-key {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.meta-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

/* Empty state */
.result-card--empty {
    background: rgba(255,255,255,0.02);
    text-align: center;
    padding: 40px 32px;
}

.result-empty-icon {
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.result-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.result-empty-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.6;
    margin: 0;
}

/* Model info box */
.model-info {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 24px;
}

.model-info-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.model-info-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.65;
    margin: 0;
}

/* ── Coming soon panels ── */
.coming-soon-panel {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
}

.cs-icon {
    color: rgba(99,91,255,0.4);
    margin-bottom: 24px;
}

.coming-soon-panel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.coming-soon-panel p {
    font-size: 1rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cs-features {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-bottom: 32px;
}

.cs-feature {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-check {
    color: #635BFF;
    font-weight: 700;
}

.cs-badge {
    display: inline-block;
    background: rgba(99,91,255,0.1);
    border: 1px solid rgba(99,91,255,0.25);
    color: #a8a3ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .panel-grid { grid-template-columns: 1fr; }
    .panel-result { position: static; }
    .pricing-body, .pricing-header { padding-left: 24px; padding-right: 24px; }
    .product-tabs { padding-left: 24px; padding-right: 24px; overflow-x: auto; }
}

/* Quant buttons kept for inner pages */
.btn-quant-dark {
    background: #000;
    color: #fff;
    border: 1px solid rgba(73,137,9,0.53);
    transition: 0.3s;
}
.btn-quant-dark:hover {
    background: #111;
    color: #00ff88;
    border-color: #00ff88;
}

.btn-quant-green {
    background: #00c853;
    color: #000;
    border: none;
    transition: 0.3s;
}
.btn-quant-green:hover {
    background: #00ff88;
    color: #000;
}

/* ============================================================
   NAV AUTH ELEMENTS
   ============================================================ */
.nav-user {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-right: 12px;
}

.btn-nav-login {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-nav-login:hover { background: rgba(255,255,255,0.18); color: #fff; text-decoration: none; }

.btn-nav-logout {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.btn-nav-logout:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: #060f1e;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 40px;
}

.auth-logo {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    letter-spacing: -0.3px;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 32px;
}

.auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }

.auth-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

.auth-field input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.auth-field input::placeholder { color: rgba(255,255,255,0.2); }

.auth-field input:focus {
    border-color: rgba(99,91,255,0.6);
    box-shadow: 0 0 0 3px rgba(99,91,255,0.12);
}

.auth-btn {
    margin-top: 8px;
    background: var(--stripe-purple);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99,91,255,0.35);
    transition: background 0.2s, transform 0.15s;
}

.auth-btn:hover {
    background: #7a74ff;
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
    margin-top: 24px;
    margin-bottom: 0;
}

.auth-switch a {
    color: #a8a3ff;
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* ============================================================
   DATA PAGE
   ============================================================ */
.data-shell { padding-top: 64px; }

.data-header {
    background: linear-gradient(135deg, #0d1f35 0%, #0A2540 100%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 56px 0 40px;
}

.data-header-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.data-title { font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: -0.4px; margin-bottom: 8px; }
.data-subtitle { font-size: 1rem; color: rgba(255,255,255,0.5); margin: 0; }

.data-body {
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.data-sidebar { position: sticky; top: 84px; }

.sidebar-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 12px;
}

.country-list { display: flex; flex-direction: column; gap: 4px; }

.country-chip {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 10px; text-decoration: none; color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.03); border: 1px solid transparent;
    transition: all 0.15s;
}
.country-chip:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.1); }
.country-chip.active { background: rgba(99,91,255,0.15); border-color: rgba(99,91,255,0.35); color: #fff; }

.country-code {
    font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.1);
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em; flex-shrink: 0;
}
.country-chip.active .country-code { background: rgba(99,91,255,0.35); }
.country-name { font-size: 0.875rem; font-weight: 500; flex: 1; }
.chip-check { color: #8b85ff; flex-shrink: 0; }

.sidebar-info {
    margin-top: 24px; padding: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
}
.sidebar-info-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.sidebar-info-body { font-size: 0.78rem; color: rgba(255,255,255,0.3); line-height: 1.6; margin: 0; }

.chart-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 28px; margin-bottom: 24px;
}
.chart-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.chart-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.chart-meta { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.chart-badge {
    font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
    background: rgba(99,91,255,0.15); color: #8b85ff; border: 1px solid rgba(99,91,255,0.25); white-space: nowrap;
}
.chart-img-wrap { border-radius: 10px; overflow: hidden; background: #fff; }
.chart-img { width: 100%; display: block; }

.chart-legend { display: flex; gap: 20px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: #635BFF; flex-shrink: 0; }
.legend-dot--red { background: #ef4444; }

.curves-strip {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 20px 24px;
}
.strip-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.strip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.strip-item {
    display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
    text-decoration: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6); font-size: 0.8rem; transition: all 0.15s;
}
.strip-item:hover { background: rgba(255,255,255,0.09); color: #fff; }
.strip-item--active { background: rgba(99,91,255,0.15); border-color: rgba(99,91,255,0.3); color: #fff; }
.strip-code { font-size: 0.68rem; font-weight: 700; opacity: 0.6; }

.chart-empty { text-align: center; padding: 80px 40px; }
.chart-empty-icon { color: rgba(99,91,255,0.25); margin-bottom: 20px; }
.chart-empty-title { font-size: 1.4rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.chart-empty-sub { font-size: 0.9rem; color: rgba(255,255,255,0.3); max-width: 420px; margin: 0 auto 32px; line-height: 1.65; }
.chart-empty-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.empty-country-btn {
    display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 20px;
    text-decoration: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: all 0.15s;
}
.empty-country-btn:hover { background: rgba(99,91,255,0.12); border-color: rgba(99,91,255,0.3); color: #fff; }
.ec-code { font-size: 0.7rem; font-weight: 700; opacity: 0.55; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 100px 24px 60px;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-visual { padding-left: 0; margin-top: 48px; }
    .features { padding: 64px 24px; }
    .nav-inner { padding: 0 20px; gap: 16px; }
    .nav-links { display: none; }
}
