/* ==========================================================================
   PalazzoBet Çekiliş — "Sade"
   One message, one button, three steps, a plain table + calculator, FAQ.
   Same visual language as the brand's own site: Poppins, rounded glass cards,
   navy gradient, gold buttons. Centered, top-to-bottom, nothing clever.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --navy-900: #010d20;
  --navy-800: #021229;
  --navy-700: #031a3b;
  --navy-600: #05244d;
  --gold: #cca269;
  --gold-light: #e3c48f;
  --gold-dark: #a8804a;
  --gold-line: rgba(204, 162, 105, 0.22);
  --gold-line-strong: rgba(204, 162, 105, 0.4);
  --ink: #e8eef7;
  --ink-muted: #9fb0c8;
  --ink-dim: #6f7f96;
  --ok: #34d399;
  --danger: #f87171;
  --surface: linear-gradient(180deg, rgba(5, 36, 77, 0.72), rgba(3, 26, 59, 0.88));
  --surface-line: 1px solid rgba(204, 162, 105, 0.18);
  --surface-top: inset 0 1px 0 rgba(204, 162, 105, 0.3);
  --shadow: 0 20px 25px -5px rgba(1, 13, 32, 0.55), 0 10px 10px -5px rgba(1, 13, 32, 0.35);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
  --r-lg: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-900); }
body { margin: 0; min-width: 320px; overflow-x: hidden; font: 16px/1.6 var(--font); color: var(--ink); background: linear-gradient(180deg, #021229 0%, #031a3b 22%, #031a3b 58%, #010d20 100%) fixed; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.container.narrow { width: min(820px, calc(100% - 40px)); }

/* Cards (brand site's glass-effect) */
.card { background: var(--surface); border: var(--surface-line); border-radius: var(--r-lg); box-shadow: var(--surface-top), var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { color: var(--navy-900); background: linear-gradient(180deg, var(--gold-light), var(--gold)); box-shadow: 0 8px 20px rgba(204, 162, 105, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(204, 162, 105, 0.4); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { color: var(--ink); border-color: var(--gold-line-strong); background: rgba(2, 18, 41, 0.4); }
.btn-ghost:hover { border-color: var(--gold); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(2, 18, 41, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gold-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { display: block; width: 128px; height: auto; aspect-ratio: 496 / 238; filter: drop-shadow(0 0 14px rgba(204, 162, 105, 0.35)); }
.nav { display: flex; gap: 26px; font-size: 0.92rem; font-weight: 500; color: var(--ink-muted); }
.nav a:hover { color: #fff; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--gold-line-strong); border-radius: 999px; background: rgba(2, 18, 41, 0.6); font-size: 0.82rem; font-weight: 500; color: var(--gold-light); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); }
.dot[data-state="active"] { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: #fff; max-width: 820px; text-wrap: balance; }
.hero h1 span { color: var(--gold-light); }
.hero-text { max-width: 680px; margin-top: 18px; font-size: 1.06rem; color: var(--ink-muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 44px; text-align: left; }
.summary-item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--gold-line); }
.summary-item:last-child { border-right: 0; }
.summary-item > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: var(--gold); background: rgba(204, 162, 105, 0.12); }
.summary-item small { display: block; font-size: 0.74rem; color: var(--ink-muted); }
.summary-item b { display: block; font-size: 1.15rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.3; }
.summary-item em { display: block; font-style: normal; font-size: 0.76rem; color: var(--gold-light); }
.summary[data-state="loading"] b { color: var(--ink-dim); }
.summary-title { margin-top: 14px; font-size: 0.86rem; color: var(--ink-muted); }
.summary-title b { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: rgba(1, 13, 32, 0.35); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.section-text { margin-top: 10px; max-width: 640px; color: var(--ink-muted); }
.center .section-text { margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.step { position: relative; padding: 26px 24px 24px; }
.step-num { position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-size: 0.86rem; font-weight: 700; }
.step .icon-lg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; color: var(--gold); background: rgba(204, 162, 105, 0.12); }
.step h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 600; color: #fff; }
.step p { margin-top: 6px; font-size: 0.94rem; color: var(--ink-muted); }
.step p b { color: var(--ink); }

/* Tiers table + calculator */
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 24px; align-items: start; }
.table-card { margin-top: 22px; overflow: hidden; }
.tiers-table { width: 100%; border-collapse: collapse; }
.tiers-table th { padding: 14px 20px; text-align: left; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: rgba(1, 13, 32, 0.4); border-bottom: 1px solid var(--gold-line); }
.tiers-table td { padding: 13px 20px; border-bottom: 1px solid rgba(204, 162, 105, 0.1); font-variant-numeric: tabular-nums; }
.tiers-table tr:last-child td { border-bottom: 0; }
.tiers-table td:last-child, .tiers-table th:last-child { text-align: right; }
.tiers-table td:last-child b { font-size: 1.1rem; color: var(--gold-light); }
.tiers-table tr.is-zero td:last-child b { color: var(--ink-dim); }
.tiers-table tr.is-match td { background: rgba(204, 162, 105, 0.14); }
.tiers-table tr.is-match td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.calc { padding: 24px; position: sticky; top: 90px; }
.calc h3 { font-size: 1.15rem; font-weight: 600; color: #fff; }
.calc > p { margin-top: 4px; font-size: 0.9rem; color: var(--ink-muted); }
.calc-field { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0 14px; border: 1px solid rgba(204, 162, 105, 0.3); border-radius: var(--r); background: rgba(2, 18, 41, 0.6); transition: border-color 150ms ease, box-shadow 150ms ease; }
.calc-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204, 162, 105, 0.15); }
.calc-field span { color: var(--gold); font-weight: 600; }
.calc-field input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 1.1rem; font-weight: 600; }
.calc-field input::placeholder { color: var(--ink-dim); font-weight: 400; }
.calc-result { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.calc-result b { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.calc-result span { color: var(--ink-muted); font-weight: 500; }
.calc-result b.is-empty { color: var(--ink-dim); }
.calc-note { margin-top: 8px; font-size: 0.86rem; color: var(--ink-muted); }

/* Claim app */
.app-card { margin-top: 26px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--gold-line); background: rgba(1, 13, 32, 0.4); }
.tabs button { flex: 1; padding: 16px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-muted); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.tabs button:hover { color: #fff; }
.tabs button.is-active { color: var(--gold-light); border-bottom-color: var(--gold); }
.ticket-app { display: flex; flex-direction: column; }
.claim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.claim-info { padding: 30px 28px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.claim-info h3, .query h3 { margin-top: 8px; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.2; }
.claim-info .muted { margin-top: 8px; }
.mini-meta { display: flex; gap: 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.mini-meta dt { font-size: 0.72rem; color: var(--ink-muted); }
.mini-meta dd { margin-top: 2px; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.claim-box { display: grid; align-content: center; gap: 12px; padding: 30px 28px; border-left: 1px solid var(--gold-line); background: rgba(1, 13, 32, 0.35); }
.claim-label { font-size: 0.8rem; color: var(--ink-muted); }
.claim-count { display: flex; align-items: baseline; gap: 8px; }
.claim-count b { font-size: 3.2rem; line-height: 1; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.claim-count span { font-weight: 500; color: var(--ink-muted); }
.is-loading .claim-box { opacity: 0.6; }

.query { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 28px; }
.query .muted { margin-top: 8px; }
.query-count { display: flex; flex-direction: column; align-items: flex-end; }
.query-count b { font-size: 3.2rem; line-height: 1; font-weight: 700; color: var(--gold-light); }
.query-count span { font-size: 0.82rem; color: var(--ink-muted); }

.result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--gold-line); background: rgba(52, 211, 153, 0.08); }
.result-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 700; }
.result h3 { font-size: 1.02rem; font-weight: 600; color: #fff; }
.result p { font-size: 0.84rem; color: var(--ink-muted); }
.result > strong { font-size: 1.4rem; color: var(--gold-light); }
.result.is-lost { background: rgba(1, 13, 32, 0.4); }
.result.is-lost .result-mark { background: var(--navy-600); color: var(--ink-muted); }

.wallet { border-top: 1px solid var(--gold-line); }
.wallet-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 28px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wallet-toggle span:first-child { display: grid; gap: 2px; }
.wallet-toggle small { font-size: 0.76rem; color: var(--ink-muted); }
.wallet-toggle strong { font-weight: 600; }
.chevron { color: var(--gold); transition: transform 180ms ease; }
.wallet-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.ticket-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; max-height: 240px; overflow: auto; border-top: 1px solid var(--gold-line); background: var(--gold-line); }
.ticket-code { display: grid; gap: 2px; padding: 12px 18px; background: var(--navy-800); }
.ticket-code code { font-size: 0.86rem; font-weight: 600; color: var(--gold-light); }
.ticket-code span { font-size: 0.72rem; color: var(--ink-dim); }
.notice { padding: 14px 28px; border-top: 1px solid rgba(248, 113, 113, 0.35); background: rgba(90, 20, 26, 0.5); color: #ffd6d6; font-size: 0.9rem; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 18px; font-size: 0.88rem; color: var(--ink-muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 16px; height: 16px; color: var(--ok); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { padding: 0 22px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; color: #fff; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .chevron { transform: rotate(180deg); }
.faq p { padding: 0 0 18px; color: var(--ink-muted); font-size: 0.95rem; }
.faq p b { color: var(--ink); }

/* CTA + footer */
.cta { padding-bottom: clamp(64px, 8vw, 100px); }
.cta .btn { margin-top: 22px; }
.footer { border-top: 1px solid var(--gold-line); background: var(--navy-900); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 28px 0; font-size: 0.86rem; color: var(--ink-muted); }
.footer p { flex: 1; min-width: 240px; }
.footer small { color: var(--ink-dim); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary-item { border-bottom: 1px solid var(--gold-line); }
  .summary-item:nth-child(2n) { border-right: 0; }
  .summary-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .calc { position: static; }
  .claim { grid-template-columns: 1fr; }
  .claim-box { border-left: 0; border-top: 1px solid var(--gold-line); }
}
@media (max-width: 560px) {
  .container, .container.narrow { width: calc(100% - 28px); }
  .brand img { width: 108px; }
  .hero-actions .btn { width: 100%; }
  .summary { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-bottom: 1px solid var(--gold-line); }
  .summary-item:last-child { border-bottom: 0; }
  .query { grid-template-columns: 1fr; }
  .query-count { flex-direction: row; align-items: baseline; gap: 8px; }
  .result { grid-template-columns: auto minmax(0, 1fr); }
  .result > strong { grid-column: 2; }
  .claim-info, .claim-box, .query, .result, .wallet-toggle, .notice { padding-left: 18px; padding-right: 18px; }
  .tiers-table th, .tiers-table td { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
