:root {
  --bg: #101010;
  --block: #1E1E1E;
  --block2: #272727;
  --primary: #FF6B00;
  --secondary: #FFB000;
  --accent: #FFE066;
  --btn: #FF7A00;
  --text: #F5F5F5;
  --muted: #C9C9C9;
  --line: rgba(255, 255, 255, 0.10);
  --ok: #35d080;
  --danger: #ff5959;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(255, 107, 0, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 176, 0, 0.12), transparent 30rem),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  width: min(1160px, 92%);
  margin: auto;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand span {
  font-size: 18px;
}

.menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.menu a {
  font-weight: 700;
  color: #eee;
  font-size: 14px;
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--accent);
}

.hamb {
  display: none;
  background: var(--block);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

/* Buttons */
.btn,
.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  transition: 0.2s;
  border: 0;
  cursor: pointer;
}

.btn {
  background: linear-gradient(135deg, var(--btn), var(--secondary));
  color: #16100a;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.22);
}

.btn2 {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn:hover,
.btn2:hover {
  transform: translateY(-2px);
}

.btn:hover {
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.35);
}

.btn2:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  padding: 62px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  background: rgba(255, 176, 0, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  margin: 18px 0;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.trust div {
  font-size: 14px;
}

/* Glassmorphism Cards */
.card,
.trust div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-art {
  position: relative;
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #1E1E1E, #171717);
  padding: 24px;
  box-shadow: 0 15px 45px rgba(255, 107, 0, 0.15);
}

.hero-art img {
  border-radius: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tile {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, #2a2a2a, #151515);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
}

.tile.win {
  background: linear-gradient(145deg, rgba(255, 176, 0, 0.95), rgba(255, 107, 0, 0.88));
  color: #111;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.tile.mine {
  background: linear-gradient(145deg, #383838, #202020);
}

/* Layout & Typography */
section {
  padding: 42px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 122, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 122, 0, 0.2);
}

/* Glass Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap table {
  min-width: 700px;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank {
  font-weight: 900;
  color: var(--secondary);
  font-size: 20px;
}

.stars {
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 2px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
  margin-bottom: 10px;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn), var(--secondary));
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

/* FAQ */
.faq details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  margin: 12px 0;
  transition: 0.3s;
}

.faq details:hover {
  border-color: rgba(255, 176, 0, 0.3);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 24px;
  transition: 0.3s;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details[open] p {
  margin-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #080808;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

.small-links a {
  display: block;
  margin: 8px 0;
  color: #aaa;
  transition: color 0.2s;
}

.small-links a:hover {
  color: var(--accent);
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  color: #fff;
  font-weight: 900;
  margin-top: 16px;
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 18px;
  padding: 24px;
  z-index: 90;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: none;
}

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

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(620px, 100%);
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.switch-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Utilities & Forms */
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  padding-top: 24px;
}

.page-hero {
  padding: 48px 0 24px;
}

.screen {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #262626, #151515);
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.screenbar {
  height: 26px;
  border-radius: 10px;
  background: #343434;
  margin-bottom: 12px;
}

.shot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

/* Enhanced Forms */
.form-group {
  margin-bottom: 20px;
}

.form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--accent);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  transition: 0.3s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

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

/* Legal text styles */
.legal h2 {
  margin-top: 40px;
  color: var(--secondary);
  font-size: 28px;
}

.legal h3 {
  margin-top: 24px;
  color: var(--accent);
}

.legal p {
  color: #d0d0d0;
}

.legal ul {
  padding-left: 20px;
  color: #d0d0d0;
}

.legal li {
  margin-bottom: 10px;
}

.toc {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
}

.toc a {
  display: block;
  color: var(--accent);
  margin: 8px 0;
  font-weight: 700;
}

.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.warning {
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  background: rgba(255, 176, 0, 0.08);
  border-radius: 8px;
  font-weight: 700;
  margin: 24px 0;
}

.melbet-logo {
  font-size: 38px;
  font-weight: 1000;
  color: var(--accent);
  letter-spacing: 1px;
}

/* Mobile Enhancements */
@media(max-width: 860px) {
  .hamb {
    display: block;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 69px;
    background: rgba(16, 16, 16, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 16px;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero {
    padding-top: 35px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .table-wrap {
    margin: 0 -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    width: calc(100% + 32px);
    padding: 0 16px;
  }
}