/* ================================
   FuntikCloud — DARK / NEON FIX
   (вставь в конец main.css)
================================ */

/* ===== ПЕРЕМЕННЫЕ (тёмная тема) ===== */
:root {
  /* brand */
  --primary: #2f6bff;
  --primary-2: #4aa3ff;
  --primary-3: #5a55d6;

  /* base dark */
  --bg: #070a14;
  --bg-2: #0a1022;
  --card: rgba(12, 18, 40, 0.72);
  --card-2: rgba(10, 14, 30, 0.78);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.68);
  --line: rgba(120, 160, 255, 0.16);

  /* accents (minecraft-ish, но под тёмный фон) */
  --mc-green: #3ad05b;
  --mc-green-2: #62ff8a;
  --mc-dark-green: #1f7a35;
  --mc-gold: #fbbf24;
  --mc-purple: #8b5cf6;
  --mc-red: #ef4444;
  --mc-emerald: #10b981;

  /* neon */
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.10);
  --accent-line: rgba(47, 107, 255, 0.22);

  /* radiuses + shadow */
  --radius: 14px;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 4px rgba(47, 107, 255, 0.14);

  --font-pixel: 'Press Start 2P', monospace;
  --font-inter: 'Inter', sans-serif;
}

/* ===== БАЗА (фон как “космос/неон”) ===== */
body {
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(47,107,255,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(90,85,214,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(0,212,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 65%, #050711 100%);
}

/* ссылки/текст */
a { color: inherit; }
.text-gray-400, .text-gray-500, .text-gray-600 { color: var(--muted) !important; }

/* ===== СКРОЛЛБАР (под тёмный стиль) ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
::-webkit-scrollbar-thumb {
  background: rgba(79, 133, 255, .28);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(79, 133, 255, .40); }

/* ===== СЕТКА ДЛЯ ФОНА (тоньше, как на скрине) ===== */
.grid-pattern {
  background-image:
    linear-gradient(rgba(120,160,255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ===== ПАНЕЛИ / КАРТОЧКИ (стекло на тёмном фоне) ===== */
.mc-panel,
.card, .panel, .box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.mc-panel:hover,
.card:hover, .panel:hover, .box:hover {
  border-color: rgba(79,133,255,.32);
  box-shadow: var(--shadow-2);
}

/* ===== INPUTS (не белые кирпичи) ===== */
.input, .search__box, .form-control,
input, textarea, select {
  color: var(--text);
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid rgba(120,160,255,.16);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.input:focus, .search__box:focus-within, .form-control:focus-within,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(0,212,255,.40);
  box-shadow: 0 0 0 4px rgba(0,212,255,.12);
}

/* ===== ТАРИФНЫЕ КАРТОЧКИ (как на скрине) ===== */
.tarif-card {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(140% 140% at 20% 10%, rgba(79,133,255,.18) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(120% 120% at 80% 0%, rgba(0,212,255,.14) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(10, 14, 30, 0.82) 0%, rgba(8, 10, 22, 0.86) 100%);
  border: 1px solid rgba(120,160,255,.18);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tarif-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(120deg,
    rgba(79,133,255,.36),
    rgba(90,85,214,.24),
    rgba(0,212,255,.28));
  filter: blur(18px);
  opacity: .30;
  pointer-events: none;
}

.tarif-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0) 45%),
    radial-gradient(600px 180px at 50% 0%, rgba(255,255,255,.08), transparent 60%);
  opacity: .35;
  pointer-events: none;
}

.tarif-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,.34);
  box-shadow: 0 26px 90px rgba(0,0,0,.62);
}

.tarif-card > * { position: relative; z-index: 1; }

/* внутренности карточки тарифа (плитки “Диск / ОЗУ” и т.п.) */
.tarif-card .mc-panel {
  background: rgba(8, 12, 26, 0.70);
  border: 1px solid rgba(120,160,255,.14);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

/* ===== КНОПКИ (зелёная “Оформить” + disabled как на скрине) ===== */
.mc-btn {
  background: linear-gradient(180deg, rgba(98,255,138,1) 0%, rgba(58,208,91,1) 45%, rgba(31,122,53,1) 100%);
  border: 3px solid rgba(20, 90, 35, 1);
  border-top-color: rgba(190, 255, 210, 1);
  border-left-color: rgba(190, 255, 210, 1);
  box-shadow: 0 16px 26px rgba(34,197,94,.20), 0 18px 38px rgba(0,0,0,.45);
}

.mc-btn:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.05); }
.mc-btn:active { transform: translateY(0px) scale(0.99); }

/* disabled / "Временно недоступно" */
.mc-btn[disabled],
.mc-btn.disabled,
button[disabled].mc-btn {
  cursor: not-allowed;
  opacity: 1;
  background: linear-gradient(180deg, rgba(110,120,150,.35) 0%, rgba(60,70,95,.35) 100%);
  border: 2px solid rgba(170, 180, 210, .18);
  box-shadow: 0 14px 26px rgba(0,0,0,.35);
  filter: none;
  transform: none;
  color: rgba(234,240,255,.70);
  text-shadow: none;
}

/* ===== CATEGORY BUTTONS (тёмные “чипы”) ===== */
.category-btn {
  background: rgba(8, 12, 26, 0.65);
  border: 1px solid rgba(120,160,255,.16);
  color: rgba(234,240,255,.70);
  box-shadow: 0 12px 26px rgba(0,0,0,.30);
}
.category-btn:hover,
.category-btn.active {
  background: rgba(47,107,255,.14);
  border-color: rgba(0,212,255,.34);
  color: var(--text);
  box-shadow: 0 18px 36px rgba(0,0,0,.40);
}

/* ===== утилиты совместимости (убираем “светлые” принудилки) ===== */
.bg-white\/5 { background-color: rgba(255,255,255,.06) !important; }
.border-white\/5 { border-color: rgba(255,255,255,.08) !important; }
