/* =========================
   RESET / ROOT
   ========================= */

:root {
  --bg: #0b1018;
  --bg-soft: #121927;
  --panel: #151d2d;
  --panel-2: #1a2336;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #eef3ff;
  --text-soft: #c6d2ee;
  --text-dim: #8ea0c7;

  --blue: #4f7cff;
  --blue-soft: rgba(79, 124, 255, 0.16);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);

  --container: 1400px;
}

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

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(61, 90, 160, 0.16), transparent 24%),
    linear-gradient(180deg, #0b1018 0%, #0f1520 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* =========================
   GENERAL ELEMENTS
   ========================= */

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea,
select,
button {
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(79, 124, 255, 0.45);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding-left: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

/* =========================
   LAYOUT
   ========================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.page-section {
  margin-bottom: 28px;
}

.page-section:last-child {
  margin-bottom: 0;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

p {
  color: var(--text-soft);
}

.meta-line {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   SHARED BLOCKS
   ========================= */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.section-link:hover {
  background: var(--blue-soft);
  border-color: rgba(79, 124, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}

.no-data {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  font-weight: 700;
}

/* =========================
   SEARCH
   ========================= */

.search-box {
  width: 100%;
}

.search-input {
  width: 100%;
  min-height: 64px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 35, 54, 0.98), rgba(18, 25, 39, 0.98));
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.search-input::placeholder {
  color: #8ea0c7;
  font-weight: 500;
}

.search-input:focus {
  border-color: rgba(79, 124, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(79, 124, 255, 0.12),
    var(--shadow-md);
}

/* =========================
   GENERIC CARDS
   ========================= */

.card,
.panel,
.surface {
  background: linear-gradient(180deg, rgba(21, 29, 45, 0.98), rgba(16, 23, 35, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* =========================
   SIMPLE TABLE-LIKE ROWS
   ========================= */

.stat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   LEGAL PAGES
   ========================= */

.legal-page {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 20px;
}

.legal-page h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 22px;
}

.legal-page p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 14px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: center;
}

.site-footer__inner a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-footer__inner a:hover {
  color: #ffffff;
}

/* =========================
   COOKIE BAR
   ========================= */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 29, 45, 0.98), rgba(16, 23, 35, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cookie-bar__text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-bar__text a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.cookie-bar__text a:hover {
  text-decoration: underline;
}

.cookie-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.18s ease;
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}

.cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-btn--primary {
  background: rgba(79, 124, 255, 0.18);
  border-color: rgba(79, 124, 255, 0.35);
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: rgba(79, 124, 255, 0.28);
}

/* =========================
   HELPERS
   ========================= */

.hidden {
  display: none !important;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  flex-wrap: wrap;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) {
  .container {
    padding: 22px 16px 36px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .search-input {
    min-height: 58px;
    font-size: 16px;
    border-radius: 18px;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 780px) {
  .container {
    padding: 18px 14px 30px;
  }

  .page-section {
    margin-bottom: 22px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .search-input {
    min-height: 54px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 16px;
  }

  .legal-page h2 {
    font-size: 18px;
  }

  .legal-page p {
    font-size: 14px;
    line-height: 1.65;
  }

  .site-footer {
    padding: 20px 12px;
  }

  .site-footer__inner {
    gap: 10px 14px;
  }

  .site-footer__inner a {
    font-size: 13px;
  }

  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
  }

  .cookie-bar__text {
    font-size: 13px;
  }

  .cookie-bar__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-height: 40px;
  }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 520px) {
  .container {
    padding: 16px 12px 26px;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 18px;
  }

  .meta-line {
    font-size: 12px;
  }

  .search-input {
    min-height: 50px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 14px;
  }

  .no-data {
    padding: 16px;
    border-radius: 14px;
  }
}