/* =====================================================================
   DonutDeal — "Fırın" tasarım sistemi (ortak bileşenler)
   Krem hamur zemin, lacivert kontur (DonutSMP donutu), mavi glazür, çilek vurgu.
   Çıkartma (sticker) gibi kalın konturlu, sert gölgeli, yuvarlak şekiller.
   Sayfaya özel stiller: home.css, market.css, redeem.css.
   ===================================================================== */

:root {
    --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* Hamur ve lacivert kontur */
    --cream: #fff4e6;
    --cream-2: #ffe9d1;
    --cream-3: #fbd9b4;
    --paper: #fffaf3;
    --ink: #060a28;
    --ink-2: #41466a;
    --ink-3: #686d89;
    --line: #efd9c3;

    /* Glazür ve serpme */
    --berry: #ff4f86;
    --berry-dk: #d92f68;
    --berry-lt: #ffd9e6;
    --choco: #5b3426;
    --caramel: #f5a945;
    --caramel-lt: #ffe7c2;
    --mint: #23b98d;
    --mint-dk: #13865f;
    --mint-lt: #d3f5e8;
    --lemon: #ffd23f;
    --lemon-lt: #fff3c4;
    --blue: #5b8cff;
    --blue-lt: #dfe8ff;
    --lilac: #a07cff;
    --red: #e5484d;
    --red-lt: #ffe0e0;

    --money: #13865f;
    --edge: 2.5px solid var(--ink);
    --pop: 4px 4px 0 var(--ink);
    --pop-lg: 6px 6px 0 var(--ink);
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;

    /* Temaya göre değişenler: --ink kontur/gölge, --text yazı */
    --text: #060a28;
    --on-ink: #fff4e6;              /* koyu (--ink) zemin üstündeki yazı */
    --field: #fff;                  /* giriş alanı, kâğıt, satır */
    --glass: rgba(255, 255, 255, .5);
    --placeholder: #a3a7bf;
    --oven-hot: #fff1e0;
    --stripe-2: #fff8d8;
    --lilac-lt: #f1eaff;
    --caramel-dk: #9a5a00;
    --plate-mix: #fff;
    --plate-amt: 38%;
    --case-1: rgba(255, 255, 255, .85);
    --case-2: rgba(255, 250, 243, .6);
    --case-shine: rgba(255, 255, 255, .55);
    --steam: rgba(65, 70, 106, .42);
    color-scheme: light;
}

/* Koyu tema: gece fırını. Zemin DonutSMP laciverti, konturlar siyaha yakın */
:root[data-theme="dark"] {
    --cream: #0b1033;
    --cream-2: #19215b;
    --cream-3: #27317a;
    --paper: #121944;
    --ink: #01030f;
    --ink-2: #c3c7e6;
    --ink-3: #9196c2;
    --line: #252e6a;
    --text: #fff2e3;
    --field: #0d1338;
    --glass: rgba(255, 255, 255, .04);
    --placeholder: #6d73a6;
    --oven-hot: #3b1b13;
    --stripe-2: #2c2711;

    --berry-dk: #ff78a8;
    --berry-lt: #4a1840;
    --caramel-lt: #3e2a12;
    --caramel-dk: #ffb45c;
    --mint-dk: #48e0aa;
    --mint-lt: #0f3a2f;
    --lemon-lt: #3b3313;
    --blue-lt: #172764;
    --lilac-lt: #2a1d5c;
    --red-lt: #44141e;
    --money: #48e0aa;
    --plate-mix: #121944;
    --plate-amt: 34%;
    --case-1: rgba(32, 41, 104, .9);
    --case-2: rgba(18, 25, 68, .7);
    --case-shine: rgba(255, 255, 255, .07);
    --steam: rgba(255, 255, 255, .5);
    color-scheme: dark;
}

/* --- Temel ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: var(--font);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.55;
    background: url(/img/sprinkles.svg) 0 0 / 240px 240px, var(--cream);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.px { image-rendering: pixelated; }
.small { font-size: 13px; }
.muted { color: var(--ink-2); }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

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

/* --- Üst bar ve tente --------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: var(--edge);
}
/* Dükkân tentesi: çilek / krema dilimler */
.topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
    margin-top: -1px;
    background: url(/img/awning.svg) 0 0 / 56px 22px repeat-x;
    pointer-events: none;
}
.topbar .wrap {
    /* Ust bar sayfadan biraz genis: menu + dukkan dugmeleri tek satira sigsin */
    max-width: 1320px;
    display: flex;
    align-items: center;
    gap: 8px 18px;
    min-height: 70px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 27px;
    letter-spacing: -.3px;
    color: var(--text);
    white-space: nowrap;
}
.brand img { width: 48px; height: 48px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.brand b { font-weight: 700; color: var(--berry); }
.brand.sm { font-size: 22px; gap: 8px; }
.brand.sm img { width: 38px; height: 38px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
}
.nav-link img { width: 20px; height: 20px; image-rendering: pixelated; }
.nav-link:hover { color: var(--text); background: var(--cream-2); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--berry-lt); border-color: var(--ink); }
.nav-link .chip.soon { padding: 2px 7px; font-size: 10px; }

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

/* Fırın tabelası: bot çalışıyorsa "sıcak" yanar */
.oven {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 9px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--cream-2);
    font-family: var(--display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
    white-space: nowrap;
}
.oven-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); border: 2px solid var(--ink); flex: none; }
.oven.hot { background: var(--oven-hot); color: var(--text); }
.oven.hot .oven-dot { background: #ff6a3d; box-shadow: 0 0 0 4px rgba(255, 106, 61, .25), 0 0 14px #ff6a3d; animation: glow 1.8s ease-in-out infinite; }
.oven.warm .oven-dot { background: var(--caramel); }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(255, 106, 61, .12), 0 0 22px #ff6a3d; } }

.cart-btn { position: relative; padding-left: 12px; padding-right: 12px; }
.cart-btn img { width: 26px; height: 26px; }
.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: var(--ink);
    background: var(--lemon);
    border: 2px solid var(--ink);
    border-radius: 999px;
}
.cart-count.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { transform: scale(1.35) rotate(-8deg); } }

.lang { display: flex; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.lang .btn { min-height: 30px; padding: 3px 10px; font-size: 13px; border: 0; box-shadow: none; background: transparent; }
.lang .btn:hover { transform: none; box-shadow: none; }
.lang .btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* --- Butonlar ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 22px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.1;
    text-decoration: none;
    color: var(--text);
    background: var(--paper);
    border: var(--edge);
    border-radius: 999px;
    box-shadow: 0 4px 0 var(--ink);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform .12s, box-shadow .12s, background-color .12s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled,
.btn.disabled {
    cursor: default;
    color: var(--ink-3);
    background: var(--cream-2);
    border-color: var(--ink-3);
    box-shadow: none;
    transform: none;
}
.btn.primary { background: var(--berry); color: var(--ink); }
.btn.primary:hover { background-color: #ff6496; }
.btn.ok { background: var(--mint); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.primary:disabled, .btn.ok:disabled { background: var(--cream-2); }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 56px; padding: 12px 28px; font-size: 19px; }
.btn.sm { min-height: 40px; padding: 6px 15px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn.sm:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(2px); }
.btn.xs { min-height: 30px; padding: 3px 11px; font-size: 13px; gap: 6px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.btn.xs:active { box-shadow: none; transform: translateY(2px); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--cream-2); transform: none; }
.btn img { width: 22px; height: 22px; image-rendering: pixelated; }
.btn .ext { font-size: .85em; opacity: .8; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy > * { visibility: hidden; }
.btn.busy::after {
    content: '';
    position: absolute;
    left: calc(50% - 11px);
    top: calc(50% - 11px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 6px solid var(--spin-c, var(--text));
    border-top-color: transparent;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: grid; gap: 12px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.panel > .actions { margin-top: 22px; }

/* --- Panel, tabak (slot), adım çubuğu ------------------------------------ */
.panel {
    position: relative;
    background: var(--paper);
    color: var(--text);
    border: var(--edge);
    border-radius: var(--r-lg);
    box-shadow: var(--pop-lg);
    padding: 26px;
}
.panel h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 16px 0 16px;
}
.panel h2:first-child { margin-top: 0; }
.panel .muted { color: var(--ink-2); }

/* Ürün ikonu tabağı (eski "slot" adı korunur) */
.slot {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--cream-2);
    border: 2px solid var(--ink);
    border-radius: 16px;
    flex: none;
}
.slot > img { width: 62%; height: 62%; image-rendering: pixelated; }
.slot > svg.donut { width: 92%; height: 92%; }
.slot .count {
    position: absolute;
    right: -8px;
    bottom: -8px;
    padding: 1px 6px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink);
    background: var(--lemon);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.xp { display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 8px; margin-bottom: 20px; }
.xp span {
    height: 12px;
    border-radius: 999px;
    background: var(--cream-2);
    border: 2px solid var(--ink);
    transition: background-color .3s;
}
.xp span.on { background: var(--berry); }

/* --- Form -------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label, .label {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 6px;
}
.input {
    display: block;
    width: 100%;
    background: var(--field);
    color: var(--text);
    border: 2px solid var(--ink);
    border-radius: 14px;
    outline: none;
    padding: 12px 14px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    box-shadow: inset 0 3px 0 rgba(6, 10, 40, .06);
    transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: var(--placeholder); font-weight: 500; }
.input:hover { border-color: var(--ink-2); }
.input:focus { border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-lt); }
.input.code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.input.wrong { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-lt); }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 104px; }
.input-wrap .chip { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.hint { font-size: 14px; color: var(--ink-2); margin-top: 7px; }
.hint code, .note code, .alert code, .faq code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: .9em;
    color: var(--text);
    background: var(--cream-2);
    border: 1.5px solid var(--ink-3);
    border-radius: 6px;
    padding: 0 5px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; margin-bottom: 10px; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--berry); flex: none; }
.turnstile-box { margin: 0 0 16px; }
.turnstile-box:empty { display: none; }

/* Adet seçici */
.qty { display: inline-grid; grid-template-columns: 44px 62px 44px; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: var(--field); overflow: hidden; }
.qty .btn { min-height: 40px; padding: 0; font-size: 22px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.qty .btn:hover { background: var(--cream-2); transform: none; }
.qty .btn:active { transform: none; background: var(--cream-3); }
.qty .input { text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 6px 2px; border: 0; border-radius: 0; box-shadow: none; -moz-appearance: textfield; }
.qty .input:focus { box-shadow: none; background: var(--berry-lt); }
.qty .input::-webkit-outer-spin-button, .qty .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { grid-template-columns: 34px 44px 34px; }
.qty.sm .btn { min-height: 32px; font-size: 18px; }
.qty.sm .input { font-size: 15px; padding: 3px 2px; }

/* --- Etiket (chip) ------------------------------------------------------ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .3px;
    line-height: 1;
    padding: 5px 10px;
    color: var(--text);
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--cream-2);
    white-space: nowrap;
    text-transform: uppercase;
}
.chip.java { background: var(--caramel-lt); }
.chip.bedrock { background: var(--blue-lt); }
.chip.ok { background: var(--mint-lt); }
.chip.run { background: var(--blue-lt); }
.chip.wait { background: var(--cream-2); }
.chip.warn { background: var(--caramel-lt); }
.chip.err { background: var(--red-lt); }
.chip.pink, .chip.soon { background: var(--berry-lt); }
.chip.gold { background: var(--lemon); color: var(--ink); }
.chip.run::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Bilgi kutuları ----------------------------------------------------- */
.alert {
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 11px 14px;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: var(--cream-2);
}
.alert.err { background: var(--red-lt); }
.alert.warn { background: var(--lemon-lt); }
.alert.ok { background: var(--mint-lt); }
.alert a { color: var(--text); font-weight: 800; }

/* --- İsim kartı (oyuncu onayı) ----------------------------------------- */
.tooltip {
    position: relative;
    background: var(--field);
    color: var(--text);
    padding: 14px 18px 16px;
    border: var(--edge);
    border-radius: var(--r);
    text-align: left;
}
.tooltip .t-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 23px;
    line-height: 1.2;
    word-break: break-all;
}
.tooltip .t-sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tooltip .t-money {
    font-family: var(--display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.15;
    color: var(--money);
    margin-top: 8px;
}
.tooltip .t-note { color: var(--ink-2); font-size: 15px; }

.money { color: var(--money); font-weight: 800; }

/* --- Sayfa iskeleti ------------------------------------------------------ */
main { position: relative; }
.page { padding-top: 58px; padding-bottom: 64px; }
.page-head { max-width: 780px; margin-bottom: 30px; }
.page-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.page-head p { color: var(--ink-2); margin: 0; font-size: 18px; max-width: 62ch; }
.page-head.center p { margin: 0 auto; }
.page-head h1, .display-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.02;
    letter-spacing: -1px;
    margin: 0 0 16px;
    text-wrap: balance;
}
/* Vurgu: altına sürülmüş glazür */
.page-head h1 em, .display-title em {
    font-style: normal;
    color: var(--berry-dk);
    background: linear-gradient(transparent 58%, var(--berry-lt) 58%, var(--berry-lt) 92%, transparent 92%);
    padding: 0 .08em;
    border-radius: 8px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px 6px 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
}
.eyebrow .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mint);
    border: 2px solid var(--ink);
}

.section { padding-bottom: 64px; scroll-margin-top: 110px; }
.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -.5px;
    margin: 0 0 20px;
}
.section-sub { color: var(--ink-2); margin: -12px 0 24px; max-width: 60ch; }
.section-gap { margin-top: 30px; }

/* --- Alt bilgi ------------------------------------------------------------ */
.footer {
    margin-top: auto;
    background: url(/img/sprinkles.svg) 0 0 / 240px 240px, var(--ink);
    color: #d6d9ee;
    font-size: 15px;
    border-top: var(--edge);
}
.footer .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
}
.footer .brand { color: var(--on-ink); }
.f-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.f-about p { margin: 6px 0 0; max-width: 44ch; color: #b9bddb; }
.footer nav a { color: var(--on-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.footer nav a:hover { color: var(--lemon); }
.footer nav .chip.soon { font-size: 9px; padding: 2px 6px; }
.f-legal { color: #a3a8cb; }
.f-legal b { color: var(--on-ink); font-family: var(--display); font-weight: 600; }

/* --- Teslimat durumu (Kod Kullan ve Market ortak) ------------------------ */
.status-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.status-head .s-name { font-family: var(--display); font-weight: 600; font-size: 19px; word-break: break-all; }
.status-head .money { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; }

/* Zaman çizelgesi: her durak bir donut */
.stages { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 0; }
.stages li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink-3);
}
.stages li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 36px;
    bottom: -8px;
    border-left: 3px dashed var(--cream-3);
}
.stages li.done:not(:last-child)::before { border-left-style: solid; border-color: var(--mint); }
.stages .box {
    position: relative;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--cream-2);
    border: 2.5px solid var(--ink-3);
    display: grid;
    place-items: center;
}
.stages .box::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink-3); }
.stages li.done { color: var(--text); }
.stages li.done .box { background: var(--mint); border-color: var(--ink); }
.stages li.done .box::before {
    width: 11px;
    height: 6px;
    border: 0;
    border-radius: 0;
    background: none;
    border-left: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    transform: translateY(-2px) rotate(-45deg);
}
.stages li.active { color: var(--text); }
.stages li.active .box { background: var(--berry); border-color: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
.stages li.active .box::before { border-color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--berry-lt); } }
.stages .sub { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink-2); }

.note { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.note:last-child { margin-bottom: 0; }
.note a { color: var(--text); font-weight: 800; }

.done-head { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; }
.done-check {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mint);
}
.done-check::after {
    content: '';
    width: 24px;
    height: 12px;
    border-left: 5px solid var(--ink);
    border-bottom: 5px solid var(--ink);
    transform: translateY(-3px) rotate(-45deg);
}
.done-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.done-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-weight: 700;
    color: var(--ink-2);
    word-break: break-all;
}
.done-sub .face { --s: 3px; }
.done-sub .sep { opacity: .5; }
.done-sub .money { font-family: var(--display); font-weight: 700; }

/* Kanıt: fiş kağıdı + sunucu kaydı */
.evidence { margin: 0 0 14px; background: var(--field); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.evidence-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-bottom: 2px dashed var(--cream-3);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--ink-2);
}
.evidence-head .ev-time { margin-left: auto; font-family: var(--mono); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.evidence-head .btn { text-transform: none; letter-spacing: 0; }
.ev-image {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 2px dashed var(--cream-3);
    background: none;
    cursor: zoom-in;
}
.ev-image img { display: block; width: 100%; height: auto; }
.console-body { font-family: var(--mono); font-size: 13px; line-height: 1.75; padding: 10px 14px; overflow-x: auto; background: var(--ink); color: var(--on-ink); }
.c-line { display: flex; gap: 12px; white-space: pre; }
.c-ts { color: #8d92b8; flex: none; }
.c-line.out .c-text { color: #ff9ec0; }
.c-line.in .c-text { color: var(--on-ink); }
.c-money { color: #6ff0b4; }

/* --- Yüz (2D) ve kafa (3D) -------------------------------------------- */
.face {
    --s: 5px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: calc(var(--s) * 8);
    height: calc(var(--s) * 8);
    flex: none;
    background-color: var(--cream-3);
    background-repeat: no-repeat;
    background-size: calc(var(--s) * 64) auto;
    background-position: calc(var(--s) * -8) calc(var(--s) * -8);
    image-rendering: pixelated;
    border-radius: calc(var(--s) * 1.2);
    box-shadow: 0 0 0 2px var(--ink);
}
.face::after {
    content: '';
    position: absolute;
    inset: calc(var(--s) * -.5);
    background-image: inherit;
    background-repeat: no-repeat;
    background-size: calc(var(--s) * 72) auto;
    background-position: calc(var(--s) * -45) calc(var(--s) * -9);
    image-rendering: pixelated;
}
.face.sm { --s: 3px; }

.h3d { position: relative; perspective: 820px; touch-action: none; cursor: grab; user-select: none; }
.h3d:active { cursor: grabbing; }
.h3d-rot { position: absolute; inset: 0; transform-style: preserve-3d; }
.h3d-cube { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.h3d-face {
    position: absolute;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}
.h3d-shadow {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 58%;
    height: 12px;
    transform: translateX(-50%);
    background: rgba(6, 10, 40, .25);
    border-radius: 50%;
    filter: blur(3px);
}

/* --- Liste satırları (teslimatlarım, siparişlerim) ------------------------ */
.list-section { padding-bottom: 48px; scroll-margin-top: 110px; }
.list-section h2 { margin-bottom: 6px; }
.list-hint { margin: 0 0 16px; font-size: 15px; }
.rows { display: grid; gap: 10px; }
.row-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 16px;
    background: var(--field);
    color: var(--text);
    border: 2px solid var(--ink);
    border-radius: var(--r);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.row-item:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.row-item.current { background: var(--berry-lt); }
.row-item .r-title { font-family: var(--display); font-weight: 600; font-size: 17px; word-break: break-all; }
.row-item .r-meta { font-size: 13px; color: var(--ink-2); }
.row-item .r-meta code { font-size: 13px; }
.row-item .r-money { font-family: var(--display); font-weight: 700; font-size: 20px; }
.row-item .slot { width: 44px; height: 44px; border-radius: 14px; }
.empty {
    padding: 24px;
    text-align: center;
    color: var(--ink-2);
    border: 2px dashed var(--ink-3);
    border-radius: var(--r);
    background: var(--glass);
}

/* --- Pencereler (modal, lightbox) ve kutu paneli ------------------------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(6, 10, 40, .5);
    backdrop-filter: blur(3px);
    overflow-y: auto;
}
.lightbox-box {
    max-width: min(1200px, 100%);
    background: var(--paper);
    border: var(--edge);
    border-radius: var(--r-lg);
    box-shadow: var(--pop-lg);
    padding: 14px;
}
.lightbox-box img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    height: auto;
    border: 2px solid var(--ink);
    border-radius: var(--r-sm);
}
.lightbox-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* Donut kutusu (sepet) */
/* Satir yuksekligi ekrana sabit: kutu uzarsa liste kayar, "Kasaya gec" hep gorunur */
.drawer-overlay { place-items: stretch end; padding: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
.drawer {
    display: flex;
    flex-direction: column;
    width: min(430px, 100vw);
    height: 100%;
    min-height: 0;
    background: var(--paper);
    border-left: var(--edge);
    animation: drawer-in .28s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes drawer-in { from { transform: translateX(60px); opacity: 0; } }
.drawer-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 30px;
    background: repeating-linear-gradient(-45deg, var(--berry) 0 16px, #ff6f9c 16px 32px);
    border-bottom: var(--edge);
}
/* Kutu kapağının fiyonk şeridi */
.drawer-head::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 64px;
    height: 22px;
    transform: translateX(-50%);
    background: var(--lemon);
    border: var(--edge);
    border-radius: 999px;
}
.drawer-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); }
.drawer-head h2 img { width: 34px; height: 34px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 26px 18px 14px; display: grid; align-content: start; gap: 12px; }
.drawer-foot { padding: 16px 18px 20px; border-top: var(--edge); background: var(--cream-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: var(--ink-2); font-family: var(--display); font-weight: 600; }
.cart-total b { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--text); }
.cart-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; background: var(--field); border: 2px solid var(--ink); border-radius: var(--r); }
.cart-line .slot { width: 56px; height: 56px; }
.cl-name { font-family: var(--display); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cl-unit { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.cl-side { display: grid; justify-items: end; gap: 8px; }
.cl-side b { font-family: var(--display); font-size: 19px; }
/* Satiri sil: cop kutusu */
.cl-remove { display: grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; color: var(--ink-2); }
.cl-remove svg { width: 18px; height: 18px; }
.cl-remove:hover { color: var(--red); border-color: var(--red); background: var(--red-lt); }
.cart-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 10px; }
.cart-empty img { width: 120px; height: 120px; margin-bottom: 4px; }
.cart-empty b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.cart-empty p { margin: 0 0 12px; color: var(--ink-2); }

/* --- Bildirim (toast) ve konfeti -------------------------------------- */
.toasts {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 60;
    display: grid;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}
.toast {
    padding: 10px 18px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    color: var(--on-ink);
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(6, 10, 40, .35);
    animation: toast-in .25s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes toast-in { from { transform: translateY(14px) scale(.9); opacity: 0; } }
.confetti {
    position: fixed;
    z-index: 70;
    width: 12px;
    height: 4px;
    border-radius: 3px;
    pointer-events: none;
}

/* --- SSS ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--pop); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--berry-lt);
    border: 2px solid var(--ink);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; background: var(--berry); color: var(--ink); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: 16px; }

/* --- Kripto rozetleri ---------------------------------------------------- */
.coin {
    --c: #555;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    border: 2px solid var(--ink);
}
.coin.lg { width: 40px; height: 40px; font-size: 19px; }

/* --- Yakında ve 404 sayfaları ---------------------------------------------- */
.nf { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 90px 16px; }
.nf-art { width: 220px; height: 220px; animation: bob 3s ease-in-out infinite; }
.nf h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.8px; margin: 0; }
.nf p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.soon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* --- Mobil ------------------------------------------------------------- */
/* Ust bar daraldikca sirayla: menu bosluklari, firin yazisi, hesap adi, Destek; sonra menu kendi satirina iner */
@media (max-width: 1360px) {
    .nav-link { padding: 8px 11px; }
}
@media (max-width: 1300px) {
    .oven-text { display: none; }
    .oven { padding: 8px; }
}
/* Dar ekranda Destek ust bardan menu satirina iner (.nav-support) */
@media (max-width: 1130px) {
    .top-actions .ghost { display: none; }
}
.nav-support { display: none; }
@media (max-width: 1040px) {
    .nav-support { display: inline-flex; }
}
@media (max-width: 1040px) {
    .topbar .wrap { gap: 6px 10px; }
    .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 6px 12px 2px; overflow-x: auto; scrollbar-width: none; border-top: 2px dashed var(--cream-3); }
    .nav::-webkit-scrollbar { display: none; }
    .nav-link { padding: 6px 12px; font-size: 16px; }
}
@media (max-width: 960px) {
    .footer .wrap { grid-template-columns: 1fr 1fr; }
    .f-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand { font-size: 23px; gap: 8px; }
    .brand img { width: 40px; height: 40px; }
    .top-actions { gap: 6px; }
    .top-actions .btn.sm { min-height: 36px; padding: 5px 10px; font-size: 14px; }
    .top-actions .ghost { display: none; }
    .panel { padding: 18px; border-radius: 22px; box-shadow: var(--pop); }
    .actions.two { grid-template-columns: 1fr; }
    .row-item { grid-template-columns: auto 1fr; }
    .row-item .r-money, .row-item .chip { grid-column: 2; justify-self: start; }
    .console-body { font-size: 12px; padding: 8px 10px; }
    .c-line { white-space: pre-wrap; word-break: break-word; gap: 8px; }
    .evidence-head .ev-time { display: none; }
    .overlay { padding: 8px; align-items: start; }
    .drawer-overlay { padding: 0; }
    .footer .wrap { grid-template-columns: 1fr; }
    .nf-art { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.slot.donut-slot { background: var(--field); }
.slot .count:empty { display: none; }
.face.no-hat::after { display: none; }

/* --- Tema düğmesi (ay: koyuya geç, güneş: açığa geç) ------------------------ */
.theme-btn { position: relative; width: 46px; padding: 0; overflow: hidden; }
.theme-btn svg { width: 24px; height: 24px; flex: none; transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.theme-btn .ico-sun { position: absolute; opacity: 0; transform: rotate(-140deg) scale(.3); }
:root[data-theme="dark"] .theme-btn .ico-moon { opacity: 0; transform: rotate(140deg) scale(.3); }
:root[data-theme="dark"] .theme-btn .ico-sun { opacity: 1; transform: none; }
.theme-btn:hover svg { transform: rotate(-18deg) scale(1.1); }
:root[data-theme="dark"] .theme-btn:hover .ico-sun { transform: rotate(45deg) scale(1.1); }
@media (max-width: 560px) {
    .top-actions .theme-btn { width: 40px; padding: 0; }
    /* Telefonda fırın tabelası logonun köşesinde durum ışığı olur: üst bar tek satır kalsın */
    .topbar .wrap { position: relative; }
    .topbar .oven { position: absolute; left: 47px; top: 11px; padding: 0; border: 0; background: none; box-shadow: none; }
    .topbar .oven-dot { width: 14px; height: 14px; }
    .lang .btn { padding: 3px 9px; }
}
@media (max-width: 380px) {
    .brand { font-size: 20px; }
    .brand img { width: 34px; height: 34px; }
    .topbar .oven { left: 41px; top: 12px; }
    .top-actions { gap: 5px; }
    .top-actions .theme-btn { width: 36px; }
    .top-actions .btn.sm { padding-left: 8px; padding-right: 8px; }
    .lang .btn { padding: 3px 7px; }
}

/* Tema geçişi: yeni tema düğmeden daire olarak yayılır (fx.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* --- Hareket: serpme alanı, fare izi, beliren bölümler, uçan donut (fx.js) ---- */
.fx-bg, .fx-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-bg { z-index: -1; }
.fx-trail { z-index: 80; }
html.fx-on body { background-image: none; }
/* Görününce belirecekler fx.js gelene kadar gizli (liste fx.js'teki REVEAL ile aynı olmalı;
   fx.js hiç gelmezse head.html'deki betik 2,5 sn sonra hepsini gösterir) */
html.rv-on :is(.hero-in > *, .page-head, .coins-row, .section-title, .case, .deal, .ticker, .how-step, .receipt, .perk, .ticket-band, .casino-teaser, .faq, .deal-strip, .market-toolbar, .builder, .machine-card, .redeem-side > .panel, .nf > *, .list-section, #products > .product):not(.rv-in) { opacity: 0; }
.fly { position: fixed; z-index: 75; pointer-events: none; will-change: transform, opacity; }
.fly > svg, .fly > img { display: block; width: 100%; height: 100%; }
.btn.primary, .btn.ok { --spin-c: var(--ink); }

/* Birincil butonlarda glazür parıltısı: üstünden ışık geçer */
.btn.primary {
    background-image: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 46%, transparent 60%);
    background-size: 260% 100%;
    background-position: 130% 0;
    background-repeat: no-repeat;
}
.btn.primary:hover { background-position: -30% 0; transition: transform .12s, box-shadow .12s, background-color .12s, background-position .75s ease; }

/* --- Koyu tema ince ayarları -------------------------------------------------- */
:root[data-theme="dark"] .topbar::after { background-image: url(/img/awning-dark.svg); }
:root[data-theme="dark"] .toast { border-color: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .footer { border-top-color: #2a3374; }
/* Gece tabelası: fırın sıcakken neon gibi yanar */
:root[data-theme="dark"] .oven.hot { box-shadow: 0 0 18px rgba(255, 106, 61, .3); }
:root[data-theme="dark"] .oven.hot .oven-text { color: #ffd2bd; text-shadow: 0 0 6px rgba(255, 150, 100, .9), 0 0 16px rgba(255, 90, 50, .65); animation: neon 7s linear infinite; }
@keyframes neon { 0%, 31%, 35%, 71%, 73%, 100% { opacity: 1; } 33%, 72% { opacity: .45; } }

/* Alt bilgi: yasal sayfa bağlantıları */
.f-legal-links { font-size: 14px; }
.f-legal-links a { color: var(--on-ink); text-decoration: none; font-weight: 600; }
.f-legal-links a:hover { color: var(--lemon); text-decoration: underline; }
.footer nav a.f-discord { color: #b9c2ff; }
.footer nav a.f-discord:hover { color: #fff; }

/* --- Üst bar: hesap düğmesi ---------------------------------------------- */
.acc-btn { gap: 8px; padding-left: 6px; max-width: 200px; }
.acc-face {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--berry-lt);
    color: var(--text);
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}
.acc-btn.in .acc-face { background: var(--blue); color: #fff; }
.acc-face img { width: 100%; height: 100%; object-fit: cover; }
.acc-face svg { width: 17px; height: 17px; margin-top: 2px; }
.acc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
@media (max-width: 1220px) {
    .acc-btn { width: 44px; padding: 0; justify-content: center; }
    .acc-label { display: none; }
}
@media (max-width: 560px) {
    .top-actions .acc-btn { width: 40px; }
    /* Telefonda dil düğmesi tek: diğer dile geçirir */
    .lang .btn[aria-pressed="true"] { display: none; }
    .lang { padding: 2px; }
}
@media (max-width: 380px) {
    .top-actions .acc-btn { width: 36px; }
    .acc-face { width: 24px; height: 24px; }
}
/* En dar telefonlar (320px): logo ve dugmeler biraz kuculur, ust bar tek satir kalsin */
@media (max-width: 350px) {
    .topbar .wrap { column-gap: 6px; }
    .brand { font-size: 18px; gap: 6px; }
    .brand img { width: 30px; height: 30px; }
    .topbar .oven { left: 37px; top: 13px; }
    .top-actions { gap: 4px; }
    .top-actions .theme-btn, .top-actions .acc-btn { width: 32px; }
    .top-actions .btn.sm { padding-left: 6px; padding-right: 6px; }
    .lang .btn { padding: 3px 5px; }
}

/* Destek: okunmamis yanit noktasi (ust bardaki Destek ve hesap dugmesinde) */
.sup-link, .acc-btn { position: relative; }
.sup-dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--berry); border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }
.sup-dot[hidden] { display: none; }
