/* Lüks Takas — Kod Erişim Akışı
   Design tokens + screen styles merged from prototype.
   Demo chrome (ios-frame, tweaks-panel, demo navigator) removed. */

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/RobotoMono-VariableFont_wght.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/RobotoMono-VariableFont_wght_latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+0131, U+0152-0153;
}

:root {
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --w-body: 650;
  --w-strong: 800;
  --w-bold: 900;
  --w-black: 950;

  --bg-room:        #111119;
  --chrome-glass:   rgba(18, 18, 26, 0.82);
  --paper:          #f1dfbd;
  --paper-bright:   #fffaf0;
  --ink:            #15120e;
  --ink-deep:       #080705;
  --ink-border:     #17120d;
  --ink-soft:       #3c3122;
  --ink-brown:      #6e4615;
  --cream:          #f8f0de;
  --cream-bright:   #fff9e8;

  --gold:           #e5b54f;
  --gold-deep:      #a88947;
  --gold-badge:     #d6a947;
  --gold-text:      #f4d189;
  --gold-stamp:     #8d6427;

  --brown-secondary: #664730;
  --ghost:           #2c2a31;

  --cash:           #71e08c;
  --cash-solid:     #32b85b;
  --loss:           #ff6f69;
  --loss-solid:     #e44343;

  --risk-critical:  #ff4444;

  --danger-bg:      #1a0505;
  --danger-border:  #8b0000;
  --danger-text:    #ff4444;
  --danger-warm:    #d4a574;

  --info-blue:      #37506a;

  --r-button:  8px;
  --r-panel:   8px;
  --r-card:    12px;
  --r-soft:    16px;

  --bd-hair:   1px;
  --bd-pill:   2px;
  --bd-panel:  3px;
  --bd-heavy:  4px;

  --shadow-panel:  0 14px 30px rgba(0, 0, 0, 0.42);
  --shadow-modal:  0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-pill:   0 6px 18px rgba(0, 0, 0, 0.25);
  --shadow-menu:   0 18px 40px rgba(0, 0, 0, 0.50);

  --stamp-rest:    inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 0 rgba(0,0,0,0.25);
  --stamp-press:   inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 0 rgba(0,0,0,0.25);

  --gilt-frame: linear-gradient(145deg, #fffaf0 0%, #d2b46f 52%, #3a2b17 100%);

  --hit: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0c0c10; }

/* ── Stage ──────────────────────────────────────────────────── */
.lx-stage {
  position: fixed; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, #25242c 0%, #16161c 55%, #0c0c10 100%);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-mono);
}

.lx-device {
  width: 100%; max-width: 402px; height: 100%;
  max-height: 874px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 430px) {
  .lx-device {
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  }
}

/* ── Inner screen scaffold ──────────────────────────────────── */
.lx-root { position: relative; height: 100%; width: 100%; background: #15151d; overflow: hidden; }
.lx-scene { position: absolute; inset: 0; background: url("assets/bg_shop_interior.jpg") center top / cover no-repeat; }
.lx-scene-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,5,0.30) 0%, rgba(8,7,5,0.20) 28%, rgba(8,7,5,0.62) 78%, rgba(8,7,5,0.86) 100%);
}

.lx-screen { position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 2; }
.lx-content {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: 40px 18px 40px; min-height: 0;
}
.lx-content.center { justify-content: center; }
.lx-content.center::before {
  content: ""; position: absolute; inset: -40px 0; z-index: 0; pointer-events: none;
  background: radial-gradient(72% 52% at 50% 44%, rgba(8,7,5,.86) 0%, rgba(8,7,5,.55) 56%, rgba(8,7,5,0) 100%);
}
.lx-content.center > * { position: relative; z-index: 1; }
.lx-content.bottom { justify-content: flex-end; }
.lx-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* entrance */
@keyframes lxRise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.lx-anim > * { opacity: 0; animation: lxRise .42s cubic-bezier(.2,.7,.3,1) forwards; }
.lx-anim > *:nth-child(2) { animation-delay: .05s; }
.lx-anim > *:nth-child(3) { animation-delay: .1s; }
.lx-anim > *:nth-child(4) { animation-delay: .15s; }
.lx-anim > *:nth-child(5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .lx-anim > * { animation: none; opacity: 1; } }

/* ── Brand lockup ───────────────────────────────────────────── */
.lx-brand { display: grid; gap: 2px; justify-items: center; text-align: center; }
.lx-brand .mark {
  font-weight: var(--w-black); font-size: 30px; line-height: 1; letter-spacing: 1px;
  color: var(--gold);
  text-shadow:
    0 2px 0 rgba(0,0,0,0.7),
    0 0 18px rgba(229,181,79,0.25),
    -1px -1px 0 rgba(0,0,0,0.6),
    1px -1px 0 rgba(0,0,0,0.6),
    -1px 1px 0 rgba(0,0,0,0.6),
    1px 1px 0 rgba(0,0,0,0.6);
}
.lx-brand .sub {
  font-weight: var(--w-black); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cream); opacity: .8;
}

/* ── Paper panel ────────────────────────────────────────────── */
.lx-panel {
  position: relative;
  background: rgba(241,223,189,0.975);
  border: var(--bd-panel) solid var(--ink-deep);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-menu);
  color: var(--ink);
  padding: 18px 16px 16px;
}

/* ── Headings / copy ────────────────────────────────────────── */
.lx-eyebrow {
  font-weight: var(--w-bold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-brown); margin: 0 0 8px;
}
.lx-title {
  font-weight: var(--w-black); font-size: 23px; line-height: 1.08; text-transform: uppercase;
  color: var(--ink-deep); margin: 0;
}
.lx-h2 { font-weight: var(--w-black); font-size: 17px; line-height: 1.15; color: var(--ink); margin: 0; }
.lx-body { font-weight: var(--w-body); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.lx-stack { display: grid; }

/* ── Buttons (stamped) ──────────────────────────────────────── */
.lx-btn {
  min-height: 52px; width: 100%; border: var(--bd-pill) solid var(--ink-border); border-radius: var(--r-button);
  font-family: var(--font-mono); font-weight: var(--w-bold); font-size: 15px; color: #fff;
  box-shadow: var(--stamp-rest); cursor: pointer; display: grid; place-items: center; gap: 1px;
  transition: transform .04s ease;
}
.lx-btn .en { font-size: 9.5px; font-weight: var(--w-strong); letter-spacing: 1px; opacity: .7; text-transform: uppercase; }
.lx-btn:active { transform: translateY(2px); box-shadow: var(--stamp-press); }
.lx-btn:disabled { opacity: .35; pointer-events: none; }
.lx-btn.primary { background: var(--gold-deep); }
.lx-btn.secondary { background: var(--brown-secondary); }
.lx-btn.ghost { background: var(--ghost); border-color: #14141a; }
.lx-btn.danger { background: #8b1f1f; border-color: #3a0a0a; }
.lx-btn.lg { min-height: 58px; font-size: 16px; }

.lx-textlink {
  appearance: none; background: none; border: 0; cursor: pointer; font-family: var(--font-mono);
  font-weight: var(--w-strong); font-size: 12px; color: var(--ink-brown); text-decoration: underline;
  text-underline-offset: 3px; padding: 6px;
}
.lx-textlink.ondark { color: var(--gold-text); }

/* ── Gilded product vitrine ─────────────────────────────────── */
.lx-vitrine {
  position: relative; display: grid; place-items: center; justify-self: center;
  width: 116px; height: 116px;
  border: var(--bd-panel) solid #070604; border-radius: var(--r-card);
  background: var(--gilt-frame);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 12px 22px rgba(0,0,0,.5);
}
.lx-vitrine img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0,0,0,.5)); }

/* ── Price receipt ──────────────────────────────────────────── */
.lx-receipt {
  display: grid; gap: 6px; padding: 12px 14px;
  border: var(--bd-panel) solid var(--ink-deep); border-radius: var(--r-card);
  background: rgba(255,251,243,0.6);
}
.lx-receipt .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: var(--w-strong); color: var(--ink-deep); }
.lx-receipt .row .was { text-decoration: line-through; text-decoration-thickness: 2px; color: #9a7a4a; }
.lx-receipt .row.free { align-items: center; padding-top: 6px; border-top: 1px dashed rgba(23,18,13,.35); }
.lx-receipt .row.free strong { font-weight: var(--w-black); font-size: 26px; color: var(--cash-solid); }
.lx-pct {
  font-weight: var(--w-black); font-size: 11px; color: #fff; background: var(--loss-solid);
  border-radius: 999px; padding: 3px 9px; letter-spacing: .5px;
}

/* ── Selectable option rows ─────────────────────────────────── */
.lx-opts { display: grid; gap: 9px; }
.lx-opt {
  display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; text-align: left;
  padding: 11px 14px; border: var(--bd-panel) solid var(--ink-border); border-radius: var(--r-button);
  background: rgba(255,251,243,0.55); color: var(--ink-deep);
  font-family: var(--font-mono); font-weight: var(--w-strong); font-size: 14px; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.18); transition: transform .04s ease, background .12s ease;
}
.lx-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.lx-opt .box {
  flex-shrink: 0; width: 22px; height: 22px; border: var(--bd-pill) solid var(--ink-border);
  border-radius: 6px; background: var(--paper-bright); display: grid; place-items: center;
  font-weight: var(--w-black); font-size: 14px; color: transparent; line-height: 1;
}
.lx-opt .lbl { display: grid; gap: 1px; }
.lx-opt .lbl .en { opacity: .7; }
.lx-opt[aria-pressed="true"] { background: var(--gold-deep); color: #fff; border-color: var(--ink-deep); }
.lx-opt[aria-pressed="true"] .box { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--gold-text); }
.lx-opt[aria-pressed="true"] .lbl .en { color: #fff; }

/* ── Form input ─────────────────────────────────────────────── */
.lx-field { display: grid; gap: 7px; }
.lx-field label { font-weight: var(--w-bold); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-brown); }
.lx-input {
  font-family: var(--font-mono); font-weight: var(--w-strong); font-size: 16px; color: var(--ink);
  background: var(--paper-bright); border: var(--bd-pill) solid #b98c34; border-radius: var(--r-button);
  padding: 14px; width: 100%;
}
.lx-input::placeholder { color: #a8916090; }
.lx-input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(229,181,79,.3); }
.lx-input.bad { border-color: var(--loss-solid); box-shadow: 0 0 0 3px rgba(228,67,67,.25); }
.lx-error { font-size: 11px; font-weight: var(--w-strong); color: var(--loss-solid); margin: 0; }

.lx-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lx-consent .box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: var(--bd-pill) solid var(--ink-border);
  border-radius: 5px; background: var(--paper-bright); display: grid; place-items: center;
  font-weight: var(--w-black); font-size: 13px; color: transparent; line-height: 1;
}
.lx-consent[aria-checked="true"] .box { background: var(--gold-deep); color: #fff; border-color: var(--ink-deep); }
.lx-consent span { font-size: 11.5px; font-weight: var(--w-body); line-height: 1.35; color: var(--ink-soft); }

/* ── Status pills ───────────────────────────────────────────── */
.lx-pillbar { display: flex; gap: 8px; justify-content: center; }
.lx-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid rgba(229,181,79,0.82); border-radius: 999px; background: var(--chrome-glass);
  color: var(--cream-bright); font-size: 11px; font-weight: var(--w-strong); box-shadow: var(--shadow-pill);
}
.lx-pill .star { color: var(--gold); letter-spacing: -1px; }
.lx-coin { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid #8a6a1e; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* ── Progress (onboarding) ──────────────────────────────────── */
.lx-steptop { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.lx-back {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--chrome-glass);
  border: 1px solid rgba(229,181,79,.4); color: var(--gold-text); font-size: 18px; font-weight: 900;
  cursor: pointer; display: grid; place-items: center;
}
.lx-progress { flex: 1; display: flex; gap: 5px; }
.lx-progress i { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); transition: background .3s ease; }
.lx-progress i.on { background: var(--gold); }
.lx-stepno { font-size: 11px; font-weight: var(--w-bold); color: var(--cream); opacity: .85; min-width: 30px; text-align: right; }

/* ── Sent / mail card ───────────────────────────────────────── */
.lx-icon-badge {
  width: 76px; height: 76px; justify-self: center; border-radius: 50%;
  display: grid; place-items: center; border: var(--bd-heavy) solid var(--ink-deep);
  background: radial-gradient(circle at 38% 32%, #ffe6a6, #e5b54f 55%, #a88947);
  box-shadow: var(--stamp-rest), 0 10px 22px rgba(0,0,0,.4); color: #2a1b0a; font-size: 34px;
}
.lx-icon-badge.ok { background: radial-gradient(circle at 38% 32%, #9af0b3, #32b85b 60%, #1c7d3f); color: #06320f; }
.lx-icon-badge.bad { background: radial-gradient(circle at 38% 32%, #ff9a96, #e44343 60%, #8b1f1f); color: #2a0606; }
.lx-mailcard {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center;
  padding: 12px; border: var(--bd-panel) solid var(--ink-border); border-radius: var(--r-card);
  background: var(--paper-bright); box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.lx-mailcard .av { width: 38px; height: 38px; border-radius: 9px; background: var(--gold-deep); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; }
.lx-mailcard .meta { display: grid; gap: 1px; min-width: 0; }
.lx-mailcard .meta .from { font-size: 12px; font-weight: var(--w-black); color: var(--ink-deep); }
.lx-mailcard .meta .subj { font-size: 11px; font-weight: var(--w-body); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-emailtag { font-weight: var(--w-black); color: var(--ink-deep); word-break: break-all; }

/* ── Verifying ──────────────────────────────────────────────── */
.lx-spinner {
  width: 54px; height: 54px; justify-self: center; border-radius: 50%;
  border: 5px solid rgba(241,223,189,.25); border-top-color: var(--gold);
  animation: lxSpin .9s linear infinite;
}
@keyframes lxSpin { to { transform: rotate(360deg); } }
.lx-steps { display: grid; gap: 10px; }
.lx-vstep { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: var(--w-strong); color: var(--cream); opacity: .45; transition: opacity .3s ease; }
.lx-vstep.on { opacity: 1; }
.lx-vstep.done { opacity: 1; color: var(--cash); }
.lx-vstep .dot { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 12px; font-weight: 900; }

/* ── Code ticket ────────────────────────────────────────────── */
.lx-ticket {
  position: relative; display: grid; gap: 8px; padding: 16px 14px;
  border: var(--bd-panel) dashed var(--ink-deep); border-radius: var(--r-card);
  background: var(--paper-bright); text-align: center;
}
.lx-ticket .cap { font-size: 10px; font-weight: var(--w-bold); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-brown); }
.lx-code { font-weight: var(--w-black); font-size: 26px; letter-spacing: 3px; color: var(--ink-deep); }
.lx-copy {
  justify-self: center; font-family: var(--font-mono); font-weight: var(--w-bold); font-size: 11px;
  color: var(--ink-deep); background: rgba(229,181,79,.25); border: 2px solid var(--gold-deep);
  border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.lx-copy:active { transform: translateY(1px); }
.lx-copy.copied { background: var(--cash-solid); border-color: #1c7d3f; color: #fff; }

.lx-note {
  display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px;
  border-radius: var(--r-button); background: rgba(110,70,21,.1); border: 1px solid rgba(110,70,21,.3);
}
.lx-note .k { flex-shrink: 0; font-weight: 900; color: var(--ink-brown); }
.lx-note p { margin: 0; font-size: 11.5px; font-weight: var(--w-body); line-height: 1.4; color: var(--ink-soft); }

/* danger panel */
[data-tone="danger"] .lx-panel {
  background: #1a0606; border-color: var(--danger-border); color: var(--danger-warm);
}
[data-tone="danger"] .lx-title { color: var(--danger-text); }
[data-tone="danger"] .lx-body { color: var(--danger-warm); }

/* footnote */
.lx-foot { text-align: center; font-size: 10.5px; font-weight: var(--w-strong); color: var(--cream); opacity: .6; line-height: 1.4; }

/* ── toast ──────────────────────────────────────────────────── */
.lx-toast {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink-deep); color: var(--cream); border: 2px solid var(--gold);
  border-radius: 8px; padding: 10px 16px; font-size: 12px; font-weight: var(--w-strong);
  z-index: 30; box-shadow: var(--shadow-modal); white-space: nowrap; animation: lxRise .3s ease both;
}

/* scarcity ribbon */
.lx-scarcity {
  display: inline-flex; align-self: center; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: 999px; background: rgba(255,68,68,.16); border: 1px solid rgba(255,68,68,.55);
  color: #ffd9d6; font-size: 11px; font-weight: var(--w-bold);
}
.lx-scarcity .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--risk-critical); animation: lxBlink 1.4s ease-in-out infinite; }
@keyframes lxBlink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── language switcher ──────────────────────────────────────── */
.lx-lang {
  position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 20;
}
.lx-lang button {
  all: unset; cursor: pointer; font-size: 20px; opacity: .5; transition: opacity .15s;
}
.lx-lang button.active { opacity: 1; }
.lx-lang button:hover { opacity: .9; }
