/* === 1win.moscow — Indigo-Purple Premium Theme === */
:root {
  --bg-deep: #0a0826;
  --bg-card: #15103a;
  --bg-soft: rgba(255,255,255,0.04);
  /* Accent — indigo→purple gradient family */
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #6d28d9;
  --indigo: #4338ca;
  --indigo-light: #6366f1;
  /* Silver accents (replacing gold) */
  --silver: #e2e8f0;
  --silver-light: #f1f5f9;
  --silver-dark: #94a3b8;
  /* Text */
  --text: #ffffff;
  --text-soft: #c7cce0;
  --text-mute: #8b8fb0;
  /* Borders */
  --border: rgba(167,139,250,0.18);
  --border-strong: rgba(167,139,250,0.45);
  /* CTA accents */
  --green: #10b981;
  --green-dark: #059669;
  /* Legacy aliases for backward compatibility (used across pages) */
  --gold: var(--accent);
  --gold-light: var(--accent-light);
  --gold-dark: var(--accent-dark);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(ellipse at top, #1e1b4b 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #2e1065 0%, transparent 55%),
    linear-gradient(180deg, #0a0826 0%, #14102e 100%);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,39,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 14px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--gold);
  background: var(--bg-soft);
}

.header-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-header-login,
.btn-header-reg {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-header-login {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}

.btn-header-reg {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 16px rgba(167,139,250,0.4);
}

.btn-header-login:hover,
.btn-header-reg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(167,139,250,0.5);
  color: var(--bg-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* === Layout === */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}

.content { min-width: 0; }

/* === Hero — clean purple gradient === */
.hero {
  position: relative;
  padding: 80px 56px;
  margin-bottom: 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 700px 500px at 85% 15%, rgba(168,85,247,0.35), transparent 65%),
    radial-gradient(ellipse 500px 400px at 15% 85%, rgba(67,56,202,0.30), transparent 65%),
    linear-gradient(135deg, #1a0b3d 0%, #2e1065 50%, #1e1b4b 100%);
  border: 1px solid rgba(167,139,250,0.25);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 30px 80px -20px rgba(76,29,149,0.5),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Decorative glowing orb — fully purple, no white core */
.hero-orb {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.55) 0%, rgba(124,58,237,0.45) 35%, rgba(76,29,149,0.35) 65%, transparent 100%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1.2px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.2px;
  transition: transform 0.18s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.cta-btn:hover::before { transform: translateX(100%); }

/* Primary CTA — vivid purple gradient */
.cta-btn-green {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4f46e5 100%);
  color: #ffffff;
  box-shadow:
    0 8px 24px rgba(124,58,237,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Secondary accent CTA — lavender → magenta */
.cta-btn-yellow {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow:
    0 8px 24px rgba(168,85,247,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Outline / ghost CTA */
.cta-btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(167,139,250,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(124,58,237,0.55),
    inset 0 1px 0 rgba(255,255,255,0.22);
  color: #ffffff;
}

.cta-btn-outline:hover {
  background: rgba(167,139,250,0.12);
  border-color: rgba(196,181,253,0.7);
  box-shadow: 0 8px 24px rgba(167,139,250,0.25);
}

.cta-pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.18); }
  50% { box-shadow: 0 8px 36px rgba(168,85,247,0.7), 0 0 0 8px rgba(168,85,247,0.12), inset 0 1px 0 rgba(255,255,255,0.2); }
}

/* === Article === */
.breadcrumb {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

.article h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #c5c8d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article p { margin-bottom: 18px; color: var(--text-soft); }
.article strong { color: var(--text); font-weight: 700; }

.article h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 44px 0 18px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.article h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: middle;
  margin-top: -4px;
}

.article h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text);
}

.article ul, .article ol {
  margin: 0 0 20px 24px;
  color: var(--text-soft);
}

.article li { margin-bottom: 8px; }

/* === Info-box === */
.info-box {
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(139,92,246,0.05));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Tables === */
.article table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article th {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--bg-deep);
  font-weight: 800;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
}

.article td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
}

.article tr:hover td { background: rgba(167,139,250,0.04); }

/* === Bonus banner === */
.bonus-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2e1065, #4338ca);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}

.bonus-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 70%);
  pointer-events: none;
}

.bonus-banner-text { flex: 1; min-width: 240px; position: relative; z-index: 2; }
.bonus-banner h3 { font-size: 24px; font-weight: 900; color: var(--gold-light); margin-bottom: 4px; }
.bonus-banner p { color: var(--text); font-size: 15px; margin: 0; }
.bonus-banner .cta-btn { position: relative; z-index: 2; }

/* === FAQ === */
.faq-q {
  font-weight: 700;
  color: var(--text);
  font-size: 17px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.faq-a {
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* === Sidebar === */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 4px; }
.sidebar-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
  transition: all 0.15s;
}
.sidebar-links a:hover {
  background: rgba(167,139,250,0.08);
  color: var(--gold);
}
.sidebar-links a.active {
  background: rgba(167,139,250,0.15);
  color: var(--gold);
  font-weight: 700;
}

.sidebar-bonus {
  background: linear-gradient(135deg, #2e1065, #4338ca);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-bonus-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 11px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.sidebar-bonus h3 {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -2px;
}

.sidebar-bonus p { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }

/* === Footer === */
.footer {
  margin-top: 60px;
  padding: 40px 20px 24px;
  background: #050818;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

.footer-bottom { padding-top: 12px; }

/* === Mobile CTA bar === */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(10,14,39,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
}

.mobile-cta-bar .cta-btn { width: 100%; padding: 14px; }

/* === Tilt cards on hover (premium 3D feel) === */
.card-tilt {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  transform-style: preserve-3d;
  overflow: hidden;
}

.card-tilt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card-tilt:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5), 0 0 0 1px var(--border-strong);
}

.card-tilt:hover::before { opacity: 1; }

/* === Glassmorphism === */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* === Glow buttons (premium feel) === */
.cta-glow {
  position: relative;
}

.cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(24px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

/* === Tablet (1024px and below) === */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .article h1 { font-size: 32px; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 56px 36px; }
  .hero-3d-coin { width: 200px; height: 200px; right: -60px; opacity: 0.6; }
}

/* === Mobile (768px and below) === */
@media (max-width: 768px) {
  body { font-size: 15px; padding-bottom: 80px; }

  .header-inner { padding: 12px 14px; gap: 12px; }
  .logo { font-size: 18px; }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,14,39,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 15px; }

  .header-buttons { gap: 6px; }
  .btn-header-login { display: none; }
  .btn-header-reg { padding: 8px 14px; font-size: 13px; }

  .layout { padding: 16px 14px; }

  .article h1 { font-size: 26px; line-height: 1.2; }
  .article h2 { font-size: 22px; }
  .article h2::before { width: 4px; height: 18px; margin-right: 8px; }
  .article h3 { font-size: 18px; }
  .article p { font-size: 15px; }
  .article ul, .article ol { margin-left: 18px; }

  .article-meta { font-size: 12px; gap: 10px; }

  .hero {
    padding: 32px 20px;
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero-subtitle { font-size: 15px; margin-bottom: 22px; }
  .hero-cta { gap: 10px; }
  .hero-3d-coin { display: none; }
  .hero::after { display: none; }

  .cta-btn { padding: 14px 22px; font-size: 14px; width: 100%; }
  .hero .cta-btn { width: auto; min-width: 200px; }

  .info-box { padding: 16px 18px; margin: 20px 0; border-radius: 12px; }
  .info-box-title { font-size: 13px; }

  .bonus-banner {
    padding: 18px 20px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .bonus-banner-text { min-width: 0; }
  .bonus-banner h3 { font-size: 20px; }
  .bonus-banner p { font-size: 14px; }
  .bonus-banner .cta-btn { width: 100%; }

  /* Tables: horizontal scroll on mobile */
  .article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .article th, .article td { padding: 10px 12px; font-size: 13px; }

  .sidebar-block { padding: 16px 18px; border-radius: 14px; }
  .sidebar-bonus h3 { font-size: 36px; }

  .mobile-cta-bar { display: block; }

  /* Reduce hover-based 3D effects on mobile (no hover) */
  .card-tilt:hover { transform: none; }
}

/* === Small mobile (380px and below) === */
@media (max-width: 380px) {
  .article h1 { font-size: 22px; }
  .hero h1 { font-size: 22px; }
  .hero { padding: 28px 16px; }
  .layout { padding: 12px 10px; }
  .nav { padding: 8px; }
  .btn-header-reg { padding: 7px 10px; font-size: 12px; }
  .logo { font-size: 16px; }
}

/* === Reduced motion: respect user preference === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero::before, .hero::after, .hero-3d-coin { animation: none !important; }
  .cta-pulse { animation: none !important; }
}

/* === Reduce GPU load on weak devices === */
@media (max-width: 768px) {
  .hero::before { filter: blur(40px); animation-duration: 30s; }
}

/* Disable expensive backdrop-filter on devices that struggle */
@supports not (backdrop-filter: blur(20px)) {
  .header { background: rgba(10,14,39,0.98); }
  .glass { background: rgba(15,21,56,0.92); }
  .nav { background: rgba(10,14,39,1); }
  .mobile-cta-bar { background: rgba(10,14,39,1); }
}

/* === Print styles (clean printout) === */
@media print {
  .header, .sidebar, .footer, .mobile-cta-bar, .hero::before, .hero::after,
  .hero-3d-coin, .nav-toggle, .header-buttons, .cta-btn, .bonus-banner {
    display: none !important;
  }
  body { background: white; color: black; }
  .article h1, .article h2, .article h3, .article p { color: black; }
}
