/* ==================================================================
   LerolCraft SMP - Tema
   ================================================================== */

:root {
  --bg: #050b08;
  --bg-2: #08130e;
  --panel: rgba(14, 28, 21, 0.72);
  --panel-solid: #0d1b15;
  --line: rgba(61, 220, 132, 0.16);
  --line-strong: rgba(61, 220, 132, 0.38);
  --text: #e8f5ee;
  --muted: #8fa89b;
  --green: #3ddc84;
  --green-d: #16a34a;
  --gold: #f5c451;
  --red: #ff5c6a;
  --blue: #58a6ff;
  --purple: #b57bff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cinzel', 'Outfit', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }
img { max-width: 100%; }

::selection { background: var(--green); color: #04120a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #071009; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--green-d), #0e5f2f); border-radius: 8px; border: 2px solid #071009; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ============================ ARKA PLAN ============================ */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.bg-glow--1 { width: 55vw; height: 55vw; top: -18vw; left: -12vw; background: radial-gradient(circle, rgba(61,220,132,.22), transparent 70%); animation: float1 18s ease-in-out infinite; }
.bg-glow--2 { width: 50vw; height: 50vw; bottom: -20vw; right: -12vw; background: radial-gradient(circle, rgba(245,196,81,.16), transparent 70%); animation: float2 22s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 5vh) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw, -6vh) scale(1.08); } }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(2, 8, 5, 0.75) 100%);
}

/* ============================ AÇILIŞ ============================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #0b1d14, #030805 70%);
  transition: opacity .7s ease, visibility .7s;
}
.boot.done { opacity: 0; visibility: hidden; }

.boot__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(61,220,132,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,220,132,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(520px) rotateX(62deg) scale(1.9) translateY(12%);
  animation: gridrun 6s linear infinite;
  mask-image: linear-gradient(to top, black, transparent 70%);
}
@keyframes gridrun { to { background-position: 0 46px, 0 0; } }

.boot__inner { position: relative; text-align: center; }

.boot__logo {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .16em;
  display: flex;
  gap: .1em;
  justify-content: center;
}
.boot__logo span { opacity: 0; animation: letterIn .6s forwards, letterFloat 3s ease-in-out infinite; }
.boot__logo span:nth-child(1) { animation-delay: .05s, .5s; }
.boot__logo span:nth-child(2) { animation-delay: .12s, .58s; }
.boot__logo span:nth-child(3) { animation-delay: .19s, .66s; }
.boot__logo span:nth-child(4) { animation-delay: .26s, .74s; }
.boot__logo span:nth-child(5) { animation-delay: .33s, .82s; }
.boot__logo span:nth-child(7) { animation-delay: .4s, .9s; }
.boot__logo span:nth-child(8) { animation-delay: .47s, .98s; }
.boot__logo span:nth-child(9) { animation-delay: .54s, 1.06s; }
.boot__logo span:nth-child(10) { animation-delay: .61s, 1.14s; }
.boot__logo span:nth-child(11) { animation-delay: .68s, 1.22s; }
.boot__cube { width: .82em; height: .82em; background: linear-gradient(160deg, #58e59b, #12833c); border-radius: .12em; box-shadow: 0 0 30px rgba(61,220,132,.5); align-self: center; }
@keyframes letterIn { from { opacity: 0; transform: translateY(24px) rotateX(-90deg); } to { opacity: 1; transform: none; } }
@keyframes letterFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.boot__bar { width: min(340px, 70vw); height: 5px; margin: 2.4rem auto .9rem; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green-d), var(--green), var(--gold)); transition: width .35s ease; box-shadow: 0 0 14px rgba(61,220,132,.7); }
.boot__status { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; }

/* ============================ GEÇİŞ KATMANI ============================ */
.wipe { position: fixed; inset: 0; z-index: 500; pointer-events: none; display: grid; place-items: center; }
.wipe__panel {
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, #06120c, #0a2016 45%, #06120c);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path .55s cubic-bezier(.7,0,.2,1);
  opacity: 0;
}
.wipe.in .wipe__panel { opacity: 1; clip-path: circle(150% at 50% 50%); }
.wipe.in { pointer-events: all; }
.wipe__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(61,220,132,.14), transparent);
  background-size: 200% 100%;
  animation: sweep .55s linear;
}
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================ DISCORD FAB ============================ */
.discord-fab {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #3b45c9);
  box-shadow: 0 10px 28px rgba(88, 101, 242, .45);
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, filter .3s;
}
.discord-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(88,101,242,.6); }
.discord-fab:active { transform: translateY(0) scale(.97); }
.discord-fab svg { position: relative; z-index: 1; }
.discord-fab__ring {
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 2px solid rgba(88,101,242,.6);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.discord-fab__text { font-size: .92rem; }
@media (max-width: 640px) { .discord-fab__text { display: none; } .discord-fab { padding: 12px; border-radius: 13px; } }

/* ============================ ÜST MENÜ ============================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 46px);
  padding-left: 168px;
  background: linear-gradient(to bottom, rgba(5,12,9,.92), rgba(5,12,9,.35), transparent);
  backdrop-filter: blur(10px);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.topbar.solid {
  background: rgba(5, 12, 9, .88);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.16rem; letter-spacing: .04em; }
.brand b { color: var(--green); }
.brand__cube {
  width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(150deg, #62f0a5, #12833c);
  box-shadow: 0 0 16px rgba(61,220,132,.55), inset 0 -6px 10px rgba(0,0,0,.28);
  animation: cubeSpin 6s linear infinite;
}
@keyframes cubeSpin { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(90deg) scale(1.06); } 50% { transform: rotate(180deg) scale(1); } 75% { transform: rotate(270deg) scale(1.06); } }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s, background .25s, transform .25s;
}
.nav a:hover { color: var(--text); background: rgba(61,220,132,.09); transform: translateY(-1px); }
.nav a.active { color: #04120a; background: linear-gradient(135deg, var(--green), #2bbd6c); font-weight: 600; box-shadow: 0 6px 18px rgba(61,220,132,.3); }
.nav__owner { color: var(--gold) !important; }
.nav__owner.active { color: #1a1200 !important; background: linear-gradient(135deg, var(--gold), #e0a92f) !important; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger i { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .3s; }

.auth-box { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green), var(--green-d));
  color: #04120a; font-weight: 700; font-size: .82rem;
}
.user-chip.owner .avatar { background: linear-gradient(140deg, var(--gold), #b8860b); }
.user-chip .owner-tag { font-size: .62rem; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: #221800; font-weight: 800; letter-spacing: .08em; }

@media (max-width: 900px) {
  .burger { display: block; order: -1; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(290px, 78vw);
    flex-direction: column;
    justify-content: center;
    background: rgba(6,16,11,.97);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.7,0,.2,1);
    gap: 8px;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 20px; font-size: 1rem; }
  .topbar { padding-left: 175px; }
}

@media (max-width: 640px) {
  .topbar { padding-left: 86px; }
}

/* ============================ BUTONLAR ============================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s, background .25s;
}
.btn--primary {
  color: #04120a;
  background: linear-gradient(135deg, #4ff09a, var(--green-d));
  box-shadow: 0 10px 26px rgba(22,163,74,.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(22,163,74,.5); filter: brightness(1.06); }
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-22deg);
  transition: left .6s;
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(61,220,132,.14); transform: translateY(-3px); }
.btn--gold { color: #221800; background: linear-gradient(135deg, #ffd97a, #d99e17); box-shadow: 0 10px 26px rgba(217,158,23,.32); }
.btn--gold:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn--danger { background: linear-gradient(135deg, #ff6b78, #d93646); color: #fff; box-shadow: 0 8px 22px rgba(217,54,70,.35); }
.btn--danger:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--discord { background: linear-gradient(135deg, #5865f2, #404aD9); color: #fff; box-shadow: 0 10px 26px rgba(88,101,242,.35); }
.btn--discord:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(88,101,242,.5); }
.btn--sm { padding: 8px 14px; font-size: .84rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* ============================ GÖRÜNÜM ============================ */
#app { position: relative; z-index: 2; min-height: 100vh; }

.view { display: none; padding: 118px clamp(16px, 5vw, 60px) 60px; max-width: 1280px; margin: 0 auto; }
.view.is-active { display: block; animation: viewIn .55s cubic-bezier(.2,.7,.3,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

.page-head { margin-bottom: 34px; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  margin: 0 0 8px;
  letter-spacing: .02em;
  background: linear-gradient(100deg, #fff, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p { color: var(--muted); margin: 0; max-width: 62ch; line-height: 1.6; }

/* ============================ HERO ============================ */
.hero { text-align: center; padding-top: 20px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(61,220,132,.09);
  border: 1px solid var(--line-strong);
  font-size: .84rem;
  color: #b9e7cd;
  margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.8s infinite; }
.hero__badge.off .dot { background: var(--red); box-shadow: 0 0 12px var(--red); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero__title { margin: 0; font-family: var(--display); line-height: 1; }
.hero__title .glitch {
  position: relative;
  display: block;
  font-size: clamp(2.6rem, 11vw, 7rem);
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 10%, #6ef0aa 55%, #17a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 34px rgba(61,220,132,.32));
}
.hero__title .glitch::before, .hero__title .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-fill-color: currentColor;
  opacity: .55;
  clip-path: inset(50% 0 50% 0);
}
.hero__title .glitch::before { color: #ff3b6b; animation: glitchA 5s infinite steps(2); }
.hero__title .glitch::after { color: #31d7ff; animation: glitchB 6.4s infinite steps(2); }
@keyframes glitchA { 0%,92%,100% { clip-path: inset(50% 0 50% 0); transform: none; } 93% { clip-path: inset(12% 0 62% 0); transform: translate(-6px,-2px); } 95% { clip-path: inset(58% 0 22% 0); transform: translate(5px,2px); } 97% { clip-path: inset(28% 0 50% 0); transform: translate(-3px,1px); } }
@keyframes glitchB { 0%,90%,100% { clip-path: inset(50% 0 50% 0); transform: none; } 91% { clip-path: inset(64% 0 16% 0); transform: translate(6px,2px); } 94% { clip-path: inset(22% 0 62% 0); transform: translate(-5px,-2px); } 97% { clip-path: inset(44% 0 36% 0); transform: translate(3px,-1px); } }

.hero__title em {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: clamp(.95rem, 2.4vw, 1.3rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
  -webkit-text-fill-color: var(--gold);
}
.hero__desc { color: var(--muted); max-width: 60ch; margin: 22px auto 0; line-height: 1.7; font-size: 1.02rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin: 40px auto 34px;
  max-width: 900px;
}
.stat {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  text-align: center;
  color: inherit;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
  cursor: default;
}
button.stat { cursor: pointer; }
.stat:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.stat__icon { font-size: 1.5rem; }
.stat__val { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stat.live .stat__val { color: var(--green); text-shadow: 0 0 22px rgba(61,220,132,.5); }
.stat.offline .stat__val { color: var(--red); text-shadow: 0 0 22px rgba(255,92,106,.45); }

.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.hero__announce {
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  text-align: left;
  backdrop-filter: blur(12px);
}
.hero__announce h3 { margin: 0 0 8px; font-size: .95rem; color: var(--gold); letter-spacing: .04em; }
.hero__announce p { margin: 0; color: #cfe0d6; line-height: 1.65; }

.hero__ip { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.copy {
  font-family: var(--mono);
  font-size: .92rem;
  color: var(--green);
  background: rgba(61,220,132,.1);
  border: 1px dashed var(--line-strong);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: .25s;
}
.copy:hover { background: rgba(61,220,132,.2); transform: translateY(-2px); }

.scroll-hint { margin-top: 44px; color: var(--muted); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--green), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================ KURALLAR ============================ */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rule-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
}
.rule-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,220,132,.13), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
}
.rule-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.rule-card:hover::before { opacity: 1; }
.rule-card__num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--display);
  font-size: 3.2rem;
  color: rgba(255,255,255,.045);
  font-weight: 800;
}
.rule-card__icon { font-size: 1.7rem; display: inline-block; margin-bottom: 10px; transition: transform .4s; }
.rule-card:hover .rule-card__icon { transform: scale(1.2) rotate(-8deg); }
.rule-card h3 { margin: 0 0 9px; font-size: 1.08rem; letter-spacing: .01em; }
.rule-card p { margin: 0; color: var(--muted); line-height: 1.66; font-size: .93rem; }
.rule-card__actions { position: relative; margin-top: 14px; display: flex; gap: 8px; }

.note {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(88,166,255,.07);
  border: 1px solid rgba(88,166,255,.25);
  color: #bcd6f5;
  line-height: 1.6;
}
.note a { color: var(--blue); text-decoration: underline; }

/* ============================ MAGAZA ============================ */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 20px; align-items: stretch; }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(17,34,26,.9), rgba(8,18,13,.9));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.product::after {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 80%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(61,220,132,.12), transparent);
  transform: rotate(18deg);
  transition: left .7s;
}
.product:hover { transform: translateY(-10px); border-color: var(--line-strong); box-shadow: 0 26px 60px rgba(0,0,0,.6); }
.product:hover::after { left: 130%; }
.product.featured { border-color: rgba(245,196,81,.45); }
.product.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,196,81,.11), transparent 42%);
}
.product__badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold), #d99e17);
  color: #221800;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(217,158,23,.4);
}
.product__emoji { font-size: 2.6rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.product h3 { margin: 14px 0 6px; font-size: 1.35rem; font-family: var(--display); }
.product__desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 18px; min-height: 42px; }
.product__price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.product__price b { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.product__price span { color: var(--muted); font-size: .88rem; }
.product__stock { font-size: .78rem; color: var(--gold); margin-bottom: 14px; }
.product__features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.product__features li { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; color: #c3d8cb; }
.product__features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.product .btn { margin-top: auto; }
.product__admin { display: flex; gap: 8px; margin-top: 10px; }
.product__admin .btn { flex: 1; }
.product.inactive { opacity: .45; filter: grayscale(.6); }

.store-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 34px; }
.step {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.step b {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--green), var(--green-d));
  color: #04120a;
  font-size: .95rem;
}
.step i { color: var(--green); font-style: normal; }
.step b, .step span b { color: var(--text); white-space: nowrap; }

/* ============================ DESTEK ============================ */
.support-wrap { display: grid; gap: 14px; }

.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .28s, background .28s;
}
.ticket-row:hover { transform: translateX(6px); border-color: var(--line-strong); background: rgba(61,220,132,.06); }
.ticket-row__main { min-width: 0; }
.ticket-row__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket-row h4 { margin: 0; font-size: 1rem; }
.ticket-row p { margin: 0; color: var(--muted); font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag--open { background: rgba(61,220,132,.16); color: var(--green); border: 1px solid rgba(61,220,132,.3); }
.tag--closed { background: rgba(255,92,106,.14); color: var(--red); border: 1px solid rgba(255,92,106,.28); }
.tag--cat { background: rgba(88,166,255,.14); color: var(--blue); border: 1px solid rgba(88,166,255,.28); }
.tag--staff { background: linear-gradient(135deg, var(--gold), #d99e17); color: #221800; }
.tag--new { background: var(--blue); color: #04121f; animation: blink 1.6s infinite; }

.ticket-row__side { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.ticket-row__count { padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: .76rem; }

.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }

.gate { padding: 46px 30px; text-align: center; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.gate h3 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 10px; }
.gate p { color: var(--muted); margin: 0 0 22px; }

/* ============================ PANEL ============================ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.tab.is-active { color: #221800; background: linear-gradient(135deg, var(--gold), #d99e17); border-color: transparent; box-shadow: 0 8px 22px rgba(217,158,23,.3); }
.pill {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: .7rem; font-style: normal;
}
.tab.is-active .pill { background: #221800; color: var(--gold); }

.panel-body { animation: viewIn .4s ease; }

.admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  transition: .25s;
}
.admin-row:hover { border-color: var(--line-strong); background: rgba(61,220,132,.05); }
.admin-row__icon { font-size: 1.8rem; }
.admin-row__main { min-width: 0; }
.admin-row__main h4 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-row__main p { margin: 0; color: var(--muted); font-size: .84rem; }
.admin-row__meta { color: var(--muted); font-size: .8rem; text-align: right; }
.admin-row__meta b { display: block; color: var(--gold); font-family: var(--display); font-size: 1.05rem; }
.admin-row__acts { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
.table th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(61,220,132,.05); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.on { color: var(--green); }
.off { color: var(--red); }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-family: var(--display); font-size: 1.2rem; }

/* ============================ MODAL ============================ */
.modal { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 18px; }
.modal.open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2,7,5,.78); backdrop-filter: blur(7px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(170deg, #0f2119, #08130e);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  animation: modalIn .45s cubic-bezier(.34,1.4,.5,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(34px) scale(.92); } to { opacity: 1; transform: none; } }
.modal__box--wide { width: min(680px, 100%); }
.modal__box--sm { width: min(380px, 100%); text-align: center; }
.modal__box--thread { width: min(720px, 100%); }

.modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
  transition: .22s;
}
.modal__x:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.modal__box h2 { margin: 0 0 6px; font-family: var(--display); font-size: 1.5rem; }
.modal__sub { margin: 0 0 22px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.modal__logo { display: flex; justify-content: center; margin-bottom: 16px; }
.modal__logo .brand__cube { width: 42px; height: 42px; border-radius: 10px; }
.modal__logo--warn {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,92,106,.15);
  border: 1px solid rgba(255,92,106,.4);
  color: var(--red);
  font-size: 1.6rem; font-weight: 800;
}
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.switch { position: relative; display: flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 22px; }
.switch__btn {
  position: relative; z-index: 1;
  flex: 1; padding: 10px;
  border: 0; background: none;
  color: var(--muted); font-weight: 600; font-size: .92rem;
  cursor: pointer;
  border-radius: 9px;
  transition: color .3s;
}
.switch__btn.is-active { color: #04120a; }
.switch__ind {
  position: absolute; z-index: 0;
  top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: 9px;
  background: linear-gradient(135deg, #4ff09a, var(--green-d));
  transition: transform .38s cubic-bezier(.7,0,.2,1);
}
.switch[data-mode="register"] .switch__ind { transform: translateX(100%); }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 7px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,220,132,.15);
  background: rgba(0,0,0,.5);
}
.field select option { background: #0d1b15; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: 9px; font-size: .89rem; color: var(--muted); cursor: pointer; margin: 4px 0 6px; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }

.form-error { min-height: 18px; margin: 6px 0 0; color: var(--red); font-size: .84rem; }

/* ============================ THREAD ============================ */
#threadHead { margin-bottom: 16px; }
#threadHead h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 8px; }
.thread { display: grid; gap: 12px; max-height: 46vh; overflow-y: auto; padding-right: 6px; }
.msg { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); animation: viewIn .3s ease; }
.msg--staff { background: rgba(245,196,81,.08); border-color: rgba(245,196,81,.28); }
.msg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: .82rem; }
.msg__head b { font-size: .88rem; }
.msg__head time { margin-left: auto; color: var(--muted); font-size: .74rem; }
.msg p { margin: 0; line-height: 1.6; font-size: .92rem; color: #d7e6dc; white-space: pre-wrap; word-break: break-word; }
.thread__reply { margin-top: 18px; display: grid; gap: 10px; }
.thread__reply textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.35); color: var(--text); outline: none; resize: vertical; transition: .25s; }
.thread__reply textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,220,132,.15); }
.thread__actions { display: flex; gap: 10px; justify-content: space-between; }

/* ============================ TOAST ============================ */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 600; display: grid; gap: 10px; max-width: min(360px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px;
  border-radius: 13px;
  background: rgba(13,27,21,.96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: .9rem;
  animation: toastIn .45s cubic-bezier(.34,1.5,.5,1);
}
.toast.out { animation: toastOut .35s ease forwards; }
.toast i { font-style: normal; font-size: 1.1rem; }
.toast--ok { border-color: rgba(61,220,132,.5); }
.toast--err { border-color: rgba(255,92,106,.5); }
.toast--info { border-color: rgba(88,166,255,.45); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.9); } }

/* ============================ FOOTER ============================ */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 34px clamp(16px, 5vw, 60px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: .87rem;
}
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { transition: color .25s; }
.footer__links a:hover { color: var(--green); }

/* ============================ SKELETON ============================ */
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.045); border-radius: var(--radius); min-height: 210px; border: 1px solid var(--line); }
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}