/* ruletacasinoonlinegratis.store — Dark Mode (no frameworks) */
:root {
  --bg: #0b1224;
  --bg2: #0f172a;
  --panel: rgba(2, 6, 23, 0.72);
  --panel-glass: rgba(15, 23, 42, 0.65);
  --line: rgba(148, 163, 184, 0.22);
  --text: #e2e8f0;
  --muted: rgba(226, 232, 240, 0.78);
  --green: #22c55e;
  --blue: #0ea5e9;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(14, 165, 233, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 80% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.main {
  padding: 32px 0 56px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--panel-glass);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: bold;
  backdrop-filter: blur(10px);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.3));
}

.brand-text {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 1.1rem;
}

.brand-text strong {
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-text span {
  color: var(--green);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  transition: all 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(148, 163, 184, 0.15);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-primary {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(14, 165, 233, 0.2));
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(14, 165, 233, 0.3));
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.15);
  color: var(--blue);
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}


.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-melbet {
  background: #f5c400;
  color: #000;
  border-color: #eab308;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.2);
}

.btn-melbet:hover {
  background: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 196, 0, 0.5);
  transform: translateY(-2px);
  color: #000;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}


.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius2);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.cta-box h3 {
  margin: 0;
  font-size: 1.8rem;
  background: linear-gradient(to right, #fff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
}

/* Layout & Cards */
.hero {
  padding: 40px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.card {
  background: var(--panel-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card.pad {
  padding: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: 1.1rem;
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 540px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.badge .g {
  background: var(--green);
  color: var(--green);
}

.badge .b {
  background: var(--blue);
  color: var(--blue);
}

.hero-media {
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.2);
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-media:hover img {
  transform: scale(1.02);
}

/* Sections */
.section {
  padding: 40px 0;
}

.kicker {
  display: block;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
}

.section p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 70ch;
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 24px 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  /* Ensure structure on mobile */
}

.table th,
.table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(226, 232, 240, 0.6);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.table td {
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rank {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  width: 60px;
}

/* Steps */
.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  padding: 20px 70px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s;
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
}

.faq-q span:last-child {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--green);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.1);
}

.faq-a .inner {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

/* Forms - Enhanced */
.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
  margin-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15), 0 0 15px rgba(34, 197, 94, 0.2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-wordmark {
  opacity: 0.8;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
  max-width: 180px;
}

.footer-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 4px;
}

.footer-inline {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.5);
}

/* Notices & Cookie Banner */
.notice {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: start;
}

.notec-red {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.cookie-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.cookie-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 600px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none !important;
}

.cookie-banner[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-head,
.modal-actions {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-actions {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: flex-end;
  gap: 12px;
}

.modal-body {
  padding: 24px;
}

/* Toggle Switch */
.toggle-list {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.toggle {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.toggle input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
}

.toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.toggle-ui {
  width: 50px;
  height: 28px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.2s;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.5, 0, 0.2, 1.5);
}

.toggle input:checked+.toggle-ui {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green);
}

.toggle input:checked+.toggle-ui::after {
  transform: translateX(22px);
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {

  .hero-grid,
  .footer-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 250px;
    order: -1;
    /* Image first on mobile */
  }

  .site-header .container {
    padding: 0 16px;
  }
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .site-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}