/* ==========================================================================
   MekongNet WIFI Sales Website - Custom Design Stylesheet
   Author: Antigravity AI
   Design Theme: High-tech Glassmorphism with Neon Accents (Blue & Orange)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Dark Theme Defaults) */
  --bg-main: #0a0f1d;
  --bg-surface: rgba(18, 26, 47, 0.7);
  --bg-surface-elevated: rgba(26, 38, 68, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 102, 204, 0.25);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --primary: #0070f3; /* MekongNet Blue */
  --primary-rgb: 0, 112, 243;
  --secondary: #ff8c32; /* MekongNet Orange */
  --secondary-rgb: 255, 140, 50;
  
  --accent-cyan: #00f0ff;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  
  --white: #ffffff;
  --black: #000000;
  
  /* Fonts */
  --font-khmer: 'Kantumruy Pro', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  /* Shadow & Blur System */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 20px rgba(0, 112, 243, 0.25);
  --shadow-orange-neon: 0 0 20px rgba(255, 140, 50, 0.25);
  
  --blur-normal: 12px;
  --blur-heavy: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --bg-main: #f3f6fc;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(0, 112, 243, 0.15);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #f8fafc;
  
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-neon: 0 4px 20px rgba(0, 112, 243, 0.15);
  --shadow-orange-neon: 0 4px 20px rgba(255, 140, 50, 0.15);
  
  --white: #ffffff;
  --black: #000000;
}

/* --------------------------------------------------------------------------
   2. Resets & Typography
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-khmer);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Apply English font exclusively to numbers and English paragraphs */
body, input, button, select, textarea {
  font-family: var(--font-khmer);
}

.num-text, .eng-text, .amount, .period, .currency, .stat-num, .speed-val, .info-val, .metric strong, .slider-value, .pack-name {
  font-family: var(--font-en);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Common Layout & UI Components
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background-color: rgba(255, 140, 50, 0.1);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glassmorphic Background Utilities */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-normal));
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  color: var(--white);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 112, 243, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1579a8 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34, 158, 217, 0.5);
}

.btn-block {
  width: 100%;
}

/* Text Glow utilities */
.text-glow {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(255, 140, 50, 0.3);
}

.highlight {
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(var(--blur-normal));
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

[data-theme="light"] .header {
  background: rgba(243, 246, 252, 0.7);
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white) 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .logo-text {
  background: linear-gradient(135deg, var(--black) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.action-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.lang-btn {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  width: auto;
  padding: 0 12px;
}

.menu-btn {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Hero Section & Speedometer
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 160px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 140, 50, 0.15) 0%, rgba(255, 107, 8, 0.05) 100%);
  border: 1px solid rgba(255, 140, 50, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Speedometer Graphic Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-bg-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, rgba(255, 140, 50, 0.08) 50%, transparent 100%);
  filter: blur(40px);
  z-index: 1;
}

.speedometer-card {
  position: relative;
  z-index: 2;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-heavy));
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border-top-color: var(--border-glow);
}

.speedometer-card .card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

.speed-ring-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px auto;
}

.speed-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8px;
}

.ring-fill {
  fill: none;
  stroke: url(#speed-grad);
  stroke-width: 8px;
  stroke-dasharray: 251.2; /* 2 * PI * r (r=40) */
  stroke-dashoffset: 251.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.speed-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speed-val {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.speed-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-bottom: 16px;
}

.info-block {
  text-align: center;
}

.info-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-title i.download-icon { color: var(--accent-cyan); }
.info-title i.upload-icon { color: var(--secondary); }

.info-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
  display: block;
}

.speed-metrics {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

[data-theme="light"] .speed-metrics {
  background: rgba(0, 0, 0, 0.03);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-normal));
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.floating-badge i {
  font-size: 1.4rem;
  color: var(--secondary);
}

.floating-badge h4 {
  font-size: 0.85rem;
  font-weight: 700;
}

.floating-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-1 {
  top: 15%;
  left: -20px;
  animation: float 5s ease-in-out infinite alternate;
}

.badge-2 {
  bottom: 12%;
  right: -20px;
  animation: float 6s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   6. Calculator Section
   -------------------------------------------------------------------------- */
.calculator-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(0, 112, 243, 0.03) 50%, var(--bg-main) 100%);
}

.calculator-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur-normal));
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-packages-selection {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.selection-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selection-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.selection-label i {
  color: var(--secondary);
}

.calc-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pkg-select-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 8px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.pkg-select-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.pkg-select-btn.active {
  background: linear-gradient(135deg, var(--secondary) 0%, #e06b0d 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-orange-neon);
}

.calc-term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.term-select-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.term-select-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.term-select-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-neon);
}

/* Receipt Details */
.calc-result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-receipt-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-md);
  padding: 28px;
  box-shadow: var(--shadow-neon);
  transition: transform var(--transition-normal);
}

.calc-receipt-card:hover {
  transform: translateY(-4px);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.receipt-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.receipt-price-summary .price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.receipt-price-summary .price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.receipt-row .r-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-row .r-label i {
  font-size: 0.82rem;
  width: 14px;
  text-align: center;
  color: var(--primary);
}

.receipt-row .r-val {
  font-weight: 700;
  color: var(--text-main);
}

.receipt-row .r-val.text-green {
  color: var(--accent-green);
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  margin-top: 8px;
}

.receipt-total-row .r-total-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.receipt-total-row .r-total-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
  text-shadow: var(--shadow-orange-neon);
}

/* --------------------------------------------------------------------------
   7. Packages Pricing Grid
   -------------------------------------------------------------------------- */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Package Card */
.package-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 112, 243, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.pack-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  text-align: center;
}

.package-card.featured .pack-badge {
  background-color: var(--primary);
}

.pack-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pack-price {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.pack-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.pack-price .amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.pack-price .period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pack-tax {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.pack-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pack-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

[data-theme="light"] .pack-features li {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.feature-title {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-title i {
  font-size: 0.85rem;
  width: 14px;
  text-align: center;
}

.feature-value {
  color: var(--text-main);
}

.text-orange {
  color: var(--secondary) !important;
  font-weight: 700;
}

.package-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-neon);
}

/* --------------------------------------------------------------------------
   8. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-us-section {
  background-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .why-us-section {
  background-color: rgba(0, 0, 0, 0.01);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 36px 30px;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.feat-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 24px;
}

.bg-blue { background: linear-gradient(135deg, #0070f3 0%, #0056b3 100%); }
.bg-orange { background: linear-gradient(135deg, #ff8c32 0%, #e06b0d 100%); }
.bg-cyan { background: linear-gradient(135deg, #00f0ff 0%, #00b0c0 100%); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Contact Form & Map Panels
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel .contact-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-info-panel .contact-desc {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-card i {
  font-size: 1.25rem;
  color: var(--secondary);
  background: rgba(255, 140, 50, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-card p {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form Panel */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .inquiry-form input,
[data-theme="light"] .inquiry-form select,
[data-theme="light"] .inquiry-form textarea,
[data-theme="light"] .modal-form input,
[data-theme="light"] .modal-form select,
[data-theme="light"] .modal-form textarea {
  background: rgba(0, 0, 0, 0.02);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

.form-feedback.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   10. FAQ Section Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--secondary);
}

.faq-item.active .faq-answer {
  max-height: 300px; /* arbitrary max height */
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: #05080f;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 20px 0;
}

[data-theme="light"] .footer {
  background-color: #e6ecf5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links h4,
.footer-services h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: var(--text-main);
}

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

.footer-links a,
.footer-services a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-policy-links {
  display: flex;
  gap: 24px;
}

.footer-policy-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-policy-links a:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. Floating Action Widgets (Telegram & Call)
   -------------------------------------------------------------------------- */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.contact-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  position: relative;
}

.contact-float.telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1783b5 100%);
  animation: float 4s ease-in-out infinite alternate;
}

.contact-float.phone {
  background: linear-gradient(135deg, #25D366 0%, #1eac52 100%);
  animation: float 4s ease-in-out infinite alternate-reverse;
}

.contact-float:hover {
  transform: scale(1.1) translateY(-4px);
}

.float-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid var(--border-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.contact-float:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   13. Dialog Modal
   -------------------------------------------------------------------------- */
.order-dialog {
  border: none;
  border-radius: var(--border-radius-lg);
  background: transparent;
  max-width: 500px;
  width: calc(100% - 32px);
  margin: auto;
  box-shadow: var(--shadow-lg);
  outline: none;
  overflow: visible;
}

.order-dialog::backdrop {
  background: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s forwards;
}

.modal-content {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.modal-header {
  margin-bottom: 28px;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.readonly-input {
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--secondary) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  border-color: rgba(255, 140, 50, 0.2) !important;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Modal Success View */
.modal-success-view {
  text-align: center;
  padding: 20px 0;
}

.success-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px auto;
  animation: scale-up 0.5s ease;
}

.modal-success-view h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.modal-success-view p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.order-summary-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.order-summary-box h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes scale-up {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-desc {
    margin: 0 auto 30px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .calculator-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .navbar {
    height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    flex-direction: column;
    padding: 40px 0;
    gap: 24px;
    z-index: 98;
    transition: left 0.4s ease;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-btn {
    display: flex;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .floating-contact {
    bottom: 20px;
    right: 20px;
  }
  
  /* Responsive buttons for calculator */
  .calc-pkg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .calc-term-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
