﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #030b18;
  --bg-card:    #061426;
  --bg-raised:  #0a1e38;
  --border:     rgba(40,160,255,0.14);
  --border-h:   rgba(40,180,255,0.45);
  --accent:     #1a9fff;
  --accent2:    #00cfff;
  --accent-rgb:      0,140,255;
  --gradient-accent: linear-gradient(135deg, #1a9fff, #00cfff);
  --glow:       rgba(26,159,255,0.4);
  --gold:       #e8c84a;
  --blue:       #1a9fff;
  --red:        #d4634a;
  --green:      #4ad476;
  --purple:     #7b6fff;
  --cyan:       #00cfff;
  --text:       #cce8ff;
  --text-dim:   #7ab8e0;
  --text-mute:  #4a86b8;
  --text-faint: #3a72a0;
  --font: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%,  rgba(0,100,255,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 95% 100%, rgba(0,160,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at -5% 50%,  rgba(0,80,200,0.14)  0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 50%,  rgba(0,120,255,0.06) 0%, transparent 70%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,140,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { text-decoration: none; color: inherit; }

/* ── Layout ── */
.layout {
  display: flex;
  position: relative; z-index: 1;
  min-height: calc(100vh - 60px);
}

.main {
  flex: 1; min-width: 0;
  overflow-x: hidden;
  padding: 20px 16px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}

/* Страницы с <main> внутри .layout */
.layout > main {
  flex: 1; min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Страница профиля / deposit / .page */
.layout > .page {
  flex: 1; min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.layout > #dep {
  flex: 1; min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Скроллбар ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,140,255,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,180,255,0.3); }

/* ══════════════════════════════════════════════════════════════
   SKELETON LOADERS — единый шиммер для всех плейсхолдеров
══════════════════════════════════════════════════════════════ */
@keyframes skel-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skel {
  display: block;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}
.skel-line { height: 12px; width: 100%; }
.skel-line.s-sm  { height: 9px; }
.skel-line.s-lg  { height: 16px; }
.skel-line.w-30  { width: 30%; }
.skel-line.w-40  { width: 40%; }
.skel-line.w-50  { width: 50%; }
.skel-line.w-60  { width: 60%; }
.skel-line.w-70  { width: 70%; }
.skel-line.w-80  { width: 80%; }

.skel-circle { width: 36px; height: 36px; border-radius: 50%; }
.skel-rect   { width: 100%; height: 80px; border-radius: 8px; }

.skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.skel-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,140,255,0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.skel-card .skel-rect { height: 110px; }

.skel-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,140,255,0.06);
}
.skel-row:last-child { border-bottom: none; }
.skel-row .skel-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; opacity: 0.6; }
}
