/* HubWeb — koyu tema, altın / zümrüt vurgular */
:root {
  --bg: #07090f;
  --bg-2: #0b0f18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --muted: #8d97aa;
  --muted-2: #626c80;
  --gold: #ffcf5a;
  --gold-2: #e8a53a;
  --emerald: #2fd08a;
  --emerald-2: #149b66;
  --sky: #5bb8ff;
  --danger: #ff5d6c;
  --warn: #ffb347;
  --grad-gold: linear-gradient(135deg, #ffe08a 0%, #ffc54d 45%, #e89a2e 100%);
  --grad-emerald: linear-gradient(135deg, #5ef0ae 0%, #2fd08a 50%, #129163 100%);
  --grad-brand: linear-gradient(110deg, #ffd76a 0%, #ffc04d 35%, #2fd08a 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25);
  --glow-gold: 0 10px 30px -10px rgba(255, 190, 70, 0.55);
  --glow-emerald: 0 10px 30px -10px rgba(47, 208, 138, 0.55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #ffe39a; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
::selection { background: rgba(255, 207, 90, .35); }

/* ---------- arka plan efektleri */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.orb-a { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(255, 190, 70, .55), transparent 65%); animation: float 18s ease-in-out infinite; }
.orb-b { width: 680px; height: 680px; right: -220px; bottom: -260px; background: radial-gradient(circle, rgba(47, 208, 138, .45), transparent 65%); animation: float 22s ease-in-out infinite reverse; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }

/* ---------- üst bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 9, 15, .72);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-name { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-group > a:not(.btn):not(.balance-chip) {
  color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: color .2s, background .2s;
}
.nav > a:hover, .nav-group > a:not(.btn):not(.balance-chip):hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav-group { display: flex; align-items: center; gap: 6px; }
.nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 207, 90, .08); border: 1px solid rgba(255, 207, 90, .25); color: var(--gold); font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.balance-chip:hover { transform: translateY(-1px); box-shadow: var(--glow-gold); color: var(--gold); }
.balance-chip.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }
.user-link { display: inline-flex !important; align-items: center; gap: 8px; }
.avatar {
  width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center;
  background: var(--grad-emerald); color: #04110b; font-weight: 800; font-size: 13px; flex: none;
}
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- butonlar */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--b); color: var(--text); font: 600 14px/1.2 var(--font); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, opacity .2s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--grad-gold); color: #241600; border-color: transparent; box-shadow: var(--glow-gold); }
.btn-gold:hover { background: var(--grad-gold); color: #241600; box-shadow: 0 14px 34px -10px rgba(255, 190, 70, .75); }
.btn-emerald { background: var(--grad-emerald); color: #03140c; border-color: transparent; box-shadow: var(--glow-emerald); }
.btn-emerald:hover { background: var(--grad-emerald); color: #03140c; }
.btn-danger { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .4); color: #ff8d98; }
.btn-danger:hover { background: rgba(255, 93, 108, .2); color: #ffb0b8; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

/* ---------- kartlar */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h2 { font-size: 20px; }
.card h3 { font-size: 17px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card, .grid-2 + .card, .grid-3 + .card, .grid-4 + .card, .card + .grid-2, .card + .grid-4, .grid-2 + .grid-2, .grid-4 + .grid-2 { margin-top: 18px; }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card, .products > .card { margin-top: 0; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,207,90,.6), rgba(255,255,255,.05) 40%, rgba(47,208,138,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stack > * + * { margin-top: 18px; }

/* ---------- sayfa */
main#app { flex: 1; padding-top: 36px; padding-bottom: 64px; outline: none; }
.page { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin-bottom: 8px; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.section { margin-top: 64px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.section-head p { color: var(--muted); }

/* ---------- hero */
.hero { text-align: center; padding: 40px 0 10px; position: relative; }
.hero h1 { font-size: clamp(38px, 7.5vw, 78px); font-weight: 900; letter-spacing: -.04em; margin: 18px 0 14px; }
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(47, 208, 138, .08); border: 1px solid rgba(47, 208, 138, .3); font-size: 14px; font-weight: 600; color: #9af0c6;
}
.online-pill.off { background: rgba(255, 93, 108, .08); border-color: rgba(255, 93, 108, .3); color: #ff9aa4; }
.online-pill.loading { background: var(--surface); border-color: var(--border); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(47, 208, 138, .7); animation: pulse 2s infinite; flex: none; }
.off .dot { background: var(--danger); animation: none; }
.loading .dot { background: var(--muted-2); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,208,138,.6); } 70% { box-shadow: 0 0 0 10px rgba(47,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(47,208,138,0); } }
.ip-box {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 22px; border-radius: 16px; max-width: 100%;
  background: rgba(0,0,0,.35); border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.ip-box .ip-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.ip-box code { font-size: clamp(15px, 2.6vw, 20px); font-weight: 700; color: var(--text); padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.steps { counter-reset: step; row-gap: 38px; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-gold); color: #241600; font-weight: 900; box-shadow: var(--glow-gold);
}
.feature { transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .f-emoji { font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.news-date { text-align: center; min-width: 64px; padding: 8px; border-radius: 12px; background: rgba(255,207,90,.08); border: 1px solid rgba(255,207,90,.2); color: var(--gold); line-height: 1.1; }
.news-date b { display: block; font-size: 22px; }
.news-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.news-item p { margin: 0; color: var(--muted); }

/* ---------- formlar */
.auth-wrap { max-width: 460px; margin: 10px auto 0; }
.auth-wrap .card { padding: 32px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .big-emoji { font-size: 40px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #c6cddb; margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 12px; color: #ff8d98; margin-top: 6px; }
.input, input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(0,0,0,.3);
  color: var(--text); font: 15px/1.3 var(--font); transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(255,207,90,.6); box-shadow: 0 0 0 4px rgba(255,207,90,.12); background: rgba(0,0,0,.4); }
input.bad { border-color: rgba(255,93,108,.6); }
input.good { border-color: rgba(47,208,138,.5); }
textarea { resize: vertical; min-height: 120px; font-family: var(--mono); font-size: 13px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #0f1420; }
.code-input { text-align: center; font: 700 26px/1 var(--mono) !important; letter-spacing: .35em; padding: 16px !important; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: #c6cddb; user-select: none; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border-2); background: rgba(0,0,0,.3); flex: none; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--grad-emerald); border-color: transparent; }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #03140c; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.strength { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.strength > span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .35s var(--ease), background .35s; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.form-row > .btn { flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { display: block; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(255,93,108,.08); border-color: rgba(255,93,108,.3); color: #ffb0b8; }
.alert-info { background: rgba(91,184,255,.07); border-color: rgba(91,184,255,.28); color: #bfe2ff; }
.alert-warn { background: rgba(255,179,71,.08); border-color: rgba(255,179,71,.3); color: #ffd59c; }
.alert-ok { background: rgba(47,208,138,.08); border-color: rgba(47,208,138,.3); color: #a8f3cd; }

/* ---------- market */
.market-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: rgba(255,207,90,.1); border-color: rgba(255,207,90,.45); color: var(--gold); }
.chip .count { font-size: 11px; background: var(--surface-3); padding: 1px 7px; border-radius: 999px; color: var(--muted); }
.server-filter { display: flex; gap: 6px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.product:hover { transform: translateY(-6px); border-color: rgba(255,207,90,.35); box-shadow: var(--shadow), 0 24px 50px -24px rgba(255,190,70,.45); }
.product.featured { border-color: rgba(255,207,90,.3); }
.p-media {
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(255,207,90,.28), transparent 60%), radial-gradient(circle at 0% 0%, rgba(47,208,138,.18), transparent 50%), #0d1220;
  border-bottom: 1px solid var(--border);
}
.p-media .p-emoji { font-size: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); transition: transform .5s var(--ease); }
.product:hover .p-emoji { transform: scale(1.12) rotate(-4deg); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .p-media img { transform: scale(1.06); }
.ribbon { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; background: var(--grad-gold); color: #241600; box-shadow: var(--glow-gold); }
.badge-corner { position: absolute; top: 12px; right: 12px; padding: 4px 10px; font-size: 11px; font-weight: 800; border-radius: 8px; background: var(--grad-emerald); color: #03140c; }
.p-body { padding: 18px 18px 6px; flex: 1; display: flex; flex-direction: column; }
.p-body h3 { font-size: 17px; margin: 8px 0 8px; }
.p-desc { margin: 0 0 10px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.p-desc li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.p-desc li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--emerald); transform: rotate(45deg); }
.p-contents { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.p-contents summary { cursor: pointer; color: #b9c2d3; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.p-contents summary::-webkit-details-marker { display: none; }
.p-contents summary::before { content: "▸"; transition: transform .2s; }
.p-contents[open] summary::before { transform: rotate(90deg); }
.p-contents ul { margin: 6px 0 0; padding-left: 18px; }
.p-foot { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.p-actions { display: flex; gap: 8px; align-items: center; }
.p-actions .btn { flex: 1; padding-top: 9px; padding-bottom: 9px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 22px; color: var(--gold); letter-spacing: -.02em; }
.price s { color: var(--muted-2); font-size: 13px; }
.price .cur { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.25); }
.qty button { width: 32px; height: 34px; border: 0; background: transparent; color: var(--text); font-size: 17px; cursor: pointer; transition: background .2s; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 44px; height: 34px; border: 0; border-radius: 0; text-align: center; padding: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); color: #c6cddb; border: 1px solid var(--border); width: fit-content;
}
.tag.sky { background: rgba(91,184,255,.1); color: #9fd3ff; border-color: rgba(91,184,255,.25); }
.tag.red { background: rgba(255,93,108,.1); color: #ff9aa4; border-color: rgba(255,93,108,.25); }
.tag.green { background: rgba(47,208,138,.1); color: #8cecc0; border-color: rgba(47,208,138,.25); }
.tag.gold { background: rgba(255,207,90,.1); color: var(--gold); border-color: rgba(255,207,90,.28); }
.tag.purple { background: rgba(176,130,255,.1); color: #cdb3ff; border-color: rgba(176,130,255,.25); }
.limit-note { font-size: 12px; color: var(--muted); margin-top: -4px; }

/* ---------- özet / tablo */
.summary { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 14px 0; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14px; }
.summary .row + .row { border-top: 1px solid var(--border); }
.summary .row.total { background: var(--surface-2); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: rgba(255,255,255,.025); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--emerald); font-weight: 700; }
.neg { color: #ff8d98; font-weight: 700; }

/* ---------- hesap */
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile h1 { margin: 0; font-size: 28px; }
.profile .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 26px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }
.balance-card { overflow: hidden; }
.balance-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,207,90,.25), transparent 70%); pointer-events: none; }
.balance-big { font-size: clamp(36px, 6vw, 52px); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 8px 0 4px; }
.balance-big .cur { font-size: .45em; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.order { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .3s, background .3s; }
.order + .order { margin-top: 10px; }
.order.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: rgba(47,208,138,.22); border-color: rgba(47,208,138,.6); } 100% { background: var(--surface); } }
.order-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--surface-2); }
.order-title { font-weight: 700; }
.order-meta { font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status.pending { background: rgba(255,179,71,.1); color: #ffcb80; border: 1px solid rgba(255,179,71,.3); }
.status.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.status.claimed { background: rgba(47,208,138,.1); color: #8cecc0; border: 1px solid rgba(47,208,138,.3); }
@keyframes blink { 50% { opacity: .25; } }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live .dot { width: 7px; height: 7px; }
.qr-box { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.qr { background: #fff; border-radius: 16px; padding: 8px; width: 200px; height: 200px; box-shadow: 0 10px 40px -10px rgba(255,255,255,.2); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; word-break: break-all; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px dashed var(--border-2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.codes code { padding: 10px; text-align: center; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--border); font-size: 15px; letter-spacing: .06em; }
.device { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.device + .device { margin-top: 10px; }
.device-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; }
.device-info { flex: 1; min-width: 0; }
.device-info b { display: block; }
.device-info .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.toggle { position: relative; width: 50px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); transition: background .25s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.toggle input:checked + span { background: var(--grad-emerald); border-color: transparent; }
.toggle input:checked + span::after { transform: translateX(22px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- boş / hata durumları */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .e-emoji { font-size: 46px; margin-bottom: 10px; opacity: .9; }
.empty h3 { color: var(--text); }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { height: 340px; border-radius: var(--radius); }

/* ---------- kurallar */
.rules-list { counter-reset: rule; list-style: none; padding: 0; margin: 0; }
.rules-list li { counter-increment: rule; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px dashed var(--border); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list li::before { content: counter(rule); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255,207,90,.1); color: var(--gold); }

/* ---------- yönetim */
.stat { padding: 20px; }
.stat .s-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat .s-val { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.user-row { cursor: pointer; }
.admin-detail { margin-top: 18px; }

/* ---------- modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 5, 10, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px; animation: fadeIn .25s ease;
}
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; animation: modalIn .35s var(--ease); background: linear-gradient(180deg, #121826, #0c111b); }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal-hero { text-align: center; font-size: 56px; margin: 4px 0 6px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- bildirimler */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 14px;
  background: rgba(18, 24, 38, .95); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 14px;
  animation: toastIn .4s var(--ease); backdrop-filter: blur(10px);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast.ok { border-left: 3px solid var(--emerald); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- alt bilgi */
.footer { border-top: 1px solid var(--border); padding: 26px 0; background: rgba(0,0,0,.25); }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }

/* ---------- duyarlı */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 20px;
    background: rgba(9, 12, 20, .97); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a, .nav-group > a:not(.btn):not(.balance-chip) { padding: 12px 14px; font-size: 15px; }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-group .btn, .balance-chip { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .qr-box { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  main#app { padding-top: 24px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 16px; }
  .auth-wrap .card { padding: 22px 18px; }
  .hero { padding-top: 20px; }
  .ip-box { flex-wrap: wrap; justify-content: center; padding: 12px; gap: 8px; }
  .ip-box .ip-label { width: 100%; text-align: center; }
  .hero-cta .btn { flex: 1; }
  .products { grid-template-columns: 1fr; }
  .order { grid-template-columns: auto 1fr; }
  .order > .status, .order > .o-status { grid-column: 1 / -1; justify-self: start; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { display: inline-block; }
  .form-row { flex-direction: column; }
  .codes { grid-template-columns: 1fr; }
  .modal-actions .btn { flex: 1; }
  th, td { padding: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  #toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Çok sekmeli sayfalar (özellik grupları sekme ekler): masaüstünde satır kaydırma, mobilde yatay kaydırma */
@media (min-width: 761px) { .tabs { flex-wrap: wrap; row-gap: 0; overflow: visible; } }
@media (max-width: 760px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; } }

/* "Keşfet" açılır menüsü (özellik sayfaları) */
.nav-more { position: relative; display: inline-flex; }
.nav-more-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px 12px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.nav-more-btn:hover, .nav-more.open .nav-more-btn, .nav-more:has(a.active) .nav-more-btn { color: var(--text); background: var(--surface-2); }
.nav-more-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; display: none; flex-direction: column; gap: 2px; padding: 8px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); z-index: 60; }
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav-more-menu a:hover, .nav-more-menu a.active { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) {
  .nav-more { display: contents; }
  .nav-more-btn { display: none; }
  .nav-more-menu { display: contents; }
  .nav-more-menu a { padding: 12px 14px; font-size: 15px; }
}
