/* ===== OZWIN CASINO – MAIN STYLESHEET ===== */
:root {
  --dark-bg: #061a0c;
  --dark-card: #0a2212;
  --dark-card2: #0e2c18;
  --dark-border: #1a4a28;
  --gold: #d4a017;
  --gold-light: #f0c840;
  --gold-dark: #a07810;
  --emerald: #2ecc71;
  --emerald-dark: #1a8a48;
  --text: #e8e0d0;
  --text-muted: #a09880;
  --white: #ffffff;
  --red: #e53935;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--gold); color: #000; padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #000; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--gold-light); outline-offset: 2px; border-radius: 4px;
}
.burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.main-nav a, .mobile-nav a { min-height: 44px; display: flex; align-items: center; }
.main-nav a { display: inline-flex; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--dark-bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

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

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(6,26,12,.97);
  border-bottom: 2px solid var(--gold-dark);
  height: var(--header-h);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; gap: 20px;
}
.logo-wrap img { height: 50px; width: auto; }
.logo-wrap { flex-shrink: 0; }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  color: var(--text); font-size: .82rem; font-weight: 600;
  padding: 6px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--dark-card2); color: var(--gold); }

.header-cta {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.btn-tracker {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000 !important;
  font-weight: 800; font-size: .82rem;
  padding: 9px 20px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 2px 12px rgba(212,160,23,.4);
  border: 1px solid var(--gold-light);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-tracker:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212,160,23,.6);
  color: #000 !important;
}
.tracker-label { font-size: .65rem; color: var(--emerald); text-transform: uppercase; letter-spacing: .08em; }

/* Mobile burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--dark-card);
  border-bottom: 1px solid var(--dark-border);
  padding: 10px 20px;
}
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; font-size: .78rem; color: var(--text-muted); }
.breadcrumb-inner a { color: var(--gold-dark); }
.breadcrumb-inner span { margin: 0 6px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: .2s; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000; border: none;
}
.btn-gold:hover { opacity: .9; color: #000; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold); background: transparent;
}
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-green {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff; border: none;
}
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section { padding: 70px 20px; }
.section-sm { padding: 45px 20px; }
.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 800;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; max-width: 620px; }
.title-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 16px;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.card-gold { border-color: var(--gold-dark); }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--dark-border); margin: 28px 0; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead { background: linear-gradient(135deg, #0d2b14, #1a4a28); }
thead th {
  padding: 14px 18px; text-align: left;
  color: var(--gold-light); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid var(--gold-dark);
}
tbody tr { border-bottom: 1px solid rgba(26,74,40,.5); transition: background .15s; }
tbody tr:hover { background: rgba(46,204,113,.04); }
tbody td { padding: 13px 18px; font-size: .9rem; }
tbody tr:last-child { border-bottom: none; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.badge-green { background: rgba(46,204,113,.2); color: var(--emerald); border: 1px solid rgba(46,204,113,.3); }
.badge-gold { background: rgba(212,160,23,.2); color: var(--gold-light); border: 1px solid rgba(212,160,23,.3); }
.badge-red { background: rgba(229,57,53,.2); color: #ef5350; border: 1px solid rgba(229,57,53,.3); }
.badge-gray { background: rgba(160,152,128,.15); color: var(--text-muted); }

/* ===== CHARTS ===== */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 30px 0; }
.chart-box {
  background: var(--dark-card2);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 24px;
}
.chart-box h4 { color: var(--gold); margin-bottom: 16px; font-size: .95rem; }
.chart-box canvas { max-height: 260px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, #0d2b14, #112916);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  display: grid; gap: 0;
}
.stat-item {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--dark-border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; margin-top: 6px; letter-spacing: .06em; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #061a0c 0%, #0a2b12 50%, #071c0d 100%);
  border-bottom: 1px solid var(--dark-border);
  padding: 80px 20px 70px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,160,23,.08) 0%, transparent 70%);
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; }

/* ===== RATING STARS ===== */
.stars { color: var(--gold-light); font-size: 1.1rem; letter-spacing: 2px; }
.rating-num { font-size: 2.2rem; font-weight: 900; color: var(--gold-light); }

/* ===== ACCORDION ===== */
.accordion-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px; margin-bottom: 10px;
  overflow: hidden;
}
.accordion-head {
  padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600;
  transition: background .2s;
}
.accordion-head:hover { background: var(--dark-card2); }
.accordion-icon { color: var(--gold); font-size: 1.2rem; transition: transform .3s; }
.accordion-body { display: none; padding: 16px 22px; border-top: 1px solid var(--dark-border); color: var(--text-muted); line-height: 1.7; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-item.open .accordion-body { display: block; }

/* ===== PROGRESS / STEPS ===== */
.steps-timeline { display: flex; gap: 0; overflow: hidden; border-radius: 12px; }
.step-item {
  flex: 1; padding: 28px 20px; text-align: center;
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  position: relative;
}
.step-item:last-child { border-right: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000; font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-title { color: var(--gold-light); font-weight: 700; margin-bottom: 8px; }
.step-text { font-size: .83rem; color: var(--text-muted); }

/* ===== VIP TIERS ===== */
.tier-bar { display: flex; gap: 12px; overflow-x: auto; padding: 10px 0; }
.tier-card {
  min-width: 180px; flex: 1;
  background: var(--dark-card2);
  border: 2px solid var(--dark-border);
  border-radius: 16px; padding: 28px 20px; text-align: center;
  transition: .2s;
}
.tier-card.active { border-color: var(--gold); background: rgba(212,160,23,.06); }
.tier-icon { font-size: 2.5rem; margin-bottom: 10px; }
.tier-name { color: var(--gold-light); font-weight: 800; font-size: 1.1rem; }
.tier-pts { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== PROS / CONS ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros, .cons {
  background: var(--dark-card); border-radius: 12px; padding: 24px;
}
.pros { border-left: 4px solid var(--emerald); }
.cons { border-left: 4px solid var(--red); }
.pros h4 { color: var(--emerald); margin-bottom: 14px; }
.cons h4 { color: var(--red); margin-bottom: 14px; }
.pros li, .cons li { margin-bottom: 8px; font-size: .9rem; padding-left: 18px; position: relative; list-style: none; }
.pros li::before { content: '✓'; color: var(--emerald); position: absolute; left: 0; font-weight: 700; }
.cons li::before { content: '✗'; color: var(--red); position: absolute; left: 0; font-weight: 700; }

/* ===== BONUS CARD ===== */
.bonus-card {
  background: linear-gradient(135deg, #0a2212, #112916);
  border: 1px solid var(--gold-dark);
  border-radius: 16px; padding: 28px;
  position: relative; overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(212,160,23,.15) 0%, transparent 70%);
}
.bonus-amount { font-size: 1.8rem; font-weight: 900; color: var(--gold-light); }
.bonus-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; }
.bonus-tag {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000; padding: 4px 12px; border-radius: 20px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
}

/* ===== PAYMENT ICON ===== */
.pay-icon {
  width: 48px; height: 32px;
  background: var(--dark-card2);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--gold);
}

/* ===== AUTHOR BOX ===== */
.author-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 28px;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-avatar {
  width: 90px; height: 90px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-dark), var(--dark-card2));
  border: 3px solid var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-name { color: var(--gold-light); font-size: 1.1rem; font-weight: 700; }
.author-title { color: var(--emerald); font-size: .8rem; margin-bottom: 10px; }
.author-bio { font-size: .87rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: #040f07;
  border-top: 2px solid var(--dark-border);
  padding: 60px 20px 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto 40px; }
.footer-logo img { height: 44px; margin-bottom: 16px; }
.footer-desc { color: var(--text-muted); font-size: .84rem; line-height: 1.7; }
.footer-col h5 { color: var(--gold-light); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: var(--text-muted); }
.footer-disclaimer { font-size: .72rem; color: rgba(160,152,128,.6); margin-top: 20px; line-height: 1.6; max-width: 1280px; margin: 16px auto 0; }

.age-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== NOTICE / ALERT ===== */
.notice {
  background: rgba(212,160,23,.08);
  border: 1px solid rgba(212,160,23,.25);
  border-radius: 10px; padding: 16px 20px;
  font-size: .88rem; color: var(--text-muted);
  margin: 20px 0;
}
.notice strong { color: var(--gold); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--dark-border); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--text); font-weight: 600; font-size: .9rem; }
.mobile-tracker {
  margin-top: 16px; text-align: center;
}

/* ===== PROGRESS BAR ===== */
.progress-row { margin-bottom: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 6px; }
.progress-label span:last-child { color: var(--gold); }
.progress-bar-bg { background: rgba(255,255,255,.08); border-radius: 20px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--emerald-dark), var(--emerald)); transition: width 1s; }

/* ===== HIGHLIGHT BOX ===== */
.highlight {
  background: linear-gradient(135deg, rgba(212,160,23,.1), rgba(46,204,113,.06));
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 12px; padding: 24px 28px;
  margin: 24px 0;
}

/* ===== TABS ===== */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab-btn {
  padding: 9px 20px; border-radius: 8px;
  background: var(--dark-card2); border: 1px solid var(--dark-border);
  color: var(--text-muted); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: rgba(212,160,23,.15); border-color: var(--gold-dark); color: var(--gold-light);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn-tracker { font-size: .75rem; padding: 8px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pros-cons { grid-template-columns: 1fr; }
  .steps-timeline { flex-direction: column; border-radius: 12px; overflow: hidden; }
  .step-item { border-right: none; border-bottom: 1px solid var(--dark-border); }
  .tier-bar { flex-direction: column; }
  .tier-card { min-width: unset; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--dark-border); }
  .hero { padding: 50px 20px 40px; }
  .section { padding: 50px 20px; }
  /* Collapse any inline-grid hero layouts to single column on mobile */
  .hero-inner > div[style*="grid"] { grid-template-columns: 1fr !important; }
  .hero-inner [style*="min-width:220px"] { min-width: 0 !important; }
  .hero-inner [style*="min-width: 220px"] { min-width: 0 !important; }
  .bonus-card { width: 100%; }
  /* Generic inline 2-col grids (split heroes, magazine layouts) stack */
  .container > div[style*="grid-template-columns:2fr"],
  .container > div[style*="grid-template-columns:3fr"],
  .container-narrow > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Prevent device-frame / wide elements from overflowing */
  .device-wrap { flex-wrap: wrap; }
  img { max-width: 100%; }
  /* Fix CSS grid blowout: grid/flex children holding wide tables must shrink */
  .magazine-grid > div,
  .magazine-grid > *,
  .container > div[style*="grid"] > div,
  .container-narrow > div[style*="grid"] > div,
  .hero-inner > div[style*="grid"] > div { min-width: 0; }
  .table-wrap { max-width: 100%; }
}
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .logo-wrap img { height: 40px; }
  .stats-bar { grid-template-columns: 1fr 1fr !important; }
  .section-title { font-size: 1.4rem; }
}
