/* ============================================================
   SVG Cable TV Network — Component Styles
   ============================================================ */

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(7,14,43,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration-base) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(7,14,43,0.96);
  border-bottom-color: rgba(30,136,229,0.3);
  box-shadow: 0 4px 28px rgba(0,0,0,0.6);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
}

/* ── SVGCN Brand Logo & Animation System (Phase 2 & 3) ───────── */
.nav-logo-container,
.brand-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(4, 10, 24, 0.4);
  padding: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-logo {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 159, 227, 0.35));
  transition: transform 0.3s var(--ease-out), filter 0.3s ease;
  will-change: transform, filter;
}

/* Subtle Signal Sweep Animation */
.nav-logo-container::after,
.brand-logo-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(0, 210, 255, 0.22) 50%,
    rgba(255, 200, 50, 0.15) 75%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: logoSignalSweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(0, 180, 255, 0.65)) drop-shadow(0 0 8px rgba(255, 160, 0, 0.45));
}

.nav-brand:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.nav-brand:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-400);
  white-space: nowrap;
}

/* Keyframe Animations for SVGCN Brand Signal & Sweep */
@keyframes logoSignalSweep {
  0% {
    left: -150%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    left: 200%;
    opacity: 0;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes logoPulseGlow {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(0, 159, 227, 0.35));
  }
  50% {
    filter: drop-shadow(0 4px 16px rgba(0, 210, 255, 0.6)) drop-shadow(0 0 10px rgba(255, 170, 0, 0.4));
  }
}

/* Ensure completely non-blocking page load (0 full-screen loaders) */
.brand-preloader,
.loading-page {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Footer & Portal Logo Styling (Phase 8 & 10) ─────────────── */
.footer-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 2px 10px rgba(0, 159, 227, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.7)) drop-shadow(0 0 8px rgba(255, 160, 0, 0.4));
}

.portal-logo,
.admin-logo {
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 159, 227, 0.35));
  transition: transform 0.3s ease;
}

.portal-logo:hover,
.admin-logo:hover {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo-container::after,
  .brand-logo-wrapper::after,
  .brand-preloader,
  .preloader-bar::after {
    animation: none !important;
  }
  .brand-preloader {
    display: none !important;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(8, 18, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: #00c8ff;
  background: rgba(0, 159, 227, 0.2);
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 159, 227, 0.25);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

#btn-customer-login {
  border-radius: var(--radius-full);
  background: rgba(10, 20, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#btn-customer-login:hover {
  background: rgba(20, 35, 70, 0.9);
  border-color: rgba(0, 159, 227, 0.5);
}

#btn-get-connection {
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #009fe3 0%, #ff7a00 100%);
  border: none;
  color: #ffffff;
  padding: 8px 18px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 159, 227, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
}

#btn-get-connection:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 122, 0, 0.5);
}

.nav-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.nav-menu-btn:hover { background: rgba(30, 136, 229, 0.15); border-color: var(--blue-400); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(6, 12, 34, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(30, 136, 229, 0.25);
  padding: var(--space-4) var(--space-4) var(--space-6);
  z-index: calc(var(--z-nav) - 1);
  transform: translateY(-12px);
  opacity: 0;
  transition: all var(--duration-base) var(--ease-out);
  pointer-events: none;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.nav-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  min-height: 44px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.nav-mobile-link.is-active { 
  color: #00c8ff; 
  background: rgba(0, 159, 227, 0.15);
  border-left: 3px solid #00c8ff;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-mobile-menu { display: flex; flex-direction: column; }
}

@media (max-width: 768px) {
  .navbar .container {
    gap: var(--space-3);
  }
  .nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  #btn-customer-login,
  .nav-actions .btn-secondary {
    display: none !important;
  }
  .nav-menu-btn {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .navbar .container {
    padding-inline: var(--space-3);
    height: 60px;
  }
  .nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .nav-brand-name {
    font-size: 0.88rem;
  }
  .nav-brand-sub {
    font-size: 8.5px;
  }
  #btn-get-connection,
  .nav-actions .btn-primary {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .nav-brand-name {
    font-size: 0.8rem;
  }
  .nav-brand-sub {
    font-size: 7.5px;
  }
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  background: var(--grad-hero);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-card);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(21,101,192,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,106,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-400);
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
}

.page-hero-title { margin-bottom: var(--space-4); }
.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* ── Hero (Homepage) ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
}

.hero-glow-blue {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-glow-orange {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: pulse-glow 6s ease-in-out infinite 3s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-400);
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 580px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-badge-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-badge-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  max-width: 64px;
  line-height: 1.3;
}

.hero-badge-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

@media (max-width: 768px) {
  .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: var(--space-6);
    background: rgba(16, 29, 66, 0.4);
    border: 1px solid rgba(30, 136, 229, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
  }
  .hero-badge-divider { display: none; }
  .hero-badge-item {
    justify-content: center;
    text-align: center;
    padding: var(--space-2);
  }
  .hero-badge-label { max-width: none; }
}

/* ── Stats Ticker ──────────────────────────────────────────── */
.stats-ticker {
  background: rgba(21,101,192,0.08);
  border-top: 1px solid rgba(30,136,229,0.15);
  border-bottom: 1px solid rgba(30,136,229,0.15);
  padding-block: var(--space-4);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: var(--space-12);
  animation: ticker 30s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  flex-shrink: 0;
}

.ticker-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.ticker-value {
  font-weight: 700;
  color: var(--blue-300);
}

/* ── Services Grid ─────────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  position: relative;
  text-align: center;
  cursor: pointer;
}

.service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.service-card-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-2xl);
  opacity: 0.3;
  transition: opacity var(--duration-base) var(--ease-out);
}

.service-card:hover .service-card-icon::after { opacity: 0.6; }

.service-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease-out);
}

.service-card-link:hover { gap: var(--space-2); color: var(--blue-300); }

/* ── Plan Card ─────────────────────────────────────────────── */
.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-card);
}

.plan-card.featured {
  border-color: var(--orange-500);
  background: linear-gradient(145deg, rgba(255,106,0,0.08), rgba(7,14,43,0.8));
  box-shadow: var(--shadow-glow-orange);
  transform: scale(1.03);
}

.plan-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.plan-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-orange);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,106,0,0.4);
}

.plan-type {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.plan-price-currency {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--orange-400);
}

.plan-price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.plan-price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.plan-speed {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(30,136,229,0.12);
  border: 1px solid rgba(30,136,229,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: var(--space-6);
}

.plan-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-block: var(--space-6);
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.plan-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,200,83,0.15);
  color: var(--green-400);
}

.plan-feature-x {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}


/* ── Quick Pay Section ─────────────────────────────────────── */
.quick-pay-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10);
  background: linear-gradient(145deg, rgba(21,101,192,0.1), rgba(255,106,0,0.06));
  border: 1px solid rgba(30,136,229,0.2);
  border-radius: var(--radius-2xl);
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--blue-600);
  padding: var(--space-3);
  background: #fff;
}

.qr-code-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Why Choose Us ─────────────────────────────────────────── */
.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
}

/* ── Provider Card ─────────────────────────────────────────── */
.provider-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-base) var(--ease-out);
}

.provider-card:hover {
  border-color: var(--border-card);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.provider-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(30,136,229,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xs);
  color: var(--blue-400);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.social-btn:hover {
  background: rgba(30,136,229,0.15);
  border-color: rgba(30,136,229,0.3);
  color: var(--blue-400);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-link:hover { color: var(--blue-400); padding-left: var(--space-1); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(30,136,229,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.footer-contact-text strong {
  display: block;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal a:hover { color: var(--blue-400); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .quick-pay-card { grid-template-columns: 1fr; text-align: center; }
}

/* ── Customer Portal Layout & Mobile Drawer ────────────────── */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  position: relative;
  width: 100%;
}

.portal-sidebar {
  background: var(--navy-950);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-6) var(--space-4);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 90;
}

.portal-backdrop, .admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: calc(var(--z-modal) - 2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portal-backdrop.is-open, .admin-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.portal-mobile-header, .admin-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(7, 14, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 136, 229, 0.2);
  padding: 0 var(--space-4);
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-nav);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.portal-mobile-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.portal-mobile-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.portal-mobile-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.portal-toggle-btn, .admin-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-toggle-btn:hover, .admin-toggle-btn:hover {
  background: rgba(30, 136, 229, 0.15);
  border-color: var(--blue-400);
}

.sidebar-section {
  margin-bottom: var(--space-2);
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  min-height: 44px;
}

.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-link.is-active {
  background: rgba(30,136,229,0.12);
  color: var(--blue-300);
  border: 1px solid rgba(30,136,229,0.2);
}

.sidebar-link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--grad-brand);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--orange-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.portal-main {
  padding: var(--space-8);
  overflow-y: auto;
}

/* ── Admin Layout ──────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.admin-sidebar {
  background: var(--navy-950);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 90;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.admin-main {
  padding: var(--space-6);
  background: rgba(255,255,255,0.01);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .portal-layout, .admin-layout { 
    grid-template-columns: 1fr !important;
    padding-top: 0 !important;
  }
  .portal-mobile-header, .admin-mobile-header {
    display: flex !important;
  }
  .portal-sidebar, .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -320px !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: var(--z-modal) !important;
    background: rgba(5, 10, 26, 0.98) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-right: 1px solid rgba(30, 136, 229, 0.3) !important;
    box-shadow: none;
    padding-top: var(--space-5) !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease !important;
  }
  .portal-sidebar.is-open, .admin-sidebar.is-open {
    left: 0 !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(30, 136, 229, 0.3) !important;
  }
  .portal-main, .admin-main {
    padding: var(--space-4) var(--space-4) var(--space-8) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ── Notification Bar ──────────────────────────────────────── */
.notif-bar {
  background: linear-gradient(90deg, rgba(21,101,192,0.2), rgba(255,106,0,0.1));
  border-bottom: 1px solid rgba(30,136,229,0.2);
  padding: var(--space-2) var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.notif-bar a { color: var(--orange-400); font-weight: 600; text-decoration: underline; }

/* ── Gauge / Donut ─────────────────────────────────────────── */
.gauge-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin-inline: auto;
}

.gauge-svg { transform: rotate(-90deg); }

.gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.gauge-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1;
}

.gauge-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Bill Card ─────────────────────────────────────────────── */
.bill-card {
  background: linear-gradient(145deg, rgba(21,101,192,0.15), rgba(13,27,62,0.8));
  border: 1px solid rgba(30,136,229,0.25);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.bill-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,136,229,0.1), transparent);
}

.bill-amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-text-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Due Date Countdown ────────────────────────────────────── */
.countdown {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.countdown-unit {
  text-align: center;
  min-width: 48px;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

.countdown-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: var(--space-1);
}

.countdown-colon {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ── Ticket / Complaint ────────────────────────────────────── */
.ticket-card {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.ticket-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
}

.ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot.done { background: var(--green-500); border-color: var(--green-500); }
.timeline-dot.active { background: var(--blue-600); border-color: var(--blue-600); }

/* ── UPI Payment ───────────────────────────────────────────── */
.upi-card {
  text-align: center;
  padding: var(--space-10);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
}

.payment-method-btn:hover,
.payment-method-btn.is-active {
  border-color: var(--blue-500);
  background: rgba(30,136,229,0.08);
  color: var(--blue-300);
}

/* ── Data Table Controls ───────────────────────────────────── */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.table-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--blue-500);
  background: rgba(30,136,229,0.1);
  color: var(--blue-300);
}

/* ── Success Animation ─────────────────────────────────────── */
.success-animation {
  text-align: center;
  padding: var(--space-12);
}

.success-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,200,83,0.2), rgba(0,230,118,0.1));
  border: 2px solid rgba(0,200,83,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  animation: success-pop 0.5s var(--ease-spring) forwards;
  color: var(--green-400);
  box-shadow: 0 0 40px rgba(0,200,83,0.3);
}

/* ── Admin Dashboard ───────────────────────────────────────── */
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.admin-greeting {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.admin-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ── Admin KPI & Metric Cards ──────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-400);
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-change {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.kpi-change.up { color: var(--green-400); }
.kpi-change.down { color: var(--text-muted); }

/* ── Customer Portal Metric Grid & Cards ───────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1199px) {
  .kpi-grid, .metric-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 580px) {
  .kpi-grid, .metric-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: var(--space-5);
  }
  .kpi-card, .metric-card {
    padding: 12px 10px;
    border-radius: var(--radius-lg);
  }
  .kpi-value {
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 360px) {
  .kpi-grid, .metric-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* ── Responsive Tables & Wrappers ──────────────────────────── */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

.admin-table,
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 440px;
}

.admin-table th,
.ledger-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(30, 136, 229, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.admin-table td,
.ledger-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-table tr:hover td,
.ledger-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Chart Card ────────────────────────────────────────────── */
.chart-card {
  padding: var(--space-6);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.chart-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.chart-legend {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ── Action Row ────────────────────────────────────────────── */
.action-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Misc ──────────────────────────────────────────────────── */
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.news-ticker-wrapper {
  background: rgba(255,106,0,0.06);
  border-top: 1px solid rgba(255,106,0,0.15);
  border-bottom: 1px solid rgba(255,106,0,0.15);
  padding-block: var(--space-3);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.news-ticker-label {
  flex-shrink: 0;
  background: var(--orange-500);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  margin-right: var(--space-4);
}

.news-ticker-track {
  display: flex;
  gap: var(--space-12);
  animation: ticker 25s linear infinite;
  width: max-content;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.loading-page {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-page.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(30,136,229,0.2);
  border-top-color: var(--blue-500);
  border-right-color: var(--orange-500);
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-4);
}

/* ═══ Missing utility classes (Bug Fixes) ═══════════════════════ */

/* badge-yellow - used in billing pages */
.badge-yellow {
  background: rgba(255,193,7,0.15);
  color: #ffca28;
  border: 1px solid rgba(255,193,7,0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* badge-gray */
.badge-gray {
  background: rgba(150,150,170,0.12);
  color: #aab4be;
  border: 1px solid rgba(150,150,170,0.2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* btn-success - used in admin Mark Paid */
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg,#00897b,#00c853);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,200,83,.25);
  transition: all .2s ease;
}
.btn-success:hover { box-shadow: 0 6px 20px rgba(0,200,83,.4); transform: translateY(-1px); }
.btn-success.btn-sm { padding: 4px 12px; font-size: .78rem; }

/* input-suffix-btn */
.input-suffix-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--blue-500);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.input-suffix-btn:hover { background: var(--blue-400); }

/* bill-row grid */
.bill-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.bill-row:hover { background: rgba(255,255,255,.02); }

@media(max-width:768px){
  .bill-row { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ── Premium Living Room & Smart TV Home Entertainment Hero ──── */
/* ── Animated Hero Brand Graphic Showcase ──────────────────────── */
.hero-brand-showcase {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  perspective: 1200px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Multi-layer Ambient Backlight Glowing Ring */
.brand-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  border-radius: 30px;
  background: radial-gradient(ellipse at 45% 45%, rgba(0, 200, 255, 0.42) 0%, rgba(255, 122, 0, 0.32) 48%, rgba(0, 159, 227, 0.15) 75%, transparent 100%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  animation: brandGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes brandGlowPulse {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.96);
    filter: blur(40px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
    filter: blur(52px);
  }
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.01);
    filter: blur(46px);
  }
}

/* 3D Floating / Tilting Card Container */
.brand-card-3d {
  position: relative;
  z-index: 3;
  width: 100%;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(16, 29, 66, 0.75) 0%, rgba(5, 12, 28, 0.9) 60%, rgba(10, 22, 48, 0.8) 100%);
  border: 1.5px solid rgba(0, 200, 255, 0.4);
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 200, 255, 0.25),
    0 0 25px rgba(255, 122, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: heroBrandFloat 5s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.brand-card-3d:hover {
  border-color: rgba(0, 220, 255, 0.8);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(0, 200, 255, 0.45),
    0 0 35px rgba(255, 122, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes heroBrandFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
  100% {
    transform: translateY(0px) rotate(-0.3deg);
  }
}

/* Image Wrapper & Specular Shimmer */
.brand-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #020612;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.hero-brand-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.brand-card-3d:hover .hero-brand-img {
  transform: scale(1.02);
  filter: brightness(1.05) contrast(1.03);
}

/* Animated Light Sweep Shimmer across the Fiber Graphic */
.brand-light-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(0, 200, 255, 0.22) 50%,
    rgba(255, 150, 0, 0.18) 55%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 5;
  animation: brandLightSweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes brandLightSweep {
  0% {
    left: -150%;
  }
  35% {
    left: 180%;
  }
  100% {
    left: 180%;
  }
}

/* Glowing Corner Accents */
.brand-corner-accent {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #00c8ff;
  border-style: solid;
  pointer-events: none;
  z-index: 6;
  opacity: 0.85;
}
.corner-tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.corner-tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; border-color: #ff7a00; }
.corner-bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; border-color: #ff7a00; }
.corner-br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

/* Floating Sparkle Particles */
.brand-sparkle-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00c8ff;
  box-shadow: 0 0 10px #00c8ff, 0 0 20px #00c8ff;
  pointer-events: none;
  z-index: 7;
  animation: sparkleTwinkle 3s ease-in-out infinite alternate;
}
.dot-1 { top: 18%; right: 15%; animation-delay: 0s; background: #00e5ff; }
.dot-2 { top: 32%; left: 8%; animation-delay: 1.2s; background: #ff9100; box-shadow: 0 0 10px #ff9100; }
.dot-3 { bottom: 22%; right: 10%; animation-delay: 2.1s; background: #00e676; box-shadow: 0 0 10px #00e676; }

@keyframes sparkleTwinkle {
  0% { transform: scale(0.6); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* TV Screen Bottom Color Legend */
.tv-screen-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.52rem;
  color: #94a3b8;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dot-red { background: #ff3b30; }
.dot-purple { background: #af52de; }
.dot-blue { background: #007aff; }
.dot-green { background: #34c759; }
.dot-orange { background: #ff9500; }
.dot-cyan { background: #32ade6; }

/* Living Room Media Console & Soundbar */
.living-room-console {
  position: relative;
  z-index: 3;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 100px);
  margin-left: auto;
}

.modern-soundbar {
  width: 58%;
  height: 12px;
  background: linear-gradient(180deg, #1c2742, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  position: relative;
}

.soundbar-mesh {
  position: absolute;
  inset: 2px 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 4px);
  border-radius: 2px;
}

.soundbar-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00c8ff;
  box-shadow: 0 0 8px #00c8ff;
  z-index: 2;
}

.console-table-shelf {
  width: 95%;
  height: 8px;
  margin-top: 4px;
  background: linear-gradient(90deg, transparent, #152244 15%, #1e3160 50%, #152244 85%, transparent);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.console-decorations {
  width: 90%;
  display: flex;
  justify-content: space-between;
  margin-top: -12px;
  padding: 0 12px;
  pointer-events: none;
}

.console-candle {
  font-size: 0.8rem;
  filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.8));
}

/* Foreground Luxury Sofa & Center Coffee Table */
.living-room-foreground {
  position: absolute;
  bottom: -22px;
  left: -20px;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 6;
}

.foreground-sofa-corner {
  width: 140px;
  height: 80px;
  background: radial-gradient(ellipse at bottom left, #050a18 0%, #030610 70%, transparent 100%);
  border-radius: 40px 40px 0 0;
  filter: blur(1px);
  box-shadow: 10px -10px 30px rgba(0, 0, 0, 0.85);
}

.foreground-round-table {
  width: 90px;
  height: 32px;
  background: radial-gradient(ellipse at center, #101c38 0%, #070d1e 80%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-bottom: 2px;
  margin-right: 40%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-candle-dot {
  width: 6px;
  height: 6px;
  background: #ffb300;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffb300, 0 0 15px rgba(255, 179, 0, 0.6);
}

/* ── Bottom 5-Feature Bar Underneath Hero ────────────────────── */
.hero-features-bar-section {
  position: relative;
  z-index: 10;
  margin-top: -24px;
  padding-bottom: var(--space-8);
}

.hero-features-bar {
  background: rgba(5, 14, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 159, 227, 0.3);
  border-radius: var(--radius-2xl);
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 159, 227, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease-out);
}

.hero-feature-item:hover {
  background: rgba(0, 159, 227, 0.1);
  transform: translateY(-2px);
}

.feat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00c8ff;
  border: 1.5px solid rgba(0, 200, 255, 0.4);
  background: rgba(0, 159, 227, 0.15);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.feat-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.feat-subtitle {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Premium Circular Floating Action Buttons (FAB Experience) ── */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease,
              background 0.28s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.fab-btn:active {
  transform: scale(0.92) !important;
}

.fab-btn:focus-visible {
  outline: 3px solid #00d2ff !important;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .fab-container {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 8px;
  }
  .fab-btn {
    width: 44px;
    height: 44px;
  }
  .fab-call svg,
  .fab-whatsapp svg {
    width: 22px !important;
    height: 22px !important;
  }
  .fab-tooltip {
    display: none !important;
  }
}

/* ── Premium Glassmorphic Call Button (Neon Blue) ── */
.fab-call {
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.94) 0%, rgba(0, 70, 190, 0.90) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 210, 255, 0.65);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.45),
              0 0 14px rgba(0, 195, 255, 0.35);
  animation: callPulseGlow 3s infinite ease-in-out,
             fabFloatBob 3.6s infinite ease-in-out;
}

.fab-call:hover {
  transform: scale(1.10) translateY(-2px);
  background: linear-gradient(135deg, rgba(20, 150, 255, 0.98) 0%, rgba(0, 90, 220, 0.95) 100%);
  border-color: rgba(0, 240, 255, 0.95);
  box-shadow: 0 12px 32px rgba(0, 119, 255, 0.65),
              0 0 28px rgba(0, 210, 255, 0.8),
              inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.fab-call svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.fab-call:hover svg {
  transform: scale(1.08) rotate(4deg);
}

/* ── Premium Glassmorphic WhatsApp Button (Neon Emerald) ── */
.fab-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.94) 0%, rgba(18, 140, 126, 0.90) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(77, 255, 145, 0.65);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
              0 0 14px rgba(37, 211, 102, 0.35);
  animation: waPulseGlow 3s infinite ease-in-out 1.5s,
             fabFloatBob 3.6s infinite ease-in-out 1.8s;
}

.fab-whatsapp:hover {
  transform: scale(1.10) translateY(-2px);
  background: linear-gradient(135deg, rgba(46, 230, 114, 0.98) 0%, rgba(23, 160, 142, 0.95) 100%);
  border-color: rgba(100, 255, 160, 0.95);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65),
              0 0 28px rgba(37, 211, 102, 0.8),
              inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.fab-whatsapp svg {
  width: 27px;
  height: 27px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.fab-whatsapp:hover svg {
  transform: scale(1.08);
}

/* ── Tooltip on Hover ── */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  background: rgba(4, 10, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 180, 255, 0.2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* ── Keyframe Animations ── */
@keyframes callPulseGlow {
  0% {
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.45),
                0 0 0 0 rgba(0, 210, 255, 0.75),
                0 0 14px rgba(0, 195, 255, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(0, 119, 255, 0.55),
                0 0 0 14px rgba(0, 210, 255, 0),
                0 0 20px rgba(0, 210, 255, 0.5);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.45),
                0 0 0 0 rgba(0, 210, 255, 0),
                0 0 14px rgba(0, 195, 255, 0.35);
  }
}

@keyframes waPulseGlow {
  0% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
                0 0 0 0 rgba(37, 211, 102, 0.75),
                0 0 14px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55),
                0 0 0 14px rgba(37, 211, 102, 0),
                0 0 20px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
                0 0 0 0 rgba(37, 211, 102, 0),
                0 0 14px rgba(37, 211, 102, 0.35);
  }
}

@keyframes fabFloatBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3.5px);
  }
}

/* Backward compatibility aliases */
.floating-contact-stack { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.float-btn-whatsapp { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(37,211,102,0.95), rgba(18,140,126,0.9)); color: #fff !important; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); animation: waPulseGlow 3s infinite ease-in-out; text-decoration: none; transition: transform 0.25s ease; border: 1.5px solid rgba(77,255,145,0.65); }
.float-btn-whatsapp:hover { transform: scale(1.1) translateY(-2px); }
.float-btn-phone { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(0,136,255,0.95), rgba(0,70,190,0.9)); color: #fff !important; box-shadow: 0 8px 24px rgba(0, 119, 255, 0.45); animation: callPulseGlow 3s infinite ease-in-out; text-decoration: none; transition: transform 0.25s ease; border: 1.5px solid rgba(0,210,255,0.65); }
.float-btn-phone:hover { transform: scale(1.1) translateY(-2px); }

/* ── Responsive Enhancements ────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-features-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-entertainment-stage {
    max-width: 580px;
  }
  .hero-features-bar-section {
    margin-top: 0;
    padding-top: var(--space-4);
  }
  .hero-features-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-entertainment-stage {
    max-width: 100%;
  }
  .living-room-backdrop {
    padding: 16px 12px 26px;
  }
  .tv-channel-matrix {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .feat-title { font-size: 0.72rem; }
  .feat-subtitle { font-size: 0.62rem; }
  .fab-container, .floating-contact-stack {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  .fab-call, .float-btn-phone,
  .fab-whatsapp, .float-btn-whatsapp {
    width: 44px;
    height: 44px;
  }
  .fab-call svg, .float-btn-phone svg {
    width: 20px;
    height: 20px;
  }
  .fab-whatsapp svg, .float-btn-whatsapp svg {
    width: 20px;
    height: 20px;
  }
  .fab-tooltip { display: none; }
}

@media (max-width: 480px) {
  .tv-channel-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-features-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 14px;
  }
  .hero-feature-item {
    padding: 6px 8px;
  }
}

@media (max-width: 390px) {
  .fab-container, .floating-contact-stack {
    bottom: 14px;
    right: 12px;
    gap: 6px;
  }
  .fab-call, .float-btn-phone,
  .fab-whatsapp, .float-btn-whatsapp {
    width: 40px;
    height: 40px;
  }
  .fab-call svg, .float-btn-phone svg,
  .fab-whatsapp svg, .float-btn-whatsapp svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-ambient-backlight,
  .popcorn-bowl {
    animation: none !important;
  }
}

/* ── Back to Top Floating Button ───────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--blue-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(30, 136, 229, 0.2);
}

@media (max-width: 768px) {
  .back-to-top {
    display: none !important;
  }
}

body:has(.admin-layout) .back-to-top,
body:has(.portal-layout) .back-to-top {
  display: none !important;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-blue);
}

/* ── Button Loading State ──────────────────────────────────── */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Copy Tooltip Badge ────────────────────────────────────── */
.copy-badge {
  cursor: pointer;
  transition: transform var(--duration-fast), border-color var(--duration-fast);
}

.copy-badge:hover {
  transform: scale(1.03);
  border-color: var(--blue-400);
}

/* ── Navbar Scrolled Glassmorphic State ─────────────────────── */
.navbar.is-scrolled {
  background: rgba(5, 10, 24, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(30, 136, 229, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ── Auth Cards & Modals Responsive ─────────────────────────── */
.auth-wrapper {
  width: 100%;
  max-width: 460px;
  padding: var(--space-5);
  margin-inline: auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-glow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: var(--space-3);
  }
  .auth-card {
    padding: var(--space-6) var(--space-4) !important;
    border-radius: var(--radius-xl);
  }
}

/* ── Customer Modal Action Bar (Non-clipping, Flexible & Touch-friendly) ── */
.customer-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: var(--space-4);
  width: 100%;
}

.customer-action-bar .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  text-decoration: none;
  flex: 1 1 auto;
  min-width: fit-content;
  box-sizing: border-box;
  gap: 8px;
}

.customer-action-bar .btn-primary {
  flex: 1.3 1 auto;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

.customer-action-bar .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
  transform: translateY(-1px);
}

.customer-action-bar .btn-secondary {
  background: rgba(30, 136, 229, 0.08);
  color: var(--blue-300);
  border: 1.5px solid rgba(30, 136, 229, 0.45);
}

.customer-action-bar .btn-secondary:hover {
  background: rgba(30, 136, 229, 0.18);
  border-color: var(--blue-400);
  color: #fff;
  transform: translateY(-1px);
}

.customer-action-bar .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}

.customer-action-bar .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .customer-action-bar {
    flex-direction: column;
    gap: 10px;
  }
  .customer-action-bar .btn {
    width: 100%;
    min-width: 100%;
  }
}

