/* =============================================
   MSCFiberNet - ACT Fibernet Inspired Style
   ============================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800;900&family=Jost:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #EE2C49;         /* ACT Red */
  --primary-hover: #B7132C;
  --primary-soft: rgba(238, 44, 73, 0.08);
  --dark: #111827;            /* Slate Dark */
  --dark-hover: #030712;
  --bg-light: #FFFFFF;
  --bg-gray: #F8F9F9;         /* ACT Off-white */
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  
  --success: #27AE60;         /* ACT Green */
  --warning: #F59E0B;
  
  --font-primary: 'Hanken Grotesk', sans-serif;
  --font-secondary: 'Jost', sans-serif;
  --nav-height: 80px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-primary);
  background: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

body.page-loaded {
  opacity: 1;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.header-top {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top-links {
  display: flex;
  gap: 20px;
}

.header-top-links a {
  color: rgba(255,255,255,0.7);
}

.header-top-links a:hover {
  color: #fff;
}

.navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-symbol {
  font-size: 1.8rem;
  color: var(--primary);
}

.logo-text {
  font-family: var(--font-secondary);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

.nav-menu-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* City Selector Dropdown */
.city-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.city-selector:hover {
  border-color: var(--primary);
  background: #fff;
}

.city-selector i {
  color: var(--primary);
  font-size: 0.8rem;
}

.city-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
}

.city-selector.active .city-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.city-option {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.city-option:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pay-bill {
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
}

.btn-pay-bill:hover {
  background: var(--dark);
  color: #fff;
}

.btn-buy-now {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(238, 44, 73, 0.2);
}

.btn-buy-now:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* =============================================
   HERO SECTION (ACT STYLE)
   ============================================= */
.hero-section {
  position: relative;
  background: var(--bg-gray);
  padding: 60px 5%;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-tag {
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 580px;
  line-height: 1.6;
}

/* Hero Inquiry Form Card (Right) */
.hero-form-card {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  border: 1px solid var(--border);
}

.hero-form-title {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.hero-form-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group-floating {
  position: relative;
  margin-bottom: 16px;
}

.form-control-float {
  width: 100%;
  height: 48px;
  padding: 14px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: var(--bg-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control-float:focus {
  border-color: var(--primary);
  background: #fff;
}

.hero-form-submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-form-submit:hover {
  background: var(--primary-hover);
}

/* =============================================
   ACTION QUICK LINKS BAR
   ============================================= */
.action-bar {
  padding: 0 5%;
  margin-top: -40px;
  position: relative;
  z-index: 100;
}

.action-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.action-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-item:last-child {
  border-right: none;
}

.action-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.action-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark);
}

.action-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 80px 5%;
}

.section-bg {
  background: var(--bg-gray);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* =============================================
   BROADBAND PLANS LAYOUT (ACT STYLE)
   ============================================= */
.pack-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.pack-tab-btn {
  padding: 10px 24px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.pack-tab-btn.active, .pack-tab-btn:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.plans-matrix-container {
  margin-top: 20px;
}

/* Symmetrical Speed Highlight Section */
.symmetrical-section {
  background: var(--dark);
  color: #fff;
  padding: 80px 5%;
  overflow: hidden;
  position: relative;
}

.symmetrical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.symmetrical-title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.symmetrical-title span {
  color: var(--primary);
}

.symmetrical-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.speedometer-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.speed-dial-wrap {
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.06);
  border-top-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.speed-dial-value {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-secondary);
  color: #fff;
}

.speed-dial-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 700;
}

/* =============================================
   PARTNERS & ENTERTAINMENT SECTION
   ============================================= */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.partner-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partner-logo-box {
  width: 50px; height: 50px;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.partner-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  width: 100%;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-gray);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #17191C;
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 0;
  font-size: 0.88rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
}

.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: #fff;
}

/* =============================================
   BOOKING MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 36px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--primary);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu-wrap { display: none; }
  .action-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .action-item { border-bottom: 1px solid var(--border); }
  .action-item:nth-child(even) { border-right: none; }
  .symmetrical-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .action-bar-inner { grid-template-columns: 1fr; }
  .action-item { border-right: none !important; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   PLANS MATRIX LAYOUT & ELEMENTS (IMAGE SPECIFIC)
   ============================================= */
.plan-matrix-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #fff;
  margin-top: 24px;
}

.plan-matrix-wrapper::-webkit-scrollbar {
  height: 6px;
}
.plan-matrix-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.plan-matrix {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: #fff;
}

/* Speed header row styling */
.plan-matrix thead tr.speed-header-row th {
  background: #111827;
  color: #fff;
  padding: 0;
  border: none;
}

/* Yellow-green speed block (top-left corner) */
.speed-header-row th:first-child {
  background: #D4E000 !important;
  border-radius: 8px 0 0 0;
}

.speed-label-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}

.speed-label-cell .bolt-icon {
  font-size: 1.3rem;
}

/* Columns dark red/burgundy backgrounds */
.speed-col-header {
  background: #8B0018 !important; /* Burgundy speed columns */
  padding: 14px 12px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.speed-col-header:last-child {
  border-radius: 0 8px 0 0;
}

.speed-mbps {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
}

.speed-unit-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-top: 3px;
}

/* Pack rows */
.plan-matrix tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.plan-matrix tbody tr:last-child {
  border-bottom: none;
}

.plan-matrix tbody tr:hover {
  background: var(--bg-gray);
}

/* Left pack name cell (dark slate gray background) */
.pack-name-cell {
  background: #3D3D3D; /* Slate gray row headers */
  padding: 20px 22px;
  min-width: 220px;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.plan-matrix tbody tr:hover .pack-name-cell {
  background: #2D2D2D;
}

.pack-name-cell .pack-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #D4E000 !important; /* Yellow-green title */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pack-name-cell .pack-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.4;
}

/* Price cells style */
.price-cell {
  text-align: center;
  padding: 20px 10px;
  vertical-align: middle;
  border-left: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.price-cell:hover {
  background: rgba(238, 44, 73, 0.04);
}

.price-cell.selected {
  background: rgba(238, 44, 73, 0.08);
}

.plan-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  outline: none;
}

.plan-radio:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.plan-radio:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* Bottom Buy Now row */
.matrix-buy-row td {
  background: var(--bg-gray);
  padding: 14px 10px;
  text-align: center;
  border-left: 1px solid var(--border);
  border-top: 2px solid var(--border);
}

.matrix-buy-btn {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.4;
  pointer-events: none;
}

.matrix-buy-btn.active {
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 4px 10px rgba(238, 44, 73, 0.2);
}

.matrix-buy-btn.active:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.matrix-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  font-style: italic;
}

/* =============================================
   SCROLL REVEAL SMOOTH TRANSITIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
/* =============================================
   PLAN CATEGORIES SELECTOR TABS
   ============================================= */
.pack-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 10px;
  flex-wrap: wrap;
  max-width: 900px;
}

.pack-tab-btn {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.pack-tab-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.pack-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(238, 44, 73, 0.25);
}

/* =============================================
   STACKED DECK OVERLAPPING PLANS CARDS
   ============================================= */
.stacked-plans-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 40px 30px 60px;
  margin: 0 auto;
  overflow-x: auto;
  min-height: 520px;
  max-width: 1200px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

/* Custom scrollbar for desktop row overflow */
.stacked-plans-row::-webkit-scrollbar {
  height: 6px;
}
.stacked-plans-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.plan-card-stacked {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px 28px;
  width: 285px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-left: -35px; /* Creates the overlapping deck card layer effect */
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 5px solid var(--border);
}

.plan-card-stacked:first-child {
  margin-left: 0; /* Keep first card at normal alignment */
}

/* Add slight rotations to cards to simulate a fan-out deck of cards */
.plan-card-stacked:nth-child(1) { transform: rotate(-1deg) translateY(5px); z-index: 2; }
.plan-card-stacked:nth-child(2) { transform: rotate(-0.5deg) translateY(-2px); z-index: 4; }
.plan-card-stacked:nth-child(3) { transform: rotate(0.5deg) translateY(-2px); z-index: 6; }
.plan-card-stacked:nth-child(4) { transform: rotate(1deg) translateY(5px); z-index: 8; }

/* Popular card indicator style */
.plan-card-stacked.popular {
  border-top-color: #D4E000; /* Signature green highlight */
}

.plan-card-stacked.popular::after {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #D4E000;
  color: #111827;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Hover and pull-forward transition effect */
.plan-card-stacked:hover {
  transform: translateY(-24px) scale(1.06) rotate(0deg) !important;
  z-index: 20 !important; /* Pull right to the foreground */
  box-shadow: 0 25px 50px rgba(238, 44, 73, 0.14);
  border-color: var(--primary);
  border-top-color: var(--primary);
}

.plan-card-stacked.popular:hover {
  border-top-color: #D4E000; /* Preserve popular green top border */
}

/* Card Header */
.stacked-card-header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.stacked-card-speed {
  font-family: var(--font-secondary);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stacked-card-speed span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.stacked-card-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.stacked-card-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Card OTT Icon Grid */
.stacked-card-otts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 38px;
}

/* Card Feature Bullet list */
.stacked-card-features {
  margin: 20px 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.stacked-card-features li::before {
  content: '✓';
  color: #22C55E;
  font-weight: 800;
}

/* Premium Button design within cards */
.stacked-card-btn {
  background: var(--dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  width: 100%;
  transition: var(--transition);
  margin-top: 15px;
  cursor: pointer;
}

.plan-card-stacked:hover .stacked-card-btn {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(238, 44, 73, 0.3);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .stacked-plans-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    gap: 16px;
  }
  .plan-card-stacked {
    margin-left: 0 !important; /* Disable overlap on mobile viewports for clean grid flow */
    transform: none !important;
    width: 270px;
  }
  .plan-card-stacked:hover {
    transform: translateY(-10px) !important;
  }
}

/* =============================================
   NEW PLAN LAYOUT SPECIFIC STYLES (IMAGE MATCH)
   ============================================= */
/* Gold column highlights for 100 Mbps column */
.plan-matrix th.speed-col-header[style*="FEF08A"] {
  background: #FEF08A !important;
  color: #1E293B !important;
  border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.msc-col-gold-cell {
  background: rgba(254, 240, 138, 0.25) !important;
  color: #1E293B !important;
  border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.msc-col-gold-cell:hover {
  background: #FEF08A !important;
  box-shadow: inset 0 0 0 2px var(--primary) !important;
  color: #1E293B !important;
}

.msc-col-gold-cell.selected {
  background: rgba(254, 240, 138, 0.6) !important;
  box-shadow: inset 0 0 0 2.5px var(--primary) !important;
  color: #1E293B !important;
}

/* Style for unavailable plans placeholder */
.plan-matrix td.price-cell:has(span[style*="CBD5E1"]) {
  background: var(--bg-gray) !important;
  cursor: default;
  pointer-events: none;
}

/* Hover highlights for active cells */
.plan-matrix td.price-cell:not(:has(span[style*="CBD5E1"])):hover {
  background: rgba(238, 44, 73, 0.04);
}

.plan-matrix td.price-cell:not(:has(span[style*="CBD5E1"])).selected {
  background: rgba(238, 44, 73, 0.08);
}

/* =============================================
   GLOWING FLOATING SUPPORT BUTTON & ACTIONS
   ============================================= */
.support-float-glow {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background: #2563EB;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: pulse-glow-blue 2s infinite ease-in-out;
  transition: all 0.3s ease;
}

.support-float-glow:hover {
  background: #1D4ED8;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.9);
}

@keyframes pulse-glow-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Make sure support modal doesn't conflict with WhatsApp on mobile devices */
@media (max-width: 768px) {
  .support-float-glow {
    bottom: 90px; /* Shift up so it doesn't overlap WhatsApp float button on small screens */
    left: 20px;
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}

