/* ── BestatServices Hero Section Widget ── */

/* Global Overflow Fix */
html, body {
  overflow-x: hidden;
}

/* Variables & Reset */
:root {
  --bs-blue:#1E9ED5; 
  --bs-blue-dark:#1478A8; 
  --bs-blue-glow:rgba(30,158,213,.15);
  --bs-gold:#F5C518; 
  --bs-gold-dark:#D4A800;
  --bs-dark:#1A1A2E; 
  --bs-light-muted:#5A6478;
  --bs-white:rgba(255,255,255,.8);
  --bs-transition:.35s cubic-bezier(.4,0,.2,1);
}

.bs-hero-section {
  position:relative;
  min-height:100vh;
  max-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  overflow-x:hidden;
  background:transparent;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.bs-hero-bg {
  position:absolute;
  inset:0;
  z-index:0;
  background:transparent;
}

.bs-hero-grid {
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.025;
  background-image:linear-gradient(rgba(30,158,213,.7) 1px,transparent 1px),linear-gradient(90deg,rgba(30,158,213,.7) 1px,transparent 1px);
  background-size:48px 48px;
}

@keyframes bs-orbFloat {
  from { transform:translate(0,0) scale(1); }
  to { transform:translate(20px,14px) scale(1.04); }
}

@keyframes bs-glowPulse {
  from { opacity:.3; }
  to { opacity:.8; }
}

@keyframes bs-scanDown {
  0% { top:-2px; opacity:0; }
  5% { opacity:1; }
  95% { opacity:1; }
  100% { top:100%; opacity:0; }
}

@keyframes bs-aiDotPulse {
  0%,100% { box-shadow:0 0 0 0 rgba(30,158,213,.5); opacity:1; }
  50% { box-shadow:0 0 0 3px rgba(30,158,213,0); opacity:.7; }
}

@keyframes bs-msgCycle {
  0% { opacity:0; }
  4% { opacity:1; }
  16% { opacity:1; }
  20% { opacity:0; }
  100% { opacity:0; }
}

@keyframes bs-barPulse {
  from { height:52%; }
  to { height:68%; }
}

@keyframes bs-floatA {
  from { transform:translateY(0) rotate(0deg); }
  to { transform:translateY(-8px) rotate(.3deg); }
}

@keyframes bs-floatB {
  from { transform:translateY(0) rotate(0deg); }
  to { transform:translateY(6px) rotate(-.3deg); }
}

@keyframes bs-floatC {
  from { transform:translateY(0); }
  to { transform:translateY(-10px); }
}

@keyframes bs-valPulse {
  from { color:var(--bs-dark); }
  to { color:var(--bs-blue-dark); }
}

@keyframes bs-cursorBlink {
  0%,100% { opacity:1; }
  50% { opacity:0; }
}

.bs-hero-orb {
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  pointer-events:none;
  animation:bs-orbFloat 8s ease-in-out infinite alternate;
}

.bs-hero-orb-1 {
  width:500px;
  height:500px;
  background:rgba(30,158,213,.06);
  right:-150px;
  top:-150px;
}

.bs-hero-orb-2 {
  width:400px;
  height:400px;
  background:rgba(184,220,240,.12);
  left:-100px;
  bottom:-80px;
  animation-delay:-3s;
}

.bs-container {
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.bs-hero-inner {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:40px;
  align-items:center;
  height:calc(100vh - 80px);
}

/* ── Tag ── */
.bs-tag {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--bs-blue-glow);
  border:1px solid rgba(30,158,213,.3);
  color:var(--bs-blue);
  border-radius:100px;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  padding:6px 16px;
  margin-bottom:20px;
}

.bs-tag::before {
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--bs-blue);
  display:block;
}

/* ── Buttons ── */
.bs-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:100px;
  font-family:'Manrope',sans-serif;
  font-size:.9rem;
  font-weight:700;
  border:none;
  transition:var(--bs-transition);
  white-space:nowrap;
  cursor:pointer;
}

.bs-btn-primary {
  background:linear-gradient(135deg,#1E9ED5 0%,#1478A8 100%);
  color:#ffffff;
  box-shadow:0 6px 28px rgba(30,158,213,0.38),0 0 0 1px rgba(30,158,213,0.2);
  letter-spacing:0.01em;
}

.bs-btn-primary:hover {
  background:linear-gradient(135deg,#23b0ed 0%,#1585ba 100%);
  transform:translateY(-3px);
  box-shadow:0 12px 36px rgba(30,158,213,0.45);
}

/* ── Left Content ── */
.bs-hero-content {}

.bs-hero-h1 {
  font-family:'Manrope',sans-serif;
  font-size:clamp(1.85rem,3.6vw,2.9rem);
  font-weight:800;
  line-height:1.12;
  color:var(--bs-dark);
  margin-bottom:14px;
  letter-spacing:-0.04em;
}

.bs-hero-sub {
  font-size:.95rem;
  color:#3a4462;
  line-height:1.7;
  max-width:480px;
  margin-bottom:18px;
}

.bs-hero-support {
  font-size:.82rem;
  color:#5A6478;
  margin-bottom:22px;
  font-weight:500;
  line-height:1.5;
  max-width:440px;
}

.bs-hero-cta {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.bs-hero-badges {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.bs-hero-badge {
  display:flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(30,158,213,0.18);
  backdrop-filter:blur(8px);
  box-shadow:0 2px 12px rgba(0,0,0,0.06);
  border-radius:100px;
  padding:5px 12px;
  font-size:.72rem;
  font-weight:500;
  color:var(--bs-dark);
  transition:all 0.3s ease;
}

.bs-hero-badge:hover {
  background:rgba(255,255,255,.95);
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(30,158,213,0.12);
}

.bs-hero-badge .stars {
  color:var(--bs-gold-dark);
  letter-spacing:-1px;
  font-size:.82rem;
}

.bs-hero-badge .dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--bs-blue);
  flex-shrink:0;
}

/* ── Right Visual ── */
.bs-hero-visual {
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  padding-bottom:12px;
}

.bs-pos-wrap {
  position:relative;
  padding:20px 16px 20px 28px;
  width:100%;
}

.bs-pos-glow {
  position:absolute;
  inset:-20px;
  border-radius:40px;
  z-index:0;
  background:radial-gradient(ellipse at 60% 50%,rgba(30,158,213,.1),transparent 65%);
  animation:bs-glowPulse 3.5s ease-in-out infinite alternate;
}

.bs-pos-glow-2 {
  position:absolute;
  inset:-20px;
  border-radius:40px;
  z-index:0;
  background:radial-gradient(ellipse at 30% 80%,rgba(184,220,240,.12),transparent 55%);
  animation:bs-glowPulse 5s ease-in-out infinite alternate-reverse;
}

.bs-pos-device {
  position:relative;
  z-index:1;
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(24px);
  border:1px solid rgba(30,158,213,.18);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 60px 130px rgba(30,158,213,0.14),0 0 0 1px rgba(255,255,255,0.9),inset 0 1px 0 rgba(255,255,255,0.95);
}

.bs-pos-neural {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.1;
  z-index:0;
}

.bs-ai-scan {
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(30,158,213,.4),rgba(30,158,213,.2),transparent);
  z-index:2;
  pointer-events:none;
  animation:bs-scanDown 4s linear infinite;
  box-shadow:0 0 10px rgba(30,158,213,.15);
}

.bs-pos-topbar {
  background:rgba(0,0,0,.025);
  border-bottom:1px solid rgba(0,0,0,.05);
  padding:7px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:3;
}

.bs-pos-dots {
  display:flex;
  gap:4px;
}

.bs-pos-dot {
  width:7px;
  height:7px;
  border-radius:50%;
}

.bs-pos-dot:nth-child(1) { background:#FF5F57; }
.bs-pos-dot:nth-child(2) { background:#FEBC2E; }
.bs-pos-dot:nth-child(3) { background:#28C840; }

.bs-pos-bar-title {
  font-size:.62rem;
  color:rgba(0,0,0,.28);
  font-weight:600;
  letter-spacing:.04em;
}

.bs-pos-time-str {
  font-size:.62rem;
  color:rgba(0,0,0,.28);
}

.bs-pos-body {
  padding:14px 14px 16px;
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  gap:13px;
}

.bs-pos-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.bs-pos-brand-txt {
  font-size:.75rem;
  font-weight:800;
  color:var(--bs-dark);
  letter-spacing:.02em;
}

.bs-pos-brand-txt span {
  color:var(--bs-blue);
}

.bs-ai-chip {
  display:flex;
  align-items:center;
  gap:4px;
  background:rgba(30,158,213,.08);
  border:1px solid rgba(30,158,213,.2);
  border-radius:100px;
  padding:2px 8px 2px 6px;
  font-size:.54rem;
  font-weight:700;
  color:var(--bs-blue-dark);
  letter-spacing:.04em;
}

.bs-ai-chip-dot {
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--bs-blue);
  animation:bs-aiDotPulse 1.2s ease-in-out infinite;
}

.bs-pos-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
}

.bs-ps {
  background:rgba(255,255,255,.55);
  border:1px solid rgba(30,158,213,.1);
  border-radius:10px;
  padding:9px 10px;
  position:relative;
  overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease;
}

.bs-ps:hover {
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(30,158,213,.08);
}

.bs-ps-label {
  font-size:.5rem;
  color:rgba(0,0,0,.38);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:3px;
}

.bs-ps-val {
  font-family:'Manrope',sans-serif;
  font-size:.9rem;
  font-weight:800;
  line-height:1;
  color:var(--bs-dark);
}

.bs-ps-val.c-blue { color:var(--bs-blue); }
.bs-ps-val.c-gold { color:var(--bs-gold-dark); }
.bs-ps-val.c-green { color:#2e7d32; }

.bs-ps-change {
  font-size:.5rem;
  color:#2e7d32;
  margin-top:3px;
}

.bs-ai-insight {
  background:linear-gradient(135deg,rgba(30,158,213,.05),rgba(30,158,213,.02));
  border:1px solid rgba(30,158,213,.13);
  border-radius:9px;
  padding:9px 10px;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.bs-ai-insight-icon {
  width:20px;
  height:20px;
  border-radius:6px;
  flex-shrink:0;
  background:rgba(30,158,213,.1);
  border:1px solid rgba(30,158,213,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:1px;
}

.bs-ai-insight-text {
  font-size:.57rem;
  color:rgba(0,0,0,.55);
  line-height:1.55;
  flex:1;
}

.bs-ai-insight-label {
  font-size:.5rem;
  font-weight:700;
  color:var(--bs-blue-dark);
  text-transform:uppercase;
  letter-spacing:.07em;
  margin-bottom:3px;
}

.bs-ai-cursor {
  display:inline-block;
  width:1px;
  height:.65em;
  background:var(--bs-blue);
  vertical-align:middle;
  margin-left:1px;
  animation:bs-cursorBlink .75s step-end infinite;
}

.bs-ai-messages {
  position:relative;
  height:2.4em;
  overflow:hidden;
}

.bs-ai-msg {
  position:absolute;
  top:0;
  left:0;
  right:0;
  opacity:0;
  animation:bs-msgCycle 24s linear infinite;
}

.bs-ai-msg:nth-child(1) { animation-delay:0s; }
.bs-ai-msg:nth-child(2) { animation-delay:4s; }
.bs-ai-msg:nth-child(3) { animation-delay:8s; }
.bs-ai-msg:nth-child(4) { animation-delay:12s; }
.bs-ai-msg:nth-child(5) { animation-delay:16s; }
.bs-ai-msg:nth-child(6) { animation-delay:20s; }

.bs-pos-slabel {
  font-size:.52rem;
  color:rgba(0,0,0,.3);
  text-transform:uppercase;
  letter-spacing:.08em;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:0;
}

.bs-sl-badge {
  font-size:.48rem;
  color:var(--bs-blue-dark);
  background:rgba(30,158,213,.1);
  border:1px solid rgba(30,158,213,.18);
  border-radius:100px;
  padding:1px 6px;
  font-weight:600;
}

.bs-pos-chart-wrap {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.bs-pos-chart-bars {
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:38px;
}

.bs-pcb {
  flex:1;
  border-radius:3px 3px 0 0;
  background:rgba(30,158,213,.1);
}

.bs-pcb.hi {
  background:linear-gradient(0deg,#1E9ED5,#1478A8);
}

.bs-pcb.pred {
  background:rgba(30,158,213,.18);
  border:1px dashed rgba(30,158,213,.38);
  border-bottom:none;
  animation:bs-barPulse 2.2s ease-in-out infinite alternate;
}

.bs-pos-actions-wrap {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.bs-pos-actions {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
}

.bs-pa {
  background:rgba(255,255,255,.45);
  border:1px solid rgba(30,158,213,.1);
  border-radius:9px;
  padding:8px 4px;
  text-align:center;
  transition:all .3s ease;
  cursor:pointer;
}

.bs-pa:hover {
  background:rgba(255,255,255,.85);
  border-color:var(--bs-blue);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(30,158,213,.1);
}

.bs-pa svg {
  display:block;
  margin:0 auto 3px;
}

.bs-pa-lbl {
  font-size:.52rem;
  color:rgba(0,0,0,.45);
  font-weight:600;
}

/* ── Floating Notifications ── */
.bs-pos-notif {
  position:absolute;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(30,158,213,.14);
  border-radius:10px;
  padding:7px 10px;
  box-shadow:0 12px 36px rgba(0,0,0,.08);
  backdrop-filter:blur(16px);
  z-index:5;
  white-space:nowrap;
}

.bs-pos-notif-1 {
  top:2px;
  right:-6px;
  animation:bs-floatA 4.5s ease-in-out infinite alternate;
}

.bs-pos-notif-2 {
  bottom:40px;
  left:-6px;
  animation:bs-floatB 5.5s ease-in-out infinite alternate;
}

.bs-pn-row {
  display:flex;
  align-items:center;
  gap:7px;
}

.bs-pn-ico {
  width:22px;
  height:22px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.bs-pn-txt .pn-title {
  font-size:.6rem;
  font-weight:700;
  color:var(--bs-dark);
}

.bs-pn-txt .pn-sub {
  font-size:.54rem;
  color:rgba(0,0,0,.45);
  margin-top:1px;
}

.bs-pos-notif-ai {
  position:absolute;
  bottom:90px;
  right:-12px;
  z-index:5;
  background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(245,247,250,.97));
  border:1px solid rgba(30,158,213,.18);
  border-radius:10px;
  padding:8px 11px;
  box-shadow:0 14px 40px rgba(0,0,0,.09);
  backdrop-filter:blur(16px);
  white-space:nowrap;
  animation:bs-floatC 6s ease-in-out infinite alternate;
}

.bs-pn-ai-row {
  display:flex;
  align-items:center;
  gap:6px;
}

.bs-pn-ai-icon {
  width:22px;
  height:22px;
  border-radius:7px;
  background:rgba(30,158,213,.1);
  border:1px solid rgba(30,158,213,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.bs-pn-ai-title {
  font-size:.56rem;
  font-weight:700;
  color:var(--bs-blue-dark);
  margin-bottom:1px;
}

.bs-pn-ai-val {
  font-size:.65rem;
  font-weight:800;
  color:var(--bs-dark);
  animation:bs-valPulse 3s ease-in-out infinite alternate;
}

.bs-pn-ai-sub {
  font-size:.5rem;
  color:rgba(0,0,0,.38);
  margin-top:1px;
}

/* ── Responsive ── */
@media(max-width:960px) {
  .bs-hero-inner {
    grid-template-columns:1fr;
    height:auto;
  }
  
  .bs-hero-section {
    min-height:auto;
    max-height:none;
    padding-bottom:60px !important;
  }
  
  .bs-hero-visual {
    display:none;
  }
}
