@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --bg-dark: #070b13;
  --bg-surface: #0e1422;
  --bg-surface-glass: rgba(14, 20, 34, 0.65);
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  
  /* Ticket colors */
  --ticket-yellow: #f59e0b;
  --ticket-green: #10b981;
  --ticket-red: #ef4444;
  --ticket-blue: #3b82f6;
}

/* Base Styles & Typography */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
  font-family: 'Tajawal', 'Inter', sans-serif !important;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

p, span, a, li, td, th, h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', 'Inter', sans-serif !important;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus {
  color: #fff;
  text-decoration: none;
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header & Floating Navbar */
header.header-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 11, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
  padding: 12px 0;
}

.fixed-header-on header.header-modern {
  background: rgba(7, 11, 19, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
}

.navbar-container-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-modern img {
  height: 42px;
  transition: transform 0.3s ease;
}

.logo-modern img:hover {
  transform: scale(1.05);
}

.nav-links-modern {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-modern a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links-modern a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links-modern a:hover::after,
.nav-links-modern li.active a::after {
  width: 100%;
}

.nav-links-modern a:hover,
.nav-links-modern li.active a {
  color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle-modern {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle-modern span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero-modern {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at 80% 20%, rgba(7, 11, 19, 0.88) 0%, var(--bg-dark) 95%), 
              url('../images/metro_banner_new.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.hero-container-modern {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-container-modern::before,
.hero-container-modern::after {
  content: none !important;
  display: none !important;
}

.hero-left h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[dir="rtl"] .hero-left h1 {
  line-height: 1.4;
}

.hero-left p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-modern-download {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 10px !important;
  padding: 8px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: right !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

body[dir="ltr"] .btn-modern-download {
  text-align: left !important;
}

.btn-modern-download:hover {
  transform: translateY(-3px) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 12px 24px rgba(0, 240, 255, 0.25) !important;
}

.btn-modern-download i {
  font-size: 28px !important;
  color: var(--accent-cyan) !important;
}

.btn-modern-download .btn-text-wrapper {
  display: flex !important;
  flex-direction: column !important;
}

.btn-modern-download .btn-subtext {
  font-size: 10px !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
  line-height: 1 !important;
}

.btn-modern-download .btn-maintext {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.qr-code-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-code-box img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
}

.qr-code-box span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Floating Smartphone Mockup */
.hero-right {
  display: flex;
  justify-content: center;
}

.phone-mockup-modern {
  position: relative;
  width: 290px;
  height: 520px;
  background: #000;
  border: 10px solid #1e293b;
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 
              0 0 0 2px rgba(255,255,255,0.05),
              0 0 40px var(--primary-glow);
  animation: floatMockup 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes floatMockup {
  0%, 100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

.phone-screen-modern {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.phone-screen-modern video,
.phone-screen-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.phone-notch-modern {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1e293b;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

/* Section Header Styles */
.section-modern {
  padding: 100px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-modern-alt {
  background-color: #0b101c;
  padding: 100px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.sec-header-modern h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
}

.sec-header-modern p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* Interactive Calculator Styles */
.calculator-box-modern {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 950px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.calc-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-select-modern {
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.calc-select-modern:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Custom switch toggle */
.switch-modern {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch-modern input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-modern {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-glass);
  transition: .4s;
  border-radius: 34px;
}

.slider-modern:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-modern {
  background-color: var(--primary);
}

input:checked + .slider-modern:before {
  transform: translateX(24px);
}

.calc-switch-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calc-switch-container label {
  margin: 0;
  cursor: pointer;
}

/* Rotating glowing ticket visual */
.calc-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ticket-wrapper-modern {
  perspective: 1000px;
  margin-bottom: 25px;
}

.ticket-modern {
  width: 250px;
  height: 140px;
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(71, 85, 105, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.ticket-modern:hover {
  transform: rotateY(15deg) rotateX(5deg);
}

.ticket-modern .ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticket-modern .ticket-price-display {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticket-modern .ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Calculator result ticket states */
.ticket-modern.ticket-state-yellow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25), 0 0 35px rgba(245, 158, 11, 0.4);
}

.ticket-modern.ticket-state-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25), 0 0 35px rgba(16, 185, 129, 0.4);
}

.ticket-modern.ticket-state-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25), 0 0 35px rgba(239, 68, 68, 0.4);
}

.ticket-modern.ticket-state-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25), 0 0 35px rgba(59, 130, 246, 0.4);
}

.ticket-info-summary {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  line-height: 1.5;
}

/* Features Component (Modern Grid) */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-modern {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  text-align: right;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body[dir="ltr"] .feature-card-modern {
  text-align: left;
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.05);
}

.feat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  font-size: 22px;
}

.feature-card-modern h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card-modern p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Manual Section Styles */
.manual-container-modern {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.manual-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manual-step-item {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  align-items: flex-start;
}

.manual-step-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass-hover);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #fff;
}

.step-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.manual-video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-glass);
  background-color: #000;
}

.embed-responsive-item-modern {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}

/* Lines & Map Layout using Tab Panels */
.tab-container-modern {
  max-width: 1200px;
  margin: 0 auto;
}

.tab-buttons-modern {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn-modern {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn-modern:hover {
  color: #fff;
  border-color: var(--border-glass-hover);
}

.tab-btn-modern.active {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.tab-panel-modern {
  display: none;
  animation: fadeInPanel 0.5s ease forwards;
}

.tab-panel-modern.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Remodeled Grid Statistics */
.lines-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.line-stat-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-top-width: 4px; /* thick border top */
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.line-stat-card.line-1 {
  border-top-color: var(--color-red);
}
.line-stat-card.line-2 {
  border-top-color: var(--color-yellow);
}
.line-stat-card.line-3 {
  border-top-color: var(--color-green);
}

.line-stat-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-row-modern {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-row-modern:last-child {
  border-bottom: none;
}

.stat-label-modern {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-value-modern {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* Map frame wrap */
.map-frame-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
}

/* Pricing Section & Toggles */
.pricing-toggle-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.pricing-toggle-modern span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-toggle-modern span.active {
  color: #fff;
}

.toggle-switch-wrapper {
  position: relative;
  background: var(--bg-modern);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-glass);
  width: 200px;
  height: 44px;
  border-radius: 50px;
  display: flex;
  cursor: pointer;
  padding: 2px;
  user-select: none;
}

.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-option.active {
  color: #fff;
}

.toggle-slide-bg {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
  border-radius: 50px;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-switch-wrapper.active-right .toggle-slide-bg {
  transform: translateX(100%);
}

[dir="rtl"] .toggle-switch-wrapper.active-right .toggle-slide-bg {
  transform: translateX(-100%);
}

[dir="rtl"] .toggle-slide-bg {
  left: auto;
  right: 2px;
}

/* Multi-group cards wrapper */
.pricing-cards-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-group-panel {
  display: none;
}

.pricing-group-panel.active {
  display: grid;
  animation: fadeInPanel 0.5s ease forwards;
}

.pricing-group-panel.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-group-panel.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Sleek pricing card elements */
.pricing-card-modern {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pricing-card-modern:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
}

.price-card-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.price-card-icon img {
  max-width: 50%;
  max-height: 50%;
}

.pricing-card-modern h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 15px;
}

.price-badge-display {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-badge-display span {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-card-modern .ticket-img-display {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 80%;
  margin-top: 10px;
}

.pricing-card-modern .detail-img-display {
  border-radius: 8px;
  max-width: 100%;
}

/* Glowing Border modifiers for tickets */
.pricing-card-modern.border-yellow:hover {
  border-color: var(--ticket-yellow);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
}
.pricing-card-modern.border-green:hover {
  border-color: var(--ticket-green);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}
.pricing-card-modern.border-red:hover {
  border-color: var(--ticket-red);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
}
.pricing-card-modern.border-blue:hover {
  border-color: var(--ticket-blue);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

/* Subscription Text-Based Cards */
.sub-card-modern {
  text-align: right;
}

html[lang="en"] .sub-card-modern,
html:not([dir="rtl"]) .sub-card-modern {
  text-align: left;
}

.sub-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.sub-icon-badge i {
  font-size: 22px;
  color: #fff;
}

.sub-type-label {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.sub-tier-table {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.sub-tier-row:last-child {
  border-bottom: none;
}

.sub-tier-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.sub-tier-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sub-tier-row span {
  color: var(--text-secondary);
}

.sub-tier-row strong {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.sub-highlight-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sub-highlight-box i {
  color: var(--accent-cyan);
  font-size: 16px;
  flex-shrink: 0;
}

.sub-highlight-box strong {
  color: var(--accent-cyan);
}

.sub-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 10px;
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modern Contact Segment */
.contact-section-modern {
  background-color: #0b101c;
  padding: 40px 20px;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-section-modern a {
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Footer Redesign Styles */
footer.footer-modern {
  background: var(--bg-dark);
  padding: 80px 20px 0;
}

.footer-container-modern {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 50px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 280px;
}

.footer-nav-group h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-grid-links a:hover {
  color: var(--accent-cyan);
}

.footer-social-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-social-modern h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-icons-row {
  display: flex;
  gap: 15px;
}

.social-icon-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon-modern img {
  width: 18px;
  height: 18px;
}

.social-icon-modern:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.footer-copyright-modern {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Floating Scroll to Top Arrow */
.scroll-top-modern {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.scroll-top-modern:hover {
  background: var(--accent-cyan);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

/* RESPONSIVE BREAKPOINTS (Tablet and Mobile Redesign) */

@media (max-width: 991px) {
  .hero-container-modern {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-left h1 {
    font-size: 38px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .manual-container-modern {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lines-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .pricing-group-panel.grid-3,
  .pricing-group-panel.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-box-modern {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  
  .footer-container-modern {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-social-modern {
    grid-column: span 2;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .menu-toggle-modern {
    display: flex;
  }
  
  .nav-links-modern {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 19, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    gap: 15px;
    align-items: center;
  }
  
  .nav-links-modern.active {
    display: flex;
  }
  
  .hero-left h1 {
    font-size: 30px;
  }
  
  .hero-left p {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .pricing-group-panel.grid-3,
  .pricing-group-panel.grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-container-modern {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .footer-grid-links {
    grid-template-columns: 1fr;
  }
  
  .footer-social-modern {
    grid-column: span 1;
  }
  
  .footer-copyright-modern {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
