/* ===========================
   Modern dark theme refresh
   Palette + fluid scales
   (classes preserved as requested)
   =========================== */
:root {
  /* Brand palette */
  --main-color: #fd9745;           /* keep legacy var name */
  --accent-color: #df191d;
  --bg-color: #170a1e;
  --text-color: #ffffff;
  --muted-text: #e6e6e6;
  --soft-text: #cfc9d6;

  /* Surfaces & effects */
  --surface-1: #1f0f28;
  --surface-2: #24112f;
  --surface-3: #2b1438;
  --card-border: rgba(255,255,255,0.08);
  --ring: 0 0 0 3px rgba(253,151,69,0.35);
  --shadow-1: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.28);

  /* Fluid type & layout */
  --h1-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --h2-size: clamp(1.4rem, 1.08rem + 1.2vw, 2rem);
  --h3-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.4rem);
  --body-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
  --main-width: min(1200px, 94vw);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Menu vars (dark default, light variant below) */
  --menu-color: var(--surface-2);
  --menu-text: var(--text-color);
  --hover-color: var(--main-color);
  --hover-text: #000000;
}

/* Optional light theme hook */
[data-theme="light"] {
  --menu-color: #ffffff;
  --menu-text: #111111;
  --hover-color: var(--main-color);
  --hover-text: #ffffff;
}

/* ===========================
   Resets & base
   =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(253,151,69,0.08), transparent 60%),
              radial-gradient(1000px 700px at -10% 20%, rgba(223,25,29,0.07), transparent 60%),
              var(--bg-color);
  font-size: var(--body-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { color: var(--text-color); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: var(--h1-size); line-height: 1.1; }
h2 { font-size: var(--h2-size); line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: var(--h3-size); line-height: 1.25; margin-bottom: 12px; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }

/* Focus visibility */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* Containers */
.container,
.hero-container,
.content-container,
.floating-panel-content {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HERO
   =========================== */
.hero-section {
  padding: clamp(48px, 5vw, 80px) 0;
  background:
    radial-gradient(800px 480px at 20% 0%, rgba(253,151,69,0.10), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(223,25,29,0.10), transparent 60%),
    var(--bg-color);
  position: relative;
  overflow: hidden;
  width: 100%;
  isolation: isolate;
}

.hero-bg-container {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  left: 50%;
  width: min(var(--main-width), calc(100% - 40px));
  transform: translateX(-50%);
  
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;

  pointer-events: none;
  z-index: 1; 
}

.hero-bg-container::before,
.hero-bg-container::after {
  content: "";
  position: absolute; inset: -20%;
  pointer-events: none;
}
.hero-bg-container::before {
  background:
    radial-gradient(600px 380px at 15% 15%, rgba(253,151,69,0.12), transparent 60%),
    radial-gradient(520px 340px at 85% 25%, rgba(223,25,29,0.10), transparent 60%);
  filter: blur(0.5px);
}
.hero-bg-container::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 45%);
  mix-blend-mode: screen;
}

.hero-container {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 48px);
  position: relative; z-index: 2;
}


.hero-content { flex: 1; }

.hero-title {
  font-size: var(--h1-size);
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  color: var(--text-color);
  font-weight: 900;
  text-wrap: balance;
}

.hero-title-float { animation: hero-float 6s ease-in-out infinite; }

.hero-subtitle {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  margin: 10px 0 26px 0;
  color: var(--muted-text);
  position: relative;
  display: block;
}
.hero-subtitle span {
  content: '';
  position: absolute; bottom: -10px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--main-color), transparent);
  opacity: .6;
}

.hero-btn {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--shadow-2);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.hero-btn span { position: relative; z-index: 2; }
.hero-btn-shine {
  position: absolute; inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
.hero-btn:hover .hero-btn-shine { animation: hero-shine 1.2s; }

.hero-bonus { flex: 0 0 360px; position: relative; }
.hero-bonus > div:first-child {
  position: absolute; top: -16px; right: -16px;
  width: 92px; height: 92px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-1);
  border: 2px dashed rgba(255,255,255,0.35);
  transform: rotate(12deg);
}
.hero-bonus > div:first-child div:first-child { font-size: 1.6rem; font-weight: 900; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.hero-bonus > div:first-child div:last-child { font-size: .82rem; text-transform: uppercase; color: white; letter-spacing: .06em; }

.hero-bonus > div:last-child {
  background: rgba(36, 17, 47, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  border: 1px dashed rgba(253, 151, 69, 0.45);
  position: relative; overflow: hidden; z-index: 2;
}
.hero-bonus h3 { font-size: var(--h3-size); margin: 0; color: var(--text-color); font-weight: 800; }
.hero-bonus ul { list-style: none; padding: 0; margin: 16px 0 0 0; }
.hero-bonus li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  font-size: 1rem; color: var(--soft-text);
}
.hero-bonus li span {
  position: absolute; left: 0; top: 0.1rem;
  color: var(--main-color);
  text-shadow: 0 0 6px rgba(253,151,69,0.6);
}

/* Animations */
@keyframes hero-shine { 100% { transform: translateX(120%); } }
@keyframes hero-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ===========================
   Content
   =========================== */
.content-container { padding: clamp(28px, 4vw, 44px) 20px; }
.content-container p { margin-bottom: 18px; }
.content-container ul, .content-container ol { margin-bottom: 18px; padding-left: 20px; }
.content-container table {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.content-container table th, .content-container table td {
  padding: 12px 14px; border-bottom: 1px solid var(--card-border); text-align: left;
}
.content-container table th {
  background-color: var(--surface-3);
  color: var(--text-color);
}

/* ===========================
   Feed (cards)
   =========================== */
.feed-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.8vw, 28px);
  margin-bottom: 36px;
}
.feed-item {
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feed-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: rgba(253,151,69,0.35); }
.feed-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.feed-item-content { padding: 18px; }
.feed-item h3 { margin-bottom: 8px; }
.feed-item p { margin-bottom: 12px; color: var(--soft-text); }

/* ===========================
   Comments
   =========================== */
.comment-item {
  background: linear-gradient(135deg, rgba(253,151,69,0.15) 0%, rgba(223,25,29,0.15) 100%);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--text-color);
  border: 1px solid var(--card-border);
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 800; }

/* ===========================
   FAQ
   =========================== */
.faq-container { margin-bottom: 36px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.faq-question { font-weight: 900; color: var(--text-color); margin-bottom: 10px; }

/* Utilities */
.template_invisible { display: none; }

/* ===========================
   Footer
   =========================== */
footer {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-color));
  color: white;
  padding: 36px 20px;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.footer-menu {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 16px; margin-bottom: 18px;
}
.footer-menu a { color: white; text-decoration: none; opacity: .9; }
.footer-menu a:hover { color: var(--main-color); opacity: 1; }
.copyright { margin-top: 12px; color: var(--soft-text); }

/* ===========================
   Header & Navigation
   =========================== */
header {
  padding: 12px 0;
  background-color: var(--menu-color);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: saturate(1.1) blur(8px);
}
.header-container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.logo {
  order: 1; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 900; color: var(--main-color); text-decoration: none; margin-right: auto;
  letter-spacing: -0.02em;
}

nav { order: 2; display: block; width: auto; margin-left: auto; }

.desktop-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.desktop-menu > li { position: relative; margin: 0; }
.desktop-menu > li > a {
  color: var(--menu-text); text-decoration: none; font-size: 1rem;
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.desktop-menu > li > a:hover { color: #000; background: var(--hover-color); transform: translateY(-1px); }
.desktop-menu > li.has-submenu > a::after {
  content: '▼'; font-size: 0.55rem; margin-top: 2px; margin-left: 4px; opacity: .8;
}

.submenu {
  position: absolute; top: 100%; left: 0;
  background-color: var(--menu-color);
  min-width: 220px; list-style: none;
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 1000; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--card-border);
  transform: translateY(6px);
  margin: 0; padding: 0 !important;
}
.desktop-menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { margin: 0; padding: 0 !important; }
.submenu li a {
  color: var(--menu-text); text-decoration: none; display: block; width: 100% !important;
  padding: 12px 14px; margin: 0 !important;
  transition: background .12s ease, color .12s ease;
}
.submenu li a:hover { color: var(--hover-text); background-color: var(--hover-color); }

.burger-menu {
  order: 3; display: none; background: none; border: 1px solid var(--card-border);
  color: #ffffff; font-size: 1.6rem; cursor: pointer; padding: 6px 10px; border-radius: 10px;
}
.mobile-menu-close {
  position: absolute; top: 15px; right: 15px;
  background: none; border: none; color: white; font-size: 24px; cursor: pointer; display: none;
}

.header-right { order: 3; display: inline-block; margin-left: 12px; }
.language-switcher {}
.language-switcher:empty { display: none; }
.language-switcher { display: flex; gap: 12px; }
.language-switcher a { color: #fff; text-decoration: none; font-size: 14px; opacity: .85; }
.language-switcher a:hover { opacity: 1; }

/* Mobile nav */
@media (max-width: 768px) {
  .logo { order: 1; }
  .burger-menu { display: block; margin-left: auto; }
  .header-right { display: block; width: 100%; text-align: center; }
  .language-switcher { display: inline-flex; margin: 10px auto 0; }
  .hero-bg-container {
    top: 14px;
    bottom: 14px;
    width: calc(100% - 24px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  }

  nav {
    position: fixed; top: 0; left: 0; width: 82%; max-width: 380px; height: 100vh;
    background: var(--surface-2);
    z-index: 1000; transform: translateX(-100%); transition: transform 0.28s ease;
    padding: 64px 20px 20px; box-sizing: border-box; border-right: 1px solid var(--card-border);
  }
  nav.active { transform: translateX(0); }
  .desktop-menu { flex-direction: column; margin: 0; gap: 2px; }
  .has-submenu { position: relative; width: 100%; font-size: 0.95rem; margin: 0; padding-right: 30px; }
  .has-submenu > a { display: flex; }
  .desktop-menu > li.has-submenu > a::after {
    position: absolute; right: 0; top: 20px; transform: translateY(-50%);
    font-size: 0.8rem; margin-left: 0; transition: transform 0.25s; padding: 10px;
  }
  .desktop-menu > li.has-submenu > a.submenu-active::after { transform: translateY(-50%) rotate(180deg); }

  .submenu { display: none; position: static; opacity: 1; visibility: visible; background-color: transparent; padding-left: 8px; transform: none; border: none; }
  .submenu.active { display: block; margin-left: 10px; margin-bottom: 0; }
  .submenu li a { color: var(--menu-text); background-color: transparent; display: block; padding: 8px 0; }
  .submenu li a:hover { color: var(--hover-color); background-color: transparent; }

  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; }
  .nav-overlay.active { display: block; }
  .mobile-menu-close { display: block; }
}

/* ===========================
   Random link block / CTA
   =========================== */
.random-link-block {
  margin: 26px 0; padding: 14px 16px;
  background: var(--surface-2);
  border-left: 5px solid var(--main-color);
  box-shadow: var(--shadow-2);
  display: inline-block; color: var(--muted-text);
  border-radius: 10px;
}
.random-link-block a { color: var(--main-color); font-weight: 800; text-decoration: underline; }
.random-link-block a:hover { color: var(--accent-color); }

.cta-btn {
  display: block; margin: 34px auto;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--main-color) 100%);
  color: white; border: none; padding: 16px 38px; font-size: 1.12rem;
  border-radius: 999px; cursor: pointer; font-weight: 900;
  box-shadow: 0 10px 30px rgba(223,25,29,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden; max-width: 320px; text-align: center; text-decoration: none !important;
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(223,25,29,0.45); }
.cta-btn:active { transform: translateY(-1px); }
.cta-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-120%);
}
.cta-btn:hover::after { animation: shine 1.4s infinite; }
@keyframes shine { 100% { transform: translateX(120%); } }

/* ===========================
   Brand table (responsive)
   =========================== */
.brand-table {
  width: 100%; margin: 26px 0;
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--card-border);
}
.brand-table-header {
  display: flex; background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  color: white; font-weight: 900; padding: 14px 0;
}
.brand-table-header-item { flex: 1; text-align: center; padding: 0 10px; display: flex; align-items: center; justify-content: center; }
.brand-table-row {
  display: flex; padding: 14px 0; border-bottom: 1px solid var(--card-border);
  transition: transform .2s ease, background .2s ease;
}
.brand-table-row:hover { background: rgba(253,151,69,0.06); transform: translateY(-2px); }
.brand-table-cell { flex: 1; padding: 0 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.95rem; line-height: 1.35; color: var(--muted-text); }
.brand-table-cell.casino { justify-content: center; }
.brand-table-cell.rating { color: #ffd166; font-size: 1.05rem; }
.brand-table-cell.pros-cons { text-align: left; justify-content: flex-start; color: var(--soft-text); }
.brand-table-cell.links { justify-content: center; }
.brand-logo { max-width: 150px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }

.brand-btn {
  background: linear-gradient(135deg, #07c25f 0%, #00a84f 100%);
  color: white; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px rgba(0,200,83,0.3);
}
.brand-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,83,0.4); }
.brand-btn i { margin-left: 6px; }

@media (max-width: 768px) {
  .brand-table-header { display: none; }
  .brand-table-row { flex-direction: column; padding: 16px; border-bottom: 1px dashed var(--card-border); }
  .brand-table-cell { width: 100%; padding: 10px 0; justify-content: center !important; text-align: center !important; }
  .brand-table-cell.pros-cons { text-align: left !important; justify-content: flex-start !important; }
  .brand-table-cell:not(:last-child) { border-bottom: 1px dashed var(--card-border); }
}

/* ===========================
   Comments — modern cards / timeline vibe

   =========================== */

.comments-container {
  margin: clamp(24px, 4vw, 40px) 0 40px;
  display: grid;
  gap: clamp(14px, 2.2vw, 18px);
  position: relative;
  padding-left: 8px; 
}


.comments-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(253,151,69,0.55), rgba(223,25,29,0.35));
  border-radius: 2px;
  opacity: .6;
}


.comments-container > h3 {
  margin-bottom: 6px;
  color: var(--text-color);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.comment-item {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px 16px;
  box-shadow: var(--shadow-2);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: clip;
}


.comment-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--main-color) 65%, transparent 66%),
              conic-gradient(from 0deg, var(--accent-color), var(--main-color));
  box-shadow: 0 0 0 3px rgba(253,151,69,0.25);
}


.comment-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  opacity: .9;
}


.comment-item:hover {
  transform: translateY(-2px);
  border-color: rgba(253,151,69,0.35);
  box-shadow: var(--shadow-1);
}


.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
}

.comment-header span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(253,151,69,0.22), rgba(223,25,29,0.22));
  color: var(--text-color);
  border: 1px solid rgba(253,151,69,0.3);
  line-height: 1;
}


.comment-header span:first-child::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  box-shadow: 0 0 0 2px rgba(253,151,69,0.25);
}

.comment-header span:last-child {
  margin-left: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted-text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 8px;
}

.comment-item p {
  color: var(--soft-text);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.comment-item p::before {
  content: "“";
  font-size: 2.2rem;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 6px;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}

@media (max-width: 640px) {
  .comments-container { padding-left: 6px; }
  .comment-item { padding: 14px; }
  .comment-header { gap: 8px; }
  .comment-header span:first-child { padding: 5px 9px; }
  .comment-header span:last-child { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .comment-item,
  .comment-item:hover { transition: none; }
}



/* ===========================
   FAQ
   =========================== */

/* Section container */
.faq-container {
  margin: clamp(24px, 4vw, 40px) 0 40px;
  display: grid;
  gap: clamp(14px, 2.2vw, 18px);
  position: relative;
  grid-template-columns: 1fr;              /* single column by default */
  grid-auto-flow: row;                      /* ensure normal row flow */
}

/* Section title (FIX) */
.faq-container > h3 {
  grid-column: 1 / -1;                      /* span full width across all columns */
  margin: 0 0 4px 0;
  color: var(--text-color);
  font-weight: 900;
  letter-spacing: -0.01em;
  inline-size: 100%;                         /* prevent intrinsic width surprises */
}

/* Each FAQ card */
.faq-item {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2.2vw, 18px);
  box-shadow: var(--shadow-2);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  overflow: clip;
  align-self: start;                          /* keep cards aligned to top in multi-column */
}

/* Brand accent ribbon on top */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  opacity: .95;
}

/* Question heading chip */
.faq-question {
  position: relative;
  display: block;
  font-weight: 900;
  color: var(--text-color);
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(253,151,69,0.18), rgba(223,25,29,0.14));
  border: 1px solid rgba(253,151,69,0.30);
  margin: 4px 0 10px 0;
  line-height: 1.35;
  text-wrap: balance;
}

/* Subtle divider between question and answer */
.faq-question::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  opacity: .45;
  border-radius: 2px;
}

/* Answer text — always visible */
.faq-item > p {
  color: var(--soft-text);
  line-height: 1.7;
  margin: 14px 2px 2px 2px;
  text-wrap: pretty;
}

/* Decorative opening quote for answers */
.faq-item > p::before {
  content: "“";
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 6px;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}

/* Hover polish (no hiding/showing) */
.faq-item:hover {
  border-color: rgba(253,151,69,0.35);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

/* Two-column layout on large screens (title still spans full width) */
@media (min-width: 992px) {
  .faq-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .faq-container > h3 {
    grid-column: 1 / -1;                    /* keep title spanning both columns */
  }
}

/* Small screens tuning */
@media (max-width: 640px) {
  .faq-item { padding: 12px; }
  .faq-question { padding: 9px 10px; }
  .faq-question::after { left: 8px; right: 8px; bottom: -5px; }
}

/* Respect system motion preferences */
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
}




/* ===========================
   Floating panel
   =========================== */
.floating-panel {
  position: fixed; bottom: -100px; left: 0;
  width: calc(100% - 20px); height: 76px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
  margin: 0 10px; border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  transition: all .28s ease;
  z-index: 999; display: flex; align-items: center; padding: 0 20px;
}
.floating-panel.visible { bottom: 0; }
.floating-panel-content { display: flex; justify-content: space-between; align-items: center; }
.floating-logo { color: white; font-size: 1.6rem; font-weight: 900; text-decoration: none; letter-spacing: -0.02em; }
.floating-btn {
  background: #0acb62; color: white; padding: 12px 22px;
  border-radius: 12px; text-decoration: none; font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}
.floating-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.34); }
.floating-panel-spacer { height: 80px; background: var(--bg-color); }

@media (max-width: 768px) {
  .floating-logo { display: none; }
  .floating-panel-content { justify-content: center; }
}

/* ===========================
   Language selector
   =========================== */
.language-selector { position: relative; display: inline-block; font-family: inherit; font-size: 16px; }
.language-selector-button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background-color: var(--surface-3);
  border: 1px solid var(--card-border);
  border-radius: 10px; cursor: pointer; color: var(--text-color);
  transition: background .15s ease, border-color .15s ease;
}
.language-selector-button:hover { background-color: var(--surface-2); border-color: rgba(253,151,69,0.35); }
.language-flag {
  width: 24px; height: 16px; margin-right: 2px;
  background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0;
}
.language-code { font-weight: 900; width: 30px; color: var(--text-color); user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
.language-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px; max-width: 320px; max-height: 320px;
  overflow-y: auto; background-color: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: var(--shadow-1);
  z-index: 1000; display: none; margin-top: 6px;
}
.language-option { display: flex; align-items: center; padding: 12px; cursor: pointer; white-space: nowrap; text-decoration: none; color: inherit; gap: 8px; }
.language-option:hover { background-color: var(--surface-3); }
.language-name { color: var(--soft-text); overflow: hidden; text-overflow: ellipsis; }

.language-dropdown::-webkit-scrollbar { width: 6px; }
.language-dropdown::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
.language-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; transition: background 0.3s ease; }
.language-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
.language-dropdown { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05); }

/* ===========================
   Layout tweaks
   =========================== */
@media (max-width: 1024px) {
  .hero-bonus { flex: 0 0 320px; }
}
@media (max-width: 768px) {
  .hero-container { flex-direction: column; }
  .hero-bonus { flex: 1; width: 100%; margin-top: 28px; }
  .hero-bonus > div:first-child { top: -18px; right: 16px; }
  .footer-menu { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   Duplicate/legacy selectors kept & harmonized
   =========================== */
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; }

/* Hero base (kept) */
.hero-section { width: 100%; }
.hero-bg-container { z-index: 1; }
.hero-container { z-index: 2; }

/* Table header contrast (legacy selector) */
.content-container table th { background-color: var(--surface-3); color: var(--text-color); }

/* Feed & FAQ legacy colors adjusted above */

/* ===========================
   Accessibility helpers
   =========================== */
::selection { background: rgba(253,151,69,0.35); color: #fff; }

/* ===========================
   Footer logos — centered, tidy, responsive
   =========================== */

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 14px;                
  flex-wrap: wrap;                
  padding: 6px 0;
}

.footer-logos img {
  height: 40px;                    
  width: auto;
  max-width: 160px;               
  object-fit: contain;
  display: block;

  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.footer-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

@media (max-width: 480px) {
  .footer-logos { gap: 14px; }
}

.floating-panel-content {
  display: flex;
  align-items: center;
  justify-content: space-between;   
  width: 100%;
  gap: 12px;
}

.floating-panel-content > a:first-child {
  display: inline-flex;            
  align-items: center;
  margin-right: auto;               
}

.floating-panel-content .floating-btn {
  margin-left: auto;               
  white-space: nowrap;
}

.floating-panel-content > a:first-child img {
  height: 40px;
  width: auto;
  display: block;
}


@media (max-width: 768px) {
  .floating-panel-content {
    justify-content: space-between !important; 
    gap: 8px;
  }
}

