﻿/* =====================================================================
   SKINBOX — PAGE-SPECIFIC STYLES
   ===================================================================== */

/* ---------- Two-column with rail ---------- */
.with-rail { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.rail { position: sticky; top: calc(var(--header-h) + 16px); }
.rail .glass { padding: 16px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
@media (max-width: 1240px) { .with-rail { grid-template-columns: 1fr; } .rail { position: static; } }

/* ---------- Hero banner ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: 26px 28px; margin-bottom: 24px;
  background:
    radial-gradient(80% 140% at 90% 0%, rgba(255,140,0,.2), transparent 55%),
    linear-gradient(120deg, rgba(138,74,36,.32), rgba(32,36,42,.5));
  border: 1px solid var(--border-strong);
}
.hero h1 { font-size: clamp(24px, 4vw, 38px); }
.hero p { color: var(--text-soft); max-width: 520px; margin-top: 8px; }
.hero .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.sec-head .ntile.sm { width: 30px; height: 30px; border-radius: 9px; }
.sec-head h2 { font-size: 18px; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--neon-blue); font-weight: 600; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 24px; flex-wrap: wrap; }
.profile-head .bigav { width: 92px; height: 92px; border-radius: 22px; overflow: hidden; border: 3px solid var(--neon-violet); box-shadow: var(--glow-violet); }
.profile-head .pname { font-size: 24px; }
.profile-head .meta { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.profile-head .bal-block { margin-left: auto; text-align: right; }
.profile-head .bal-block .big { font-size: 30px; font-weight: 800; color: var(--rar-gold); text-shadow: 0 0 14px rgba(255,210,74,.4); }
.level-bar { height: 8px; border-radius: 99px; background: var(--bg-input); overflow: hidden; margin-top: 10px; max-width: 320px; }
.level-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-violet), var(--neon-blue)); box-shadow: var(--glow-blue); }

/* ---------- Upgrade ---------- */
.upgrade-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 30px; }
.up-slot { border-radius: var(--radius-lg); border: 1.5px dashed var(--border-strong); background: var(--bg-input); padding: 22px; text-align: center; min-height: 260px; display: flex; flex-direction: column; }
.up-slot .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.up-slot .art { flex: 1; display: grid; place-items: center; }
.up-slot .art .ntile { width: 130px; height: 130px; }
.dial { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.dial svg { transform: rotate(-90deg); width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(0,191,255,.4)); }
.dial .dial-track { fill: none; stroke: rgba(160,110,60,.15); stroke-width: 14; }
.dial .dial-ring { fill: none; stroke: url(#dialGrad); stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray .25s var(--ease); }
.dial .dial-center { position: absolute; text-align: center; }
.dial .dial-pct { font-size: 34px; font-weight: 800; }
.dial .dial-sub { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.dial.spinning svg { animation: dialSpin 1.6s var(--ease); }
@keyframes dialSpin { to { transform: rotate(670deg); } }
.range-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
input[type=range].sb-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--neon-orange), rgba(160,110,60,.2)); outline: none; }
input[type=range].sb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--neon-orange); box-shadow: var(--glow-orange); cursor: pointer; border: 2px solid #fff3; }
@media (max-width: 900px) { .upgrade-stage { grid-template-columns: 1fr; } }

/* ---------- Contracts ---------- */
.contract-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.skin-card.selectable { cursor: pointer; }
.skin-card.selected { border-color: var(--neon-orange); box-shadow: 0 0 0 1px var(--neon-orange), var(--glow-orange); }
.skin-card.selected::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--neon-orange); box-shadow: var(--glow-orange); }
.outcome { padding: 18px; }
.outcome .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.outcome .row:last-of-type { border: none; }
.outcome .row .v { font-weight: 700; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.how-step { padding: 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.how-step .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,191,255,.12); color: var(--neon-blue); font-weight: 800; margin-bottom: 10px; }
@media (max-width: 900px) { .contract-layout { grid-template-columns: 1fr; } }

/* ---------- Battles ---------- */
.battle-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; margin-bottom: 14px; }
.battle-team { display: flex; align-items: center; gap: 10px; }
.battle-team.right { flex-direction: row-reverse; text-align: right; }
.battle-team .tav { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; border: 2px solid var(--border-strong); flex-shrink: 0; }
.battle-team .tn { font-weight: 700; font-size: 14px; }
.battle-team .ts { font-size: 12px; color: var(--text-dim); }
.battle-vs { text-align: center; }
.battle-vs .vs { font-size: 22px; font-weight: 900; color: var(--rar-covert); text-shadow: 0 0 12px rgba(255,60,110,.5); }
.battle-vs .pot { font-size: 12px; color: var(--rar-gold); font-weight: 700; margin-top: 4px; }
.battle-vs .cases { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.battle-vs .cases .ntile { width: 26px; height: 26px; border-radius: 7px; }
@media (max-width: 720px) { .battle-card { grid-template-columns: 1fr; } .battle-team.right { flex-direction: row; text-align: left; } }

/* ---------- Bonuses ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.bonus-card { padding: 24px; text-align: center; }
.bonus-card .ntile { width: 72px; height: 72px; margin: 0 auto 16px; }
.bonus-card h3 { font-size: 17px; }
.bonus-card p { color: var(--text-dim); font-size: 13px; margin: 8px 0 18px; }
.rules-list { padding: 20px 24px; }
.rules-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: 14px; }
.rules-list li:last-child { border: none; }
.rules-list li .ic { color: var(--neon-green); flex-shrink: 0; margin-top: 2px; }
.rules-list li .ic svg { width: 18px; height: 18px; }

/* ---------- Calendar ---------- */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.cal-head { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; position: relative; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: .18s; font-weight: 700;
}
.cal-day:hover:not(.locked) { border-color: var(--border-strong); transform: translateY(-2px); }
.cal-day .num { position: absolute; top: 6px; left: 8px; font-size: 11px; color: var(--text-dim); }
.cal-day .ic svg { width: 26px; height: 26px; }
.cal-day.locked { opacity: .5; cursor: default; }
.cal-day.locked .ic { color: var(--text-faint); }
.cal-day.unlocked { border-color: rgba(0,191,255,.4); box-shadow: inset 0 0 16px rgba(0,191,255,.12); }
.cal-day.unlocked .ic { color: var(--neon-blue); }
.cal-day.special { background: linear-gradient(160deg, rgba(255,140,0,.22), rgba(20,16,38,.6)); border-color: rgba(255,140,0,.5); }
.cal-day.special .ic { color: var(--neon-orange); }
.cal-day.claimed { opacity: .55; }
.cal-day.claimed::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(46,230,166,.12); border: 1px solid var(--neon-green); }
.final-prize { padding: 22px; text-align: center; }
.final-prize .ntile { width: 110px; height: 110px; margin: 0 auto 16px; }
.final-prize h3 { font-size: 18px; }
.final-prize .pv { font-size: 26px; font-weight: 800; color: var(--rar-gold); margin: 8px 0; text-shadow: 0 0 14px rgba(255,210,74,.4); }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: 1fr; } }

/* ---------- Giveaway ---------- */
.giveaway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; margin-bottom: 26px; }
.give-card { padding: 22px; text-align: center; }
.give-card .head { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-soft); font-weight: 700; margin-bottom: 16px; }
.give-card .head svg { width: 18px; height: 18px; color: var(--neon-blue); }
.timer { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.timer .seg { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 0; min-width: 56px; }
.timer .seg b { display: block; font-size: 26px; font-weight: 800; color: var(--neon-orange); font-variant-numeric: tabular-nums; }
.timer .seg span { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.winners-list { padding: 8px; }
.winner-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; transition: .15s; }
.winner-row:hover { background: var(--bg-elev); }
.winner-row .wrank { width: 28px; text-align: center; font-weight: 800; color: var(--text-dim); }
.winner-row .wrank.gold { color: var(--rar-gold); }
.winner-row .wav { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.winner-row .wname { font-weight: 700; font-size: 14px; }
.winner-row .wprize { margin-left: auto; font-weight: 700; color: var(--rar-gold); font-size: 13px; }

/* ---------- Case detail ---------- */
.case-hero { display: flex; gap: 24px; align-items: center; padding: 26px; flex-wrap: wrap; }
.case-hero .big-crate { flex-shrink: 0; }
.case-hero .big-crate .crate { width: 180px; height: 150px; }
.case-hero .info { flex: 1; min-width: 240px; }
.case-hero .info h1 { font-size: 28px; }
.case-hero .info p { color: var(--text-soft); margin-top: 8px; max-width: 440px; }
.case-hero .buy { text-align: center; }
.case-hero .buy .price { font-size: 30px; font-weight: 800; color: var(--rar-gold); margin-bottom: 12px; }
.odds-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 18px 0 4px; }
.odds-bar i { height: 100%; }
.odds-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.odds-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-list { padding: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 16px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text); text-align: left;
  transition: color .15s;
}
.faq-q:hover { color: var(--neon-orange); }
.faq-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); transition: transform .2s var(--ease); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--neon-orange); }
.faq-a { display: none; padding: 0 16px 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; line-height: 1.75; color: var(--text-soft); max-width: 860px; }

/* ---------- SEO text blocks ---------- */
.seo-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.seo-block {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.seo-block:last-child { border-bottom: none; }
.seo-block h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--neon-orange-2);
  margin-bottom: 10px;
}
.seo-block p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 900px;
}
