:root {
  --bg: #12091F;
  --surface: #211034;
  --surface-glass: rgba(33, 16, 52, 0.65);
  --surface-2: #32174A;
  --surface-2-glass: rgba(50, 23, 74, 0.75);
  --primary: #B95CFF;
  --primary-hover: #9C3EE2;
  --secondary: #FF70C8;
  --accent: #FFC857;
  --text: #FFF8FF;
  --muted: #CDB9DA;
  --border: rgba(255, 255, 255, 0.10);
  --danger: #FF4F7B;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --neon-primary: 0 0 10px rgba(185, 92, 255, 0.5), 0 0 20px rgba(185, 92, 255, 0.3);
  --neon-accent: 0 0 10px rgba(255, 200, 87, 0.5), 0 0 20px rgba(255, 200, 87, 0.3);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 85% 0, #32174A 0, transparent 34%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 9, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(255, 248, 255, 0.2);
  padding: 10px 0px;
}

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

.brand span {
  font-size: 1.08rem;
  background: linear-gradient(90deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface-glass);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nav {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 72px;
  background: rgb(33 16 52 / 99%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.nav.open {
  display: grid;
}

.nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-2-glass);
  color: var(--text);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 200, 87, 0.4);
}

.hero h1 {
  font-size: clamp(2.3rem, 8vw, 4.7rem);
  line-height: 1.02;
  margin: 16px 0;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 700px;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #15071f;
  box-shadow: var(--neon-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  box-shadow: 0 0 15px rgba(185, 92, 255, 0.7), 0 0 30px rgba(185, 92, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  backdrop-filter: blur(5px);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism Classes */
.hero-art,
.card,
.rank-card,
.notice,
.form-card,
.step-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-art {
  padding: 22px;
}

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

.tile {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface-2-glass), rgba(27, 12, 45, 0.6));
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border: 1px solid var(--border);
}

.tile.gem {
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  color: #16071f;
  box-shadow: var(--neon-primary);
}

.section {
  padding: 48px 0;
}

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

.section h2 {
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.section h3 {
  margin-top: 0;
}

.section-head p,
.muted {
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.card {
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(185, 92, 255, 0.15);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2-glass);
  font-size: 1.3rem;
  margin-bottom: 14px;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.ranking {
  display: grid;
  gap: 14px;
}

.rank-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  transition: all 0.3s ease;
}

.rank-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.rank-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.rank-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #241000;
  font-weight: 900;
  box-shadow: var(--neon-accent);
}

.rank-brand {
  font-size: 1.22rem;
  font-weight: 900;
}

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

.fact {
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
  border-radius: 10px;
}

.fact small {
  display: block;
  color: var(--muted);
}

/* Glassmorphism Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 24px;
  padding-bottom: 10px; /* space for scrollbar */
}

/* Custom Scrollbar for tables */
.table-wrap::-webkit-scrollbar {
  height: 8px;
}
.table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

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

th {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

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

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
}

.step:before {
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #16071f;
  font-weight: 900;
  box-shadow: var(--neon-primary);
}

/* FAQ Accordion Styling */
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  padding: 15px 17px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.faq details[open] {
  background: var(--surface-2-glass);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none; /* Hide default arrow */
  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: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq p {
  color: var(--muted);
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice {
  padding: 18px;
  border-left: 4px solid var(--accent);
}

.danger {
  border-left-color: var(--danger);
}

.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.content-page {
  padding: 22px 0 56px;
}

.prose {
  /* max-width: 860px; */
  max-width: 100%;
}

.prose h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.08;
  text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.prose h2 {
  margin-top: 40px;
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #eadff0;
}

/* Forms */
.form-card {
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(23, 11, 39, 0.8);
  color: var(--text);
  transition: all 0.3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 92, 255, 0.2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  background: #0e0618;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(185, 92, 255, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Cookie Modals */
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.open {
  display: grid;
}

.modal-box {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

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

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

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  color: var(--secondary);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.legal-note {
  font-size: 0.87rem;
  color: var(--muted);
}

/* Responsive */
@media (min-width: 760px) {
  .menu-toggle {
    display: none;
  }
  .nav {
    display: flex !important;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero {
    padding: 82px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .rank-card {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
  }
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 28px));
  }
}