/* ==========================================================
   PREMIUM FINANCIAL ANALYTICS PLATFORM – DESIGN SYSTEM
   Bloomberg Terminal inspired
   Background: #0A0A0B  Primary: #00E5FF  Secondary: #8A2BE2
   ========================================================== */
:root {
    --c-night: #0A0A0B;
    --c-night-2: #0F1115;
    --c-surface: rgba(255,255,255,0.03);
    --c-surface-hover: rgba(255,255,255,0.06);
    --c-border: rgba(255,255,255,0.06);
    --c-border-strong: rgba(255,255,255,0.10);
    --primary: #00E5FF;
    --primary-glow: rgba(0,229,255,0.35);
    --primary-glow-soft: rgba(0,229,255,0.12);
    --primary-dark: #00B8CC;
    --secondary: #8A2BE2;
    --secondary-glow: rgba(138,43,226,0.30);
    --success: #00C897;
    --success-bright: #34D399;
    --danger: #EF4444;
    --danger-soft: rgba(239,68,68,0.15);
    --font-sans: 'Inter', 'SF Pro Display', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
    --radius-xl: 1.5rem;
    --radius-2xl: 1.75rem;
    --shadow-deep: 0 20px 60px -20px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(0,0,0,0.5);
    --shadow-glow-cyan: 0 0 30px -8px rgba(0,229,255,0.45), 0 0 60px -20px rgba(0,229,255,0.25);
}

html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background-color: var(--c-night);
    background-image:
        radial-gradient(ellipse 800px 400px at 50% -80px, rgba(0,229,255,0.07), transparent 60%),
        radial-gradient(ellipse 600px 500px at 95% 20%, rgba(138,43,226,0.06), transparent 55%),
        radial-gradient(ellipse 700px 400px at -5% 85%, rgba(0,200,151,0.04), transparent 60%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: auto, auto, auto, 40px 40px, 40px 40px;
    /* PERF: background-attachment:fixed Chrome'da her scroll frame'inde tüm arka planı yeniden boyar.
       Masaüstünde de scroll kullan — görsel fark yok, jank gider. */
    background-attachment: scroll;
    position: relative;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle currency/graph texture overlay (PERF: fixed overlay'i izole katmana al) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    transform: translateZ(0);
    contain: strict;
    opacity: 0.025;
    background-image:
        url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='20' y='40' font-family='monospace' font-size='14' fill='white' opacity='0.6'%3E$ %E2%82%AC %C2%A5 %C2%A3 %E2%82%BF%3C/text%3E%3Ctext x='180' y='120' font-family='monospace' font-size='10' fill='white' opacity='0.4'%3E%E2%97%86 %E2%97%87 %E2%AC%A2%3C/text%3E%3Ctext x='60' y='200' font-family='monospace' font-size='12' fill='white' opacity='0.35'%3E0101 0010%3C/text%3E%3Ctext x='220' y='280' font-family='monospace' font-size='11' fill='white' opacity='0.4'%3E$ - %E2%82%AC - %C2%A5%3C/text%3E%3Ctext x='40' y='340' font-family='monospace' font-size='9' fill='white' opacity='0.3'%3E%E2%94%80%E2%94%80%E2%95%B1%E2%95%B2%E2%94%80%E2%94%80%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    z-index: -1;
}

/* Typography hierarchy – clean sans (no serif) */
h1, h2, h3 {
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    font-weight: 700;
}
.font-serif { /* legacy: map to sans for backward compat */
    font-family: var(--font-sans) !important;
}
.font-mono { font-family: var(--font-mono); }

/* ---------- GLASS CARDS ---------- */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-deep);
}
.glass-card:hover {
    border-color: rgba(255,255,255,0.08);
}

/* Country Cards – Premium (PERF: GPU dostu – 7 kart x ağır blur = scroll jank yapar) */
.country-card {
    position: relative;
    /* Arka planı bir tık opaklaştırdık ki blur'u 20px -> 8px'e indirebilelim (görsel fark yok, maliyet 2-3x az) */
    background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.025) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    /* 'all' yerine sadece kompozitör-dostu özellikler */
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    /* Kendi GPU katmanı + taşma izolasyonu */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}
.country-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,229,255,0) 0%, rgba(0,229,255,0) 50%, rgba(138,43,226,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.country-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    /* PERF: 'left' layout-thrash yapar (her frame yeniden dizilim). transform ise saf GPU işidir. */
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.country-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(0,229,255,0.22);
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.025) 100%);
    box-shadow: 0 20px 48px -16px rgba(0,0,0,0.7), 0 0 32px -12px rgba(0,229,255,0.22), 0 0 64px -24px rgba(138,43,226,0.15);
}
.country-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0,229,255,0.45) 0%, rgba(138,43,226,0.35) 100%);
}
.country-card:hover::after {
    transform: translateX(100%);
}
.country-card:active {
    transform: translateY(-2px) scale(1.005);
}
.country-card img {
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.country-card:hover img {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* LIVE badge – electric blue with slow glow (PERF: backdrop-blur kaldırıldı, 7x sonsuz animasyon GPU'ya izole) */
.live-badge {
    background: rgba(0,229,255,0.12) !important;
    border: 1px solid rgba(0,229,255,0.22) !important;
    color: #00E5FF !important;
    /* backdrop-filter: blur(8px) -> 7 rozette 7 ek bulanık katman demekti. Opaklığı artırıp kaldırdık, görsel aynı. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 0 12px rgba(0,229,255,0.18);
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    padding: 4px 10px !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.live-dot {
    position: relative;
    display: inline-flex;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #00E5FF;
    box-shadow: 0 0 8px rgba(0,229,255,0.9);
    animation: livePulse 2.4s ease-in-out infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}
.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: rgba(0,229,255,0.35);
    animation: livePing 2.4s cubic-bezier(0,0,0.2,1) infinite;
    will-change: transform, opacity;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.92); }
}
@keyframes livePing {
    0% { transform: scale(0.8); opacity: 0.6; }
    /* PERF: scale 2.2 -> 1.8: taşma alanı (overdraw) küçülür, 7 rozette fark hissedilir */
    70%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- PREMIUM TAB SWITCHER (underline style + pill fallback) ---------- */
#tab-switcher.premium-tabs {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}
#tab-switcher.premium-tabs button {
    flex: 1;
    position: relative;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 12px 8px !important;
    margin-bottom: -1px;
    color: rgb(100,116,139) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1) !important;
}
#tab-switcher.premium-tabs button:hover {
    color: rgb(148,163,184) !important;
    background: rgba(255,255,255,0.02) !important;
}
#tab-switcher.premium-tabs button.bg-white,
#tab-switcher.premium-tabs button[aria-selected="true"] {
    color: white !important;
    border-bottom-color: var(--primary) !important;
    background: transparent !important;
    box-shadow: inset 0 -1px 0 var(--primary), 0 4px 20px -8px var(--primary-glow) !important;
    text-shadow: 0 0 12px rgba(0,229,255,0.35);
}
#tab-switcher.premium-tabs button.bg-white::after,
#tab-switcher.premium-tabs button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px rgba(0,229,255,0.25);
}

/* Pill fallback – make existing pill look premium with glow */
#tab-switcher:not(.premium-tabs) {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
#tab-switcher:not(.premium-tabs) button.bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    color: #0a0a0b !important;
    box-shadow: 0 2px 12px rgba(255,255,255,0.18), 0 0 20px rgba(0,229,255,0.08) !important;
    font-weight: 700 !important;
}
#tab-switcher:not(.premium-tabs) button.bg-transparent {
    color: rgb(100,116,139) !important;
}
#tab-switcher:not(.premium-tabs) button.bg-transparent:hover {
    color: rgb(203,213,225) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* Parliament / secondary toggles also premium */
#parliament-toggle, #parliament-toggle + div, [id*="parliament-"] {
    transition: all 0.3s ease;
}

/* ---------- INPUTS – premium focus glow ---------- */
.input-field {
    -webkit-appearance: none;
    appearance: none;
    caret-color: var(--primary);
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    font-variant-numeric: tabular-nums;
}
.input-field::placeholder {
    color: rgb(100,116,139);
    opacity: 0.9;
    font-weight: 400;
}
.input-field:hover {
    border-color: rgba(255,255,255,0.12) !important;
    background-color: rgba(255,255,255,0.035) !important;
}
.input-field:focus {
    border-color: rgba(0,229,255,0.55) !important;
    background-color: rgba(255,255,255,0.05) !important;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.10), 0 0 20px rgba(0,229,255,0.12), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    outline: none !important;
}
.input-field:focus + span,
.input-field:focus ~ span {
    color: var(--primary) !important;
}

.select-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.95rem;
    cursor: pointer;
    padding-right: 2.4rem !important;
}
.select-field:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.95rem;
}
.select-field option {
    background-color: #0F1115;
    color: #f1f5f9;
    padding: 8px;
}

/* Checkbox premium */
input[type="checkbox"] {
    accent-color: var(--primary);
}

/* ---------- BUTTON – electric neon ---------- */
.btn-light {
    position: relative;
    background: linear-gradient(135deg, #00E5FF 0%, #0EA5E9 45%, #0284C7 100%) !important;
    color: #001018 !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em;
    border: 1px solid rgba(0,229,255,0.55) !important;
    box-shadow: 0 0 20px rgba(0,229,255,0.35), 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.btn-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}
.btn-light::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: rotate(18deg) translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.btn-light:hover {
    background: linear-gradient(135deg, #22EAFF 0%, #0EA5E9 45%, #0369A1 100%) !important;
    box-shadow: 0 0 28px rgba(0,229,255,0.55), 0 0 48px rgba(0,229,255,0.22), 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.45) !important;
    transform: translateY(-1px);
    border-color: rgba(0,229,255,0.8) !important;
}
.btn-light:hover::after {
    transform: rotate(18deg) translateX(280%);
}
.btn-light:active {
    transform: translateY(0) scale(0.985) !important;
    box-shadow: 0 0 16px rgba(0,229,255,0.35), 0 2px 8px rgba(0,0,0,0.4) !important;
}
.btn-light:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Alternative white premium button variant (if needed) */
.btn-premium-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0a0a0b;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(255,255,255,0.12), 0 0 30px rgba(255,255,255,0.06);
}

/* ---------- FORM CARD PREMIUM ---------- */
.form-card-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%) !important;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 20px 60px -24px rgba(0,0,0,0.7), 0 8px 24px -12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    position: relative;
    overflow: hidden;
}
.form-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.35), transparent);
    opacity: 0.6;
}

/* Labels premium */
label {
    font-family: var(--font-sans);
    letter-spacing: 0.06em;
}

/* Party legend dots – add glow ring */
.party-dot {
    position: relative;
    box-shadow: 0 0 6px currentColor;
}
.party-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    border: 1px solid currentColor;
    opacity: 0.25;
}

/* ---------- POLL BARS – gradient + glow ---------- */
#poll-bars-wrapper > div {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.018) 100%) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03) !important;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    overflow: hidden;
}
#poll-bars-wrapper > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
#poll-bars-wrapper > div:hover {
    border-color: rgba(255,255,255,0.10) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px -10px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
#poll-bars-wrapper > div:hover::before {
    opacity: 1;
}

/* Row container – padding-right 24px (pr-6) to pull bars inside – kesin çözüm */
#poll-bars-wrapper > div {
    padding-right: 24px !important; /* pr-6 – sağ duvara yapışmayı engelle */
}
/* Bar track – capsule w-12 (48px) h-1.5 (6px), vertically centered, consistent across all countries */
#poll-bars-wrapper [role="progressbar"] {
    background: rgba(255,255,255,0.08) !important;
    background-color: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 48px !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    will-change: transform, width;
}
/* Outer row – KESİN YERLEŞİM: iki parça (sol parti / sağ wrapper) space-between, gap 16px */
#poll-bars-wrapper > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important; /* 16px */
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Sağ wrapper – yüzde + trend + bar tek blok: flex center gap-16 justify-end */
#poll-bars-wrapper > div > .flex.items-center.gap-4.justify-end {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important; /* gap-4 */
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}
/* Ensure bar inside wrapper keeps 16px gap from trend */
#poll-bars-wrapper [role="progressbar"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Bar fill – solid opaque, no gradient/opacity */
#poll-bars-wrapper [id^="bar-"] {
    border-radius: 9999px !important;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: width 1.15s cubic-bezier(0.22,1,0.36,1) !important;
    height: 100% !important;
    background-image: none !important;
    will-change: transform, width;
}
#poll-bars-wrapper [id^="bar-"]::after {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* Specific party – VIBRANT neon palette (Electric Blue #00E5FF, Neon Red #FF3366, Bright Green #00E676, Vivid Purple #B000FF) */
#poll-bars-wrapper [id="bar-cdu"] {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    opacity: 1 !important;
    color: #FFFFFF !important;
}
#poll-bars-wrapper [id="bar-con"], #poll-bars-wrapper [id="bar-conservative"],
#poll-bars-wrapper [id="bar-democrat"],
#poll-bars-wrapper [id="bar-pp"], #poll-bars-wrapper [id="bar-coalition"],
#poll-bars-wrapper [id="bar-rn"], #poll-bars-wrapper [id="bar-bng"] {
    background: #2979FF !important;
    background-color: #2979FF !important;
    background-image: none !important;
    opacity: 1 !important;
}
#poll-bars-wrapper [id="bar-sonstige"], #poll-bars-wrapper [id="bar-other"] {
    background: #B000FF !important;
    background-color: #B000FF !important;
    background-image: none !important;
    opacity: 1 !important;
    color: #B000FF !important;
}
#poll-bars-wrapper [id="bar-republican"] {
    background: #FF3366 !important;
    background-color: #FF3366 !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-afd, #bar-rn, #bar-junts, #bar-ehbildu, #bar-bloc {
    background: #00E5FF !important;
    background-color: #00E5FF !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-spd, #bar-lab, #bar-nfp, #bar-psoe, #bar-labor, #bar-liberal {
    background: #FF3366 !important;
    background-color: #FF3366 !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-gruene, #bar-gre, #bar-greens, #bar-green, #bar-vox, #bar-pnv, #bar-geroabai {
    background: #00E676 !important;
    background-color: #00E676 !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-fdp, #bar-lib, #bar-erc, #bar-cc, #bar-onenation {
    background: #FFEA00 !important;
    background-color: #FFEA00 !important;
    background-image: none !important;
    opacity: 1 !important;
    color: #FFEA00 !important;
}
#bar-sumar, #bar-maspais, #bar-reconquete {
    background: #B000FF !important;
    background-color: #B000FF !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-ensemble, #bar-compromis, #bar-cup, #bar-ndp {
    background: #FF9100 !important;
    background-color: #FF9100 !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-lr {
    background: #00E5FF !important;
    background-color: #00E5FF !important;
    background-image: none !important;
    opacity: 1 !important;
}
#bar-liberals, #bar-conservative {
    background: #2979FF !important;
    background-color: #2979FF !important;
    background-image: none !important;
    opacity: 1 !important;
}
/* Ensure track and fill both capsule */
#poll-bars-wrapper [role="progressbar"],
#poll-bars-wrapper [id^="bar-"] {
    border-radius: 9999px !important;
}

/* Text hierarchy – KESİN SABİT KOLON: % = 52px sağa hizalı, trend = 60px sağa hizalı – üst/alttakiler pixel-perfect aynı hizada */
#poll-bars-wrapper [id^="text-"] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    font-size: 0.875rem;
    font-weight: 600;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    flex: 0 0 52px !important;
    text-align: right !important;
    justify-content: flex-end !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}
/* Sabit kolon konteyner – 120px (52+60+8 gap) */
#poll-bars-wrapper .flex.w-\[128px\],
#poll-bars-wrapper .flex[class*="w-[128px]"],
#poll-bars-wrapper .flex.w-\[120px\],
#poll-bars-wrapper .flex[class*="w-[120px]"],
#poll-bars-wrapper .flex.w-28,
#poll-bars-wrapper .flex[class*="w-28"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important; /* 16px between 52px and 60px kolon - nefes payı */
    white-space: nowrap !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    flex: 0 0 128px !important;
}
#poll-bars-wrapper [id^="trend-"] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1;
    letter-spacing: 0.01em;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    text-align: right !important;
    gap: 0.2em;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    flex: 0 0 60px !important;
    text-shadow: none !important;
}
/* Positive – vibrant neon green #00E676 */
#poll-bars-wrapper [id^="trend-"].text-green-500,
#poll-bars-wrapper [id^="trend-"].text-emerald-400,
#poll-bars-wrapper [id^="trend-"].text-emerald-500 {
    color: #00E676 !important;
    text-shadow: 0 0 8px rgba(0,230,118,0.35) !important;
}
/* Negative – vibrant neon red #FF3366 */
#poll-bars-wrapper [id^="trend-"].text-red-500,
#poll-bars-wrapper [id^="trend-"].text-red-400,
#poll-bars-wrapper [id^="trend-"].text-rose-500,
#poll-bars-wrapper [id^="trend-"].text-rose-400 {
    color: #FF3366 !important;
    text-shadow: 0 0 8px rgba(255,51,102,0.35) !important;
}
/* Neutral – light gray #9CA3AF – flat */
#poll-bars-wrapper [id^="trend-"].text-gray-400,
#poll-bars-wrapper [id^="trend-"].text-gray-500,
#poll-bars-wrapper [id^="trend-"].text-slate-400 {
    color: #9CA3AF !important;
    text-shadow: none !important;
}
/* Party names – maximum contrast bright white (never muted gray) */
#poll-bars-wrapper > div span.text-white,
#poll-bars-wrapper [id^="text-"] {
    color: #FFFFFF !important;
}

/* Live indicator premium */
#live-dot span:first-child {
    background: var(--primary) !important;
    box-shadow: 0 0 10px var(--primary-glow);
}
#live-dot span:last-child {
    background: var(--primary) !important;
    box-shadow: 0 0 8px var(--primary);
}

/* Poll dropdown premium */
#custom-dropdown-btn {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease !important;
}
#custom-dropdown-btn:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(0,229,255,0.22) !important;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.07) !important;
}
#custom-dropdown-btn:focus {
    border-color: rgba(0,229,255,0.45) !important;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.12) !important;
}
#custom-dropdown-menu {
    background: rgba(15,17,21,0.94) !important;
    backdrop-filter: blur(24px) saturate(1.2) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 48px -16px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) !important;
}
#custom-dropdown-list li {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
#custom-dropdown-list li:last-child { border-bottom: none; }
#custom-dropdown-list li:hover {
    background: rgba(0,229,255,0.07) !important;
    color: white !important;
    padding-left: 1.35rem;
}
#custom-dropdown-list li.bg-white\/10 {
    background: rgba(0,229,255,0.10) !important;
    color: var(--primary) !important;
    font-weight: 600;
    border-left: 2px solid var(--primary);
}

/* Header icon premium */
.header-icon {
    background: linear-gradient(135deg, rgba(0,229,255,0.12) 0%, rgba(138,43,226,0.10) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(12px);
}

/* Footer premium */
footer {
    background: rgba(255,255,255,0.015) !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(16px);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
#result.animate-in, #result-card.animate-in {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.result-positive {
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 0 30px -14px rgba(16, 185, 129, 0.4), 0 8px 24px -12px rgba(0,0,0,0.5) !important;
}
.result-negative {
    border-color: rgba(251, 113, 133, 0.18) !important;
    box-shadow: 0 0 30px -14px rgba(244, 63, 94, 0.22), 0 8px 24px -12px rgba(0,0,0,0.5) !important;
}
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.big-amount {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Subtle glow orbs – enhanced (PERF: statik katman, sürekli will-change yok) */
.ambient-orb {
    /* blur() Tailwind class'larından (blur-[80px] vb.) geliyor; burada ikinci kez uygulamayı kaldırdık (çift blur = 2x maliyet) */
    opacity: 0.45;
    mix-blend-mode: screen;
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: strict;
    pointer-events: none;
}

/* Scrollbar premium */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,229,255,0.35), rgba(138,43,226,0.25));
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0,229,255,0.5), rgba(138,43,226,0.4));
}
* { scrollbar-width: thin; scrollbar-color: rgba(0,229,255,0.22) rgba(255,255,255,0.02); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #result.animate-in, #result-card.animate-in, .big-amount, .live-dot, .live-dot::after, .country-card, .btn-light { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Utility: premium badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0,229,255,0.10), rgba(138,43,226,0.08));
    border: 1px solid rgba(0,229,255,0.16);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 16px rgba(0,229,255,0.12);
}

/* Odoxa / pollster attribution card */
.poll-attribution {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
}

/* Micro-interactions for all interactive */
a, button, select, input {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.22,1,0.36,1);
}
button:active, a:active { transform: scale(0.98); }

/* H1 two-tone: white + electric blue (#00E5FF) – same weight, subtle glow only */
h1 span.gradient-text {
    background: none;
    -webkit-text-fill-color: inherit;
}

/* Responsive breathing room */
@media (min-width: 640px) {
    .premium-pad { padding: 1.75rem !important; }
}

/* ==========================================================
   ULTRA-MODERN 2026 – Everywhere refinement
   Linear / Vercel inspired micro-details
   ========================================================== */
html {
    scrollbar-gutter: stable;
    text-rendering: optimizeLegibility;
}
body {
    font-feature-settings: "cv02","cv03","ss01","ss08";
    font-variant-ligatures: common-ligatures;
    letter-spacing: -0.011em;
}
h1, h2, h3 {
    text-wrap: balance;
    font-feature-settings: "ss01","cv02";
}
/* Modern top bar – sticky glass with subtle border */
.top-modern {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
/* Modern focus-visible for accessibility */
*:focus-visible {
    outline: 2px solid rgba(0,229,255,0.55);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Modern cards – ultra subtle inner highlight (PERF: kalıcı will-change 8 kartı GPU belleğinde tutar; sadece katman yeterli) */
.form-card-premium, .glass-card, .country-card {
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Modern input – 44px touch target, inner shadow */
.input-field, .select-field {
    min-height: 44px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
/* Modern poll row – slight scale on hover for depth */
#poll-bars-wrapper > div:hover {
    will-change: transform;
}
/* Modern stagger for country grid (PERF: filter:blur animasyonu her frame'de pahalı CPU blur'dur; sadece transform+opacity kullan) */
@keyframes modernFadeUp {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.country-card {
    animation: modernFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
    will-change: auto;
}
.country-card:nth-child(1){animation-delay:0.04s}
.country-card:nth-child(2){animation-delay:0.08s}
.country-card:nth-child(3){animation-delay:0.12s}
.country-card:nth-child(4){animation-delay:0.16s}
.country-card:nth-child(5){animation-delay:0.20s}
.country-card:nth-child(6){animation-delay:0.24s}
.country-card:nth-child(7){animation-delay:0.28s}
.country-card:nth-child(8){animation-delay:0.32s}

/* Modern result card – when JS injects #result-card */
#result-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 60px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04), 0 0 24px rgba(0,229,255,0.06) !important;
}
#result-card .big-amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
}
/* Modern badge pulse – more subtle */
.premium-badge, .live-badge {
    font-feature-settings: "tnum";
}
/* Modern footer links – kibar ve standart alt bilgi (footer) */
footer a {
    font-size: 14px; /* text-sm */
    font-weight: 400; /* font-normal */
    color: #9CA3AF; /* text-gray-400 - mat gri */
    transition: color 200ms ease; /* transition-colors duration-200 */
    position: relative;
    text-decoration: none;
}
footer a:hover {
    color: #E5E7EB; /* text-gray-200 - yumuşak vurgu */
}
/* Ensure utility classes can override when needed (e.g. text-[11px] nav) */
footer a.text-\[11px\] {
    font-size: 11px;
}
footer a.text-xs {
    font-size: 12px;
}
footer a::after {
    display: none;
}

/* Modern scrollbar – ultra thin 2026 */
::-webkit-scrollbar { width: 5px; height: 5px; }
* { scrollbar-width: thin; }

/* Modern selection */
::selection { background: rgba(0,229,255,0.22); color: white; }

/* ==========================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ========================================================== */

/* Reduce backdrop-blur on mobile for performance */
@media (max-width: 767px) {
    .backdrop-blur-2xl,
    .backdrop-blur-xl,
    .backdrop-blur-lg,
    .backdrop-blur-md,
    .backdrop-blur-sm {
        backdrop-filter: blur(4px) saturate(1.2) !important;
        -webkit-backdrop-filter: blur(4px) saturate(1.2) !important;
    }
    
    .backdrop-blur-none-mobile {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* iOS Safari scroll flicker: kaydırırken yok olan form kartının
       backdrop blur'u mobilde tamamen kapat (test/onaylı fix).
       Desktop'a dokunulmaz; mobilde opak gradient aynı durur. */
    .form-card-premium {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: linear-gradient(135deg, #14161b 0%, #101216 100%) !important;
    }
}

/* Force GPU acceleration for main elements */
.transform-gpu {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Optimize touch scrolling */
.touch-pan-y {
    touch-action: pan-y;
}

/* Progress bar optimization */
.progress-bar-optimized {
    will-change: transform, width;
    transition-property: transform, width;
}

/* ==========================================================
   MOBILE POLL BARS – Responsive layout fix
   On mobile (<640px): stack % + trend above bar, reduce fixed widths
   ========================================================== */
@media (max-width: 639px) {
    /* Row: allow wrapping, reduce party name min-width */
    #poll-bars-wrapper > div {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding-right: 12px !important;
    }
    /* Party name: flexible, not fixed 128px */
    #poll-bars-wrapper > div > span:first-child {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }
    /* Right wrapper (% + trend + bar): full width on new line */
    #poll-bars-wrapper > div > .flex.items-center.gap-4.justify-end {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 100% !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding-top: 4px !important;
    }
    /* % text: smaller, flexible */
    #poll-bars-wrapper [id^="text-"] {
        width: auto !important;
        min-width: 40px !important;
        max-width: 60px !important;
        flex: 0 0 auto !important;
        font-size: 0.75rem !important;
    }
    /* Trend: smaller, flexible */
    #poll-bars-wrapper [id^="trend-"] {
        width: auto !important;
        min-width: 50px !important;
        max-width: 80px !important;
        flex: 0 0 auto !important;
        font-size: 0.65rem !important;
    }
    /* Bar track: full remaining width */
    #poll-bars-wrapper [role="progressbar"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        margin-top: 6px !important;
    }
    /* Bar fill: inline style from JS wins (no !important here) */
    #poll-bars-wrapper [role="progressbar"] > div[id^="bar-"] {
        width: 0%;
    }
}

/* === CURSOR KESİN ÇÖZÜM: Wrapper + space-between + w-12 (48px) h-1.5 (6px) + pr-6 === */
html body main #poll-bars-wrapper > div {
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important; /* 16px */
    padding-right: 24px !important; /* pr-6 – sağ duvara yapışmayı engelle */
}
html body main #poll-bars-wrapper > div > .flex.items-center.gap-4.justify-end {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}
html body main #poll-bars-wrapper [role="progressbar"] {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    margin-left: 0 !important;
    background: rgba(255,255,255,0.08) !important;
    background-color: rgba(255,255,255,0.08) !important;
    border-radius: 9999px !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
}
html body main #poll-bars-wrapper [role="progressbar"] > div[id^="bar-"] {
    background-image: none !important;
    opacity: 1 !important;
}
/* === TOP BAR KESİN DÜZELTME — flex center gap-24 wrap, dot inline-flex gap-8, JPY/PREMIUM ayrımı === */
.top-modern > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}
.top-modern .inline-flex {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.top-modern [style*="position: absolute"],
.top-modern .absolute {
    position: static !important;
    float: none !important;
}
.top-modern .font-mono {
    letter-spacing: 0.05em !important;
    font-size: 14px !important;
}
@media (min-width: 768px) {
    .top-modern .font-mono {
        font-size: 15px !important;
    }
}

/* ==========================================================
   SEO FAQ ACCORDION (evergreen <details>/<summary>)
   Dark theme, no JS needed, crawler friendly
   ========================================================== */
.seo-faq-section details {
    background-color: #16181c;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 15px;
    border: 1px solid #2a2d35;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.seo-faq-section details:hover {
    border-color: rgba(0, 229, 255, 0.35);
}
.seo-faq-section details[open] {
    border-color: rgba(0, 229, 255, 0.35);
}
.seo-faq-section summary {
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    outline: none;
    cursor: pointer;
}
.seo-faq-section summary::-webkit-details-marker {
    display: none;
}
.seo-faq-section summary::after {
    content: '+';
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 400;
    color: #00E5FF;
    flex-shrink: 0;
}
.seo-faq-section details[open] summary::after {
    content: '–';
}
.seo-faq-section details p {
    margin-top: 10px;
    color: #a0a5b1;
    font-size: 0.85rem;
    line-height: 1.5;
}
.seo-faq-section details strong {
    color: #e2e8f0;
}

/* ==========================================================
   INDEX PERF MODE (2. tur) – sadece ana sayfa
   Sorun: 7x backdrop-blur kart + fixed blur orb'lar + mix-blend
   + body grid'i üst üste binince her scroll frame'inde devasa
   yeniden boyama oluyordu. Bu blok görünümü ~%95 koruyup
   pahalı katmanları index'te kapatır. Diğer sayfalara dokunmaz.
   ========================================================== */

/* 1) Body: 5 katmanlı arka plan (3 radial + 2 grid) -> tek radial + düz renk */
body.page-index {
    background-image:
        radial-gradient(ellipse 800px 400px at 50% -80px, rgba(0,229,255,0.07), transparent 60%);
    background-color: #0A0A0B;
}
/* 2) Fixed SVG doku overlay'i index'te kapat (fixed + repeat = scroll'da repaint) */
body.page-index::before {
    display: none;
    content: none;
}

/* 3) Kartlardaki backdrop-blur'u index'te tamamen kapat.
   Koyu zeminde blur zaten neredeyse görünmez; opak gradient aynı durur. */
body.page-index .country-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, #14161b 0%, #101216 100%);
}
/* Hover'daki glow'lu gölgeyi sadeleştir (3 katmanlı glow -> tek, ucuz) */
body.page-index .country-card:hover {
    box-shadow: 0 16px 32px -16px rgba(0,0,0,0.7);
}

/* 4) Orb'lardaki mix-blend-mode: screen'i kaldır.
   Blend, her frame'de devasa alanı yeniden karıştırır (en pahalı işlemlerden). */
body.page-index .ambient-orb {
    mix-blend-mode: normal;
}

/* 5) Header rozetlerindeki backdrop-blur'ları kapat (4 ek blur katmanıydı) */
body.page-index [class*="backdrop-blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 6) 7x sonsuz halo (livePing ::after) -> kapat, sadece nokta nabzı kalsın.
   Animasyon sayısı 14 -> 7'ye iner, overdraw yarıya düşer. */
body.page-index .live-dot::after {
    display: none;
    animation: none;
}

/* 7) Dokunmatik cihazda sticky-hover jank'ini bitir */
@media (hover: none) {
    .country-card:hover {
        transform: none;
        box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    }
    .country-card:hover::after {
        transform: translateX(-100%);
    }
    .country-card:hover img {
        transform: none;
    }
}

/* ==========================================================
   RESULT PERF MODE – tüm ülke sayfaları (Hesapla takılması)
   Sorun: Hesapla'ya basınca aynı frame'de 2-3 yeni
   backdrop-blur(24px) katmanı (result-card + payslip/kassenzettel
   + state-comparison) DOM'a enjekte ediliyordu. Tarayıcı arkadaki
   tüm koyu tonları ilk paint'te yeniden hesaplayıp "tak" yapıyordu.
   Üstüne smooth scroll her frame'de blur'u yeniden boyatıyordu.
   Çözüm (index'tekiyle aynı): sonuç katmanlarında blur'u kapat,
   yerine opak gradient koy, GPU'ya izole et. Görsel fark ~yok,
   ilk paint maliyeti 2-3x azalır.
   Animasyonlara dokunulmadı: fadeUp (opacity+translateY) ve
   popIn (scale) zaten kompozitör-dostu, ucuz.
   ========================================================== */
#result-card,
#payslip,
#kassenzettel,
#state-comparison > div {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* blur'suz aynı koyu görünüm: opak gradient (page-index kartlarıyla aynı ton) */
    background: linear-gradient(135deg, #14161b 0%, #101216 100%) !important;
    /* Kendi GPU katmanı + taşma izolasyonu: ilk paint'te tek sefer raster */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
    /* Sadece opaklık animasyonu izlensin, kalıcı will-change yok */
    will-change: opacity;
}
#result.animate-in {
    will-change: opacity;
}

/* ==========================================================
   SCROLL FLICKER FIX – mobilde kaydırırken kutuların saniyelik
   kaybolup gelmesi (fixed ambient arka plan vs içerik katman
   çakışması). GPU kilidi zaten vardı (translateZ + backface,
   style.css:927-933 ve 1297-1310); burada eksik olan 2 şey
   kapatılıyor: katman sırası (z-index) ve taşma izolasyonu.
   100vh sorunu YOK: codebase'de hiç 100vh yok, tüm body'ler
   zaten min-h-dvh kullanıyor. contain:paint yerine daha güçlü
   `layout style paint` kullanıldı (paint'i kapsar).
   ========================================================== */
main {
    position: relative;
    z-index: 1;
}
.form-card-premium {
    contain: layout style paint;
    isolation: isolate;
}
#result,
#result-card {
    position: relative;
    z-index: 1;
}
