/* =========================
   PREMIUM++++ UI (2026)
   Ödül Çark - Mobile First
   ========================= */

/* --- Root Theme --- */
:root{
  --bg1:#070a17;
  --bg2:#0b1020;
  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.08);

  --text:#eaf0ff;
  --muted: rgba(234,240,255,.70);

  --gold:#f9d14a;
  --cyan:#24d2ff;
  --purple:#7c3aed;

  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --shadow2: 0 10px 40px rgba(0,0,0,.35);

  --r: 22px;
  --r2: 28px;

  --pad: 16px;
  --pad2: 20px;

  --blur: 14px;
}

/* --- Reset --- */
*{ box-sizing:border-box; }
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 520px at 85% 18%, rgba(36,210,255,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* --- Container --- */
.container{
  width: min(1100px, 96vw);
  margin: 18px auto 28px;
  padding: 0 10px;
}

/* --- Card Base --- */
.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--stroke2);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: var(--pad2);
  position: relative;
  overflow:hidden;
}

/* soft glow */
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 220px at 15% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(700px 220px at 85% 0%, rgba(36,210,255,.14), transparent 55%);
  pointer-events:none;
  opacity:.9;
}

/* --- Header --- */
.header{
  text-align:center;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.header h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.3px;
  text-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size: 13px;
}

/* --- Divider --- */
.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  margin: 14px 0;
}

/* --- Grid Layout --- */
.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}

/* Mobile: tek kolon + tam ekran */
@media (max-width: 880px){
  .grid{ grid-template-columns: 1fr; }
  .container{ width: min(980px, 96vw); }
}

/* --- Badge --- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.badge b{
  color: var(--text);
}

a.badge{
  transition: .18s ease;
}
a.badge:active{
  transform: scale(.98);
}

/* --- Feed Item (Lucky Mode like) --- */
.feed-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(249,209,74,.25);
  background: rgba(249,209,74,.06);
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.feed-item b{
  color: var(--gold);
  font-size: 14px;
}
.small{
  font-size: 13px;
  color: var(--muted);
}

/* --- Wheel canvas wrapper --- */
#wheel{
  display:block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 999px;
  box-shadow:
    0 30px 90px rgba(0,0,0,.55),
    0 0 0 8px rgba(255,255,255,.03);
  background: rgba(255,255,255,.02);
}

/* --- Buttons --- */
.btn{
  width: 100%;
  border: none;
  cursor:pointer;
  padding: 15px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing:.2px;

  color:#0a0d16;
  background: linear-gradient(90deg, #f9d14a, #ffe9a3);
  box-shadow:
    0 18px 40px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.50);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active{
  transform: translateY(1px) scale(.99);
  filter: brightness(.98);
}

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

/* Second button (Reklama Git) */
.btn2{
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #24d2ff);
  box-shadow:
    0 18px 45px rgba(0,0,0,.44),
    0 0 0 1px rgba(255,255,255,.08) inset;
}

/* Button spacing */
button + button{
  margin-top: 10px;
}

/* --- Panel Titles --- */
h2{
  position: relative;
  z-index: 1;
  font-size: 18px;
  margin: 0 0 10px 0;
}
h2 span{
  color: var(--gold);
}

/* --- Live Feed list --- */
.feed{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.feed .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.feed .row .left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.feed .row .icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(249,209,74,.12);
  border: 1px solid rgba(249,209,74,.22);
  color: var(--gold);
  font-weight: 900;
}

.feed .row .name{
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.feed .row .meta{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.feed .row .right{
  text-align:right;
}
.feed .row .coin{
  color: #21e98f;
  font-weight: 900;
  letter-spacing: .2px;
}
.feed .row .time{
  color: var(--muted);
  font-size: 12px;
}

/* --- Cooldown text --- */
#cooldownText{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
}

/* --- Inputs (Admin panel etc.) --- */
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

input::placeholder{
  color: rgba(234,240,255,.45);
}

/* --- Footer small notes --- */
.note{
  color: rgba(234,240,255,.60);
  font-size: 12px;
  margin-top: 10px;
}

/* --- Force full width on mobile layout --- */
@media (max-width: 520px){
  .container{ width: 96vw; }
  .card{ padding: 16px; border-radius: 22px; }
  .header h1{ font-size: 20px; }
  .btn{ padding: 14px; font-size: 15px; }
}

/* --- Fix random huge text overflow --- */
h1, h2, .badge, .subtitle, .small, .note{
  word-break: break-word;
  overflow-wrap:anywhere;
}