/* ===== Royal X Casino Apps — Player's Hub theme ===== */
:root {
  --navy: #0b1622;
  --navy-2: #0f2236;
  --navy-3: #142c44;
  --emerald: #d4a017;
  --emerald-dark: #a87a0f;
  --emerald-light: #f3cf6b;
  --gold: #f0a93a;
  --gold-dark: #c9842a;
  --bg-light: #f5f8fa;
  --bg-white: #ffffff;
  --text-dark: #16202b;
  --text-body: #45525f;
  --text-muted: #6c7884;
  --text-on-dark: #e8eef2;
  --text-on-dark-muted: #a9bac8;
  --border: #e1e7eb;
  --border-light: #edf1f4;
  --red: #e0455a;
  --shadow: 0 4px 20px rgba(11, 22, 34, 0.08);
  --shadow-card: 0 2px 10px rgba(11, 22, 34, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }

/* Scroll progress */
.scroll-progress-track { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 1001; }
.scroll-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), var(--gold)); transition: width 0.1s; }

/* Nav */
.navbar { position: sticky; top: 0; background: var(--navy); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.nav-container { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text-on-dark); }
.logo-mark { background: linear-gradient(135deg, var(--emerald), var(--gold)); color: var(--navy); width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; }
.logo-mark-img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: 0 0 36px; }
.navbar-right { display: flex; gap: 22px; align-items: center; }
.nav-link { color: var(--text-on-dark-muted); font-size: 0.92rem; font-weight: 600; }
.nav-link:hover { color: var(--emerald-light); text-decoration: none; }
.nav-cta { background: var(--emerald); color: var(--navy); padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; }
.nav-cta:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger .bar { width: 24px; height: 2px; background: var(--text-on-dark); }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-2); padding: 10px 20px 18px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-on-dark-muted); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 860px) {
  .navbar-right { display: none; }
  .hamburger { display: flex; }
}

/* Hero */
.hero-section { position: relative; background: var(--bg-white); color: var(--text-body); padding: 48px 20px 36px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: 0.14; }
.hero-glow-1 { top: -60px; left: -60px; width: 320px; height: 320px; background: radial-gradient(circle, var(--gold), transparent); }
.hero-glow-2 { bottom: -80px; right: -40px; width: 280px; height: 280px; background: radial-gradient(circle, var(--emerald), transparent); }
.hero-container { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb-nav { margin-bottom: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li[aria-current="page"] { color: var(--text-dark); font-weight: 600; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--emerald); color: var(--navy); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 2000; font-weight: 700; font-size: 0.85rem; }
.skip-link:focus { left: 0; }
.hero-badge { display: inline-block; background: rgba(212, 160, 23, 0.12); border: 1px solid rgba(212,160,23,0.4); color: var(--emerald-dark); font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero-flex { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-left { flex: 1 1 480px; }
.hero-title { font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text-dark); }
.hero-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 22px; max-width: 640px; }
.hero-buttons { display: flex; flex-direction: column; gap: 14px; }
.hero-buttons .download-btn, .hero-buttons .register-btn { padding: 18px 26px; width: 100%; font-size: 1rem; }
.download-btn, .register-btn, .cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
.download-btn, .cta-btn { background: var(--emerald); color: var(--navy); font-weight: 800; }
.download-btn:hover, .cta-btn:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.register-btn { background: transparent; color: var(--text-dark); border: 1.5px solid var(--border); }
.register-btn:hover { border-color: var(--gold-dark); color: var(--gold-dark); text-decoration: none; }
.btn-icon, .download-icon { width: 18px; height: 18px; fill: currentColor; }
.hero-right { flex: 0 0 240px; display: flex; justify-content: center; position: relative; z-index: 1; }
.img-placeholder { width: 170px; height: 170px; border-radius: 20px; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px dashed rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-on-dark-muted); font-weight: 700; font-size: 0.85rem; }
.hero-image-card { position: relative; }
.hero-image-card::before { content: ""; position: absolute; inset: -14px; border-radius: 28px; background: linear-gradient(135deg, var(--emerald), var(--gold)); filter: blur(28px); opacity: 0.35; z-index: 0; }
.hero-logo-img { position: relative; z-index: 1; width: 220px; height: 220px; border-radius: 24px; object-fit: cover; box-shadow: 0 12px 36px rgba(0,0,0,0.4); border: 1px solid rgba(212,160,23,0.35); }

.hero-stats-row { display: flex; flex-wrap: wrap; gap: 26px; margin: 22px 0; position: relative; z-index: 1; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--emerald-dark); }
.hero-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

.payment-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.payment-label { font-size: 0.78rem; color: var(--text-muted); }
.payment-badge { font-size: 0.75rem; font-weight: 600; color: var(--text-dark); background: var(--bg-light); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }

.stats-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 16px; position: relative; z-index: 1; }

@media (max-width: 760px) {
  .hero-title { font-size: 1.6rem; }
  .hero-right { flex: 0 0 100%; justify-content: center; }
}

/* Generic sections */
main { display: block; }
.section { padding: 44px 20px; }
.section.alt { background: var(--bg-light); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-heading { font-size: 1.55rem; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; max-width: 720px; }
.intro-text, .body-text { font-size: 0.98rem; color: var(--text-body); margin-bottom: 14px; }
.body-text:last-child { margin-bottom: 0; }
h3.subhead { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 22px 0 8px; }

/* TOC */
.toc-section { padding: 0 20px; margin-top: -10px; }
.toc-container { max-width: var(--max-w); margin: 24px auto 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.toc-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; cursor: pointer; background: var(--bg-light); }
.toc-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.toc-icon { font-weight: 800; color: var(--emerald-dark); }
.toc-content { display: none; padding: 16px 24px; }
.toc-content.open { display: block; }
.toc-list { columns: 2; gap: 24px; list-style: none; padding: 0; }
.toc-list li { margin-bottom: 8px; font-size: 0.88rem; }
.toc-list a { color: var(--text-body); }
.toc-list a:hover { color: var(--emerald-dark); }
@media (max-width: 600px) { .toc-list { columns: 1; } }

/* Cards / grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
.card-icon svg { width: 26px; height: 26px; fill: var(--emerald-dark); margin-bottom: 10px; }
.card-title { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.card-text { font-size: 0.9rem; color: var(--text-muted); }
.card-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 700; }

/* Game cards (hub) */
.game-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.game-card-top { height: 90px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); display: flex; align-items: center; justify-content: center; color: var(--emerald-light); font-weight: 800; }
.game-card-body { padding: 18px; }
.game-card .card-title { margin-bottom: 6px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 0.72rem; background: var(--bg-light); color: var(--text-muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); }

/* Download CTA */
.download-cta-wrapper { margin: 16px 0 6px; text-align: center; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.download-cta-btn { font-size: 1rem; padding: 15px 32px; }
.download-cta-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* Steps */
.steps-container { display: grid; gap: 14px; margin-top: 16px; }
.step-card { display: flex; gap: 16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-card); }
.step-number { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--emerald); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; }
.step-title { font-weight: 700; color: var(--text-dark); margin-bottom: 4px; font-size: 0.95rem; }
.step-content { font-size: 0.88rem; color: var(--text-muted); }

/* Table */
.app-details-table, .data-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.92rem; }
.app-details-table td, .data-table td, .data-table th { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.app-details-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; }
.data-table th { background: var(--bg-light); text-align: left; font-weight: 700; color: var(--text-dark); }

/* Pros cons */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.pros-box, .cons-box { border-radius: var(--radius); padding: 20px; }
.pros-box { background: rgba(212,160,23,0.07); border: 1px solid rgba(212,160,23,0.25); }
.cons-box { background: rgba(224,69,90,0.06); border: 1px solid rgba(224,69,90,0.22); }
.pros-box h3, .cons-box h3 { font-size: 1rem; margin-bottom: 10px; }
.pros-box h3 { color: var(--emerald-dark); }
.cons-box h3 { color: var(--red); }
.pros-box ul, .cons-box ul { list-style: none; padding: 0; font-size: 0.9rem; }
.pros-box li, .cons-box li { padding-left: 22px; position: relative; }
.pros-box li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald-dark); font-weight: 800; }
.cons-box li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
@media (max-width: 700px) { .pros-cons-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: var(--bg-white); border: none; padding: 16px 18px; font-weight: 700; font-size: 0.95rem; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-q .plus { color: var(--emerald-dark); font-size: 1.2rem; }
.faq-a { display: none; padding: 0 18px 16px; font-size: 0.9rem; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* Callout / note */
.callout { background: rgba(240,169,58,0.09); border: 1px solid rgba(240,169,58,0.35); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.9rem; color: var(--text-body); margin: 16px 0; }
.callout strong { color: var(--text-dark); }
.callout.warn { background: rgba(224,69,90,0.06); border-color: rgba(224,69,90,0.3); border-left-color: var(--red); }

/* Verdict / score box */
.verdict-box { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; }
.verdict-score { font-size: 2.6rem; font-weight: 800; color: var(--gold); }
.verdict-box p { color: var(--text-on-dark-muted); max-width: 600px; margin: 10px auto 0; font-size: 0.92rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 36px 20px; text-align: center; border-radius: var(--radius); margin: 10px auto; max-width: var(--max-w); border: 1px solid rgba(212,160,23,0.35); }
.cta-band h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 18px; font-size: 0.95rem; }
.cta-band .download-btn { background: var(--emerald); color: var(--navy); }
.cta-band .download-btn:hover { background: var(--gold); color: var(--navy); }

/* Blog list */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.blog-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
.blog-card .blog-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--text-dark); }
.blog-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Author / E-E-A-T box */
.author-box { display: flex; gap: 14px; align-items: center; background: var(--bg-light); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--gold)); flex: 0 0 44px; }
.author-box .name { font-weight: 700; color: var(--text-dark); font-size: 0.92rem; }
.author-box .role { font-size: 0.8rem; color: var(--text-muted); }

/* Footer */
.footer { background: var(--navy); color: var(--text-on-dark-muted); padding: 44px 20px 24px; margin-top: 30px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; font-size: 0.86rem; }
.footer a { color: var(--text-on-dark-muted); }
.footer a:hover { color: var(--emerald-light); }
.footer-brand p { font-size: 0.85rem; max-width: 320px; margin-top: 10px; }
.footer-bottom { max-width: var(--max-w); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.disclaimer-strip { background: var(--navy-2); color: var(--text-on-dark-muted); font-size: 0.75rem; padding: 14px 20px; text-align: center; }
.disclaimer-strip strong { color: var(--gold); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Legal pages */
.legal-content h2 { font-size: 1.2rem; margin: 24px 0 8px; color: var(--text-dark); }
.legal-content p, .legal-content li { font-size: 0.92rem; color: var(--text-body); }
.legal-content { max-width: 760px; }
