:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E5E7EB;
  --muted: #94A3B8;
  --primary: #38BDF8;
  --secondary: #A3E635;
  --accent: #F472B6;
  --border: rgba(229, 231, 235, 0.12);
  --term-green: #A3E635;
  --term-dim: rgba(163, 230, 53, 0.45);
  --nav-w: 72px;
  --nav-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

html {
  height: 100%;
}

body {
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(163, 230, 53, 0.08), transparent 50%),
    linear-gradient(180deg, #020617 0%, #020F2F 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(2, 6, 23, 0.12) 2px,
    rgba(2, 6, 23, 0.12) 4px
  );
  mix-blend-mode: multiply;
}

.matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.14;
}

.matrix-col {
  position: absolute;
  top: -20%;
  font-size: 12px;
  line-height: 1.2;
  color: var(--secondary);
  writing-mode: vertical-rl;
  text-orientation: upright;
  animation: matrix-fall linear infinite;
  white-space: nowrap;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(120vh);
  }
}

.hacker {
  color: var(--term-green);
  text-shadow: 0 0 6px rgba(163, 230, 53, 0.35);
  animation: hacker-glow 3.5s ease-in-out infinite;
}

.code {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.02em;
  animation: code-pulse 4s ease-in-out infinite;
}

.terminal {
  border: 1px solid var(--border);
  background: rgba(2, 15, 47, 0.85);
  box-shadow: inset 0 0 40px rgba(163, 230, 53, 0.05);
  animation: terminal-scan 2s linear infinite;
}

.linux {
  border-left: 3px solid var(--secondary);
  padding-left: 0.75rem;
  animation: linux-tick 5s ease-in-out infinite;
}

.crt-curve {
  border-radius: 12px / 18px;
  box-shadow:
    inset 0 0 60px rgba(2, 6, 23, 0.55),
    0 0 0 1px var(--border);
}

.cursor-blink::after {
  content: "_";
  display: inline-block;
  margin-left: 2px;
  color: var(--secondary);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

@keyframes hacker-glow {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(163, 230, 53, 0.35);
  }
  50% {
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.55);
  }
}

@keyframes code-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes terminal-scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 4px;
  }
}

@keyframes linux-tick {
  0%,
  100% {
    border-left-color: var(--secondary);
  }
  50% {
    border-left-color: var(--primary);
  }
}

.disclosure {
  width: 100%;
  background: linear-gradient(90deg, #020F2F, #0a1a3a 40%, #021028);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  padding: 10px 16px 10px calc(16px + var(--nav-w));
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  z-index: 50;
}

.disclosure span {
  display: inline;
  color: rgba(229, 231, 235, 0.92);
}

.site-wrap {
  position: relative;
  z-index: 1;
  padding-left: var(--nav-w);
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-w);
  height: 100vh;
  background: #010810;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  z-index: 800;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar .brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--secondary);
  margin-bottom: 18px;
  padding: 0 4px;
}

.sidebar .brand-lockup img {
  width: 36px;
  height: 48px;
  object-fit: contain;
}

.sidebar .brand-name {
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.1;
  color: var(--secondary);
  max-width: 64px;
  word-break: break-all;
}

.folder-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.folder-tree a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  color: var(--term-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.folder-tree a:hover,
.folder-tree a:focus-visible {
  color: var(--secondary);
  border-color: var(--term-dim);
  background: rgba(163, 230, 53, 0.08);
}

.folder-tree a::before {
  content: ">";
  position: absolute;
  left: 4px;
  font-size: 9px;
  opacity: 0.5;
}

.folder-tree a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 900;
}

.folder-tree a[data-tip]:hover::after,
.folder-tree a[data-tip]:focus-visible::after {
  opacity: 1;
}

.mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 850;
  height: var(--nav-h);
  background: #010810;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.mobile-top .brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--secondary);
}

.mobile-top .brand-lockup img {
  width: 28px;
  height: 38px;
  object-fit: contain;
}

.mobile-top .brand-name {
  font-size: 14px;
  font-weight: 700;
}

.burger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--secondary);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 860;
  background: rgba(2, 6, 23, 0.97);
  flex-direction: column;
  padding: 72px 24px 24px;
}

.nav-overlay.active {
  display: flex;
}

.nav-overlay .overlay-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--secondary);
  font-size: 22px;
  cursor: pointer;
}

.nav-overlay .folder-tree {
  align-items: flex-start;
  gap: 4px;
}

.nav-overlay .folder-tree a {
  width: auto;
  justify-content: flex-start;
  padding: 10px 12px;
  gap: 12px;
  color: var(--secondary);
}

.nav-overlay .folder-tree a::before {
  position: static;
  content: "./";
  opacity: 0.7;
}

.nav-overlay .folder-tree a[data-tip]::after {
  display: none;
}

.nav-overlay .folder-tree a .full-label {
  display: inline;
}

.sidebar .full-label {
  display: none;
}

main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 58vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-stripe {
  background: var(--accent);
  position: relative;
}

.hero-stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 8px,
    rgba(2, 6, 23, 0.15) 8px 10px
  );
}

.hero-body {
  padding: 48px 40px 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.hero-body::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.12), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: var(--secondary);
  max-width: 18ch;
  line-height: 1.15;
}

.hero .lead {
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.95rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  width: fit-content;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: rgba(163, 230, 53, 0.12);
}

.section {
  padding: 56px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-head h2 {
  color: var(--secondary);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 60ch;
}

.offers-section {
  position: relative;
  padding: 64px 24px;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 15, 47, 0.92)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.offer-card {
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.offer-card .offer-logo {
  width: 160px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.offer-card .offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-card .offer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
}

.offer-card .offer-bonus {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f766e;
  font-family: system-ui, sans-serif;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.offer-card .offer-terms {
  font-size: 0.7rem;
  color: #6b7280;
  font-family: system-ui, sans-serif;
  font-weight: 400;
}

.offer-card .offer-desc {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
}

.offer-card .offer-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  background: #0f766e;
  color: #fff;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  pointer-events: none;
}

.info-block {
  margin: 0 auto;
  max-width: 1100px;
  padding: 48px 32px;
  position: relative;
}

.info-block h2 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.info-block p {
  color: var(--muted);
  margin-bottom: 12px;
}

.info-block ul {
  margin: 12px 0 12px 1.2rem;
  color: var(--muted);
}

.info-block li {
  margin-bottom: 6px;
}

.info-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.info-cta:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
}

.decor-wrap {
  max-width: 100%;
  overflow: hidden;
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #010810;
  padding: 40px 28px 28px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--secondary);
  width: fit-content;
}

.footer-brand img {
  width: 40px;
  height: 54px;
  object-fit: contain;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-legal {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 80ch;
}

.footer-legal p {
  margin-bottom: 8px;
}

.footer-updated {
  color: var(--term-dim);
  font-size: 0.75rem;
}

.age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 23, 0.94);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate.active {
  display: flex;
}

.age-gate-panel {
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
}

.age-gate-panel h2 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.age-gate-panel p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-gate-actions button {
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.age-gate-actions button[data-age-gate="confirm"] {
  border-color: var(--secondary);
  color: var(--secondary);
}

.age-gate-actions button[data-age-gate="decline"] {
  border-color: var(--accent);
  color: var(--accent);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: var(--nav-w);
  right: 0;
  z-index: 9500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

#cookie-accept {
  border-color: var(--secondary);
  color: var(--secondary);
}

#cookie-reject {
  color: var(--muted);
}

body.go-page .cookie-banner {
  left: 0;
}

body.go-page .disclosure {
  padding-left: 16px;
  padding-right: 16px;
}

.page-hero {
  padding: 40px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--secondary);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 28px 64px;
}

.page-content h2 {
  color: var(--primary);
  margin: 24px 0 10px;
  font-size: 1.15rem;
}

.page-content h3 {
  color: var(--text);
  margin: 18px 0 8px;
  font-size: 1rem;
}

.page-content p,
.page-content li {
  color: var(--muted);
  margin-bottom: 10px;
}

.page-content ul {
  margin: 8px 0 16px 1.2rem;
}

.contact-form {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .field-error {
  color: var(--accent);
  font-size: 0.78rem;
  display: none;
}

.contact-form .field-error.visible {
  display: block;
}

.contact-form button[type="submit"] {
  justify-self: start;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: inherit;
  cursor: pointer;
}

.form-success {
  display: none;
  padding: 18px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  margin-top: 20px;
}

.form-success.visible {
  display: block;
}

.redirect-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.redirect-box {
  max-width: 420px;
}

.redirect-box .spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-box p {
  color: var(--muted);
  margin-bottom: 10px;
}

.redirect-box .ad-tag {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 14px;
}

.not-found h1 {
  color: var(--secondary);
}

.not-found a {
  color: var(--primary);
}

@media (max-width: 900px) {
  .site-wrap {
    padding-left: 0;
  }

  .sidebar {
    display: none;
  }

  .mobile-top {
    display: flex;
  }

  .cookie-banner {
    left: 0;
  }

  .disclosure {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 6px 1fr;
    min-height: auto;
  }

  .hero-stripe {
    height: 6px;
    width: 100%;
  }

  .hero-body {
    padding: 32px 20px 40px;
    text-align: center;
    align-items: center;
  }

  .hero h1 {
    max-width: none;
  }

  .section,
  .info-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-content,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .offer-card .offer-logo {
    width: 140px;
    height: 48px;
  }

  .offer-card .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .offer-card .offer-bonus {
    font-size: 0.82rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .decor-img,
  .decor-wrap {
    max-width: 100%;
  }

  .decor-img {
    max-height: 200px;
  }
}

@media (max-width: 375px) {
  .decor-img,
  .decor-wrap,
  .offers-section,
  .hero,
  .info-block {
    max-width: 100%;
    overflow-x: hidden;
  }

  .decor-img {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    height: auto;
  }

  .offer-card .offer-logo {
    width: 120px;
    height: 42px;
  }

  .offer-card .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}
