/* ===========================
   BudoSystem Landing CSS
   Colors: #0f1117 (dark), #f59e0b (amber), #fff
   =========================== */

:root {
  --bs-dark:    #0f1117;
  --bs-dark2:   #161b27;
  --bs-dark3:   #1e2a3a;
  --bs-amber:   #f59e0b;
  --bs-amber2:  #fbbf24;
  --bs-white:   #ffffff;
  --bs-text:    #e2e8f0;
  --bs-muted:   #94a3b8;
  --bs-border:  #1e2a3a;
  --bs-radius:  8px;
  --bs-font:    'Inter', -apple-system, sans-serif;
  --bs-font-h:  'Montserrat', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bs-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.bs-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--bs-radius);
  font-family: var(--bs-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.bs-btn--primary {
  background: var(--bs-amber);
  color: var(--bs-dark);
  border-color: var(--bs-amber);
}
.bs-btn--primary:hover {
  background: var(--bs-amber2);
  border-color: var(--bs-amber2);
  color: var(--bs-dark);
  transform: translateY(-1px);
}
.bs-btn--ghost {
  background: transparent;
  color: var(--bs-white);
  border-color: rgba(255,255,255,0.3);
}
.bs-btn--ghost:hover {
  border-color: var(--bs-white);
  color: var(--bs-white);
}
.bs-btn--outline {
  background: transparent;
  color: var(--bs-amber);
  border-color: var(--bs-amber);
}
.bs-btn--outline:hover {
  background: var(--bs-amber);
  color: var(--bs-dark);
}
.bs-btn--lg {
  padding: 14px 30px;
  font-size: 16px;
}

/* ===== LOGO ===== */
.bs-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.bs-logo__img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.bs-logo__budo {
  font-family: var(--bs-font-h);
  font-size: 22px;
  font-weight: 900;
  color: var(--bs-white);
  letter-spacing: 1px;
  display: inline;
}
.bs-logo__system {
  font-family: var(--bs-font-h);
  font-size: 22px;
  font-weight: 900;
  color: var(--bs-amber);
  letter-spacing: 1px;
  display: inline;
}

/* ===== NAVBAR ===== */
.bs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.bs-nav--scrolled {
  background: rgba(15,17,23,0.98);
  border-bottom-color: var(--bs-border);
}
.bs-nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.bs-nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.bs-nav__links a {
  color: var(--bs-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.bs-nav__links a:hover { color: var(--bs-white); }
.bs-nav__actions {
  display: flex;
  gap: 10px;
}
.bs-nav__actions .bs-btn {
  padding: 8px 18px;
  font-size: 14px;
}
/* ===== USER MENU ===== */
.bs-user-menu {
  position: relative;
}
.bs-user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  color: var(--bs-white);
  font-size: 14px;
  transition: background 0.2s;
}
.bs-user-menu__trigger:hover { background: rgba(255,255,255,0.12); }
.bs-user-menu__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bs-amber);
  color: var(--bs-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bs-user-menu__name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-user-menu__chevron {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}
.bs-user-menu--open .bs-user-menu__chevron { transform: rotate(180deg); }
.bs-user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e2130;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  min-width: 200px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 200;
}
.bs-user-menu--open .bs-user-menu__dropdown { display: block; }
.bs-user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.bs-user-menu__item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.bs-user-menu__item--danger { color: #f87171; }
.bs-user-menu__item--danger:hover { background: rgba(248,113,113,0.1); color: #f87171; }
.bs-user-menu__divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}
.bs-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.bs-nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bs-white);
  transition: all 0.3s;
  border-radius: 2px;
}
.bs-nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bs-nav__burger--open span:nth-child(2) { opacity: 0; }
.bs-nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bs-nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--bs-border);
}
.bs-nav__mobile--open { display: flex; }
.bs-nav__mobile a {
  color: var(--bs-text);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-border);
}
.bs-nav__mobile .bs-btn { margin-top: 8px; text-align: center; justify-content: center; }

/* ===== HERO ===== */
.bs-hero {
  min-height: 100vh;
  background: var(--bs-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.bs-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 35%, rgba(245,158,11,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 15% 75%, rgba(245,158,11,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(15,17,23,0.9) 0%, transparent 70%);
  pointer-events: none;
}
/* Сітка-підложка */
.bs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, black 30%, transparent 80%);
}
.bs-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.bs-hero__content { max-width: 560px; }
.bs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.22);
  color: var(--bs-amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.bs-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-amber);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.bs-hero__title {
  font-family: var(--bs-font-h);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 900;
  color: var(--bs-white);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.bs-hero__title-accent {
  color: var(--bs-amber);
  position: relative;
}
.bs-hero__subtitle {
  font-size: 17px;
  color: var(--bs-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.bs-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.bs-hero__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bs-hero__stat { display: flex; flex-direction: column; }
.bs-hero__stat-num {
  font-family: var(--bs-font-h);
  font-size: 28px;
  font-weight: 900;
  color: var(--bs-amber);
  line-height: 1;
}
.bs-hero__stat-label {
  font-size: 11px;
  color: var(--bs-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.bs-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--bs-border);
}

/* Demo showcase in hero */
.bs-hero__preview {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.bs-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}
.bs-preview-card:hover {
  border-color: rgba(245,158,11,0.2);
  background: rgba(255,255,255,0.06);
}
.bs-preview-card--top { transform: translateX(20px); }
.bs-preview-card--bottom { transform: translateX(20px); }
.bs-preview-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bs-amber);
  flex-shrink: 0;
}
.bs-preview-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-white);
  margin-bottom: 2px;
}
.bs-preview-card__sub {
  font-size: 12px;
  color: var(--bs-muted);
}
.bs-preview-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: var(--bs-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.bs-preview-tag--green {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border-color: rgba(16,185,129,0.2);
}
.bs-preview-tag--red {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-color: rgba(239,68,68,0.2);
  animation: blink-tag 1.5s ease-in-out infinite;
}
.bs-preview-tag--amber {
  background: rgba(245,158,11,0.12);
  color: var(--bs-amber);
  border-color: rgba(245,158,11,0.2);
}
@keyframes blink-tag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll indicator */
.bs-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--bs-muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  animation: bounce-down 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS ===== */
.bs-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Ambient dot-grid on light sections */
.bs-section:not(.bs-section--dark)::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 80%);
}
[data-bs-theme="dark"] .bs-section:not(.bs-section--dark)::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
}

/* Amber corner glows on dark feature sections */
.bs-section--dark:not(.bs-section--cta)::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 4% 30%, rgba(245,158,11,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 96% 70%, rgba(245,158,11,0.05) 0%, transparent 50%);
}
.bs-section--dark {
  background: var(--bs-dark);
}
.bs-section--dark .bs-section__title { color: var(--bs-white); }
.bs-section--dark .bs-section__sub { color: var(--bs-muted); }
.bs-section--cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245,158,11,0.08) 0%, transparent 70%),
    var(--bs-dark);
}

.bs-section__header {
  text-align: center;
  margin-bottom: 56px;
}
.bs-section__title::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bs-amber), transparent);
  border-radius: 2px;
}
.bs-section__title {
  font-family: var(--bs-font-h);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--bs-dark);
  margin-bottom: 12px;
}
.bs-section__sub {
  font-size: 17px;
  color: #94a3b8;
}

/* ===== AUDIENCE CARDS ===== */
.bs-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bs-audience__card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--bs-amber);
  border-radius: var(--bs-radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bs-audience__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.bs-audience__icon {
  font-size: 28px;
  color: var(--bs-amber);
  margin-bottom: 14px;
}
.bs-audience__card h3 {
  font-family: var(--bs-font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 10px;
}
.bs-audience__card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.bs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--bs-border);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  overflow: hidden;
}
.bs-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--bs-dark2);
  transition: background 0.2s;
}
.bs-feature:hover { background: var(--bs-dark3); }
.bs-feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.12);
  border-radius: var(--bs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bs-amber);
}
.bs-feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bs-white);
  margin-bottom: 6px;
}
.bs-feature p {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.55;
}

/* ===== STATS ===== */
.bs-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.bs-stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--bs-radius);
  padding: 28px 20px 24px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bs-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
}
.bs-stat-card__num {
  font-family: var(--bs-font-h);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--bs-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.bs-stat-card__label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.35;
}
.bs-stat-card__icon {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  color: var(--bs-amber);
  opacity: 0.7;
}

/* ===== PAIN POINTS ===== */
.bs-pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
}
.bs-pain__card {
  background: var(--bs-dark2);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.2s;
}
.bs-pain__card:hover { background: #1a2234; }
.bs-pain__icon { font-size: 30px; color: var(--bs-amber); }
.bs-pain__quote {
  font-size: 14px;
  color: var(--bs-muted);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(245,158,11,0.3);
}
.bs-pain__arrow { font-size: 18px; color: var(--bs-amber); opacity: 0.5; }
.bs-pain__solution { font-size: 13px; color: var(--bs-text); line-height: 1.6; }
.bs-pain__solution strong {
  display: block;
  color: var(--bs-amber);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

/* ===== HOW IT WORKS ===== */
.bs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.bs-steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.35) 20%, rgba(245,158,11,0.35) 80%, transparent);
  pointer-events: none;
  z-index: 0;
}
.bs-step { text-align: center; position: relative; z-index: 1; }
.bs-step__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bs-amber);
  color: var(--bs-dark);
  font-family: var(--bs-font-h);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(245,158,11,0.35);
}
.bs-step__icon {
  font-size: 30px;
  color: var(--bs-amber);
  margin-bottom: 12px;
  opacity: 0.75;
}
.bs-step__title {
  font-family: var(--bs-font-h);
  font-size: 17px;
  font-weight: 800;
  color: var(--bs-text);
  margin-bottom: 10px;
}
.bs-step__text { font-size: 14px; color: #64748b; line-height: 1.65; }

/* Light theme overrides */
html[data-bs-theme="light"] .bs-pain {
  background: #e2e8f0;
  border-color: #e2e8f0;
}
html[data-bs-theme="light"] .bs-pain__card { background: #ffffff; }
html[data-bs-theme="light"] .bs-pain__card:hover { background: #f8fafc; }
html[data-bs-theme="light"] .bs-pain__solution { color: #334155; }
html[data-bs-theme="light"] .bs-step__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-step__text { color: #64748b; }

/* ===== CTA ===== */
.bs-cta {
  text-align: center;
  padding: 20px 0 10px;
}
.bs-cta__title {
  font-family: var(--bs-font-h);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--bs-white);
  margin-bottom: 12px;
}
.bs-cta__sub {
  font-size: 16px;
  color: var(--bs-muted);
  margin-bottom: 28px;
}
.bs-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bs-cta__note {
  font-size: 13px;
  color: var(--bs-muted);
}
.bs-cta__note a {
  color: var(--bs-amber);
  text-decoration: none;
}
.bs-cta__note a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.bs-footer {
  background: #080b10;
  padding: 32px 0;
  border-top: 1px solid var(--bs-border);
}
.bs-footer__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.bs-footer .bs-logo { gap: 8px; }
.bs-footer .bs-logo__img { height: 28px; width: 28px; }
.bs-footer .bs-logo__budo,
.bs-footer .bs-logo__system { font-size: 18px; }
.bs-footer__tagline {
  display: block;
  font-size: 11px;
  color: var(--bs-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}
.bs-footer__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.bs-footer__links a {
  color: var(--bs-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.bs-footer__links a:hover { color: var(--bs-white); }
.bs-footer__copy {
  font-size: 13px;
  color: #475569;
}

/* ===== STATS SECTION ===== */
.bs-stats-section {
  background: var(--bs-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 44px 0;
}
.bs-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.bs-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 10px 16px;
}
.bs-stat-item__sep {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.bs-stat-item__num {
  font-family: var(--bs-font-h);
  font-size: 38px;
  font-weight: 900;
  color: var(--bs-amber);
  line-height: 1;
  margin-bottom: 6px;
}
.bs-stat-item__label {
  font-size: 12px;
  color: var(--bs-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
}

/* ===== SECTION LABEL ===== */
.bs-section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bs-amber);
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.20);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ===== ROLES ===== */
.bs-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bs-role {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bs-role:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.bs-role__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bs-role__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bs-amber);
  flex-shrink: 0;
}
.bs-role__title {
  font-family: var(--bs-font-h);
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0;
}
.bs-role__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bs-role__list li {
  font-size: 13px;
  color: #475569;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.bs-role__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--bs-amber);
  font-size: 11px;
  top: 1px;
}

/* ===== MODULES ===== */
.bs-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bs-module--wide {
  grid-column: span 2;
  overflow: hidden;
}
.bs-module--wide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.65) 50%, transparent);
  border-radius: 14px 14px 0 0;
}
.bs-module {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.bs-module:hover {
  border-color: rgba(245,158,11,0.25);
  background: rgba(255,255,255,0.06);
}
.bs-module__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bs-amber);
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.22s ease;
}
.bs-module:hover .bs-module__icon {
  box-shadow: 0 0 20px rgba(245,158,11,0.38), 0 0 7px rgba(245,158,11,0.15);
  transform: scale(1.1) rotate(-4deg);
}
.bs-module__icon--live {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.20);
  color: #f87171;
}
.bs-module__body { flex: 1; }
.bs-module__body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bs-white);
  margin-bottom: 6px;
}
.bs-module__body p {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.6;
}
.bs-module__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bs-module__list li {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.bs-module__list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bs-amber);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 5px;
}
html[data-bs-theme="light"] .bs-module__list li { color: #475569; }

.bs-module__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  color: var(--bs-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.bs-module__tag--live {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-color: rgba(239,68,68,0.20);
  animation: blink-tag 1.5s ease-in-out infinite;
}

/* ===== THEME TOGGLE BUTTON ===== */
.bs-theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--bs-muted);
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.bs-theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--bs-white);
}

/* ===== LIGHT THEME ===== */
html[data-bs-theme="light"] .bs-theme-toggle {
  border-color: rgba(0,0,0,0.15);
  color: #64748b;
}
html[data-bs-theme="light"] .bs-theme-toggle:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.3);
  color: #0f172a;
}

/* Navbar */
html[data-bs-theme="light"] .bs-nav {
  background: rgba(255,255,255,0.90);
}
html[data-bs-theme="light"] .bs-nav--scrolled {
  background: rgba(255,255,255,0.99);
  border-bottom-color: #e2e8f0;
}
html[data-bs-theme="light"] .bs-nav__links a { color: #475569; }
html[data-bs-theme="light"] .bs-nav__links a:hover { color: #0f172a; }
html[data-bs-theme="light"] .bs-btn--ghost {
  color: #334155;
  border-color: #cbd5e1;
}
html[data-bs-theme="light"] .bs-btn--ghost:hover {
  border-color: #334155;
  color: #0f172a;
  background: transparent;
}
html[data-bs-theme="light"] .bs-nav__burger span { background: #334155; }
html[data-bs-theme="light"] .bs-nav__mobile {
  background: #ffffff;
  border-top-color: #e2e8f0;
}
html[data-bs-theme="light"] .bs-nav__mobile a {
  color: #334155;
  border-bottom-color: #e2e8f0;
}

/* User menu */
html[data-bs-theme="light"] .bs-user-menu__trigger {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #334155;
}
html[data-bs-theme="light"] .bs-user-menu__trigger:hover { background: rgba(0,0,0,0.09); }
html[data-bs-theme="light"] .bs-user-menu__dropdown {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
html[data-bs-theme="light"] .bs-user-menu__item { color: #475569; }
html[data-bs-theme="light"] .bs-user-menu__item:hover { background: #f1f5f9; color: #0f172a; }
html[data-bs-theme="light"] .bs-user-menu__divider { background: #e2e8f0; }

/* Hero */
html[data-bs-theme="light"] .bs-hero { background: #f8fafc; }
html[data-bs-theme="light"] .bs-hero__bg {
  background:
    radial-gradient(ellipse 55% 60% at 75% 35%, rgba(245,158,11,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 15% 75%, rgba(245,158,11,0.04) 0%, transparent 60%);
}
html[data-bs-theme="light"] .bs-hero::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, black 30%, transparent 80%);
}
html[data-bs-theme="light"] .bs-hero__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-hero__subtitle { color: #64748b; }
html[data-bs-theme="light"] .bs-hero__stat-divider { background: #e2e8f0; }
html[data-bs-theme="light"] .bs-hero__stat-label { color: #64748b; }
html[data-bs-theme="light"] .bs-hero__scroll { color: #94a3b8; }

/* Preview cards */
html[data-bs-theme="light"] .bs-preview-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html[data-bs-theme="light"] .bs-preview-card:hover {
  background: #fffbf0;
  border-color: rgba(245,158,11,0.35);
  box-shadow: 0 4px 20px rgba(245,158,11,0.1);
}
html[data-bs-theme="light"] .bs-preview-card__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-preview-tag {
  background: rgba(0,0,0,0.05);
  color: #64748b;
  border-color: #e2e8f0;
}

/* Stats section */
html[data-bs-theme="light"] .bs-stats-section {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
  border-bottom-color: #e2e8f0;
}
html[data-bs-theme="light"] .bs-stat-item__sep { background: #cbd5e1; }
html[data-bs-theme="light"] .bs-stat-item__label { color: #64748b; }

/* Logo */
html[data-bs-theme="light"] .bs-logo__budo { color: #0f172a; }

/* Features section (dark → light) */
html[data-bs-theme="light"] .bs-section--dark {
  background: #f1f5f9;
}
html[data-bs-theme="light"] .bs-section--dark .bs-section__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-section__sub { color: #64748b; }
html[data-bs-theme="light"] .bs-stat-card__label { color: #64748b; }
html[data-bs-theme="light"] .bs-section--cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245,158,11,0.07) 0%, transparent 70%),
    #f1f5f9;
}
html[data-bs-theme="light"] .bs-cta__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-cta__sub { color: #64748b; }
html[data-bs-theme="light"] .bs-cta__note { color: #64748b; }

/* Modules (features cards) */
/* Light theme: demo showcase */
html[data-bs-theme="light"] .bs-demo {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 0 0 1px rgba(245,158,11,0.1);
}
html[data-bs-theme="light"] .bs-demo__tabs { background: #f1f5f9; border-bottom-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-demo__tab { color: #64748b; }
html[data-bs-theme="light"] .bs-demo__tab:hover:not(.active) { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo__chrome { background: #f1f5f9; border-bottom-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-demo__url { color: #94a3b8; }
html[data-bs-theme="light"] .bs-demo__progress { background: #e2e8f0; }
html[data-bs-theme="light"] .bs-demo-title { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo-match { background: #ffffff; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-demo-fighter__name { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo-score__b { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo-next { background: #f1f5f9; }
html[data-bs-theme="light"] .bs-demo-athlete__name { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo-stat { border-top-color: #e2e8f0; color: #64748b; }
html[data-bs-theme="light"] .bs-demo-exam-row { background: #ffffff; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-demo-exam-row__name { color: #0f172a; }
html[data-bs-theme="light"] .bs-demo-tatami-row { background: #f1f5f9; }
html[data-bs-theme="light"] .bs-demo-tatami-num { color: #64748b; }
html[data-bs-theme="light"] .bs-demo-tatami-match { color: #0f172a; }

html[data-bs-theme="light"] .bs-module {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
html[data-bs-theme="light"] .bs-module:hover {
  border-color: rgba(245,158,11,0.35);
  background: #fffbf0;
  box-shadow: 0 4px 20px rgba(245,158,11,0.08);
}
html[data-bs-theme="light"] .bs-module__body h4 { color: #0f172a; }
html[data-bs-theme="light"] .bs-module__body p { color: #475569; }
html[data-bs-theme="light"] .bs-module__tag {
  background: rgba(0,0,0,0.05);
  color: #64748b;
  border-color: #e2e8f0;
}

/* Footer */
html[data-bs-theme="light"] .bs-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
html[data-bs-theme="light"] .bs-footer__links a { color: #475569; }
html[data-bs-theme="light"] .bs-footer__links a:hover { color: #0f172a; }
html[data-bs-theme="light"] .bs-footer__copy { color: #94a3b8; }
html[data-bs-theme="light"] .bs-footer__tagline { color: #94a3b8; }

/* ===== TOURNAMENT PAGES — DARK THEME ===== */
html[data-bs-theme="dark"] body {
  background: #0d1117;
  color: #e2e8f0;
}
html[data-bs-theme="dark"] .empty-state {
  color: #94a3b8;
}
html[data-bs-theme="dark"] .alert-info {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: #93c5fd;
}

/* TOURNAMENT PAGES — LIGHT THEME */
html[data-bs-theme="light"] body {
  background: #f8fafc;
  color: #1e293b;
}
html[data-bs-theme="light"] .tournaments-nav {
  border-bottom-color: rgba(0,0,0,.12) !important;
}
html[data-bs-theme="light"] .tournaments-tab.active {
  color: #0f172a !important;
}
html[data-bs-theme="light"] .section-title {
  color: #0f172a !important;
}

/* ===== TOURNAMENT PAGE ===== */
.bs-t-main { padding-top: 32px; padding-bottom: 80px; }

.bs-t-header {
  background: var(--bs-dark);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bs-t-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent);
}
.bs-t-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bs-t-header__title {
  font-family: var(--bs-font-h);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--bs-white);
  letter-spacing: -1px;
  margin: 10px 0 0;
  line-height: 1;
}
.bs-t-header__sub {
  color: var(--bs-muted);
  font-size: 15px;
  margin-top: 8px;
}
.bs-t-header__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

/* Featured */
.bs-featured {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.bs-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(245,158,11,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.bs-featured--live {
  border-color: rgba(239,68,68,0.3);
  animation: bs-featured-pulse 3s ease-in-out infinite;
}
.bs-featured--live::before {
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(239,68,68,0.06) 0%, transparent 60%);
}
@keyframes bs-featured-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(239,68,68,0.25), 0 24px 48px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 0 0 3px rgba(239,68,68,0.4),  0 24px 48px rgba(0,0,0,0.25); }
}
.bs-featured__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.bs-featured__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bs-featured__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  animation: blink-tag 1.2s ease-in-out infinite;
}
.bs-featured__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f87171;
}
.bs-featured__reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.bs-featured__reg-badge--open {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
}
.bs-featured__reg-badge--closed {
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--bs-muted);
}
.bs-featured__date {
  font-family: var(--bs-font-h);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--bs-amber);
  line-height: 1;
  letter-spacing: -1px;
}
.bs-featured__year {
  font-size: 18px;
  color: var(--bs-muted);
  font-weight: 400;
  margin-left: 8px;
}
.bs-featured__title {
  font-family: var(--bs-font-h);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--bs-white);
  line-height: 1.15;
  margin: 0;
  transition: color 0.2s;
}
.bs-featured__title:hover { color: var(--bs-amber); }
.bs-featured__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--bs-muted);
  font-size: 14px;
}
.bs-featured__meta span { display: flex; align-items: center; gap: 6px; }
.bs-featured__countdown {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: inline-block;
}
.bs-featured__countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--bs-muted);
  margin-bottom: 10px;
}
.bs-featured__countdown-display { display: flex; gap: 8px; }
.bs-featured__countdown-unit {
  text-align: center;
  min-width: 56px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 6px 6px;
}
.bs-featured__countdown-num {
  font-family: var(--bs-font-h);
  font-size: 24px;
  font-weight: 900;
  color: var(--bs-amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bs-featured__countdown-text {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bs-muted);
  margin-top: 4px;
}
.bs-featured__poster {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}
.bs-featured__poster img { width: 100%; height: auto; display: block; }
.bs-featured__poster-placeholder {
  height: 280px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(245,158,11,0.4);
  font-size: 40px;
  position: relative;
  z-index: 1;
}
.bs-featured__poster-placeholder span {
  font-family: var(--bs-font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Tabs */
.bs-t-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.bs-t-tab {
  border: none;
  background: transparent;
  color: var(--bs-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bs-t-tab:hover { color: var(--bs-white); }
.bs-t-tab.active { background: rgba(255,255,255,0.08); color: var(--bs-white); }
.bs-t-tab__count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  padding: 1px 7px;
  border-radius: 20px;
}
.bs-t-tab.active .bs-t-tab__count {
  background: rgba(245,158,11,0.15);
  color: var(--bs-amber);
}

/* Section title */
.bs-t-section-title {
  font-family: var(--bs-font-h);
  font-size: 20px;
  font-weight: 800;
  color: var(--bs-white);
  margin: 8px 0 20px;
}

/* Tournament cards */
.bs-t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.bs-t-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.bs-t-card:hover {
  border-color: rgba(245,158,11,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  text-decoration: none;
}
.bs-t-card--past { opacity: 0.7; }
.bs-t-card--past:hover { opacity: 1; border-color: rgba(100,116,139,0.3); }
.bs-t-card--live { border-color: rgba(239,68,68,0.2); }
.bs-t-card--live:hover { border-color: rgba(239,68,68,0.4); }
.bs-t-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bs-t-card__date {
  font-family: var(--bs-font-h);
  font-size: 20px;
  font-weight: 900;
  color: var(--bs-amber);
  line-height: 1;
}
.bs-t-card__date-year {
  font-size: 11px;
  color: var(--bs-muted);
  font-weight: 400;
  margin-left: 3px;
}
.bs-t-card__status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bs-t-card__status--open { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); color: #34d399; }
.bs-t-card__status--closed { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.15); color: var(--bs-muted); }
.bs-t-card__status--live { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.2); color: #f87171; animation: blink-tag 1.2s ease-in-out infinite; }
.bs-t-card__status--done { background: rgba(71,85,105,0.1); border: 1px solid rgba(71,85,105,0.15); color: #475569; }
.bs-t-card__title {
  font-family: var(--bs-font-h);
  font-size: 15px;
  font-weight: 800;
  color: var(--bs-white);
  line-height: 1.3;
  margin: 0;
  flex: 1;
}
.bs-t-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--bs-muted); }
.bs-t-card__meta span { display: flex; align-items: center; gap: 6px; }
.bs-t-card__deadline { font-size: 11px; color: #475569; }
.bs-t-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-amber);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: gap 0.2s;
}
.bs-t-card:hover .bs-t-card__link { gap: 10px; }

/* Empty state */
.bs-t-empty { text-align: center; padding: 80px 20px; }
.bs-t-empty__icon { font-size: 48px; color: var(--bs-muted); opacity: 0.3; margin-bottom: 16px; }
.bs-t-empty h2 { font-family: var(--bs-font-h); font-size: 22px; font-weight: 800; color: var(--bs-white); margin-bottom: 8px; }
.bs-t-empty p { font-size: 14px; color: var(--bs-muted); }
.bs-t-pane.is-hidden { display: none; }

/* Light theme */
html[data-bs-theme="light"] .bs-t-header { background: #f1f5f9; border-bottom-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-t-header::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
html[data-bs-theme="light"] .bs-t-header__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-t-header__sub { color: #64748b; }
html[data-bs-theme="light"] .bs-featured { background: #ffffff; border-color: rgba(245,158,11,0.2); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
html[data-bs-theme="light"] .bs-featured::before { background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(245,158,11,0.04) 0%, transparent 60%); }
html[data-bs-theme="light"] .bs-featured__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-featured__countdown { background: #f8fafc; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-featured__countdown-unit { background: #f1f5f9; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-featured__poster-placeholder { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.1); }
html[data-bs-theme="light"] .bs-t-tabs { background: #f1f5f9; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-t-tab:hover { color: #0f172a; }
html[data-bs-theme="light"] .bs-t-tab.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
html[data-bs-theme="light"] .bs-t-tab__count { background: rgba(0,0,0,0.06); }
html[data-bs-theme="light"] .bs-t-section-title { color: #0f172a; }
html[data-bs-theme="light"] .bs-t-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
html[data-bs-theme="light"] .bs-t-card:hover { border-color: rgba(245,158,11,0.3); background: #fffbf0; box-shadow: 0 8px 24px rgba(245,158,11,0.1); }
html[data-bs-theme="light"] .bs-t-card__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-t-card__status--done { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; }
html[data-bs-theme="light"] .bs-t-empty h2 { color: #0f172a; }

/* Responsive */
@media (max-width: 900px) {
  .bs-t-grid { grid-template-columns: repeat(2, 1fr); }
  .bs-featured { grid-template-columns: 1fr; }
  .bs-featured__poster, .bs-featured__poster-placeholder { display: none; }
}
@media (max-width: 640px) {
  .bs-t-grid { grid-template-columns: 1fr; }
  .bs-t-header { padding: 32px 0 28px; }
  .bs-featured { padding: 20px; }
  .bs-featured__date { font-size: 32px; }
}

/* ===== DEMO SHOWCASE ===== */
.bs-demo {
  background: #161b27;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,158,11,0.08), 0 0 40px rgba(245,158,11,0.05);
}
.bs-demo__tabs {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bs-demo__tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--bs-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--bs-font);
  padding: 10px 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  bottom: -1px;
  white-space: nowrap;
}
.bs-demo__tab.active { color: var(--bs-amber); border-bottom-color: var(--bs-amber); }
.bs-demo__tab:hover:not(.active) { color: var(--bs-text); }
.bs-demo__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bs-demo__dots { display: flex; gap: 5px; }
.bs-demo__dots span { width: 9px; height: 9px; border-radius: 50%; }
.bs-demo__dots span:nth-child(1) { background: #ff5f57; }
.bs-demo__dots span:nth-child(2) { background: #febc2e; }
.bs-demo__dots span:nth-child(3) { background: #28c840; }
.bs-demo__url { font-size: 11px; color: rgba(255,255,255,0.2); flex: 1; text-align: center; }
.bs-demo__panels { display: grid; }
.bs-demo__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; padding: 18px 20px 20px; min-height: 268px; pointer-events: none; }
.bs-demo__panel.active { visibility: visible; opacity: 1; pointer-events: auto; animation: demo-in 0.3s ease; }
@keyframes demo-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bs-demo__progress { height: 2px; background: rgba(255,255,255,0.06); }
.bs-demo__progress-bar { height: 100%; background: var(--bs-amber); width: 0%; }

/* Demo: shared */
.bs-demo-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.bs-demo-title { font-size: 13px; font-weight: 700; color: var(--bs-white); margin-bottom: 2px; }
.bs-demo-sub { font-size: 11px; color: var(--bs-muted); }
.bs-live-badge {
  font-size: 10px; font-weight: 700; color: #f87171;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 20px; padding: 3px 8px;
  animation: blink-tag 1.4s ease-in-out infinite;
  white-space: nowrap; flex-shrink: 0;
}

/* Demo: tournament */
.bs-demo-match {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.bs-demo-fighter { flex: 1; }
.bs-demo-fighter--right { text-align: right; }
.bs-demo-fighter__name { font-size: 13px; font-weight: 700; color: var(--bs-white); }
.bs-demo-fighter__club { font-size: 10px; color: var(--bs-muted); margin-top: 2px; }
.bs-demo-score {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--bs-font-h); font-size: 26px; font-weight: 900; flex-shrink: 0;
}
.bs-demo-score__a { color: var(--bs-amber); min-width: 22px; text-align: center; display: inline-block; }
.bs-demo-score__b { color: var(--bs-white); min-width: 22px; text-align: center; display: inline-block; }
.bs-demo-score__sep { color: var(--bs-muted); font-size: 18px; }
.bs-demo-timer { text-align: center; font-family: monospace; font-size: 13px; color: var(--bs-muted); letter-spacing: 1px; margin-bottom: 10px; }
.bs-demo-next { font-size: 12px; color: var(--bs-muted); background: rgba(255,255,255,0.03); border-radius: 6px; padding: 7px 11px; margin-bottom: 10px; }
.bs-demo-next__label { color: var(--bs-amber); font-weight: 600; margin-right: 4px; }
.bs-demo-tatamis { display: flex; flex-direction: column; gap: 5px; }
.bs-demo-tatami-row { display: flex; align-items: center; gap: 8px; font-size: 11px; background: rgba(255,255,255,0.03); border-radius: 6px; padding: 5px 11px; }
.bs-demo-tatami-num { color: var(--bs-muted); min-width: 56px; font-weight: 600; }
.bs-demo-tatami-match { flex: 1; color: var(--bs-text); }
.bs-demo-tatami-score { color: var(--bs-amber); font-weight: 700; font-family: var(--bs-font-h); white-space: nowrap; }
.bs-demo-tatami-score--waiting { color: var(--bs-muted); font-weight: 400; font-family: var(--bs-font); }

/* Demo: training */
.bs-demo-attendance { display: flex; flex-direction: column; gap: 1px; }
.bs-demo-athlete { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; }
.bs-demo-athlete__belt { width: 22px; height: 5px; border-radius: 3px; flex-shrink: 0; }
.bs-demo-athlete__name { flex: 1; font-size: 12px; color: var(--bs-text); font-weight: 500; }
.bs-demo-athlete__status {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 20px; min-width: 76px; text-align: center;
}
.bs-demo-athlete__status--present { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.bs-demo-athlete__status--absent { background: rgba(148,163,184,0.06); color: var(--bs-muted); border: 1px solid rgba(148,163,184,0.1); }
.bs-demo-athlete__status--marking { background: rgba(245,158,11,0.1); color: var(--bs-amber); border: 1px solid rgba(245,158,11,0.2); animation: blink-tag 1s ease-in-out infinite; }
.bs-demo-stat { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--bs-muted); }
.bs-demo-stat__num { font-family: var(--bs-font-h); font-size: 20px; font-weight: 900; color: var(--bs-amber); }

/* Demo: exam */
.bs-demo-exam-list { display: flex; flex-direction: column; gap: 4px; }
.bs-demo-exam-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: 7px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.bs-demo-exam-row__belt { width: 26px; height: 6px; border-radius: 3px; flex-shrink: 0; }
.bs-demo-exam-row__name { flex: 1; font-size: 12px; color: var(--bs-text); font-weight: 500; }
.bs-demo-exam-row__result { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; min-width: 74px; text-align: center; }
.bs-demo-exam-row__result--pass { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.bs-demo-exam-row__result--waiting { background: rgba(148,163,184,0.06); color: var(--bs-muted); border: 1px solid rgba(148,163,184,0.1); }
.bs-demo-exam-row__result--evaluating { background: rgba(245,158,11,0.1); color: var(--bs-amber); border: 1px solid rgba(245,158,11,0.2); animation: blink-tag 1.2s ease-in-out infinite; }

/* ===== SCROLL REVEAL ===== */
.bs-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.22,.68,0,1.1), transform 0.55s cubic-bezier(.22,.68,0,1.1);
}
.bs-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.bs-reveal--d1 { transition-delay: 0.08s; }
.bs-reveal--d2 { transition-delay: 0.16s; }
.bs-reveal--d3 { transition-delay: 0.24s; }
.bs-reveal--d4 { transition-delay: 0.32s; }
.bs-reveal--d5 { transition-delay: 0.40s; }
.bs-reveal--d6 { transition-delay: 0.48s; }

/* ===== LOGIN MODAL ===== */
.bs-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bs-login-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.bs-login-modal {
  background: #161b27;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.bs-login-overlay.open .bs-login-modal {
  transform: translateY(0) scale(1);
}
.bs-login-modal__head {
  padding: 24px 28px 18px;
  background:
    radial-gradient(ellipse at top right, rgba(245,158,11,.18), transparent 40%),
    #0d1320;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bs-login-modal__title {
  font-family: var(--bs-font-h);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.bs-login-modal__sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.bs-login-modal__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.bs-login-modal__close:hover { color: rgba(255,255,255,0.8); }
.bs-login-modal__body { padding: 24px 28px 20px; }
.bs-login-modal__field { margin-bottom: 16px; }
.bs-login-modal__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bs-login-modal__input {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a2234;
  color: #f8fafc;
  font-size: 0.95rem;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bs-login-modal__input:focus {
  border-color: var(--bs-amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.bs-login-modal__input::placeholder { color: #475569; }
.bs-login-modal__input-wrap { position: relative; }
.bs-login-modal__input-wrap .bs-login-modal__input { padding-right: 44px; }
.bs-login-modal__eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #64748b; cursor: pointer;
  font-size: 0.9rem; padding: 0;
  transition: color 0.15s;
}
.bs-login-modal__eye:hover { color: #94a3b8; }
.bs-login-modal__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.25);
  color: #fca5a5;
  font-size: 0.84rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.bs-login-modal__submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bs-amber), #d97706);
  color: #0f1117;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}
.bs-login-modal__submit:hover { opacity: 0.9; transform: translateY(-1px); }
.bs-login-modal__submit:active { transform: scale(0.98); }
.bs-login-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bs-login-modal__foot {
  padding: 0 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bs-login-modal__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.bs-login-modal__link:hover { color: #94a3b8; }
.bs-login-modal__link--accent { color: var(--bs-amber); font-weight: 700; }
.bs-login-modal__link--accent:hover { opacity: 0.8; color: var(--bs-amber); }
.bs-login-modal__sep { width: 3px; height: 3px; border-radius: 50%; background: #253347; }

/* light theme */
html[data-bs-theme="light"] .bs-login-modal {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(15,23,42,0.15);
}
html[data-bs-theme="light"] .bs-login-modal__head { background: #f8fafc; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-login-modal__title { color: #0f172a; }
html[data-bs-theme="light"] .bs-login-modal__sub { color: #64748b; }
html[data-bs-theme="light"] .bs-login-modal__close { color: #94a3b8; }
html[data-bs-theme="light"] .bs-login-modal__input { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
html[data-bs-theme="light"] .bs-login-modal__input:focus { border-color: var(--bs-amber); }
html[data-bs-theme="light"] .bs-login-modal__label { color: #64748b; }
html[data-bs-theme="light"] .bs-login-modal__sep { background: #e2e8f0; }
html[data-bs-theme="light"] .bs-login-overlay { background: rgba(15,23,42,0.5); }

/* ===== SCREENSHOTS ===== */
.bs-shots__nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.bs-shots__tab {
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--bs-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.bs-shots__tab.active {
  background: var(--bs-amber);
  color: var(--bs-dark);
}
.bs-shots__tab:hover:not(.active) { color: var(--bs-white); }
.bs-shots__panel { display: none; }
.bs-shots__panel.active { display: block; }
.bs-shots__frame {
  background: #161b27;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.bs-shots__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0d1018;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bs-shots__chrome-dots { display: flex; gap: 5px; }
.bs-shots__chrome-dots span { width: 11px; height: 11px; border-radius: 50%; }
.bs-shots__chrome-dots span:nth-child(1) { background: #ff5f57; }
.bs-shots__chrome-dots span:nth-child(2) { background: #febc2e; }
.bs-shots__chrome-dots span:nth-child(3) { background: #28c840; }
.bs-shots__chrome-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--bs-muted);
  text-align: center;
  font-family: monospace;
}
.bs-shots__img-wrap {
  aspect-ratio: 16/9;
  background: #131824;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bs-shots__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bs-shots__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.15);
  user-select: none;
}
.bs-shots__placeholder i { font-size: 52px; }
.bs-shots__placeholder span { font-size: 13px; letter-spacing: 0.5px; }
.bs-shots__points {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}
.bs-shots__point {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bs-shots__point-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--bs-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}
.bs-shots__point-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-white);
  margin: 0 0 4px;
}
.bs-shots__point-body p {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.6;
  margin: 0;
}

/* light theme overrides */
html[data-bs-theme="light"] .bs-shots__nav { background: #f1f5f9; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-shots__tab:hover:not(.active) { color: #0f172a; }
html[data-bs-theme="light"] .bs-shots__frame { background: #f8fafc; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-shots__chrome { background: #f1f5f9; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-shots__img-wrap { background: #e8eef6; }
html[data-bs-theme="light"] .bs-shots__placeholder { color: rgba(0,0,0,0.18); }
html[data-bs-theme="light"] .bs-shots__point-body h5 { color: #0f172a; }

/* ===== FEATURES GRID ===== */
.bs-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bs-ftile {
  padding: 24px 20px;
  background: var(--bs-dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: border-color 0.25s, transform 0.25s;
}
.bs-ftile:hover {
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-3px);
}
.bs-ftile__icon {
  font-size: 26px;
  color: var(--bs-amber);
  margin-bottom: 14px;
}
.bs-ftile__title {
  font-family: var(--bs-font-h);
  font-size: 14px;
  font-weight: 800;
  color: var(--bs-white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.bs-ftile__text {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.65;
  margin: 0;
}
html[data-bs-theme="light"] .bs-ftile { background: #ffffff; border-color: #e2e8f0; }
html[data-bs-theme="light"] .bs-ftile:hover { border-color: rgba(245,158,11,0.4); }
html[data-bs-theme="light"] .bs-ftile__title { color: #0f172a; }

/* ===== RESPONSIVE ===== */

/* ── 1024px: Hero stacks ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bs-hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .bs-hero__preview { justify-content: center; }
  .bs-hero__content { max-width: 100%; }
  .bs-hero__scroll { display: none; }
}

/* ── 960px: 2-col modules ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bs-roles { grid-template-columns: repeat(2, 1fr); }
  .bs-modules { grid-template-columns: repeat(2, 1fr); }
  .bs-module--wide { grid-column: span 2; }
  .bs-audience { grid-template-columns: repeat(2, 1fr); }
  .bs-features { grid-template-columns: 1fr; }
  .bs-pain { grid-template-columns: 1fr; }
  .bs-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bs-steps::before { display: none; }
  .bs-features-grid { grid-template-columns: repeat(2, 1fr); }
  .bs-shots__points { gap: 16px; }
}

/* ── 768px: Switch to burger nav, reduce padding ────────────────────────── */
@media (max-width: 768px) {
  .bs-nav__links,
  .bs-nav__actions { display: none; }
  .bs-nav__burger { display: flex; }

  .bs-section { padding: 64px 0; }
  .bs-section__header { margin-bottom: 40px; }
  .bs-section__sub { font-size: 15px; }

  .bs-hero { min-height: auto; padding: 100px 0 70px; }

  .bs-stats-section { padding: 32px 0; }
  .bs-stat-item { padding: 10px 28px; }
}

/* ── 640px: Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .bs-container { padding: 0 16px; }

  /* Sections */
  .bs-section { padding: 48px 0; }
  .bs-section__header { margin-bottom: 24px; }

  /* Hero */
  .bs-hero { padding: 80px 0 52px; }
  .bs-hero__subtitle { font-size: 15px; margin-bottom: 24px; }
  .bs-hero__actions { flex-direction: column; }
  .bs-hero__actions .bs-btn { width: 100%; justify-content: center; }
  .bs-hero__stats { gap: 12px; }
  .bs-hero__stat-num { font-size: 22px; }
  .bs-demo { max-width: 100%; }

  /* Stats strip: 3-per-row, no separators */
  .bs-stats-section { padding: 24px 0; }
  .bs-stat-item__sep { display: none; }
  .bs-stats-grid { flex-wrap: wrap; justify-content: center; gap: 0; }
  .bs-stat-item { flex: 0 0 33.333%; padding: 14px 8px; text-align: center; }
  .bs-stat-item__num { font-size: 26px; }
  .bs-stat-item__label { font-size: 10px; }

  /* Module cards */
  .bs-modules { grid-template-columns: 1fr; }
  .bs-module--wide { grid-column: span 1; }
  .bs-module { padding: 18px; gap: 12px; }

  /* Features grid & screenshots */
  .bs-features-grid { grid-template-columns: 1fr; }
  .bs-shots__points { flex-direction: column; gap: 16px; }

  /* Other grids */
  .bs-roles { grid-template-columns: 1fr; }
  .bs-audience { grid-template-columns: 1fr; }

  /* Footer */
  .bs-footer__inner { flex-direction: column; text-align: center; }
  .bs-footer__links { margin-left: 0; }
}
