/* ===== Müşteri arayüzü ===== */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 54px; height: 54px; background: url(../img/logo.svg) center/contain no-repeat; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }
.noscript { text-align: center; padding: 40px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wrap { padding: 0 14px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 18px; color: var(--text); }
.brand::before { content: ""; width: 30px; height: 30px; background: url(../img/logo.svg) center/contain no-repeat; }
.brand em { font-style: normal; color: var(--accent); }

/* ----- Giriş ekranı ----- */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 40px 0;
}
.login-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 22px 0 16px; }
.login-hero h1 span { background: linear-gradient(135deg, #a9e2ff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 30px; }
.steps { display: grid; gap: 12px; max-width: 520px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(17, 26, 37, .6); border: 1px solid var(--line); animation: rise .6s var(--ease) backwards; }
.step:nth-child(2) { animation-delay: .08s; } .step:nth-child(3) { animation-delay: .16s; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #04121e; background: linear-gradient(135deg, #8fd8ff, var(--accent-2)); }
.step b { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.login-card { padding: 32px; border-radius: 22px; position: relative; overflow: hidden; animation: rise .5s var(--ease); }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(102,192,244,.55), transparent 40%, transparent 70%, rgba(26,159,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.login-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.login-card > p { color: var(--muted); margin: 0 0 24px; }
.key-input { height: 58px; font-family: var(--mono); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-align: center; border-radius: 14px; }
.lock-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(102,192,244,.06); border: 1px dashed rgba(102,192,244,.3); color: #b6dcf3; font-size: 13px; }
.lock-note svg { flex: none; margin-top: 1px; color: var(--accent); }
.err-line { min-height: 22px; margin-top: 12px; color: #ff9da0; font-size: 14px; text-align: center; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .login-hero h1 { margin-top: 18px; }
  .steps { display: none; }
}

/* ----- Üst çubuk ----- */
.topbar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: rgba(7, 11, 17, .72); border-bottom: 1px solid rgba(34, 50, 74, .6); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.topbar .sp { flex: 1; }
.lic-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lic-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(139,195,74,.15); }
@media (max-width: 560px) { .lic-chip { display: none; } }

/* ----- Durum kartları ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.stat { padding: 16px 18px; animation: rise .5s var(--ease) backwards; }
.stat:nth-child(2) { animation-delay: .05s; } .stat:nth-child(3) { animation-delay: .1s; } .stat:nth-child(4) { animation-delay: .15s; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .k svg { color: var(--accent); }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .s { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8fd8ff, var(--accent-2)); transition: width .6s var(--ease); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }


/* ----- Katalog ----- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 42px; height: 46px; border-radius: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: #3a5577; }
.chip.on { background: rgba(102,192,244,.12); color: var(--accent); border-color: rgba(102,192,244,.5); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding-bottom: 50px; }
@media (max-width: 480px) { .games { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card-game {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-align: left; padding: 0; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  animation: rise .45s var(--ease) backwards;
}
.card-game:hover { transform: translateY(-4px); border-color: rgba(102,192,244,.5); box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(102,192,244,.15); }
.card-game.off { cursor: not-allowed; }
.card-game.off:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card-game.off .cover { filter: grayscale(.85) brightness(.6); }
.cover {
  position: relative; aspect-ratio: 460 / 215; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 75% 48%), hsl(calc(var(--h) + 50) 65% 18%) 75%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-game:hover .cover img { transform: scale(1.05); }
.cover .mono-t { font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: rgba(255,255,255,.88); text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,11,17,.65)); }
.cover .badges { position: absolute; z-index: 1; top: 8px; left: 8px; display: flex; gap: 6px; }
.card-game .meta { padding: 11px 13px 13px; display: grid; gap: 6px; }
.card-game .title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card-game .st { font-size: 12.5px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.card-game .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.card-game .st.out i { background: var(--dim); }
.card-game .st.mine { color: var(--accent); font-weight: 600; }
.card-game .st.mine i { background: var(--accent); }
.card-game.claimed { border-color: rgba(102,192,244,.55); }
.card-game.claimed::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: 0 0 0 1px rgba(102,192,244,.4) inset; }
.games .skel { aspect-ratio: 210 / 170; }

/* ----- Teslimatlar ----- */
.del-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 50px; }
.del-item { display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.del-item:hover { border-color: rgba(102,192,244,.5); transform: translateY(-2px); }
.del-thumb { flex: none; width: 92px; aspect-ratio: 460/215; border-radius: 8px; overflow: hidden; position: relative; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 70% 38%), hsl(calc(var(--h) + 40) 60% 14%) 70%); }
.del-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.del-item b { display: block; line-height: 1.3; }
.del-item small { color: var(--muted); }
.del-item .go { margin-left: auto; color: var(--accent); }

/* ----- Teslimat penceresi ----- */
.cred { display: grid; gap: 10px; margin-bottom: 18px; }
.cred-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cred-row .lbl { width: 92px; flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.cred-row .val { flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.code-box { position: relative; padding: 22px 18px; border-radius: 16px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(26,159,255,.16), rgba(11,18,27,.9) 60%); border: 1px solid rgba(102,192,244,.3); }
.code-box h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.code-chars { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.code-chars span {
  width: 52px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 32px; font-weight: 700; color: #fff;
  background: #0d1824; border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  animation: flip .45s var(--ease) backwards;
}
.code-chars span:nth-child(2) { animation-delay: .05s; } .code-chars span:nth-child(3) { animation-delay: .1s; }
.code-chars span:nth-child(4) { animation-delay: .15s; } .code-chars span:nth-child(5) { animation-delay: .2s; }
.code-chars.idle span { color: var(--dim); animation: none; }
@keyframes flip { from { opacity: 0; transform: rotateX(80deg) translateY(-8px); } }
@media (max-width: 420px) { .code-chars span { width: 44px; height: 56px; font-size: 27px; } }
.ring-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ring { position: relative; width: 46px; height: 46px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring.low .fg { stroke: var(--warn); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.code-meta { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.how { margin: 18px 0 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ----- Geçmiş ----- */
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist th, .hist td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hist th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.hist tr:last-child td { border-bottom: 0; }
.footer { padding: 26px 0 40px; color: var(--dim); font-size: 13px; text-align: center; }

/* ----- Giriş / kayıt sekmeleri ----- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; }
.seg-b { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.seg-b.on { background: var(--panel-3); color: var(--text); }
.seg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-form .err-line { margin: 0 0 12px; }

/* ----- Keylerim ----- */
.redeem { padding: 18px; margin-bottom: 18px; display: grid; gap: 14px; }
.redeem-t b { display: block; font-size: 16px; }
.redeem-t span { color: var(--muted); font-size: 13.5px; }
.redeem-row { display: flex; gap: 12px; }
.redeem-row .key-input { flex: 1; min-width: 0; height: 52px; font-size: 16px; }
@media (max-width: 640px) { .redeem-row { flex-direction: column; } }
.key-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; padding-bottom: 50px; }
@media (max-width: 400px) { .key-list { grid-template-columns: 1fr; } }
.key-card { padding: 18px; display: grid; gap: 10px; align-content: start; animation: rise .4s var(--ease) backwards; }
.key-card.dim-card { opacity: .6; }
.kc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kc-hint { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.kc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kc-nums b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.kc-nums span { color: var(--dim); font-size: 12px; }
.key-card .bar { margin-top: 0; }
.kc-sub { color: var(--muted); font-size: 13px; }
.kc-games { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-games .chip { height: 30px; font-size: 12.5px; padding: 0 10px; display: inline-flex; align-items: center; }
.kc-foot { font-size: 12px; }

/* ----- Hesabım ----- */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-grid h3, .acc-h { margin: 0; font-size: 16px; }
.acc-h { margin: 26px 0 12px; }
.acc-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 18px; font-size: 14px; }
.acc-kv dt { color: var(--muted); }
.acc-kv dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; }
  .tab svg { display: none; }
}
