/* ============================================================
   NOMASPIN TEMPLATE — css/app.css
   Colors: green #274C38 · orange #FFA025 · navy #060E2A
   ============================================================ */

:root {
  --green:       #274C38;
  --green-dark:  #1c3728;
  --green-light: #3a6b50;
  --orange:      #FFA025;
  --orange-dark: #e08a10;
  --navy:        #060E2A;
  --white:       #ffffff;
  --gray-bg:     #f5f5f5;
  --gray-light:  #fbfbfb;
  --gray-border: #e8e8e8;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --blue-badge:  #1D6FEB;
  --win-green:   #16a34a;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --font:        'Inter', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--gray-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo__noma {
  background: var(--orange);
  color: var(--white);
  padding: 3px 7px;
  border-radius: 5px;
  margin-right: 1px;
}
.logo__spin { color: var(--white); }

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.header-nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-nav__link:hover,
.header-nav__link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* Auth buttons */
.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-login {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.15s;
}
.btn-login:hover { border-color: var(--white); }
.btn-signup {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  transition: background 0.15s, transform 0.15s;
}
.btn-signup:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BONUS SECTION ──────────────────────────────────────────── */
.bonus-section {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-border);
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bonus-card {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s;
}
.bonus-card:hover { box-shadow: var(--shadow); }
.bonus-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.bonus-card__amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.bonus-card__amount strong {
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
}
.bonus-card__sub {
  font-size: 13px;
  color: var(--white);
  margin-bottom: 8px;
}
.bonus-card__btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
  margin-top: auto;
  align-self: flex-start;
}
.bonus-card__btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ── SLOTS SECTION ──────────────────────────────────────────── */
.slots-section {
  padding: 36px 0;
  background: var(--white);
  margin-top: 8px;
}
.slots-section--alt {
  background: var(--gray-light);
}
.slots-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.slots-section__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}
.slots-section__viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  padding: 7px 16px;
  border-radius: 50px;
  transition: color 0.15s, border-color 0.15s;
}
.slots-section__viewall:hover { color: var(--orange); border-color: var(--orange); }

/* Slots grid: 6 per row */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.slot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gray-border);
  display: block;
}
.slot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s, filter 0.25s;
}
.slot-card__play {
  position: absolute;
  inset: 0;
  background: rgba(255,160,37,0.88);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.slot-card:hover img       { transform: scale(1.06); filter: brightness(0.75); }
.slot-card:hover .slot-card__play { opacity: 1; }

/* ── BETS TABLE SECTION ─────────────────────────────────────── */
.bets-section {
  padding: 36px 0;
  background: var(--white);
  margin-top: 8px;
}
.bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.bets-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-border);
}
.bets-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bets-tab.is-active,
.bets-tab:hover {
  color: var(--navy);
  border-bottom-color: var(--orange);
}
.bets-switches {
  display: flex;
  gap: 8px;
}
.bets-switch {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.bets-switch.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.bets-switch:hover:not(.is-active) { border-color: var(--navy); color: var(--navy); }

/* Table */
.bets-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
}
.bets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.bets-table thead th {
  background: var(--gray-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-border);
}
.bets-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.12s;
}
.bets-table tbody tr:last-child { border-bottom: none; }
.bets-table tbody tr:hover { background: var(--gray-light); }
.bets-table td {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.bets-table .td-game {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  max-width: 200px;
}
.bets-table .td-game__thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--gray-border);
  object-fit: cover;
  flex-shrink: 0;
}
.td-game__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
  display: block;
}
.bets-table .td-time { color: var(--text-muted); font-size: 13px; }
.badge-bet {
  display: inline-block;
  background: #ecf0f1;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-mult {
  display: inline-block;
  background: var(--blue-badge);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.td-payout {
  color: var(--win-green);
  font-weight: 700;
  font-size: 14px;
}

/* ── ARTICLE SECTION ────────────────────────────────────────── */
.article-section {
  padding: 48px 0;
  background: var(--white);
  margin-top: 8px;
}
.article-section__inner {
  max-width: 860px;
}
.article-section__inner h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.25;
}
.article-section__inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.article-section__inner h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.article-section__inner p  { margin-bottom: 14px; color: #374151; line-height: 1.75; }
.article-section__inner ul,
.article-section__inner ol { margin: 0 0 16px 20px; }
.article-section__inner li { margin-bottom: 6px; color: #374151; }
.article-section__inner a  { color: var(--orange); text-decoration: underline; }
.article-section__inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}
.article-section__inner table thead tr,
.article-section__inner table tr:first-child { background: var(--green); }
.article-section__inner table th {
  background: var(--green);
  color: var(--white);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
}
.article-section__inner table td {
  padding: 11px 16px;
  color: #374151;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.article-section__inner table tbody tr:nth-child(even) td { background: var(--gray-light); }
.article-section__inner table tbody tr:hover td { background: #edf7f0; }
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.data-table thead tr { background: var(--green); }
.data-table th {
  background: var(--green);
  color: var(--white) !important;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.data-table p {
  color: var(--white);
}
.data-table tbody tr { background: var(--white); }
.data-table tbody tr:nth-child(even) { background: var(--gray-light); }
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text);
  background: inherit;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td {
  background: #edf7f0 !important;
  color: var(--navy);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  padding: 48px 0 64px;
  background: var(--gray-light);
  margin-top: 8px;
}
.faq-section__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.faq-question__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.faq-question__icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-question__icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 20px;
}
.faq-answer.is-open {
  max-height: 600px;
  padding: 0 20px 18px;
}
.faq-answer p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 52px 0 28px;
  border-top: 3px solid var(--orange);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 230px; }
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer__warning { max-width: 640px; line-height: 1.6; }
.footer__copy    { white-space: nowrap; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  /* Header */
  .burger       { display: flex; }
  .header-nav   {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 2px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .header-nav.is-open { display: flex; }
  .header-nav__link   { width: 100%; padding: 12px 14px; }
  .header-actions     { display: none; }
  .header__inner      { position: relative; }

  /* Bonus */
  .bonus-grid { grid-template-columns: 1fr; }

  /* Slots */
  .slots-grid { grid-template-columns: repeat(3, 1fr); }

  /* Bets */
  .bets-header { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .slots-grid   { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .bets-tabs    { overflow-x: auto; }
}
