/* ══════════════════════════════════════════════════════════
   BandarCloud — Design System
   Accent: Purple (#7c3aed / #a855f7) matching server neon glow
   ══════════════════════════════════════════════════════════ */

:root {
  --accent:        #402895;
  --accent-light:  #503497;
  --accent-glow:   rgba(52, 44, 123, 0.45);
  --accent-pale:   rgba(168, 85, 247, 0.15);
  --glass:         rgba(8, 8, 20, 0.72);
  --glass-border:  rgba(148, 163, 184, 0.10);
  --surface:       rgba(18, 12, 36, 0.65);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: #000000;
  min-height: 100vh;
  direction: rtl;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.bc-nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.116);
}

.bc-logo-icon {
  background: rgba(0, 0, 0, 0.881);
  border: 1px solid rgba(255, 255, 255, 0.184);
}

.bc-nav__login {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: all .2s ease;
}
.bc-nav__login:hover {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.35);
}

/* ─── HERO ────────────────────────────────────────────────── */
.bc-hero {
  position: relative;
  min-height: 125vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The actual background image — right-weighted crop for RTL layout */
.bc-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Shift image so server racks fill the left visual half, text zone on right */
  background-position: 20% center;
  background-repeat: no-repeat;
  transform: scale(1.04); /* subtle scale to crop white edges */
}

/* RTL split: dark zone on the RIGHT (leading text side), fades to image on LEFT */
.bc-hero__overlay-split {
  position: absolute;
  inset: 0;
  /* In RTL the text is on the RIGHT side, so gradient goes from-right */
  background: linear-gradient(
    to left,
    rgba(5, 6, 15, 0.97)   0%,
    rgba(5, 6, 15, 0.93)  28%,
    rgba(5, 6, 15, 0.72)  48%,
    rgba(5, 6, 15, 0.25)  68%,
    rgba(5, 6, 15, 0.05)  85%,
    transparent           100%
  );
}

/* Atmospheric top/bottom vignette */
.bc-hero__overlay-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,6,15,0.55) 0%, transparent 20%),
    linear-gradient(to top,    rgba(5,6,15,0.85) 0%, transparent 35%);
  pointer-events: none;
}

/* Signature element: neon scan-line echoing the floor reflection in the image */
.bc-hero__scanline {
  position: absolute;
  bottom: 88px; /* sits just above the stats strip */
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(124, 58, 237, 0) 20%,
    rgba(168, 85, 247, 0.6) 45%,
    rgba(192, 132, 252, 0.9) 50%,
    rgba(168, 85, 247, 0.6) 55%,
    rgba(124, 58, 237, 0) 80%,
    transparent 100%
  );
  animation: scanPulse 3s ease-in-out infinite;
}
.bc-hero__scanline::before {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: inherit;
  filter: blur(6px);
  opacity: 0.6;
}

@keyframes scanPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Hero inner — positions content on right (leading RTL) side */
.bc-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

.bc-hero__content {
  max-width: 520px;
  /* In RTL, starts at right side naturally */
}

/* ─── BADGE ──────────────────────────────────────────────── */
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.30);
  font-size: 0.8125rem;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
}
.bc-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px #a855f7; }
  50%       { box-shadow: 0 0 12px #a855f7, 0 0 24px rgba(168,85,247,0.4); }
}

/* ─── HEADING ────────────────────────────────────────────── */
.bc-hero__heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.bc-hero__heading-accent {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #c084fc 100%);
}

/* ─── SUB ────────────────────────────────────────────────── */
.bc-hero__sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 440px;
  margin-bottom: 2.25rem;
}

/* ─── CTAS ───────────────────────────────────────────────── */
.bc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.bc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #fff;
  box-shadow: 0 8px 28px -6px rgba(124, 58, 237, 0.65);
  transition: all .2s ease;
  text-decoration: none;
}
.bc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -6px rgba(124, 58, 237, 0.75);
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}
.bc-btn-arrow {
  width: 1rem;
  height: 1rem;
  /* flip arrow direction for RTL — points left */
  transform: scaleX(-1);
}

.bc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #cbd5e1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
  transition: all .2s ease;
  text-decoration: none;
}
.bc-btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(168, 85, 247, 0.35);
}

/* ─── STATS STRIP ────────────────────────────────────────── */
.bc-stats {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(8, 8, 20, 0.78);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  padding: 1.125rem 1.5rem;
}

.bc-stats__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  flex: 1;
  min-width: 150px;
}
.bc-stats__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #a855f7;
}
.bc-stats__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}
.bc-stats__desc {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.4;
}
.bc-stats__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(148, 163, 184, 0.12);
  flex-shrink: 0;
}

/* ─── GLASS COMPONENTS ───────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: linear-gradient(145deg, rgba(30,12,60,.5), rgba(8,8,20,.75));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 1.25rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
  border-color: rgba(124, 58, 237, 0.28);
}

/* ─── SECTION EYE ────────────────────────────────────────── */
.bc-section-eye {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 0.5rem;
}

/* ─── ICON BOX ───────────────────────────────────────────── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.08);
  color: #a855f7;
}

/* ─── BUTTONS (legacy .btn-primary for dashboard/other views) */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transition: all .2s ease;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px var(--accent-glow);
}

/* ─── ANIMATION ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp .7s cubic-bezier(.22,.68,0,1.2) forwards; }

/* ─── FORMS ──────────────────────────────────────────────── */
input, select, textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* ─── STATUS ─────────────────────────────────────────────── */
.status-running { color: #4ade80; }
.status-off     { color: #f87171; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar-link.active {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-right: 3px solid #7c3aed;
}

@media (min-width: 1024px) { #sidebar { transform: translateX(0) !important; } }
@media (max-width: 1023px) {
  .sidebar-open   { transform: translateX(0); }
  .sidebar-closed { transform: translateX(100%); }
}

#sidebar { display: flex; flex-direction: column; overflow: hidden; }
.sidebar-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-left: 2px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(148,163,184,.35); border-radius: 999px; }
.sidebar-footer { flex-shrink: 0; padding-top: .75rem; border-top: 1px solid rgba(51,65,85,.5); }

/* ─── ADMIN / BADGES ─────────────────────────────────────── */
.admin-table th, .admin-table td { vertical-align: middle; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
}
.badge-success { background: rgba(34,197,94,.15); color: #4ade80; }
.badge-danger  { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-muted   { background: rgba(100,116,139,.2);  color: #94a3b8; }

.dropdown-menu {
  background: linear-gradient(145deg, rgba(30,12,60,.95), rgba(8,8,20,.95));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: .75rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.5);
  min-width: 180px;
  margin-top: 4px;
  z-index: 50;
}

/* ─── RTL/LTR UTILITIES ───────────────────────────────────── */
.rtl    { direction: rtl; }
.ltr    { direction: ltr; }
.bdi    { unicode-bidi: isolate; }
[dir="auto"] { unicode-bidi: plaintext; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .bc-hero__bg {
    background-position: 65% center;
  }
  .bc-hero__overlay-split {
    background: linear-gradient(
      to bottom,
      rgba(5,6,15,0.92) 0%,
      rgba(5,6,15,0.80) 50%,
      rgba(5,6,15,0.88) 100%
    );
  }
  .bc-hero__inner {
    padding: 3rem 1.25rem 7rem;
  }
  .bc-hero__content {
    max-width: 100%;
    text-align: center;
  }
  .bc-hero__sub {
    max-width: 100%;
  }
  .bc-hero__cta {
    justify-content: center;
  }
  .bc-stats {
    gap: 0.5rem;
    padding: 0.875rem 1rem;
  }
  .bc-stats__item {
    padding: 0.375rem 0.75rem;
    min-width: 120px;
  }
  .bc-stats__divider {
    display: none;
  }
}

/* ─── FLASH NOTIFICATIONS ────────────────────────────────── */
.bc-flash {
  position: fixed;
  top: 4.5rem; /* below nav */
  right: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: .875rem;
  min-width: 280px;
  max-width: 420px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px -4px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  animation: flashIn .3s cubic-bezier(.22,.68,0,1.2) forwards;
  /* Force solid background — no transparency bleeding */
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bc-flash--success {
  background: #052e16; /* deep green, fully opaque */
  border: 1px solid #16a34a;
  color: #86efac;
}
.bc-flash--error {
  background: #1c0606; /* deep red, fully opaque */
  border: 1px solid #dc2626;
  color: #fca5a5;
}
.bc-flash--info {
  background: #0a0a1a; /* deep purple, fully opaque */
  border: 1px solid #7c3aed;
  color: #c4b5fd;
}

.bc-flash__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.bc-flash__icon svg { width: 100%; height: 100%; }

.bc-flash span {
  flex: 1;
  line-height: 1.5;
}

.bc-flash__close {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  opacity: .6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: opacity .15s;
}
.bc-flash__close:hover { opacity: 1; }
.bc-flash__close svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════
   MODERN UI SYSTEM — 2026 refresh
   ══════════════════════════════════════════════════════════ */

/* ─── TYPOGRAPHY SCALE ───────────────────────────────────── */
.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #c4b5fd;
  margin-bottom: .75rem;
}
.bc-eyebrow::before {
  content: '';
  width: 1.25rem; height: 1px;
  background: linear-gradient(to left, #a855f7, transparent);
}
.bc-h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: #f1f5f9;
}
.bc-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: #94a3b8;
}

/* ─── SECTION RHYTHM ─────────────────────────────────────── */
.bc-section {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.bc-section--tight { padding-top: 2rem; padding-bottom: 2rem; }
.bc-section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3.25rem;
}

/* ─── AMBIENT BACKGROUND GLOW ────────────────────────────── */
.bc-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

/* ─── MODERN CARD (richer than .glass-card) ─────────────── */
.bc-card {
  position: relative;
  background: linear-gradient(160deg, rgba(36, 16, 70, .55), rgba(8, 8, 20, .8));
  border: 1px solid rgba(124, 58, 237, .14);
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.22,.68,0,1), border-color .35s, box-shadow .35s;
}
.bc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 0%, rgba(168, 85, 247, .14), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.bc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, .35);
  box-shadow: 0 24px 48px -20px rgba(124, 58, 237, .45), 0 0 0 1px rgba(168,85,247,.08) inset;
}
.bc-card:hover::before { opacity: 1; }

.bc-card__icon {
  width: 3rem; height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(168,85,247,.08));
  border: 1px solid rgba(168, 85, 247, .25);
  color: #c4b5fd;
  margin-bottom: 1.25rem;
  transition: transform .3s ease;
}
.bc-card:hover .bc-card__icon { transform: scale(1.08) rotate(-4deg); }

/* ─── COMPARISON CARD (VPN/VPS diff tables) ─────────────── */
.bc-compare {
  display: grid;
  gap: 1rem;
}
.bc-compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: .75rem;
  align-items: stretch;
}
.bc-compare__label {
  display: flex;
  align-items: center;
  font-size: .8125rem;
  color: #94a3b8;
  padding: .9rem 1rem;
}
.bc-compare__cell {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  padding: .9rem 1rem;
  border-radius: .85rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(148,163,184,.08);
  color: #cbd5e1;
}
.bc-compare__cell--accent {
  background: rgba(124,58,237,.10);
  border-color: rgba(168,85,247,.3);
  color: #e9d5ff;
  font-weight: 600;
}
.bc-compare__head {
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  padding: .25rem 0 .5rem;
  color: #c4b5fd;
}

/* ─── AUDIENCE / PERSONA CARDS ───────────────────────────── */
.bc-persona {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: 100%;
}
.bc-persona__tag {
  align-self: flex-start;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(168,85,247,.12);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,.25);
}

/* ─── TIMELINE (Hetzner history) ─────────────────────────── */
.bc-timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-right: 1.75rem;
  border-right: 2px solid rgba(124,58,237,.18);
}
.bc-timeline__item { position: relative; }
.bc-timeline__item::before {
  content: '';
  position: absolute;
  right: -2.05rem;
  top: .15rem;
  width: .7rem; height: .7rem;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 0 4px rgba(168,85,247,.18), 0 0 14px rgba(168,85,247,.6);
}
.bc-timeline__year {
  font-size: .8125rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: .25rem;
}
.bc-timeline__title { font-weight: 700; color: #f1f5f9; margin-bottom: .35rem; }
.bc-timeline__text { font-size: .875rem; color: #94a3b8; line-height: 1.75; }

/* ─── MODERN BUTTONS ─────────────────────────────────────── */
.bc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.65rem;
  border-radius: .875rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  text-decoration: none;
  border: none;
  user-select: none;
}
.bc-btn:active { transform: translateY(0) scale(.98); }
.bc-btn-secondary {
  color: #e2e8f0;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(148,163,184,.16);
}
.bc-btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(168,85,247,.35);
  transform: translateY(-2px);
}

/* Ripple effect — works on any .bc-btn / .bc-btn-primary / .btn-primary */
.bc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: bcRipple .6s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes bcRipple {
  to { transform: scale(2.6); opacity: 0; }
}

/* ─── MODERN INPUTS ──────────────────────────────────────── */
.bc-field { position: relative; }
.bc-field input,
.bc-field textarea,
.bc-field select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: rgba(15, 14, 28, .7) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  color: #e2e8f0;
  font-size: .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bc-field input:hover, .bc-field textarea:hover, .bc-field select:hover {
  border-color: rgba(168, 85, 247, .3) !important;
}
.bc-field input:focus, .bc-field textarea:focus, .bc-field select:focus {
  outline: none;
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .14) !important;
}
.bc-field label {
  display: block;
  font-size: .8125rem;
  color: #94a3b8;
  margin-bottom: .5rem;
  font-weight: 500;
}

/* ─── LOADING SKELETON ───────────────────────────────────── */
.bc-skeleton {
  position: relative;
  border-radius: .75rem;
  background: linear-gradient(100deg,
    rgba(148,163,184,.06) 35%,
    rgba(168,85,247,.14) 50%,
    rgba(148,163,184,.06) 65%);
  background-size: 200% 100%;
  animation: bcSkeletonShine 1.4s ease-in-out infinite;
}
@keyframes bcSkeletonShine {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* ─── LOADING SPINNER ────────────────────────────────────── */
.bc-spinner {
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: bcSpin .65s linear infinite;
  flex-shrink: 0;
}
@keyframes bcSpin { to { transform: rotate(360deg); } }

/* ─── TOAST NOTIFICATION (JS-driven) ─────────────────────── */
.bc-toast-stack {
  position: fixed;
  top: 4.75rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  pointer-events: none;
}
.bc-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 260px;
  max-width: 380px;
  padding: .85rem 1rem;
  border-radius: .9rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(10, 9, 20, .92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.55);
  animation: bcToastIn .35s cubic-bezier(.22,.68,0,1.15) forwards;
}
.bc-toast--leave { animation: bcToastOut .25s ease forwards; }
@keyframes bcToastIn { from { opacity:0; transform: translateY(-10px) scale(.96); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes bcToastOut { to { opacity:0; transform: translateY(-8px) scale(.96); } }
.bc-toast__dot { width: .55rem; height: .55rem; border-radius: 50%; flex-shrink: 0; }
.bc-toast--success .bc-toast__dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.bc-toast--error   .bc-toast__dot { background: #f87171; box-shadow: 0 0 8px #f87171; }
.bc-toast--info    .bc-toast__dot { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

/* ─── EMPTY / ERROR STATE ────────────────────────────────── */
.bc-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  gap: .35rem;
}
.bc-state__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.bc-state--empty .bc-state__icon { background: rgba(168,85,247,.1); color: #c4b5fd; border: 1px solid rgba(168,85,247,.22); }
.bc-state--error .bc-state__icon { background: rgba(248,113,113,.1); color: #fca5a5; border: 1px solid rgba(248,113,113,.22); }
.bc-state__title { font-weight: 700; color: #f1f5f9; font-size: 1rem; }
.bc-state__text { font-size: .8125rem; color: #64748b; max-width: 24rem; line-height: 1.7; }

/* ─── SUCCESS ANIMATION (checkmark draw) ─────────────────── */
.bc-success-check {
  width: 3.5rem; height: 3.5rem;
}
.bc-success-check circle {
  stroke: #4ade80;
  stroke-width: 2;
  fill: rgba(74, 222, 128, .08);
  stroke-dasharray: 76;
  stroke-dashoffset: 76;
  animation: bcCheckCircle .5s ease forwards;
}
.bc-success-check path {
  stroke: #4ade80;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: bcCheckPath .35s .45s ease forwards;
}
@keyframes bcCheckCircle { to { stroke-dashoffset: 0; } }
@keyframes bcCheckPath   { to { stroke-dashoffset: 0; } }

/* ─── FLOATING ELEMENTS ──────────────────────────────────── */
.bc-float       { animation: bcFloat 6s ease-in-out infinite; }
.bc-float--slow { animation: bcFloat 9s ease-in-out infinite; }
.bc-float--delay{ animation-delay: 1.5s; }
@keyframes bcFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.bc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.68,0,1), transform .7s cubic-bezier(.22,.68,0,1);
}
.bc-reveal.bc-revealed { opacity: 1; transform: translateY(0); }
.bc-reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ─── MICRO INTERACTIONS ─────────────────────────────────── */
.bc-tilt-hover { transition: transform .3s ease; }
.bc-tilt-hover:hover { transform: translateY(-3px); }

.bc-link-underline {
  position: relative;
  text-decoration: none;
}
.bc-link-underline::after {
  content: '';
  position: absolute;
  right: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .25s ease;
}
.bc-link-underline:hover::after { width: 100%; }

/* ─── RESPONSIVE: comparison/timeline on mobile ──────────── */
@media (max-width: 768px) {
  .bc-section { padding: 3.5rem 1.25rem; }
  .bc-compare__row { grid-template-columns: 1fr; }
  .bc-compare__label { padding-bottom: 0; font-weight: 600; color: #cbd5e1; }
  .bc-timeline { padding-right: 1.25rem; }
  .bc-timeline__item::before { right: -1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-float, .bc-float--slow, .animate-fade-up, .bc-badge__dot { animation: none !important; }
  .bc-reveal { opacity: 1; transform: none; transition: none; }
}
