/*
Theme Name: 9xbet Bengali Help Portal
Theme URI: https://9xbet.beer/
Author: 9xbet Bengali Information Centre
Description: Independent Bengali brand information and help portal using the locked Dark Lime Help Portal visual system.
Version: 1.0.2
Text Domain: 9xbet-bn-portal
*/

:root {
  --bg: #07110e;
  --bg-soft: #0d1b17;
  --card: #12241e;
  --hover: #183027;
  --lime: #b8f34a;
  --cyan: #3dd6c6;
  --text: #f3f8f5;
  --muted: #afc2b8;
  --border: #29453a;
  --warning: #f0b44d;
  --danger: #e16f73;
  --focus: #d3ff7c;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);
  --site: 1200px;
  --reading: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 7%, rgba(61, 214, 198, .10), transparent 26rem),
    linear-gradient(rgba(184, 243, 74, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 243, 74, .018) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
a { color: var(--lime); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
p, li { color: var(--text); }
h1, h2, h3 { line-height: 1.24; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); margin: .35rem 0 1.2rem; max-width: 1000px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin-top: 1.6rem; }

.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: var(--lime); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; height: 66px; background: rgba(7, 17, 14, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 40px), var(--site)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 1.45rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.site-logo span { color: var(--lime); }
.primary-nav ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: .45rem .72rem; border-radius: 8px; color: var(--muted); font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--hover); color: var(--text); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle-bars::before { transform: translateY(-7px); }
.menu-toggle-bars::after { transform: translateY(5px); }

.site-main { min-height: 65vh; }
.page-intro { border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(18, 36, 30, .9), rgba(7, 17, 14, .8)); }
.page-intro-inner { width: min(calc(100% - 40px), var(--site)); margin: auto; padding: 72px 0 58px; }
.eyebrow { margin: 0 0 .5rem; color: var(--cyan); font-size: .86rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.page-deck { max-width: var(--reading); margin: 0; color: var(--muted); font-size: 1.12rem; }
.reviewed { display: inline-flex; margin-top: 1.25rem; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: .85rem; }
.content-shell { width: min(calc(100% - 40px), var(--site)); margin: 0 auto; padding: 20px 0 72px; }
.content-shell > .entry-content { max-width: var(--reading); margin: auto; }
.entry-content > section { padding: 64px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 86px; }
.entry-content > section:last-child { border-bottom: 0; }
.entry-content p { margin: 0 0 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content li + li { margin-top: .55rem; }
.entry-content strong { color: #fff; }

.section-visual { margin: 1.6rem 0 2rem; }
.section-visual img { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-soft); }
.section-visual figcaption { margin-top: .65rem; color: var(--muted); font-size: .84rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.quick-links a, .button-link { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--cyan); border-radius: 10px; background: transparent; color: var(--text); font-weight: 750; text-decoration: none; }
.quick-links a:hover, .button-link:hover { background: var(--hover); transform: translateY(-1px); }
.button-link--primary { border-color: var(--lime); background: var(--lime); color: var(--bg); }
.button-link--primary:hover { background: var(--focus); color: var(--bg); }

.table-wrap { width: 100%; margin: 1.6rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--bg-soft); }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--card); color: var(--lime); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.step-list { counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.step-list li { counter-increment: steps; min-width: 0; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.step-list li::before { content: counter(steps, bengali); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .8rem; border-radius: 50%; background: var(--lime); color: var(--bg); font-weight: 900; }
.notice { margin: 1.4rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--cyan); border-radius: 0 10px 10px 0; background: var(--card); }
.notice--warning { border-color: var(--warning); }
.notice--danger { border-color: var(--danger); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.status-grid > div { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.status-grid h3 { margin: 0 0 .4rem; color: var(--lime); }
.status-grid p { margin: 0; color: var(--muted); }

details { margin: .8rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
summary { display: flex; align-items: center; min-height: 52px; padding: .8rem 1rem; cursor: pointer; color: var(--text); font-weight: 750; }
details > div { padding: 0 1rem 1rem; color: var(--muted); }
details[open] { border-color: var(--cyan); }
.toc { margin: 1rem 0 2rem; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.toc summary { padding: 0; }
.toc ul { columns: 2; margin-bottom: 0; }
.toc a { color: var(--muted); }

.feedback-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feedback-form label { display: grid; gap: .35rem; font-weight: 750; }
.feedback-form input, .feedback-form textarea, .feedback-form select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.feedback-form textarea { min-height: 160px; resize: vertical; }
.feedback-form button { min-height: 48px; width: fit-content; padding: .7rem 1.15rem; border: 0; border-radius: 10px; background: var(--lime); color: var(--bg); font: inherit; font-weight: 850; cursor: pointer; }

.site-footer { border-top: 1px solid var(--border); background: #050d0b; }
.footer-inner { width: min(calc(100% - 40px), var(--site)); margin: auto; padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-title { margin: 0 0 .8rem; font-size: 1.2rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.footer-note { color: var(--muted); font-size: .92rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.not-found { width: min(calc(100% - 40px), var(--reading)); margin: auto; padding: 90px 0; }

@media (max-width: 860px) {
  .site-header { height: 58px; }
  .header-inner { width: min(calc(100% - 32px), var(--site)); }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 58px 0 auto; max-height: calc(100vh - 58px); overflow-y: auto; padding: .65rem 1rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); transform: translateY(-120%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav ul { display: block; }
  .primary-nav a { min-height: 48px; padding-inline: .85rem; }
  .page-intro-inner { padding: 48px 0 40px; }
  .entry-content > section { padding: 44px 0; scroll-margin-top: 72px; }
  .step-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-intro-inner, .content-shell, .footer-inner { width: calc(100% - 32px); }
  .page-intro-inner { padding-top: 40px; }
  .quick-links { display: grid; grid-template-columns: 1fr; }
  .quick-links a, .button-link { width: 100%; justify-content: center; }
  .status-grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .section-visual { margin-inline: 0; }
  h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
