/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ===== BODY ===== */
body {
  background: radial-gradient(circle at top, #141824, #0b0d13);
  color: #e5e7eb;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(90deg, #151a28, #101420);
  padding: 22px;
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6cff8d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  background: #0f1320;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: 0.2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #6cff8d;
  transition: 0.2s;
}

nav a:hover {
  color: #e5e7eb;
}

nav a:hover::after {
  width: 100%;
}

/* ===== USER ===== */
.user {
  margin-left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #6cff8d;
}

/* ===== BUTTONS ===== */
.login-btn {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88,101,242,0.5);
}

/* ===== THEME BUTTON ===== */
.theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.theme-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* ===== MAIN ===== */
main {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ===== CARDS ===== */
.card {
  background: linear-gradient(180deg, #141a2b, #101420);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.card h1 {
  font-size: 28px;
  margin-bottom: 18px;
  color: #6cff8d;
}

.card h2,
.card h3 {
  margin-bottom: 12px;
  color: #6cff8d;
}

.card p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 15.5px;
}

/* ===== LEGAL TEXT ===== */
.card ul {
  margin-left: 18px;
  margin-top: 10px;
}

.card li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* ===== LEGAL GRID ===== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.legal-card {
  position: relative;
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(108,255,141,0.10),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
}

.legal-card:hover::before {
  opacity: 1;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

.legal-card h4 {
  margin-bottom: 6px;
  color: #6cff8d;
}

.legal-card p {
  font-size: 14.5px;
  color: #cbd5e1;
}

/* ===== PERKS ===== */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.perk-card {
  background: linear-gradient(180deg, #141a2b, #101420);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: 0.25s;
}

.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.8);
}

.perk-card.selected {
  border: 2px solid #6cff8d;
}

.perk-card h4 {
  color: #6cff8d;
  margin-bottom: 8px;
}

/* ===== CART ===== */
.cart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart input {
  background: #0f1320;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.cart input:focus {
  outline: none;
  border-color: #6cff8d;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 26px;
  background: #0f1320;
  color: #6b7280;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p:first-child {
  font-weight: 600;
  color: #9ca3af;
}

footer p:last-child {
  line-height: 1.6;
}

/* ===== LIGHT THEME ===== */
body.light {
  background: #f4f6fb;
  color: #1f2937;
}

body.light header,
body.light nav,
body.light footer {
  background: #ffffff;
}

body.light .card {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

body.light .legal-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

body.light .legal-card h4,
body.light .card h1,
body.light .card h2,
body.light .card h3 {
  color: #16a34a;
}
.limited-title {
  border: 2px solid gold;
  background: linear-gradient(120deg, #2a2200, #3b2f00);
}

.limited.gold {
  border: 2px solid gold;
  position: relative;
  overflow: hidden;
}

.limited.gold::before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,215,0,0.4),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.limited-badge {
  position:absolute;
  top:10px;
  right:10px;
  background: gold;
  color:#000;
  padding:4px 10px;
  border-radius:20px;
  font-weight:700;
}
/* ===============================
LIMITED — УБИРАЕМ БЕЛЫЕ ПОЛЯ
=============================== */


/* INPUT / TEXTAREA / SELECT */
.delivery-form input,
.delivery-form textarea,
.delivery-form select {
background: linear-gradient(180deg, #0f1320, #0b0d13) !important;
color: #e5e7eb !important;
border: 1px solid rgba(255,215,0,0.6) !important;
border-radius: 10px;
padding: 10px 12px;
font-size: 15px;
outline: none;
}


/* placeholder */
.delivery-form input::placeholder,
.delivery-form textarea::placeholder {
color: #9ca3af;
}


/* focus */
.delivery-form input:focus,
.delivery-form textarea:focus,
.delivery-form select:focus {
border-color: gold !important;
box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
}


/* select стрелка (Chrome) */
.delivery-form select {
appearance: none;
background-image:
linear-gradient(45deg, transparent 50%, gold 50%),
linear-gradient(135deg, gold 50%, transparent 50%);
background-position:
calc(100% - 18px) calc(50% - 4px),
calc(100% - 12px) calc(50% - 4px);
background-size: 6px 6px;
background-repeat: no-repeat;
padding-right: 34px;
}
.pay-btn {
  background: #3f3f46;
  color: #aaa;
  cursor: not-allowed;
}

.pay-btn.active {
  background: linear-gradient(135deg, gold, #eab308);
  color: #000;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255,215,0,0.5);
}
/* ===== SOLD OUT ===== */
.perk-card.sold {
  opacity: 0.45;
  filter: grayscale(1);
  pointer-events: none;
}

.perk-card.sold .buy-btn {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
}

/* ===== DISABLED BUTTON ===== */
.buy-btn.disabled {
  background: #3f3f46;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== INPUT + TEXTAREA (УБРАТЬ БЕЛОЕ) ===== */
input,
textarea,
select {
  background: #0f1320 !important;
  border: 1px solid rgba(255,215,0,0.6);
  color: #e5e7eb;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
}
#paypal-button {
margin-top: 14px;
padding: 12px;
border-radius: 14px;
background: linear-gradient(180deg, #0f1320, #0b0d13);
border: 1px solid rgba(255,215,0,0.4);
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 44px;
}
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delivery-grid textarea {
  grid-column: span 2;
}
.buy-btn.disabled,
.buy-btn:disabled {
  background: #3f3f46;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}
/* ===== BIG BUY / PAY BUTTONS ===== */
.buy-btn {
  width: 100%;
  margin-top: 12px;
  padding: 16px 20px;
  font-size: 18px;
  border-radius: 14px;
  letter-spacing: 0.5px;
}

.buy-btn:hover:not(.disabled) {
  transform: translateY(-2px) scale(1.02);
}

/* кнопка ОПЛАТИТЬ — ещё жирнее */
#payBtn {
  font-size: 20px;
  padding: 18px;
}
/* скрытая кнопка */
.buy-btn.hidden {
  display: none;
}
/* ===== BIG BUTTONS ===== */
.big-btn {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  border-radius: 16px;
  margin-top: 14px;
}

.buy-btn.hidden {
  display: none;
}

/* ===== SOLD OUT ===== */
.perk-card.sold {
  opacity: 0.45;
  filter: grayscale(1);
  pointer-events: none;
}

/* ===== DELIVERY FORM ===== */
.delivery-form input,
.delivery-form textarea,
.delivery-form select {
  background: linear-gradient(180deg,#0f1320,#0b0d13);
  border: 1px solid rgba(255,215,0,0.6);
  color: #e5e7eb;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.delivery-form input:focus,
.delivery-form textarea:focus,
.delivery-form select:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
}
.info.warning {
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, #2a1212, #3a0f0f);
  box-shadow: 0 0 25px rgba(239,68,68,.25);
}

.info.warning h3 {
  color: #f87171;
  text-align: center;
  margin-bottom: 10px;
}

.info.warning ul {
  padding-left: 18px;
  line-height: 1.6;
}

.info.warning li {
  margin-bottom: 6px;
}
/* 💎 LIMITED NAV BUTTON */
.nav-limited {
  position: relative;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 10px;
  color: #ffd700;
  text-decoration: none;
  background: linear-gradient(
    120deg,
    #ffd700,
    #ff9f1a,
    #fff1a8,
    #ff9f1a,
    #ffd700
  );
  background-size: 300% 300%;
  animation: goldFlow 4s ease infinite;
  box-shadow:
    0 0 10px rgba(255,215,0,0.4),
    0 0 20px rgba(255,165,0,0.25);
  transition: transform .2s ease;
}

/* hover — кнопка "подпрыгивает" */
.nav-limited:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 0 14px rgba(255,215,0,.8),
    0 0 30px rgba(255,165,0,.6);
}

/* перелив золота */
@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* блеск поверх */
.nav-limited::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.6),
    transparent 80%
  );
  opacity: 0;
  transition: opacity .2s;
}

.nav-limited:hover::after {
  opacity: 1;
}
/* 🖼️ ЕДИНЫЙ РАЗМЕР ДЛЯ LIMITED ТОВАРОВ */
.limited-img {
  width: 180px;          /* базовая ширина */
  height: 180px;         /* базовая высота */
  object-fit: contain;   /* НЕ обрезает, вписывает */
  display: block;
  margin: 10px auto 14px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.35));
}
/* ===============================
🔥 ACTIVE EVENTS
=============================== */

.event-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  background: linear-gradient(180deg, #141a2b, #101420);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 45px rgba(0,0,0,0.75);
  transition: 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.9);
}

/* 🖼 Картинка ивента */
.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* 📦 Контент */
.event-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 🔴 СЕЙЧАС */
.event-now {
  align-self: flex-start;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(239,68,68,0.7);
  animation: pulse 1.8s infinite;
}

/* ✨ Пульсация */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 rgba(239,68,68,0.7); }
  70%  { box-shadow: 0 0 24px rgba(239,68,68,0.9); }
  100% { box-shadow: 0 0 0 rgba(239,68,68,0.7); }
}

.event-content h3 {
  font-size: 22px;
  color: #6cff8d;
  margin-bottom: 10px;
}

.event-content p {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* 🔔 Кнопка */
.event-btn {
  margin-top: 16px;
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6cff8d, #22c55e);
  color: #052e16;
  box-shadow: 0 14px 30px rgba(34,197,94,0.45);
  transition: 0.25s ease;
}

.event-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(34,197,94,0.7);
}

/* 📱 АДАПТИВ */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 200px;
  }

  .event-btn {
    width: 100%;
    text-align: center;
  }
}
.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.product-card {
  background: linear-gradient(135deg, #1f2937, #111827);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.product-card.selected {
  border-color: #22c55e;
}

.product-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.product-card h4 {
  margin: 6px 0;
}

.product-card p {
  font-size: 13px;
  opacity: 0.85;
}

.product-card b {
  display: block;
  margin-top: 8px;
  color: #22c55e;
}
/* 🌾 FARMICS SHOP */
.farmik-card {
  border: 2px solid rgba(108,255,141,0.25);
  background: radial-gradient(circle at top, #162033, #0f1320);
}

.farmik-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.farmik-icon {
  font-size: 42px;
  filter: drop-shadow(0 0 12px rgba(108,255,141,0.6));
}

.farmik-sub {
  font-size: 14px;
  opacity: 0.85;
}

/* RANGE */
#farmikRange {
  width: 100%;
  margin: 18px 0;
  height: 6px;
  appearance: none;
  background: linear-gradient(90deg, #6cff8d, #22c55e);
  border-radius: 999px;
  outline: none;
}

#farmikRange::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6cff8d;
  box-shadow: 0 0 20px rgba(108,255,141,0.9);
  cursor: pointer;
}

/* QUICK BUTTONS */
.farmik-quick {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.farmik-quick button {
  flex: 1;
  padding: 8px;
  background: #0f172a;
  border: 1px solid rgba(108,255,141,0.3);
  color: #6cff8d;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.farmik-quick button:hover {
  background: rgba(108,255,141,0.15);
}

/* INFO */
.farmik-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.farmik-info b {
  font-size: 22px;
  color: #6cff8d;
}

.farmik-price {
  font-size: 26px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34,197,94,0.15);
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(34,197,94,0.4);
}
/* ===============================
🖥 SERVER BLOCK
=============================== */

.server-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  border: 2px solid rgba(108,255,141,0.25);
  background: radial-gradient(circle at top, #162033, #0f1320);
}

/* ЛЕВАЯ ЧАСТЬ */
.server-left h2 {
  margin-bottom: 10px;
}

.server-online {
  font-size: 18px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.server-online b {
  color: #6cff8d;
}

.server-desc {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.server-meta {
  font-size: 14px;
  opacity: 0.9;
}

/* ПРАВАЯ ЧАСТЬ */
.server-right {
  text-align: center;
}

.server-ip {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 16px 22px;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  color: #052e16;
  background: linear-gradient(135deg, #6cff8d, #22c55e);
  box-shadow: 0 18px 40px rgba(34,197,94,0.6);
  transition: 0.25s ease;
}

.server-ip:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 24px 60px rgba(34,197,94,0.85);
}

.server-ip-sub {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}

/* 📱 АДАПТИВ */
@media (max-width: 768px) {
  .server-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.settings-btn {
  position: relative;
  font-size: 20px;
  text-decoration: none;
  color: #9ca3af;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

/* зелёная линия снизу */
.settings-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #6cff8d;
  transition: 0.25s ease;
}

/* hover эффект */
.settings-btn:hover {
  color: #6cff8d;
  background: rgba(108,255,141,0.08);
  box-shadow: 0 0 12px rgba(108,255,141,0.35);
}

/* появление линии */
.settings-btn:hover::after {
  width: 100%;
}
/* ===== PROFILE ===== */

.profile-wrapper {
  text-align: center;
}

.profile-avatar {
  width: 110px;
  border-radius: 50%;
  border: 3px solid #6cff8d;
  box-shadow: 0 0 25px rgba(108,255,141,0.6);
  margin-bottom: 10px;
}

.profile-id {
  opacity: 0.6;
  font-size: 13px;
}

/* ===== STATS GRID ===== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 14px;
  margin-top: 25px;
}

.stat-card {
  background: linear-gradient(135deg,#162033,#0f1320);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(108,255,141,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

.stat-card span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #6cff8d;
}

.stat-card small {
  opacity: 0.7;
  font-size: 12px;
}

/* ===== ADMIN PANEL ===== */

.admin-panel {
  margin-top: 35px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg,#2a1a00,#1a1100);
  border: 2px solid gold;
  box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

.admin-panel h3 {
  color: gold;
  margin-bottom: 15px;
}

.admin-panel input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid gold;
  background: #0f1320;
  color: white;
}

.admin-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 10px;
}

.admin-buttons button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(135deg,gold,#eab308);
  color: black;
  transition: 0.2s;
}

.admin-buttons button:hover {
  transform: scale(1.05);
}
.admin-section {
  margin-bottom: 18px;
}

.admin-section label {
  display:block;
  margin-bottom:6px;
  font-weight:700;
  color:gold;
}

.admin-section input {
  width:100%;
  margin-bottom:8px;
  padding:10px;
  border-radius:10px;
  border:1px solid gold;
  background:#0f1320;
  color:white;
}

.admin-section.danger button {
  background:linear-gradient(135deg,#ef4444,#b91c1c);
  color:white;
}
/* Убираем стрелки у input type=number */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}
/* ===== CREATOR BADGE ===== */

.creator-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;

  background: linear-gradient(135deg, #ff7a00, #ffb347, #ffffff);
  background-size: 200% 200%;
  animation: creatorFlow 3s ease infinite;

  color: #000;
  box-shadow:
    0 0 8px rgba(255,140,0,0.6),
    0 0 18px rgba(255,255,255,0.5);

  font-family: "Segoe UI", sans-serif;
}

/* перелив */
@keyframes creatorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.user-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.creator-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;

  background: linear-gradient(135deg, #ff7a00, #ffb347, #ffffff);
  background-size: 200% 200%;
  animation: creatorFlow 3s ease infinite;

  color: #000;

  box-shadow:
    0 0 8px rgba(255,140,0,0.6),
    0 0 18px rgba(255,255,255,0.4);
}

@keyframes creatorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.user-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;

  background: linear-gradient(135deg, #ff7a00, #ffb347, #ffffff);
  background-size: 200% 200%;
  animation: creatorFlow 3s ease infinite;

  color: #000;

  box-shadow:
    0 0 8px rgba(255,140,0,0.6),
    0 0 18px rgba(255,255,255,0.4);
}

@keyframes creatorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.currency-box {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.currency-item {
  font-weight: 700;
  color: #6cff8d;
}
/* ===== BACKGROUND EASTER CUBE ===== */

body::before {
  content: "";
  position: fixed;
  left: 40px;
  top: 80px;

  width: 60px;
  height: 60px;

  background-image: url("/images/cube.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.04;
  filter: grayscale(100%);
  pointer-events: none;
  z-index: 0;
}
.top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #1e293b;
  border-radius: 10px;
  font-weight: 600;
}

.place {
  color: #facc15;
}

.coins {
  color: #22c55e;
}
.leaders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}

.leader-item:hover {
  transform: scale(1.02);
  background: #334155;
}

.leader-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.leader-place {
  font-size: 18px;
}

.leader-coins {
  color: #22c55e;
}

/* 🥇 GOLD (только для лидерборда) */
.leaders-list .gold {
  background: linear-gradient(90deg, #facc15, #f59e0b);
  color: black;
}

/* 🥈 SILVER */
.silver {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  color: black;
}

/* 🥉 BRONZE */
.bronze {
  background: linear-gradient(90deg, #d97706, #92400e);
  color: white;
}
.leaders-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #334155;
  color: white;
  font-weight: 600;
  transition: 0.2s;
}

.tab-btn:hover {
  background: #475569;
}

.tab-btn.active {
  background: #22c55e;
  color: black;
}
/* ===== SECRET CUBE ===== */



/* ===== PAGE LAYOUT ===== */

.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* ===== SECRET BOX ===== */

/* ===== SECRET BOX (минимал, тёмная) ===== */

/* ===== SECRET BOX NEW ANIMATION ===== */

.secret-box {
  width: 80px;
  height: 80px;
  position: absolute;
  left: -100px;
  top: 30px;
  cursor: pointer;
  perspective: 800px;
}

/* Внутренний контейнер */
.box-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ЗАДНЯЯ ЧАСТЬ (остаётся) */
.box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(108,255,141,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ПЕРЕДНЯЯ СТЕНКА */
.box-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(108,255,141,0.35);
  border-radius: 12px;
  background: rgba(10,15,25,0.6);
  backdrop-filter: blur(4px);
  transition: transform 0.6s cubic-bezier(.7,-0.4,.3,1.4);
}

/* Ключ */
.box-key {
  font-size: 26px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s ease 0.3s;
  filter: drop-shadow(0 0 0px #6cff8d);
}

/* АКТИВНОЕ СОСТОЯНИЕ */
.secret-box.active .box-front {
  transform: translateX(90px);
}

.secret-box.active .box-key {
  opacity: 1;
  transform: scale(1);
  animation: keyGlow 1.5s ease-in-out infinite alternate;
}

/* СВЕЧЕНИЕ КЛЮЧА */
@keyframes keyGlow {
  from {
    filter: drop-shadow(0 0 4px #6cff8d);
  }
  to {
    filter: drop-shadow(0 0 16px #6cff8d);
  }
}
main {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  position: relative; /* важно */
}
.leaders-list .gold {
  background: linear-gradient(90deg, #facc15, #f59e0b);
  color: black;
}
/* ===== MOD PANEL ===== */

.mod-panel {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mod-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

/* цвета кнопок */

.mod-btn.ban {
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  color: white;
}

.mod-btn.kick {
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: white;
}

.mod-btn.warn {
  background: linear-gradient(135deg,#facc15,#eab308);
  color: black;
}

.mod-btn.mute {
  background: linear-gradient(135deg,#64748b,#334155);
  color: white;
}

.mod-btn.jail {
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  color: white;
}

/* hover */

.mod-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.perk-card.sold-out {
  filter: grayscale(1);
  opacity: 0.6;
  position: relative;
  pointer-events: none;
}

.perk-card.sold-out::after {
  content: "❌ НЕ В ПРОДАЖЕ";
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
}