/* ==========================================================================
   P-IPTV PLAYER — pmedyaplayer.org
   theme.css · Ortak tasarım sistemi
   Palet doğrudan uygulamanın güncel arayüzünden alınmıştır:
   res/values/colors.xml + res/drawable/main_menu_bg.xml + gradient_*.xml
   ========================================================================== */

/* ---------- 1. Tokenlar --------------------------------------------------- */
:root {
    /* Zemin — main_menu_bg.xml (270°: #041326 → #061E3A → #030C1B) */
    --ink-950: #020913;
    --ink-900: #030c1b;
    --ink-850: #041326;
    --ink-800: #061e3a;
    --ink-700: #0a2a4e;

    /* Cam yüzeyler — surface_glass #0A121E + beyaz alfa katmanları */
    --glass: rgba(10, 18, 30, 0.72);
    --glass-2: rgba(10, 18, 30, 0.86);
    --lift-1: rgba(255, 255, 255, 0.06);
    --lift-2: rgba(255, 255, 255, 0.10);
    --lift-3: rgba(255, 255, 255, 0.16);

    /* Kenarlıklar — border_glass ailesi */
    --stroke: rgba(255, 255, 255, 0.12);
    --stroke-2: rgba(255, 255, 255, 0.18);
    --stroke-3: rgba(255, 255, 255, 0.28);

    /* Vurgu — accent_gold #FFD400 / focus_glow */
    --gold: #ffd400;
    --gold-2: #ffb800;
    --gold-soft: rgba(255, 212, 0, 0.16);
    --gold-line: rgba(255, 212, 0, 0.42);
    --gold-glow: rgba(255, 212, 0, 0.34);

    /* Kategori gradyanları — gradient_blue / _purple / _green(kırmızı) */
    --live-1: #ff6d75;
    --live-2: #e33242;
    --movie-1: #64b5ff;
    --movie-2: #1f70d8;
    --series-1: #c477ff;
    --series-2: #7428d9;

    /* Durum */
    --ok: #20d06c;
    --warn: #ffb84d;
    --bad: #ff5a5a;

    /* Marka mavisi — logodan */
    --brand: #2163e4;
    --brand-2: #4d8dff;

    /* Metin — text_primary / _secondary / _tertiary */
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.72);
    --text-3: rgba(255, 255, 255, 0.52);
    --text-4: rgba(255, 255, 255, 0.36);

    /* Gradyanlar */
    --grad-gold: linear-gradient(135deg, #ffd400 0%, #ffb800 100%);
    --grad-blue: linear-gradient(135deg, #64b5ff 0%, #1f70d8 100%);
    --grad-panel: linear-gradient(158deg, rgba(255, 255, 255, 0.07) 0%, rgba(10, 18, 30, 0.62) 58%);
    --grad-title: linear-gradient(100deg, #ffffff 0%, #cfe4ff 46%, #8fbaff 100%);
    --grad-gold-title: linear-gradient(100deg, #fff6c9 0%, #ffd400 55%, #ffb800 100%);

    /* Gölge */
    --sh-sm: 0 4px 16px rgba(0, 3, 10, 0.45);
    --sh-md: 0 18px 48px rgba(0, 3, 10, 0.6);
    --sh-lg: 0 36px 92px rgba(0, 3, 10, 0.72);
    --sh-gold: 0 16px 44px rgba(255, 184, 0, 0.28);

    /* Ölçü */
    --r-xs: 10px;
    --r-sm: 14px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 999px;

    --shell: 1240px;
    --header-h: 74px;

    /* Hareket */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 0.18s;
    --t: 0.34s;
    --t-slow: 0.7s;
}

/* ---------- 2. Temel ------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    min-height: 100dvh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink-950);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: #241c00;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

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

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 99px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------- 3. Hareketli arka plan --------------------------------------- */
/* Uygulamanın main_menu_bg.xml katmanlarının web karşılığı */
.bg-stack {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 16% -8%, rgba(57, 108, 165, 0.34), transparent 60%),
        radial-gradient(940px 620px at 86% 6%, rgba(18, 44, 93, 0.5), transparent 62%),
        radial-gradient(1200px 820px at 50% 106%, rgba(8, 42, 78, 0.42), transparent 64%),
        linear-gradient(190deg, var(--ink-850) 0%, var(--ink-800) 42%, var(--ink-900) 100%);
}

.bg-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    will-change: transform;
    mix-blend-mode: screen;
}

.bg-aura.a1 {
    top: -18vmax;
    left: -12vmax;
    width: 58vmax;
    height: 58vmax;
    background: radial-gradient(circle, rgba(57, 108, 165, 0.55), transparent 66%);
    animation: auraA 32s var(--ease-io) infinite;
}

.bg-aura.a2 {
    bottom: -24vmax;
    right: -16vmax;
    width: 62vmax;
    height: 62vmax;
    background: radial-gradient(circle, rgba(116, 40, 217, 0.3), transparent 66%);
    animation: auraB 42s var(--ease-io) infinite;
}

.bg-aura.a3 {
    top: 34%;
    left: 44%;
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, rgba(255, 212, 0, 0.1), transparent 64%);
    animation: auraC 54s var(--ease-io) infinite;
}

@keyframes auraA {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(8vw, 6vh, 0) scale(1.18);
    }
}

@keyframes auraB {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1.1);
    }

    50% {
        transform: translate3d(-7vw, -6vh, 0) scale(1);
    }
}

@keyframes auraC {

    0%,
    100% {
        transform: translate3d(-50%, -50%, 0) scale(1);
    }

    33% {
        transform: translate3d(-64%, -36%, 0) scale(1.24);
    }

    66% {
        transform: translate3d(-36%, -62%, 0) scale(0.86);
    }
}

.bg-grid {
    position: absolute;
    inset: -70px;
    background-image:
        linear-gradient(rgba(120, 175, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 175, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 92% 72% at 50% 28%, #000 18%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 92% 72% at 50% 28%, #000 18%, transparent 76%);
    animation: gridPan 28s linear infinite;
}

@keyframes gridPan {
    to {
        transform: translate3d(64px, 64px, 0);
    }
}

.bg-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 4px);
}

.bg-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    bottom: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px 2px var(--gold-glow);
    opacity: 0;
    animation: particleRise linear infinite;
}

.particle.blue {
    background: var(--brand-2);
    box-shadow: 0 0 12px 2px rgba(77, 141, 255, 0.4);
}

@keyframes particleRise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.6);
        opacity: 0;
    }

    12% {
        opacity: 0.8;
    }

    86% {
        opacity: 0.45;
    }

    100% {
        transform: translate3d(var(--drift, 30px), -104vh, 0) scale(1.3);
        opacity: 0;
    }
}

/* ---------- 4. Yerleşim --------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 40px);
}

.shell-narrow {
    max-width: 960px;
}

.stack {
    display: grid;
    gap: 18px;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 5. Tipografi -------------------------------------------------- */
h1,
h2,
h3,
h4 {
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.85rem);
}

h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.45rem);
}

h3 {
    font-size: clamp(1.03rem, 1.9vw, 1.24rem);
}

p {
    color: var(--text-2);
}

.lead {
    font-size: clamp(1rem, 1.7vw, 1.14rem);
    color: var(--text-2);
    max-width: 62ch;
}

.grad-text {
    background: var(--grad-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gold-text {
    background: var(--grad-gold-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    flex: none;
    border-radius: 2px;
    background: var(--grad-gold);
}

.eyebrow svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.muted {
    color: var(--text-3);
}

.tiny {
    font-size: 0.78rem;
}

.section {
    padding: clamp(56px, 9vw, 108px) 0;
}

.section-head {
    display: grid;
    gap: 12px;
    margin-bottom: clamp(28px, 4vw, 48px);
    max-width: 730px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

/* ---------- 6. Panel / kart ----------------------------------------------- */
.panel {
    position: relative;
    background: var(--grad-panel);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--sh-md);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.panel-pad {
    padding: clamp(18px, 3vw, 30px);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 17px clamp(18px, 3vw, 26px);
    border-bottom: 1px solid var(--stroke);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.panel-title svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.panel-body {
    padding: clamp(18px, 3vw, 26px);
}

.card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-md);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t), background var(--t);
}

.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--gold-line), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(10, 18, 30, 0.82);
    box-shadow: var(--sh-lg);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    margin-bottom: 7px;
}

.card p {
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--text-3);
}

/* İkon kutusu */
.icon-box {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: var(--r-sm);
    background: var(--lift-1);
    border: 1px solid var(--stroke);
    color: var(--gold);
}

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

.icon-box.blue {
    color: var(--movie-1);
    background: rgba(100, 181, 255, 0.12);
    border-color: rgba(100, 181, 255, 0.28);
}

.icon-box.purple {
    color: var(--series-1);
    background: rgba(196, 119, 255, 0.12);
    border-color: rgba(196, 119, 255, 0.28);
}

.icon-box.red {
    color: var(--live-1);
    background: rgba(255, 109, 117, 0.12);
    border-color: rgba(255, 109, 117, 0.28);
}

.icon-box.green {
    color: var(--ok);
    background: rgba(32, 208, 108, 0.12);
    border-color: rgba(32, 208, 108, 0.28);
}

/* ---------- 7. Butonlar --------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    flex: none;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t), background var(--t), border-color var(--t), opacity var(--t), color var(--t);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

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

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.65s var(--ease);
    pointer-events: none;
}

.btn:hover::after {
    left: 130%;
}

.btn-gold {
    background: var(--grad-gold);
    color: #221a00;
    box-shadow: var(--sh-gold);
}

.btn-gold:hover {
    box-shadow: 0 22px 56px rgba(255, 184, 0, 0.4);
}

.btn-blue {
    background: var(--grad-blue);
    color: #fff;
    box-shadow: 0 16px 44px rgba(31, 112, 216, 0.34);
}

.btn-ghost {
    background: var(--lift-1);
    border-color: var(--stroke-2);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--lift-2);
    border-color: var(--gold-line);
}

.btn-quiet {
    background: transparent;
    border-color: var(--stroke);
    color: var(--text-2);
}

.btn-quiet:hover {
    color: var(--text);
    border-color: var(--stroke-3);
}

.btn-danger {
    background: rgba(255, 90, 90, 0.12);
    border-color: rgba(255, 90, 90, 0.3);
    color: #ff9c9c;
}

.btn-danger:hover {
    background: rgba(255, 90, 90, 0.2);
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.83rem;
    border-radius: var(--r-xs);
}

.btn-icon {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--r-xs);
}

.btn-icon.btn-sm {
    width: 38px;
    min-height: 38px;
}

.btn-block {
    width: 100%;
}

/* Mağaza butonu */
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 0 22px;
    border-radius: var(--r-md);
    background: var(--glass-2);
    border: 1px solid var(--stroke-2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t);
}

.btn-store:hover {
    transform: translateY(-3px);
    border-color: var(--gold-line);
    box-shadow: var(--sh-md);
}

.btn-store svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.btn-store .st {
    display: grid;
    line-height: 1.22;
    text-align: left;
}

.btn-store .st small {
    font-size: 0.65rem;
    color: var(--text-3);
    letter-spacing: 0.05em;
}

.btn-store .st strong {
    font-size: 0.97rem;
    font-weight: 600;
}

/* ---------- 8. Form ------------------------------------------------------- */
.field {
    display: grid;
    gap: 7px;
}

.field > label,
.label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.input,
.select,
textarea.input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--stroke-2);
    border-radius: var(--r-sm);
    background: rgba(3, 10, 22, 0.7);
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.input::placeholder {
    color: var(--text-4);
}

.input:hover,
.select:hover {
    border-color: var(--stroke-3);
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(3, 10, 22, 0.9);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.input.mono {
    font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
}

.input[aria-invalid='true'] {
    border-color: var(--bad);
    box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.12);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 17px;
    cursor: pointer;
}

.select option {
    background: #0a1524;
    color: var(--text);
}

.hint {
    font-size: 0.78rem;
    color: var(--text-3);
    line-height: 1.5;
}

/* Segment anahtarı */
.segment {
    position: relative;
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: var(--r-sm);
    background: rgba(3, 10, 22, 0.7);
    border: 1px solid var(--stroke);
}

.segment button {
    position: relative;
    z-index: 1;
    min-height: 38px;
    padding: 0 20px;
    border-radius: var(--r-xs);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-3);
    transition: color var(--t-fast);
}

.segment button.active {
    color: #221a00;
}

.seg-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: var(--r-xs);
    background: var(--grad-gold);
    box-shadow: 0 6px 18px rgba(255, 184, 0, 0.3);
    transition: transform var(--t) var(--ease), width var(--t) var(--ease);
    pointer-events: none;
}

/* ---------- 9. Rozet / uyarı ---------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--r-full);
    background: var(--lift-1);
    border: 1px solid var(--stroke);
    font-size: 0.77rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-2);
}

.chip svg {
    width: 14px;
    height: 14px;
}

.chip-gold {
    background: var(--gold-soft);
    border-color: var(--gold-line);
    color: #ffe480;
}

.chip-green {
    background: rgba(32, 208, 108, 0.12);
    border-color: rgba(32, 208, 108, 0.32);
    color: #6ff0ac;
}

.chip-blue {
    background: rgba(100, 181, 255, 0.12);
    border-color: rgba(100, 181, 255, 0.32);
    color: #a8d4ff;
}

.badge-beta {
    padding: 2px 8px;
    border-radius: 6px;
    background: #ffcc00;
    color: #241c00;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(32, 208, 108, 0.6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    70% {
        box-shadow: 0 0 0 8px rgba(32, 208, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 208, 108, 0);
    }
}

.notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke-2);
    background: var(--lift-1);
    font-size: 0.87rem;
    line-height: 1.55;
    color: var(--text-2);
}

.notice svg {
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: 1px;
    color: var(--gold);
}

.notice-ok {
    background: rgba(32, 208, 108, 0.09);
    border-color: rgba(32, 208, 108, 0.3);
    color: #a5f3ca;
}

.notice-ok svg {
    color: var(--ok);
}

.notice-err {
    background: rgba(255, 90, 90, 0.09);
    border-color: rgba(255, 90, 90, 0.3);
    color: #ffc4c4;
}

.notice-err svg {
    color: var(--bad);
}

/* ---------- 10. Başlık ---------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}

.site-header.stuck {
    background: rgba(3, 10, 22, 0.82);
    border-bottom-color: var(--stroke);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.site-header .shell {
    max-width: 1440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 6px 20px rgba(33, 99, 228, 0.5);
}

.brand-name {
    display: grid;
    line-height: 1.12;
}

.brand-name b {
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-name span {
    font-size: 0.61rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav a {
    position: relative;
    padding: 9px 11px;
    border-radius: var(--r-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--t-fast);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.lang-select {
    flex: none;
    width: auto;
    min-height: 40px;
    padding: 0 32px 0 12px;
    font-size: 0.8rem;
    border-radius: var(--r-xs);
    background-color: var(--lift-1);
    border: 1px solid var(--stroke);
}

.burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--r-xs);
    border: 1px solid var(--stroke);
    background: var(--lift-1);
}

.burger span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--t) var(--ease), opacity var(--t);
}

.burger span:nth-child(1) {
    top: 16px;
}

.burger span:nth-child(2) {
    top: 21px;
}

.burger span:nth-child(3) {
    top: 26px;
}

.burger.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1020px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px clamp(18px, 4vw, 40px) 22px;
        background: rgba(3, 10, 22, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--stroke);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--t) var(--ease), opacity var(--t), visibility var(--t);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        padding: 13px 12px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav a::after {
        display: none;
    }
}

/* Dar ekranlarda başlıktaki ikincil buton gizlenir */
@media (max-width: 1200px) {
    .hide-sm {
        display: none !important;
    }
}

/* Çok dar ekranlarda başlık sıkışmasın */
@media (max-width: 560px) {
    :root {
        --header-h: 66px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .brand-name span {
        display: none;
    }

    .brand-name b {
        font-size: 0.86rem;
    }

    .header-actions {
        gap: 7px;
    }

    .lang-select {
        padding: 0 28px 0 10px;
        font-size: 0.75rem;
        background-position: right 9px center;
        background-size: 15px;
    }

    /* Metni gizle, yalnızca ikon kalsın */
    .btn.compact-sm span {
        display: none;
    }

    .btn.compact-sm {
        width: 40px;
        padding: 0;
    }
}

/* ---------- 11. Alt bilgi ------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: 60px;
    padding: 54px 0 32px;
    border-top: 1px solid var(--stroke);
    background: linear-gradient(180deg, transparent, rgba(2, 9, 19, 0.9));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 34px;
}

.footer-col h4 {
    font-size: 0.73rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.87rem;
    color: var(--text-2);
    transition: color var(--t-fast), transform var(--t-fast);
}

.footer-col a:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--stroke);
    font-size: 0.79rem;
    color: var(--text-3);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 12. Kaydırma animasyonları ------------------------------------ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.78s var(--ease), transform 0.78s var(--ease), filter 0.78s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}

[data-reveal='left'] {
    transform: translateX(-34px);
}

[data-reveal='right'] {
    transform: translateX(34px);
}

[data-reveal='scale'] {
    transform: scale(0.93);
}

[data-reveal='blur'] {
    filter: blur(12px);
    transform: translateY(18px);
}

.revealed[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    62% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.anim-up {
    animation: fadeUp 0.85s var(--ease) both;
}

.anim-in {
    animation: fadeIn 0.9s var(--ease) both;
}

.anim-pop {
    animation: popIn 0.62s var(--ease) both;
}

.d1 {
    animation-delay: 0.1s;
}

.d2 {
    animation-delay: 0.2s;
}

.d3 {
    animation-delay: 0.32s;
}

.d4 {
    animation-delay: 0.44s;
}

.d5 {
    animation-delay: 0.56s;
}

.d6 {
    animation-delay: 0.68s;
}

/* Sayfa geçiş perdesi */
.page-veil {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ink-950);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.page-veil.on {
    opacity: 1;
    pointer-events: all;
}

/* Açılış ekranı */
.boot {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 22px;
    background: var(--ink-900);
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.boot.done {
    opacity: 0;
    visibility: hidden;
}

.boot img {
    width: 66px;
    height: 66px;
    border-radius: 19px;
    animation: bootPulse 1.7s var(--ease-io) infinite;
}

@keyframes bootPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 99, 228, 0.5);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 0 44px 8px rgba(33, 99, 228, 0.42);
    }
}

.boot-bar {
    width: 166px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.boot-bar i {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 3px;
    background: var(--grad-gold);
    animation: bootSlide 1.1s var(--ease-io) infinite;
}

@keyframes bootSlide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(320%);
    }
}

/* ---------- 13. Yardımcılar ----------------------------------------------- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--stroke-2), transparent);
    margin: 26px 0;
}

.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 18px;
}

.mt-3 {
    margin-top: 28px;
}

.mt-4 {
    margin-top: 42px;
}

.center {
    text-align: center;
}

code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: #ffe480;
}

pre {
    padding: 17px 19px;
    border-radius: var(--r-sm);
    background: rgba(2, 8, 18, 0.85);
    border: 1px solid var(--stroke);
    overflow-x: auto;
    font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #c7d9f5;
}

pre code {
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
}

/* ---------- 14. Erişilebilirlik ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
