/* VIDBILL brand layer — tailored from the uploaded ISP SaaS landing template. */

:root {
  --vidbill-green: #06b6d4;
  --vidbill-teal: #2563eb;
  --vidbill-cyan: #0ea5e9;
  --vidbill-navy: #0b1633;
  --vidbill-navy-2: #10213a;
}

[data-theme="light"] {
  --bg-secondary: #eef5ff;
  --bg-card: #ffffff;
  --text-primary: #0b1633;
  --text-secondary: #52627d;
  --text-muted: #71809a;
  --navbar-bg: rgba(248, 252, 252, 0.9);
}

body {
  min-width: 320px;
}

.aurora-1 {
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.9) 0%, transparent 62%);
}

.aurora-2 {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.9) 0%, transparent 62%);
}

.aurora-3 {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.75) 0%, transparent 62%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
}

.navbar.scrolled {
  box-shadow: 0 14px 46px -26px rgba(31, 68, 125, 0.76);
}

.nav-logo,
.footer-logo {
  gap: 10px;
}

.nav-logo img {
  height: 42px;
  width: 42px;
}

.footer-logo img {
  height: 38px;
  width: 38px;
}

.nav-logo span,
.footer-logo span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.brand-dot {
  color: var(--vidbill-teal);
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.hero {
  min-height: 930px;
}

.hero-title {
  max-width: 720px;
}

.hero-description {
  max-width: 650px;
}

.hero-stats {
  gap: 28px;
}

.stat-item {
  min-width: 128px;
}

.stat-value {
  font-family: var(--font-primary);
  letter-spacing: -0.04em;
}

.stat-value .stat-small {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--primary-light);
  vertical-align: middle;
  margin-left: 4px;
}

.app-window {
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px -26px rgba(37, 99, 235, 0.64);
}

.app-window-body {
  background: linear-gradient(145deg, #0a172a 0%, #0d2233 100%);
  min-height: 440px;
}

[data-theme="light"] .app-window-body {
  background: linear-gradient(145deg, #f7faff 0%, #edf4ff 100%);
}

.vid-dashboard {
  display: grid;
  grid-template-columns: 94px 1fr;
  min-height: 440px;
  position: relative;
  color: #eaf3ff;
}

[data-theme="light"] .vid-dashboard {
  color: #0b2244;
}

.vid-sidebar {
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 14, 24, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-theme="light"] .vid-sidebar {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(37, 99, 235, 0.12);
}

.vid-side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  margin-bottom: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vid-side-logo img {
  width: 24px;
  height: 24px;
}

.vid-side-link {
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: rgba(223, 248, 244, 0.64);
  font-size: 0.53rem;
  font-weight: 600;
}

[data-theme="light"] .vid-side-link {
  background: rgba(37, 99, 235, 0.055);
  color: #64748b;
}

.vid-side-link::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
}

.vid-side-link.active {
  color: #f0f8ff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(45, 212, 191, 0.22);
}

[data-theme="light"] .vid-side-link.active {
  color: #1d4ed8;
}

.vid-dashboard-main {
  padding: 18px;
  min-width: 0;
}

.vid-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.vid-dashboard-head h3 {
  font-size: 0.86rem;
  letter-spacing: -0.03em;
}

.vid-dashboard-head p {
  margin-top: 2px;
  font-size: 0.52rem;
  color: #7b8faa;
}

.vid-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.24);
  color: #22c55e;
  font-size: 0.48rem;
  font-weight: 800;
}

.vid-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.vid-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.vid-metric {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
}

[data-theme="light"] .vid-metric {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.11);
  box-shadow: 0 8px 24px -20px rgba(2, 44, 63, 0.6);
}

.vid-metric strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vid-metric span {
  display: block;
  font-size: 0.48rem;
  color: #7b8faa;
  margin-top: 2px;
}

.vid-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.vid-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  min-height: 148px;
  overflow: hidden;
}

[data-theme="light"] .vid-panel {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(37, 99, 235, 0.11);
}

.vid-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.57rem;
  font-weight: 700;
}

.vid-panel-title span {
  color: #7dd3fc;
  font-size: 0.47rem;
}

.vid-chart {
  height: 104px;
  position: relative;
  border-radius: 9px;
  background-image:
    linear-gradient(rgba(127, 160, 179, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 160, 179, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}

.vid-chart svg {
  width: 100%;
  height: 100%;
}

.vid-status-list {
  display: grid;
  gap: 7px;
}

.vid-status {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 7px;
  align-items: center;
  font-size: 0.48rem;
  padding: 6px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

[data-theme="light"] .vid-status {
  background: rgba(37, 99, 235, 0.045);
}

.vid-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.vid-status small {
  color: #7b8faa;
}

.float-icon.purple {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
}

.trusted {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.035), transparent);
}

.trusted-text {
  letter-spacing: 0.12em;
}

.trusted-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.trusted-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient-primary);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.38);
}

.feature-card {
  min-height: 250px;
}

.feature-card .feature-kicker {
  display: block;
  margin-top: 14px;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.role-section {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.04), transparent);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  transition: var(--transition-base);
}

.role-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.role-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: #ecfeff;
  background: var(--gradient-primary);
  box-shadow: 0 16px 38px -20px rgba(37, 99, 235, 0.8);
}

.role-icon svg {
  width: 23px;
  height: 23px;
}

.role-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.role-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.role-card ul {
  display: grid;
  gap: 9px;
}

.role-card li {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
}

.role-card li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 800;
}

.ftth-section {
  position: relative;
  overflow: hidden;
}

.ftth-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.ftth-copy .section-header {
  text-align: left;
  margin: 0 0 28px;
  max-width: none;
}

.ftth-copy .section-subtitle {
  margin-left: 0;
}

.ftth-points {
  display: grid;
  gap: 12px;
}

.ftth-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.ftth-point i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
}

.network-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(13, 32, 49, 0.82), rgba(6, 17, 31, 0.72));
  box-shadow: var(--shadow-xl), 0 0 80px -35px rgba(37, 99, 235, 0.7);
  overflow: hidden;
}

[data-theme="light"] .network-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 248, 246, 0.9));
}

.network-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -50% 10%;
  height: 70%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 66%);
  pointer-events: none;
}

.network-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.network-top h3 {
  font-size: 1rem;
}

.network-top span {
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
}

.network-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.network-flow::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #2563eb, #0ea5e9);
  opacity: 0.5;
}

.network-node {
  text-align: center;
  position: relative;
}

.network-node-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: #7dd3fc;
  box-shadow: 0 14px 30px -22px rgba(37, 99, 235, 0.8);
  position: relative;
  z-index: 2;
}

[data-theme="light"] .network-node-icon {
  background: #ffffff;
  color: #1d4ed8;
}

.network-node-icon svg {
  width: 27px;
  height: 27px;
}

.network-node strong {
  display: block;
  font-size: 0.74rem;
}

.network-node small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.62rem;
}

.network-monitor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.network-monitor-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .network-monitor-item {
  background: rgba(255, 255, 255, 0.8);
}

.network-monitor-item strong {
  display: block;
  font-size: 0.84rem;
}

.network-monitor-item small {
  color: var(--text-muted);
  font-size: 0.67rem;
}

.pricing-grid.vidbill-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-price {
  align-items: baseline;
}

.pricing-currency {
  font-size: 0.82rem;
  align-self: center;
  margin-right: 3px;
}

.pricing-amount {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.pricing-period {
  white-space: nowrap;
}

.package-capacity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 22px;
}

.package-capacity div {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 7px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.package-capacity strong {
  display: block;
  font-size: 0.86rem;
}

.package-capacity small {
  color: var(--text-muted);
  font-size: 0.63rem;
}

.pricing-custom {
  max-width: 920px;
  margin: 34px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 165, 233, 0.07));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pricing-custom h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.pricing-custom p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.faq-question {
  width: 100%;
  text-align: left;
}

.cta-content {
  background:
    radial-gradient(circle at 12% 15%, rgba(6, 182, 212, 0.22), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(10, 38, 50, 0.82), rgba(5, 18, 31, 0.88));
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 30px;
  padding: 72px 40px;
  box-shadow: var(--shadow-xl);
}

[data-theme="light"] .cta-content {
  background:
    radial-gradient(circle at 12% 15%, rgba(6, 182, 212, 0.18), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(145deg, #f5fffc, #eaf7fb);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  line-height: 1.8;
}

.footer-grid {
  grid-template-columns: 1.5fr 0.8fr 0.9fr 0.9fr;
}

.footer-brand {
  max-width: 390px;
}

.footer-contact {
  display: grid;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-contact a:hover {
  color: var(--primary-light);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: 0 18px 45px -16px rgba(6, 182, 212, 0.8);
  font-size: 0.9rem;
  font-weight: 800;
  transition: var(--transition-base);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -16px rgba(6, 182, 212, 0.92);
}

.whatsapp-float svg {
  width: 21px;
  height: 21px;
}

.scroll-progress {
  background: var(--gradient-primary);
}

@media (max-width: 1100px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftth-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ftth-copy .section-header {
    text-align: center;
  }

  .ftth-copy .section-subtitle {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }

  .pricing-grid.vidbill-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid.vidbill-pricing .pricing-card.featured {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-logo span {
    font-size: 1.18rem;
  }

  .vid-dashboard {
    grid-template-columns: 70px 1fr;
    min-height: 380px;
  }

  .vid-sidebar {
    padding: 12px 8px;
  }

  .vid-side-logo span,
  .vid-side-link span {
    display: none;
  }

  .vid-side-logo {
    justify-content: center;
  }

  .vid-side-link {
    justify-content: center;
    padding: 0;
  }

  .vid-dashboard-main {
    padding: 12px;
  }

  .vid-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vid-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .vid-status-panel {
    display: none;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .network-card {
    padding: 22px 14px;
  }

  .network-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .network-flow::before {
    top: 8%;
    bottom: 8%;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #06b6d4, #2563eb, #0ea5e9);
  }

  .network-node {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: center;
    text-align: left;
  }

  .network-node-icon {
    margin: 0;
  }

  .network-monitor {
    grid-template-columns: 1fr;
  }

  .pricing-grid.vidbill-pricing {
    grid-template-columns: 1fr;
  }

  .pricing-custom {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
  }

  .cta-content {
    padding: 54px 20px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 12px;
  }

  .stat-item {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 88px;
  }

  .stat-value {
    font-size: 1.24rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .app-window-url {
    font-size: 0.64rem;
  }

  .vid-dashboard {
    grid-template-columns: 56px 1fr;
  }

  .vid-dashboard-head p,
  .vid-live,
  .vid-metric:nth-child(4) {
    display: none;
  }

  .vid-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vid-metric {
    padding: 8px 6px;
  }

  .vid-metric strong {
    font-size: 0.7rem;
  }

  .vid-chart {
    height: 90px;
  }

  .package-capacity {
    grid-template-columns: 1fr;
  }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: #1d4ed8;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-mobile-cta {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-mobile-cta {
    display: block;
    width: 100%;
  }

  .nav-mobile-cta a {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--gradient-primary);
  }
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.btn-lg svg {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

/* ========================================================================
   VIDBILL Landing Modern V3 — operational modules + HR/payroll layer
   ======================================================================== */

.trusted-logos-modules {
  gap: 12px;
  opacity: 1;
}

.trusted-logos-modules .trusted-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  filter: none;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.trusted-logos-modules .trusted-logo:hover {
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
}

.vidbill-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
}

.module-card .feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.module-card .feature-icon svg {
  width: 24px;
  height: 24px;
}

.module-label {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.09);
  color: #7dd3fc;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
}

[data-theme="light"] .module-label {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.17);
  background: rgba(37, 99, 235, 0.07);
}

.module-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.module-card > p {
  margin-bottom: 17px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.module-list {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color);
  list-style: none;
}

.module-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.79rem;
  line-height: 1.45;
}

.module-list li::before {
  content: '';
  position: absolute;
  top: 0.48em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.hr-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.10), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.10), transparent 36%),
    var(--bg-primary);
}

.hr-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hr-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 70px;
}

.hr-copy .section-header {
  margin: 0 0 30px;
  max-width: none;
  text-align: left;
}

.hr-copy .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hr-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hr-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 128px;
  padding: 17px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease-out-expo), border-color 260ms ease, box-shadow 260ms ease;
}

.hr-point:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: var(--shadow-md);
}

.hr-point > i {
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 165, 233, 0.14));
  color: #38bdf8;
  font-style: normal;
}

.hr-point > i svg {
  width: 19px;
  height: 19px;
}

.hr-point strong,
.hr-point span {
  display: block;
}

.hr-point strong {
  margin: 1px 0 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.hr-point span {
  color: var(--text-secondary);
  font-size: 0.77rem;
  line-height: 1.55;
}

.hr-preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(7, 26, 43, 0.94), rgba(11, 36, 56, 0.92)),
    var(--card-bg);
  box-shadow:
    0 28px 70px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 90px -38px rgba(37, 99, 235, 0.65);
  color: #e6fffb;
  isolation: isolate;
}

.hr-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), transparent 32%, transparent 70%, rgba(45, 212, 191, 0.05));
}

[data-theme="light"] .hr-preview {
  color: #0b2244;
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 250, 247, 0.96));
  box-shadow:
    0 24px 60px -26px rgba(37, 99, 235, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.preview-label {
  position: absolute;
  top: -13px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -10px rgba(22, 163, 74, 0.8);
}

.hr-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .hr-preview-head {
  border-color: rgba(37, 99, 235, 0.10);
}

.hr-preview-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

[data-theme="light"] .hr-preview-head > div > span {
  color: #1d4ed8;
}

.hr-preview-head h3 {
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.hr-period {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #99f6e4;
  font-size: 0.66rem;
  font-weight: 750;
}

[data-theme="light"] .hr-period {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.06);
}

.hr-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 12px;
}

.hr-preview-stats > div {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

[data-theme="light"] .hr-preview-stats > div {
  border-color: rgba(37, 99, 235, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.hr-preview-stats small,
.hr-preview-stats strong,
.hr-preview-stats span {
  display: block;
}

.hr-preview-stats small {
  overflow: hidden;
  color: #86a6b7;
  font-size: 0.57rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hr-preview-stats strong {
  margin: 5px 0 3px;
  color: #f0fdfa;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

[data-theme="light"] .hr-preview-stats strong {
  color: #0b2244;
}

.hr-preview-stats span {
  overflow: hidden;
  color: #67d9c9;
  font-size: 0.52rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

[data-theme="light"] .hr-preview-stats span {
  color: #1d4ed8;
}

.hr-preview-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 11px;
}

.hr-mini-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(2, 12, 22, 0.28);
}

[data-theme="light"] .hr-mini-panel {
  border-color: rgba(37, 99, 235, 0.09);
  background: rgba(255, 255, 255, 0.64);
}

.hr-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.hr-panel-title strong {
  font-size: 0.76rem;
}

.hr-panel-title span {
  color: #7b9bab;
  font-size: 0.56rem;
}

.attendance-bars,
.payroll-list {
  display: grid;
  gap: 8px;
}

.attendance-bars > div,
.payroll-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9d5df;
  font-size: 0.58rem;
}

[data-theme="light"] .attendance-bars > div,
[data-theme="light"] .payroll-list > div {
  background: rgba(37, 99, 235, 0.045);
  color: #52627d;
}

.attendance-bars > div > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.attendance-bars b {
  color: #f0fdfa;
  font-size: 0.65rem;
}

[data-theme="light"] .attendance-bars b {
  color: #0b2244;
}

.attendance-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 7px currentColor;
}

.attendance-dot.late { background: #f59e0b; }
.attendance-dot.leave { background: #0ea5e9; }
.attendance-dot.absent { background: #f43f5e; }

.payroll-list > div > span {
  min-width: 0;
}

.payroll-list b,
.payroll-list small {
  display: block;
}

.payroll-list b {
  overflow: hidden;
  max-width: 115px;
  color: #eaf3ff;
  font-size: 0.61rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

[data-theme="light"] .payroll-list b {
  color: #0b2244;
}

.payroll-list small {
  margin-top: 2px;
  color: #7b9bab;
  font-size: 0.49rem;
}

.payroll-list em {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.10);
  color: #22c55e;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 800;
}

[data-theme="light"] .payroll-list em {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.09);
}

@media (max-width: 1180px) {
  .vidbill-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-layout {
    gap: 44px;
  }

  .hr-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hr-layout {
    grid-template-columns: 1fr;
  }

  .hr-copy .section-header {
    text-align: center;
  }

  .hr-copy .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hr-preview {
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .trusted-logos-modules .trusted-logo {
    padding-inline: 11px;
    font-size: 0.64rem;
  }

  .vidbill-module-grid,
  .hr-points,
  .hr-preview-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    padding: 24px;
  }

  .hr-preview {
    padding: 19px 15px 16px;
    border-radius: 21px;
  }

  .hr-preview-head {
    align-items: center;
  }

  .hr-preview-head h3 {
    font-size: 0.96rem;
  }

  .hr-period {
    padding-inline: 7px;
    font-size: 0.56rem;
  }

  .hr-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-preview-stats > div {
    padding: 11px 9px;
  }

  .hr-point {
    min-height: 0;
  }
}

/* =========================================================
   V3 — blue/cyan VIDNET-inspired product previews & gateways
========================================================= */

:root {
  --vidbill-blue: #2563eb;
  --vidbill-blue-2: #168eea;
  --vidbill-cyan: #06b6d4;
  --vidbill-ink: #0b1633;
  --vidbill-soft-blue: #eef5ff;
  --vidbill-line-blue: #dce7f5;
}

[data-theme="light"] {
  --bg-secondary: #eef5ff;
  --text-primary: #0b1633;
  --text-secondary: #52627d;
  --text-muted: #71809a;
  --navbar-bg: rgba(248, 251, 255, 0.92);
}

.aurora-1 {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.88) 0%, transparent 62%);
}

.aurora-2 {
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.88) 0%, transparent 62%);
}

.aurora-3 {
  background: radial-gradient(circle at center, rgba(22, 142, 234, 0.72) 0%, transparent 62%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 78% 34%, rgba(6, 182, 212, 0.14), transparent 34%),
    radial-gradient(circle at 22% 28%, rgba(37, 99, 235, 0.11), transparent 37%);
}

.product-preview-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.12), transparent 32%),
    radial-gradient(circle at 0% 80%, rgba(37, 99, 235, 0.1), transparent 36%),
    var(--bg-secondary);
}

.product-preview-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 88%);
}

.product-preview-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: none;
}

.product-preview-tabs::-webkit-scrollbar { display: none; }

.product-preview-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  color: var(--text-secondary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-size: 0.73rem;
  font-weight: 800;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-preview-tab svg {
  width: 15px;
  height: 15px;
}

.product-preview-tab:hover,
.product-preview-tab.active {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2f6df6 0%, #168eea 55%, #06b6d4 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
}

.product-preview-stage {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

.dummy-preview-label {
  position: absolute;
  z-index: 20;
  top: 14px;
  right: 82px;
  padding: 5px 10px;
  border: 1px solid rgba(21, 183, 106, .25);
  border-radius: 999px;
  color: #087b47;
  background: #e4f8ed;
  box-shadow: 0 8px 20px rgba(24, 128, 77, .1);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.product-browser-shell {
  overflow: hidden;
  border: 1px solid rgba(104, 137, 183, .28);
  border-radius: 23px;
  background: #fff;
  box-shadow:
    0 36px 90px rgba(31, 69, 127, .2),
    0 6px 20px rgba(31, 69, 127, .08);
}

.product-browser-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 15px;
  border-bottom: 1px solid #dce5f1;
  color: #6c7890;
  background: #f8fbff;
}

.product-browser-bar .app-window-dots {
  flex: 0 0 auto;
}

.product-browser-url {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline: auto;
  padding: 5px 13px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  color: #65738c;
  background: #fff;
  font-size: .6rem;
}

.product-browser-url svg {
  width: 11px;
  height: 11px;
  color: #36a06f;
}

.product-browser-user {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0c162b;
  font-size: .5rem;
  font-weight: 800;
}

.product-app-shell {
  height: 670px;
  display: flex;
  color: #0e1b34;
  background: #f3f7fd;
}

.product-app-sidebar {
  width: 58px;
  flex: 0 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 11px 7px;
  border-right: 1px solid #dfe7f1;
  background: #fff;
}

.product-app-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2f6df6, #06b6d4);
  font-size: .62rem;
  font-weight: 900;
}

.product-app-sidebar > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #909bad;
}

.product-app-sidebar > span.active {
  color: #1f65ee;
  background: #eaf1ff;
}

.product-app-sidebar svg {
  width: 15px;
  height: 15px;
}

.product-app-main {
  min-width: 0;
  flex: 1;
}

.product-app-topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #dde6f2;
  background: #fff;
}

.product-app-topbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-app-topbar strong {
  color: #10203a;
  font-size: .83rem;
}

.product-app-topbar small {
  color: #8390a5;
  font-size: .51rem;
}

.product-top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-top-icons > span {
  position: relative;
  color: #7b879b;
  font-size: 1rem;
}

.product-top-icons > span b {
  position: absolute;
  top: -6px;
  right: -7px;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f6df6;
  font-size: .4rem;
}

.product-top-icons > i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #10192d;
  font-size: .5rem;
  font-style: normal;
  font-weight: 800;
}

.product-preview-pane {
  height: calc(100% - 54px);
  padding: 24px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b5c5dc transparent;
}

.product-preview-pane[hidden] {
  display: none !important;
}

.preview-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-pane-head small {
  color: #7a889f;
  font-size: .58rem;
}

.preview-pane-head h3 {
  margin: 2px 0 2px;
  color: #09162f;
  font-size: 1.26rem;
  letter-spacing: -.035em;
}

.preview-pane-head p {
  margin: 0;
  color: #77859b;
  font-size: .62rem;
}

.preview-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.preview-head-actions.wrap {
  flex-wrap: wrap;
}

.preview-head-actions button,
.preview-head-actions span {
  padding: 8px 11px;
  border: 1px solid #d5e0ed;
  border-radius: 8px;
  color: #243654;
  background: #fff;
  font-size: .56rem;
  font-weight: 700;
}

.preview-head-actions span {
  border-radius: 999px;
  color: #2365e7;
  border-color: #bdd1ff;
  background: #eaf1ff;
  font-size: .48rem;
  font-weight: 900;
}

.preview-head-actions .preview-primary-button {
  color: #fff;
  border-color: #2463ed;
  background: #2463ed;
}

.preview-head-actions .preview-success-button {
  color: #0a6a3e;
  border-color: #bce8cf;
  background: #dff8eb;
}

.preview-subtabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #dbe5f1;
  border-radius: 9px;
  background: #fff;
}

.preview-subtabs.seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.preview-subtabs b {
  padding: 8px 5px;
  border-radius: 7px;
  color: #6d7b91;
  text-align: center;
  font-size: .55rem;
}

.preview-subtabs b.active {
  color: #1b5cef;
  background: #e6efff;
  box-shadow: inset 0 0 0 1px #5790ff;
}

.preview-stat-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-stat-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-stat-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-stat-grid article {
  position: relative;
  min-height: 102px;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid #dce5f0;
  border-radius: 13px;
  background: #fff;
}

.preview-stat-grid article::after {
  content: '';
  position: absolute;
  top: -25px;
  right: -19px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e4edfc;
}

.preview-stat-grid article > span {
  display: block;
  color: #687791;
  font-size: .61rem;
  font-weight: 700;
}

.preview-stat-grid strong {
  display: block;
  margin-top: 5px;
  color: #07132b;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.preview-stat-grid strong em {
  font-size: .72rem;
  font-style: normal;
}

.preview-stat-grid strong.small-value {
  font-size: 1.02rem;
}

.preview-stat-grid small {
  display: block;
  margin-top: 7px;
  color: #738198;
  font-size: .54rem;
}

.preview-good { color: #0aa45e !important; }
.preview-danger { color: #e64545 !important; }
.preview-link { color: #1d5def !important; }

.preview-table-card {
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 13px;
  background: #fff;
}

.preview-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e8f2;
}

.preview-table-title > div {
  display: flex;
  flex-direction: column;
}

.preview-table-title b {
  color: #13203a;
  font-size: .66rem;
}

.preview-table-title small {
  color: #7c899c;
  font-size: .5rem;
}

.preview-table-title > span {
  padding: 5px 7px;
  border: 1px solid #c7d9ff;
  border-radius: 7px;
  color: #1c61e8;
  background: #edf3ff;
  font-size: .47rem;
  font-weight: 700;
}

.preview-table {
  display: grid;
  align-items: center;
  font-size: .54rem;
}

.preview-table.preview-cols-6 {
  grid-template-columns: .8fr 1fr 1.1fr 1fr .65fr .65fr;
}

.preview-table.preview-cols-7 {
  grid-template-columns: .8fr .7fr .8fr .7fr 1.45fr .55fr .8fr;
}

.preview-table > b {
  padding: 9px 11px;
  border-bottom: 1px solid #e3eaf3;
  color: #5f6e85;
  background: #fbfcfe;
  font-size: .49rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.preview-table > span {
  min-width: 0;
  overflow: hidden;
  padding: 10px 11px;
  border-bottom: 1px solid #e7edf5;
  color: #26334a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: .46rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.preview-tag.blue { color: #195de4; border: 1px solid #c5d8ff; background: #e8f0ff; }
.preview-tag.green { color: #07884b; border: 1px solid #bfe9d1; background: #e5f8ee; }
.preview-tag.amber { color: #a66500; border: 1px solid #f4dca9; background: #fff3d9; }
.preview-tag.red { color: #c23838; border: 1px solid #f8c8c8; background: #ffe9e9; }
.preview-tag.violet { color: #6932c8; border: 1px solid #d8c7ff; background: #f0eaff; }

.network-preview-stats article:nth-child(1),
.network-preview-stats article:nth-child(2) { border-top: 3px solid #2463ed; }
.network-preview-stats article:nth-child(3) { border-top: 3px solid #14b867; }
.network-preview-stats article:nth-child(4) { border-top: 3px solid #ef4444; }

.preview-traffic-panel {
  padding: 14px;
  border: 1px solid #dce5f0;
  border-radius: 13px;
  background: #fff;
}

.preview-traffic-head,
.preview-traffic-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-traffic-head > div {
  display: flex;
  flex-direction: column;
}

.preview-traffic-head b { color: #13203a; font-size: .7rem; }
.preview-traffic-head small { color: #7e8b9f; font-size: .5rem; }

.preview-traffic-head > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0b9b54;
  font-size: .48rem;
  font-weight: 900;
}

.preview-traffic-head > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20c474;
}

.preview-traffic-select {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  color: #26364f;
  font-size: .55rem;
  font-weight: 700;
}

.preview-traffic-select small { color: #63728a; }

.preview-traffic-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.preview-traffic-values article {
  padding: 12px;
  border-left: 3px solid #2c6df2;
  border-radius: 9px;
  background: #fbfdff;
  box-shadow: inset 0 0 0 1px #e0e8f2;
}

.preview-traffic-values small {
  display: block;
  color: #728099;
  text-align: center;
  font-size: .52rem;
}

.preview-traffic-values strong {
  display: block;
  margin-top: 4px;
  color: #07132b;
  font-size: 1.3rem;
  letter-spacing: -.04em;
}

.preview-traffic-values em { font-size: .68rem; font-style: normal; }

.preview-onu-strip,
.preview-inventory-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.preview-inventory-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.preview-onu-strip article,
.preview-inventory-kpis article {
  padding: 12px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #fff;
}

.preview-onu-strip span,
.preview-inventory-kpis span {
  display: block;
  color: #697891;
  font-size: .52rem;
}

.preview-onu-strip b,
.preview-inventory-kpis strong {
  display: block;
  margin-top: 2px;
  color: #07132b;
  font-size: 1rem;
}

.preview-inventory-kpis small { color: #78869b; font-size: .48rem; }

.preview-split-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}

.preview-payroll-summary {
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 13px;
  background: #fff;
}

.preview-payroll-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-payroll-summary > div > span {
  color: #53627b;
  font-size: .62rem;
  font-weight: 800;
}

.preview-payroll-summary > strong {
  display: block;
  margin: 20px 0 14px;
  color: #09162f;
  font-size: 1.55rem;
  letter-spacing: -.05em;
}

.preview-payroll-summary p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: #6a7890;
  font-size: .55rem;
}

.preview-payroll-summary p b { color: #1a2840; }

.preview-payroll-summary button {
  width: 100%;
  padding: 9px;
  margin-top: 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2463ed;
  font-size: .56rem;
  font-weight: 800;
}

.preview-ticket-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  margin-top: 13px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fff;
}

.preview-ticket-ribbon > div {
  display: flex;
  flex-direction: column;
}

.preview-ticket-ribbon b { color: #16243c; font-size: .62rem; }
.preview-ticket-ribbon small { color: #77859a; font-size: .49rem; }
.preview-ticket-ribbon > span { display: flex; align-items: center; gap: 7px; }
.preview-ticket-ribbon > span b { font-size: .5rem; }

.map-preview-pane {
  overflow: hidden;
  padding: 0;
}

.preview-fake-map {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-color: #355d45;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(171, 205, 135, .7) 0 4%, transparent 4.5%),
    radial-gradient(circle at 79% 30%, rgba(137, 174, 99, .7) 0 5%, transparent 5.5%),
    radial-gradient(circle at 54% 66%, rgba(177, 159, 102, .65) 0 7%, transparent 7.5%),
    linear-gradient(35deg, transparent 35%, rgba(54, 88, 60, .85) 36% 43%, transparent 44%),
    linear-gradient(-25deg, rgba(99, 127, 74, .7) 0 13%, transparent 14% 45%, rgba(97, 123, 76, .7) 46% 58%, transparent 59%),
    repeating-linear-gradient(24deg, #486e4d 0 8px, #426646 8px 17px);
}

.preview-fake-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(83deg, transparent 0 55px, rgba(224, 236, 211, .11) 56px 58px),
    repeating-linear-gradient(-8deg, transparent 0 48px, rgba(230, 236, 216, .08) 49px 51px);
  mix-blend-mode: screen;
}

.preview-map-road {
  position: absolute;
  z-index: 1;
  border-radius: 99px;
  background: #a7a69b;
  box-shadow: 0 0 0 3px rgba(77, 75, 69, .5);
}

.preview-map-road.road-a { width: 120%; height: 22px; left: -8%; top: 46%; transform: rotate(-12deg); }
.preview-map-road.road-b { width: 70%; height: 15px; left: 35%; top: 74%; transform: rotate(21deg); }
.preview-map-road.road-c { width: 56%; height: 13px; left: -8%; top: 17%; transform: rotate(31deg); }

.preview-map-node {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 9px;
  color: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.28);
  font-size: 1rem;
  font-weight: 900;
}

.preview-map-node.green { background: #18b96c; }
.preview-map-node.red { background: #e84141; }
.preview-map-node.blue { background: #315ee9; }

.preview-map-controls {
  position: absolute;
  z-index: 8;
  top: 13px;
  left: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-map-controls button {
  min-width: 32px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  color: #17253d;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  font-size: .65rem;
  font-weight: 800;
}

.preview-map-dialog {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(710px, calc(100% - 100px));
  max-height: calc(100% - 52px);
  overflow: auto;
  padding: 17px;
  border-radius: 14px;
  color: #101d35;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transform: translate(-50%, -50%);
}

.preview-map-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.preview-map-dialog-head h3 { margin: 0; font-size: .83rem; }
.preview-map-dialog-head small { color: #718099; font-size: .48rem; }
.preview-map-dialog-head > div:last-child { display: flex; gap: 4px; }

.preview-map-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px;
}

.preview-map-info-grid article {
  padding: 7px 9px;
  border: 1px solid #e1e8f1;
  border-radius: 7px;
  background: #f4f7fb;
}

.preview-map-info-grid article.wide { grid-column: 1 / -1; }
.preview-map-info-grid small { display: block; color: #728097; font-size: .43rem; font-weight: 800; letter-spacing: .05em; }
.preview-map-info-grid b { display: block; margin-top: 1px; font-size: .55rem; }

.preview-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.preview-map-actions button {
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #2463ed;
  font-size: .49rem;
  font-weight: 800;
}

.preview-map-actions button:first-child { background: #111a2f; }
.preview-map-actions button.wa { background: #20bf6b; }

.preview-connected-box {
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 8px;
}

.preview-connected-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  color: #fff;
  background: #0f1c35;
}

.preview-connected-box > div b { font-size: .55rem; }
.preview-connected-box button { padding: 3px 7px; border: 0; border-radius: 5px; color: #fff; background: #2768ef; font-size: .42rem; }

.preview-connected-box p {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 9px;
  border-bottom: 1px solid #e4eaf2;
  font-size: .48rem;
}

.preview-connected-box p:last-child { border-bottom: 0; }
.preview-connected-box p span { color: #2365e7; font-weight: 800; }
.preview-connected-box p b { color: #0b9b54; }
.preview-connected-box p small { color: #6d7b92; }

.portal-preview-pane { padding: 20px; }

.preview-portal-grid {
  height: 100%;
  display: grid;
  grid-template-columns: .95fr .95fr 1.1fr;
  gap: 14px;
  align-items: center;
}

.preview-portal-side,
.preview-login-form,
.preview-voucher-form {
  min-height: 470px;
  padding: 25px;
  border-radius: 17px;
}

.preview-portal-side {
  color: #fff;
  background: linear-gradient(145deg, #2f6df6, #168eea 55%, #08b9ce);
  box-shadow: 0 18px 45px rgba(37,99,235,.23);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-brand.center { justify-content: center; }

.preview-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.18);
  font-size: .65rem;
  font-weight: 900;
}

.preview-brand b { font-size: .9rem; letter-spacing: -.03em; }

.preview-portal-side > small {
  display: inline-flex;
  margin-top: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #eaffff;
  background: rgba(255,255,255,.13);
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.preview-portal-side h3 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.preview-portal-side > p { color: rgba(255,255,255,.83); font-size: .7rem; }

.preview-portal-side > div:not(.preview-brand) {
  display: flex;
  gap: 10px;
  padding: 11px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: rgba(255,255,255,.1);
}

.preview-portal-side > div:not(.preview-brand) > i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1765e9;
  background: #fff;
  font-style: normal;
}

.preview-portal-side svg { width: 14px; height: 14px; }
.preview-portal-side > div:not(.preview-brand) span { display: flex; flex-direction: column; }
.preview-portal-side > div:not(.preview-brand) b { font-size: .62rem; }
.preview-portal-side > div:not(.preview-brand) small { color: rgba(255,255,255,.75); font-size: .49rem; }

.preview-login-form,
.preview-voucher-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dce5f0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(40,75,127,.12);
}

.preview-login-form > small {
  color: #2262e9;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.preview-login-form h3 { margin: 5px 0 20px; font-size: 1.25rem; }

.preview-login-form label,
.preview-voucher-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: #24334c;
  font-size: .56rem;
  font-weight: 800;
}

.preview-login-form label span,
.preview-voucher-form label span {
  padding: 10px 11px;
  border: 1px solid #d9e3ef;
  border-radius: 9px;
  color: #7c899d;
  background: #fff;
  font-size: .58rem;
  font-weight: 500;
}

.preview-login-form button,
.preview-voucher-form button {
  width: 100%;
  padding: 11px;
  margin-top: 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #2f6df6, #168eea 58%, #06b6d4);
  font-size: .62rem;
  font-weight: 900;
}

.preview-login-form > p,
.preview-voucher-form > small {
  margin: 9px 0 0;
  color: #8b97a9;
  text-align: center;
  font-size: .47rem;
}

.preview-voucher-form .preview-brand { color: #13203a; }
.preview-voucher-form .preview-brand > span { border: 0; background: linear-gradient(135deg,#2f6df6,#06b6d4); }
.preview-voucher-form h3 { margin: 24px 0 5px; font-size: 1.1rem; }
.preview-voucher-form > p { margin: 0 0 10px; color: #75839a; font-size: .58rem; }

.gateway-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(37,99,235,.08), transparent 28%),
    radial-gradient(circle at 94% 75%, rgba(6,182,212,.08), transparent 30%),
    var(--bg-primary);
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.gateway-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.gateway-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg,#2f6df6,#06b6d4);
}

.gateway-card.official::before { background: linear-gradient(90deg,#18b866,#29d681); }
.gateway-card.payment::before { background: linear-gradient(90deg,#7c3aed,#2f6df6); }

.gateway-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gateway-card-head > div {
  min-width: 0;
  flex: 1;
}

.gateway-card-head small {
  display: block;
  color: var(--text-muted);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.gateway-card-head h3 {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

.gateway-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg,#2f6df6,#06b6d4);
}

.gateway-card.official .gateway-icon { background: linear-gradient(135deg,#1bbd68,#0c9d52); }
.gateway-card.payment .gateway-icon { background: linear-gradient(135deg,#7c3aed,#2f6df6); }
.gateway-icon svg { width: 22px; height: 22px; }

.gateway-card-head > i {
  padding: 4px 7px;
  border-radius: 999px;
  color: #1c5ce1;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.1);
  font-size: .45rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.gateway-card.official .gateway-card-head > i {
  color: #087a42;
  border-color: rgba(21,183,106,.24);
  background: rgba(21,183,106,.1);
}

.gateway-card.payment .gateway-card-head > i {
  color: #7541cf;
  border-color: rgba(124,58,237,.24);
  background: rgba(124,58,237,.1);
}

.gateway-card > p {
  margin: 18px 0;
  color: var(--text-secondary);
  font-size: .86rem;
}

.gateway-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.gateway-providers.three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.gateway-providers span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  background: var(--bg-card);
  font-size: .68rem;
  font-weight: 800;
}

.gateway-providers b {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg,#2f6df6,#06b6d4);
  font-size: .58rem;
}

.gateway-card.official .gateway-providers b { background: linear-gradient(135deg,#1dbd69,#0b9c52); }
.gateway-card.payment .gateway-providers b { background: linear-gradient(135deg,#7c3aed,#2f6df6); }

.gateway-card ul {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.gateway-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: .75rem;
}

.gateway-card li svg {
  width: 15px;
  height: 15px;
  color: #15b76a;
  stroke-width: 3;
}

.gateway-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px;
  margin-top: 22px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(37,99,235,.08),rgba(6,182,212,.08));
}

.gateway-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: .72rem;
  font-weight: 750;
}

.gateway-flow span i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg,#2f6df6,#06b6d4);
  font-size: .58rem;
  font-style: normal;
}

.gateway-flow > b { color: var(--primary); }

[data-theme="light"] .gateway-card {
  background: #fff;
  border-color: #dce7f5;
  box-shadow: 0 16px 38px rgba(35,75,132,.09);
}

@media (max-width: 1180px) {
  .preview-portal-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .preview-voucher-form {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 1020px) {
  .gateway-grid { grid-template-columns: 1fr; }
  .gateway-flow { flex-wrap: wrap; }
  .product-app-shell { height: 620px; }
}

@media (max-width: 760px) {
  .product-preview-tabs {
    justify-content: flex-start;
  }

  .product-preview-stage {
    margin-inline: -14px;
  }

  .product-browser-shell {
    overflow-x: auto;
    border-radius: 15px;
  }

  .product-browser-bar,
  .product-app-shell {
    min-width: 970px;
  }

  .product-app-shell {
    width: 970px;
    height: 600px;
  }

  .dummy-preview-label { right: 20px; }

  .gateway-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .gateway-flow > b { display: none; }
}

@media (max-width: 560px) {
  .gateway-card { padding: 22px; }
  .gateway-card-head { align-items: flex-start; flex-wrap: wrap; }
  .gateway-card-head > i { margin-left: 60px; }
  .gateway-providers,
  .gateway-providers.three { grid-template-columns: 1fr; }
}
