/* ============================================
   W7API - Global Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* Fontawesome Fonts */

@import url("https://kit-pro.fontawesome.com/releases/v6.1.1/css/pro.min.css");

/* ============================================
   CSS Variables - Light Theme (default)
   ============================================ */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Brand Colors */
  --brand-primary: #00c896;
  --brand-primary-dark: #00a87e;
  --brand-primary-light: #00e6ac;
  --brand-accent: #f0a500;
  --brand-danger: #e63946;
  --brand-warning: #f4a261;
  --brand-info: #4cc9f0;

  /* Light Theme */
  --bg-body: #f4f6fb;
  --bg-card: #ffffff;
  --bg-card-alt: #f0f4f8;
  --bg-sidebar: #ffffff;
  --bg-header: rgba(255,255,255,0.95);
  --bg-code: #1a1d2e;
  --bg-input: #ffffff;
  --bg-hover: #f0f9f6;
  --bg-table-head: #eef2f7;
  --bg-table-row-alt: #f8fafb;
  --bg-overlay: rgba(0,0,0,0.04);
  --bg-badge-get: #e8f5e9;
  --bg-badge-post: #fff3e0;

  --text-primary: #0d1117;
  --text-secondary: #4a5568;
  --text-muted: #8a97a8;
  --text-inverse: #ffffff;
  --text-badge-get: #2e7d32;
  --text-badge-post: #e65100;
  --text-code: #00c896;

  --border-color: #e2e8f0;
  --border-color-light: #f0f4f8;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --border-radius-pill: 50px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-brand: 0 4px 20px rgba(0,200,150,0.25);

  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================
   Dark Theme
   ============================================ */
[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-card: #161b22;
  --bg-card-alt: #1c2230;
  --bg-sidebar: #0d1117;
  --bg-header: rgba(13,17,23,0.97);
  --bg-code: #0d1117;
  --bg-input: #1c2230;
  --bg-hover: #1a2535;
  --bg-table-head: #1c2230;
  --bg-table-row-alt: #141a25;
  --bg-overlay: rgba(255,255,255,0.03);
  --bg-badge-get: rgba(0,200,150,0.12);
  --bg-badge-post: rgba(240,165,0,0.12);

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --text-badge-get: #00c896;
  --text-badge-post: #f0a500;
  --text-code: #79c0ff;

  --border-color: #21262d;
  --border-color-light: #1c2230;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-brand: 0 4px 20px rgba(0,200,150,0.20);
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-primary-dark); }

img { max-width: 100%; height: auto; }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   Bootstrap Overrides
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-secondary {
  background: var(--bg-card-alt);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-danger { background: var(--brand-danger); border-color: var(--brand-danger); color: #fff; }
.btn-warning { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.btn-info { background: var(--brand-info); border-color: var(--brand-info); color: #fff; }

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: var(--border-radius); }
.btn-sm { padding: 0.3rem 0.85rem; font-size: 0.8rem; border-radius: 6px; }
.btn-pill { border-radius: var(--border-radius-pill); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--border-radius-sm); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-header {
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
}
.card-footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

.form-control, .form-select {
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-input);
  border-color: var(--brand-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.15);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.4rem; }
.input-group-text {
  background-color: var(--bg-card-alt);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}

.badge {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.3em 0.7em;
  border-radius: 6px;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}
.table-dark { --bs-table-bg: var(--bg-table-head); }
.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
}
.table thead th {
  background: var(--bg-table-head);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
}
.table tbody tr:hover > * { background-color: var(--bg-hover) !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--bg-table-row-alt); }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
}
.modal-header {
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.modal-footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
}
.modal-title { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.btn-close { filter: var(--bs-btn-close-white-filter, none); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.nav-tabs { border-bottom: 2px solid var(--border-color); }
.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 0;
  transition: var(--transition);
}
.nav-tabs .nav-link:hover { color: var(--brand-primary); border-color: transparent; }
.nav-tabs .nav-link.active {
  background: transparent;
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 600;
}

.nav-pills .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}
.nav-pills .nav-link:hover { background: var(--bg-hover); color: var(--brand-primary); }
.nav-pills .nav-link.active { background: var(--brand-primary); color: #fff; }

.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}
.dropdown-item {
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--brand-primary); }
.dropdown-divider { border-color: var(--border-color); }

.alert {
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}
.alert-success { background: rgba(0,200,150,0.12); color: var(--brand-primary); border-left: 4px solid var(--brand-primary); }
.alert-danger { background: rgba(230,57,70,0.12); color: var(--brand-danger); border-left: 4px solid var(--brand-danger); }
.alert-warning { background: rgba(240,165,0,0.12); color: var(--brand-accent); border-left: 4px solid var(--brand-accent); }
.alert-info { background: rgba(76,201,240,0.12); color: var(--brand-info); border-left: 4px solid var(--brand-info); }

.pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm) !important;
  margin: 0 2px;
  transition: var(--transition);
}
.pagination .page-link:hover { background: var(--bg-hover); color: var(--brand-primary); border-color: var(--brand-primary); }
.pagination .page-item.active .page-link { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: 0.5; }

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.theme-toggle:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); box-shadow: var(--shadow-brand); }

/* ============================================
   Public Header / Navbar
   ============================================ */
.public-navbar {
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--header-height);
  transition: background 0.3s ease;
}
.public-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.public-navbar .navbar-brand span { color: var(--brand-primary); }
.public-navbar .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}
.public-navbar .nav-link:hover { color: var(--brand-primary); background: var(--bg-hover); }
.public-navbar .nav-link.active { color: var(--brand-primary); font-weight: 600; }
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { color: var(--text-primary); }
[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

/* ============================================
   Public Footer
   ============================================ */
.public-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.footer-brand span { color: var(--brand-primary); }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.footer-link:hover { color: var(--brand-primary); padding-left: 4px; }
.footer-divider { border-color: var(--border-color); margin: 1.5rem 0 1rem; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.25);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
}
.hero-title .highlight { color: var(--brand-primary); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; line-height: 1.7; margin-top: 1rem;}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.hero-stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-primary); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ============================================
   Section Titles
   ============================================ */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.section-subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* ============================================
   Pricing Card
   ============================================ */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-info));
}
.pricing-card.featured {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-brand);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-badge {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 0.75rem;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.pricing-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.pricing-price sup { font-size: 1.2rem; font-weight: 600; top: -0.8em; }
.pricing-price sub { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.pricing-features li i { color: var(--brand-primary); font-size: 0.9rem; }

/* ============================================
   Feature Card
   ============================================ */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-primary); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,200,150,0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.feature-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--brand-primary); }
.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.faq-btn:hover { color: var(--brand-primary); }
.faq-btn i { transition: transform 0.3s ease; color: var(--text-muted); flex-shrink: 0; }
.faq-btn[aria-expanded="true"] { color: var(--brand-primary); }
.faq-btn[aria-expanded="true"] i { transform: rotate(180deg); color: var(--brand-primary); }
.faq-body { padding: 0 1.5rem 1.1rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   Contact Section
   ============================================ */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
}
.contact-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(0,200,150,0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
}
.auth-bg-accent {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,200,150,0.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}
.auth-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-logo span { color: var(--brand-primary); }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }
.auth-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.divider-text {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 2rem);
  height: 1px;
  background: var(--border-color);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }
.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.password-toggle:hover { color: var(--brand-primary); }
.password-input-wrap { position: relative; }
.password-input-wrap .form-control { padding-right: 2.75rem; }
.strength-bar-wrap { margin-top: 0.4rem; }
.strength-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--border-color);
  margin-bottom: 0.25rem;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.4s ease, background 0.4s ease;
}

/* ============================================
   Docs Pages
   ============================================ */
.docs-layout { display: flex; min-height: calc(100vh - var(--header-height)); }
.docs-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  flex-shrink: 0;
  padding: 1.5rem 0;
  transition: var(--transition);
}
.docs-sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem 0.25rem;
  margin-top: 0.5rem;
}
.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 0;
  transition: var(--transition);
  border-left: 2px solid transparent;
  cursor: pointer;
}
.docs-nav-link:hover { color: var(--brand-primary); background: var(--bg-hover); }
.docs-nav-link.active {
  color: var(--brand-primary);
  background: rgba(0,200,150,0.06);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}
.docs-content {
  flex: 1;
  max-width: calc(100% - 260px);
  padding: 2rem 2.5rem;
  overflow-x: hidden;
}
.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  background: var(--bg-card);
}
.endpoint-header:hover { background: var(--bg-hover); }
.method-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  flex-shrink: 0;
}
.method-get { background: var(--bg-badge-get); color: var(--text-badge-get); }
.method-post { background: var(--bg-badge-post); color: var(--text-badge-post); }
.endpoint-path {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.endpoint-desc { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.endpoint-body { padding: 1.25rem; border-top: 1px solid var(--border-color); background: var(--bg-card-alt); }
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #e6edf3;
  overflow-x: auto;
  position: relative;
  line-height: 1.7;
}
.code-block .key { color: #79c0ff; }
.code-block .str { color: #a5d6ff; }
.code-block .num { color: #79c0ff; }
.code-block .comment { color: #8b949e; }
.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #8b949e;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.code-copy-btn:hover { background: rgba(255,255,255,0.15); color: #e6edf3; }
.param-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.param-badge {
  display: inline-block;
  background: rgba(230,57,70,0.1);
  color: var(--brand-danger);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.param-badge.optional { background: rgba(76,201,240,0.1); color: var(--brand-info); }
.base-url-bar {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.version-badge {
  display: inline-block;
  background: rgba(0,200,150,0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(0,200,150,0.25);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--border-radius-pill);
  vertical-align: middle;
}
.docs-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1050;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Settlement / Bet Docs
   ============================================ */
.response-tab { padding: 1rem 0; }
.json-block {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  line-height: 1.8;
}
.json-key { color: #79c0ff; }
.json-str { color: #a8ff78; }
.json-num { color: #ffd700; }
.json-bool { color: #ff79c6; }
.json-null { color: #8b949e; }
.result-won { color: #00c896; font-weight: 600; }
.result-lost { color: #e63946; font-weight: 600; }

/* ============================================
   Terms Page
   ============================================ */
.terms-wrapper { max-width: 820px; margin: 0 auto; padding: 2rem 0 4rem; }
.terms-header { text-align: center; padding: 3rem 0 2rem; }
.terms-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.terms-toc-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.terms-toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  counter-increment: toc-counter;
}
.terms-toc a::before { content: counter(toc-counter) '. '; color: var(--brand-primary); font-weight: 600; }
.terms-toc a:hover { color: var(--brand-primary); }
.terms-section { margin-bottom: 2.5rem; }
.terms-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.terms-section p, .terms-section li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.6rem; }
.terms-section ul { padding-left: 1.25rem; }

/* ============================================
   Admin Layout
   ============================================ */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  height: var(--header-height);
}
.sidebar-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.sidebar-logo-text span { color: var(--brand-primary); }
.sidebar-logo-badge {
  font-size: 0.65rem;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  margin-left: auto;
}
.sidebar-nav { flex: 1; padding: 1rem 0.75rem; }
.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
  white-space: nowrap;
}
.sidebar-link i { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link:hover { background: var(--bg-hover); color: var(--brand-primary); }
.sidebar-link.active { background: rgba(0,200,150,0.1); color: var(--brand-primary); font-weight: 600; }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--brand-primary);
  border-radius: 0 3px 3px 0;
}
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Admin Header */
.admin-header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
}
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 1.5rem;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}
.admin-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.admin-breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.header-search .form-control {
  background: var(--bg-card-alt);
  border-color: var(--border-color);
  border-radius: var(--border-radius-pill);
  padding: 0.4rem 1rem 0.4rem 2.25rem;
  font-size: 0.85rem;
  width: 220px;
}
.header-search-wrap { position: relative; }
.header-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-info));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
.notification-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.notification-btn:hover { background: var(--bg-hover); color: var(--brand-primary); }
.notification-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--brand-danger);
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon.green { background: rgba(0,200,150,0.1); color: var(--brand-primary); }
.stat-icon.blue { background: rgba(76,201,240,0.1); color: var(--brand-info); }
.stat-icon.orange { background: rgba(240,165,0,0.1); color: var(--brand-accent); }
.stat-icon.red { background: rgba(230,57,70,0.1); color: var(--brand-danger); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-change { font-size: 0.75rem; margin-top: 0.3rem; }
.stat-change.up { color: var(--brand-primary); }
.stat-change.down { color: var(--brand-danger); }

/* Chart placeholder */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.chart-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

/* Admin Footer */
.admin-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  margin-left: var(--sidebar-width);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1035;
  backdrop-filter: blur(2px);
}

/* Users table */
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.status-dot.active { background: var(--brand-primary); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.suspended { background: var(--brand-danger); }

/* Table actions */
.table-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.table-action-btn:hover { background: var(--bg-hover); color: var(--brand-primary); border-color: var(--brand-primary); }
.table-action-btn.danger:hover { color: var(--brand-danger); border-color: var(--brand-danger); background: rgba(230,57,70,0.06); }

/* Create user form */
.form-section-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.75rem; margin-bottom: 1.25rem; }
.form-section-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.5rem; }
.form-section-title i { color: var(--brand-primary); }
.avatar-upload-area {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 2px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}
.avatar-upload-area:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: rgba(0,200,150,0.05); }
.avatar-upload-area i { font-size: 1.4rem; margin-bottom: 0.25rem; }
.permission-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color-light);
}
.permission-toggle:last-child { border-bottom: none; padding-bottom: 0; }
.permission-label { font-size: 0.875rem; color: var(--text-secondary); }
.permission-label strong { display: block; font-size: 0.9rem; color: var(--text-primary); }

/* Form Switch override */
.form-check-input[type=checkbox] {
  background-color: var(--bg-card-alt);
  border-color: var(--border-color);
  width: 2.2em;
  height: 1.1em;
  cursor: pointer;
}
.form-check-input[type=checkbox]:checked { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(0,200,150,0.15); border-color: var(--brand-primary); }
.form-select option { background: var(--bg-card); color: var(--text-primary); }

/* Dashboard */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.activity-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.order-row { transition: var(--transition); }
.order-row:hover { background: var(--bg-hover) !important; }
.progress-bar-custom {
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-info));
}

/* Forgot password OTP */
.otp-wrapper { display: flex; gap: 0.5rem; justify-content: center; margin: 1.5rem 0; }
.otp-input {
  width: 52px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: var(--transition);
}
.otp-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0,200,150,0.15); outline: none; }

/* Misc */
.text-brand { color: var(--brand-primary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-brand { background: var(--brand-primary) !important; }
.border-brand { border-color: var(--brand-primary) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.gap-sm { gap: 0.5rem; }
.rounded-custom { border-radius: var(--border-radius) !important; }
.shadow-brand { box-shadow: var(--shadow-brand) !important; }

/* Fade in animation */
.fade-in { animation: fadeInUp 0.45s ease both; }
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }
.fade-in-5 { animation-delay: 0.25s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}
.toast-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  animation: slideInRight 0.35s ease both;
  font-size: 0.875rem;
  color: var(--text-primary);
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  .docs-sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1045;
  }
  .docs-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .docs-content { max-width: 100%; padding: 1.5rem 1rem; }
  .docs-mobile-toggle { display: flex !important; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-header { left: 0; }
  .admin-main { margin-left: 0; padding: calc(var(--header-height) + 1rem) 1rem 1rem; }
  .admin-footer { margin-left: 0; }
  .sidebar-overlay.active { display: block; }
  .navbar-collapse { background-color: var(--bg-header); padding:10px 5px; }
}

@media (max-width: 767.98px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.25rem; }
  .header-search { display: none !important; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .contact-card { padding: 1.5rem; }
  .docs-content { padding: 1rem 0.875rem; }
  .admin-main { padding: calc(var(--header-height) + 1rem) 0.875rem 1rem; }
  .otp-input { width: 44px; height: 44px; font-size: 1.1rem; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.9rem; letter-spacing: -1px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .pricing-card { padding: 1.5rem; }
}

/* Collapse for accordion */
.collapse { display: none; }
.collapse.show { display: block; }
.collapsing { height: 0; overflow: hidden; transition: height 0.25s ease; }



/* INDEX PAGE */

.casino-badge-strip {
  background: linear-gradient(90deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  overflow: hidden;
  padding: 0.6rem 0;
}
.casino-badge-strip .strip-inner {
  display: flex;
  gap: 2.5rem;
  animation: scrollStrip 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.casino-badge-strip .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b949e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.casino-badge-strip .strip-item i { color: var(--brand-primary); }
@keyframes scrollStrip {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Sports grid */
.sports-icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.sports-icon-card:hover {
  border-color: var(--brand-primary);
  background: rgba(0,200,150,0.04);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sports-icon-card i { font-size: 1.8rem; color: var(--brand-primary); display: block; margin-bottom: 0.5rem; }
.sports-icon-card span { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }

/* White label section */
.wl-card {
  background: linear-gradient(135deg, rgba(0,200,150,0.08) 0%, rgba(76,201,240,0.06) 100%);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.wl-card::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,200,150,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.wl-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.wl-feature i { color: var(--brand-primary); font-size: 0.9rem; }

/* API showcase */
.api-preview-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.api-preview-topbar {
  background: #161b22;
  border-bottom: 1px solid #21262d;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.api-preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.api-preview-url {
  margin-left: 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #8b949e;
}
.api-preview-body {
  padding: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #e6edf3;
}
.api-key  { color: #79c0ff; }
.api-str  { color: #a5d6ff; }
.api-num  { color: #ffd700; }
.api-bool { color: #ff79c6; }
.api-cmt  { color: #8b949e; font-style: italic; }

/* Step cards */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  position: relative;
  height: 100%;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border-color);
  line-height: 1;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.step-card:hover .step-number { color: var(--brand-primary); }
.step-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.step-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* Contact info strip */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.contact-info-item i { font-size: 1.2rem; color: var(--brand-primary); }
.contact-info-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-val { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* Testimonial */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { color: var(--brand-accent); font-size: 0.9rem; margin-bottom: 0.85rem; }
.testimonial-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.testimonial-name { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* CTA strip */
.cta-section {
  background: linear-gradient(135deg, #00c896 0%, #4cc9f0 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  background: transparent;
}
.cta-section h2 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; letter-spacing: -0.5px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; }
.btn-cta-white {
  background: #fff;
  color: var(--brand-primary);
  border: none;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-pill);
  transition: var(--transition);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: var(--brand-primary); }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-pill);
  transition: var(--transition);
}
.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* section spacing */
.section-pad { padding: 4.5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.divider { border-color: var(--border-color); margin: 0; }


 /* ── Docs V1 ── */

/* ── Page-specific extras ── */
.toc-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card-alt); border: 1px solid var(--border-color);
  border-radius: var(--border-radius-pill); padding: .25rem .85rem;
  font-size: .78rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.toc-pill:hover, .toc-pill.active {
  background: rgba(0,200,150,.1); border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.section-anchor { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.endpoint-chevron { transition: transform .25s ease; }
.endpoint-header[aria-expanded="true"] .endpoint-chevron { transform: rotate(180deg); }
.inline-code {
  font-family: 'Courier New', monospace; font-size: .82rem;
  background: var(--bg-code); color: var(--brand-primary);
  border-radius: 4px; padding: .1rem .45rem;
  border: 1px solid rgba(0,200,150,.18);
}
.dir-tag {
  display: inline-block; font-family: 'Courier New', monospace;
  font-size: .78rem; font-weight: 700;
  background: rgba(76,201,240,.1); color: var(--brand-info);
  border: 1px solid rgba(76,201,240,.25); border-radius: 6px;
  padding: .2rem .65rem; margin-bottom: .75rem;
}
.error-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(230,57,70,.1); color: var(--brand-danger);
  border: 1px solid rgba(230,57,70,.25); border-radius: var(--border-radius-pill);
  font-size: .78rem; font-weight: 600; padding: .25rem .85rem;
}
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:1035; backdrop-filter:blur(2px); }
.sidebar-overlay.active { display:block; }
.param-row { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center;
  padding:.55rem 0; border-bottom:1px solid var(--border-color-light); font-size:.85rem; }
.param-row:last-child { border-bottom:none; }
.param-name { font-family:'Courier New',monospace; font-weight:700;
  color: var(--text-primary); min-width: 130px; }
.param-type { font-size:.75rem; color: var(--text-muted); }
.param-desc { color: var(--text-secondary); flex:1; min-width:140px; }

/* live glow tag */
.live-dot { width:7px; height:7px; background:#e63946; border-radius:50%;
  display:inline-block; margin-right:5px; animation: pulse-dot 1.5s infinite; }
.version-chip {
  display:inline-flex; align-items:center; gap:.35rem;
  background: rgba(0,200,150,.12); border:1px solid rgba(0,200,150,.3);
  color: var(--brand-primary); font-size:.78rem; font-weight:700;
  padding:.25rem .8rem; border-radius: var(--border-radius-pill);
}
/* copy feedback */
.copy-ok { color: var(--brand-primary) !important; }

/* right toc sticky */
.right-toc {
  position: sticky; top: calc(var(--header-height) + 1.25rem);
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto; padding: 1rem 0;
}
.right-toc-title { font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.1em; color:var(--text-muted); margin-bottom:.6rem; }
.right-toc-link { display:block; font-size:.8rem; color:var(--text-secondary);
  padding:.22rem 0; border-left:2px solid transparent; padding-left:.65rem;
  transition:var(--transition); }
.right-toc-link:hover, .right-toc-link.active {
  color:var(--brand-primary); border-left-color:var(--brand-primary); }



 /* ── Docs V2 ── */


.v2-accent { color: #4cc9f0; }
.version-v2 {
  background: rgba(76,201,240,0.12);
  color: #4cc9f0;
  border: 1px solid rgba(76,201,240,0.25);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.method-get  { background: var(--bg-badge-get);  color: var(--text-badge-get); }
.method-post { background: var(--bg-badge-post); color: var(--text-badge-post); }

/* new v2 diff badge */
.diff-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(76,201,240,0.12);
  color: #4cc9f0;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Endpoint cards */
.endpoint-card { margin-bottom: 1rem; }
.endpoint-header { cursor: pointer; user-select: none; }
.endpoint-header .chevron { transition: transform .3s ease; color: var(--text-muted); }
.endpoint-header[aria-expanded="true"] .chevron { transform: rotate(180deg); color: var(--brand-primary); }

/* Docs mobile FAB */
.docs-mobile-toggle { display: none; }
@media(max-width:991.98px){
  .docs-sidebar { transform: translateX(-100%); position: fixed; z-index: 1045; }
  .docs-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .docs-content { max-width: 100%; padding: 1.25rem 1rem; }
  .docs-mobile-toggle { display: flex !important; }
}

/* copy btn */
.code-block { position: relative; }
.code-copy-btn { cursor: pointer; }

/* changelog table */
.changelog-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
}
.changelog-new  { background: rgba(0,200,150,0.12); color: var(--brand-primary); }
.changelog-improved { background: rgba(76,201,240,0.12); color: var(--brand-info); }
.changelog-fixed { background: rgba(240,165,0,0.12); color: var(--brand-accent); }
.changelog-deprecated { background: rgba(230,57,70,0.12); color: var(--brand-danger); }

/* sidebar scrollbar slim */
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

/* dark overlay for mobile sidebar */
.sidebar-overlay { display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.48); z-index: 1044; backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }

/* section anchors offset */
.section-anchor { scroll-margin-top: calc(var(--header-height) + 1rem); }

/* compare table */
.compare-check { color: var(--brand-primary); font-size: 1rem; }
.compare-cross { color: var(--brand-danger); font-size: 1rem; }

/* inline code */
code {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.82em;
  color: var(--brand-primary);
  font-family: 'Courier New', monospace;
}


/* Response time indicator */
.rt-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; color: var(--brand-primary);
  background: rgba(0,200,150,.08);
  border: 1px solid rgba(0,200,150,.18);
  border-radius: 50px; padding: .15rem .55rem;
}
.rt-dot { width:6px; height:6px; border-radius:50%; background: var(--brand-primary); animation: pulse-dot 2s infinite; }

/* Tabs */
.nav-tabs .nav-link { font-size: .85rem; }

/* JSON lines */
.json-key   { color: #79c0ff; }
.json-str   { color: #a8ff78; }
.json-num   { color: #ffd700; }
.json-bool  { color: #ff79c6; }
.json-null  { color: #8b949e; }
.json-comment { color: #8b949e; font-style: italic; }




/* Bet Settlement */
.settle-hero {
  background: linear-gradient(135deg, rgba(0,200,150,0.08) 0%, rgba(76,201,240,0.06) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0 2rem;
}
.settle-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(240,165,0,.10); border: 1px solid rgba(240,165,0,.25);
  color: var(--brand-accent); font-size: .75rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 50px; margin-bottom: 1rem;
  letter-spacing: .04em;
}
.settle-hero-badge .dot {
  width: 6px; height: 6px; background: var(--brand-accent);
  border-radius: 50%; animation: pulse-dot 2s infinite;
}

/* flow step */
.flow-step {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: 1.25rem 1.5rem;
  transition: var(--transition); position: relative;
}
.flow-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.flow-step::after {
  content: ''; position: absolute; left: 50%; bottom: -28px;
  width: 1px; height: 28px; background: var(--border-color); z-index: 0;
}
.flow-step:last-child::after { display: none; }
.flow-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,200,150,.12); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}
.flow-title { font-weight: 700; font-size: .9rem; color: var(--text-primary); margin-bottom: .2rem; }
.flow-desc { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }

/* field table */
.field-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 4px;
}
.field-badge.req  { background: rgba(230,57,70,.1);  color: var(--brand-danger); }
.field-badge.opt  { background: rgba(76,201,240,.1); color: var(--brand-info); }
.field-badge.resp { background: rgba(0,200,150,.1);  color: var(--brand-primary); }
.type-badge {
  font-family: 'Courier New', monospace; font-size: .72rem;
  background: var(--bg-card-alt); border: 1px solid var(--border-color);
  color: var(--text-secondary); padding: .1rem .45rem; border-radius: 4px;
}

/* result colors inside JSON viewer */
.r-won  { color: #00c896; font-weight: 700; }
.r-lost { color: #e63946; font-weight: 700; }

/* try-it panel */
.try-panel {
  background: var(--bg-card-alt); border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: 1.5rem; margin-top: 1.5rem;
}
.try-panel-title {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: var(--text-primary); display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-color);
}
.try-panel-title i { color: var(--brand-primary); }

/* sticky toc */
.toc-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: 1.25rem;
  position: sticky; top: calc(var(--header-height) + 1rem);
}
.toc-card-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-muted); margin-bottom: .75rem;
}
.toc-link {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--text-secondary); padding: .35rem .5rem;
  border-radius: 6px; transition: var(--transition); border-left: 2px solid transparent;
}
.toc-link:hover { color: var(--brand-primary); background: rgba(0,200,150,.06); }
.toc-link.active { color: var(--brand-primary); font-weight: 600; border-left-color: var(--brand-primary); background: rgba(0,200,150,.06); }
.toc-link i { font-size: .75rem; width: 14px; }

/* response result cell */
.result-cell-won  { background: rgba(0,200,150,.06); color: var(--brand-primary); font-weight: 600; font-size: .82rem; border-radius: 6px; padding: .2rem .6rem; display: inline-block; }
.result-cell-lost { background: rgba(230,57,70,.06);  color: var(--brand-danger);  font-weight: 600; font-size: .82rem; border-radius: 6px; padding: .2rem .6rem; display: inline-block; }

/* sdk chips */
.sdk-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--border-color); border-radius: 8px;
  padding: .5rem 1rem; font-size: .82rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  background: var(--bg-card);
}
.sdk-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: rgba(0,200,150,.05); }
.sdk-chip.active { border-color: var(--brand-primary); color: var(--brand-primary); background: rgba(0,200,150,.1); }

/* info callout */
.callout {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem; font-size: .85rem; line-height: 1.6;
}
.callout.info   { background: rgba(76,201,240,.08);  border-left: 3px solid var(--brand-info);    color: var(--text-secondary); }
.callout.warn   { background: rgba(240,165,0,.08);   border-left: 3px solid var(--brand-accent);  color: var(--text-secondary); }
.callout.danger { background: rgba(230,57,70,.08);   border-left: 3px solid var(--brand-danger);  color: var(--text-secondary); }
.callout.success{ background: rgba(0,200,150,.08);   border-left: 3px solid var(--brand-primary); color: var(--text-secondary); }
.callout i { font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.callout.info    i { color: var(--brand-info); }
.callout.warn    i { color: var(--brand-accent); }
.callout.danger  i { color: var(--brand-danger); }
.callout.success i { color: var(--brand-primary); }

/* section anchor padding */
.anchor-offset { scroll-margin-top: calc(var(--header-height) + 1.5rem); }

/* live preview output table */
#settle-output-wrap { display: none; }
#settle-output-wrap.show { display: block; }

/* bottom cta */
.bottom-cta {
  background: linear-gradient(135deg, rgba(0,200,150,.1) 0%, rgba(76,201,240,.07) 100%);
  border: 1px solid rgba(0,200,150,.2); border-radius: var(--border-radius-lg);
  padding: 2.5rem; text-align: center; margin-top: 2.5rem;
}

@media(max-width:991.98px) {
  .toc-col { display: none; }
  .docs-content { padding: 1.5rem 1rem; }
}
@media(max-width:767.98px) {
  .flow-step::after { display: none; }
}