:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  /* Operator Colors */
  --mci: #10b981; /* Greenish Teal for MCI */
  --mtn: #f59e0b; /* Yellow/Orange for MTN */
  --rightel: #a855f7; /* Purple for Rightel */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
.dir-ltr { direction: ltr; text-align: left; }
.mt-2 { margin-top: 1rem; }

/* Navbar */
.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Charge Panel Styles */
.charge-panel {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: var(--text-main);
}

.panel-header {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin: 0;
}

.panel-icon {
  color: var(--accent);
}

.panel-content {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.input-wrapper input:focus {
  border-color: var(--primary);
}

/* Fix for Custom Amount Input Overlap */
.currency-wrapper input {
  padding-left: 50px; /* Make space for "Toman" */
  padding-right: 12px; /* No icon on right for this input */
}

.currency {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
  background: transparent;
}

/* Operator Logos */
.operator-logos {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.op-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #94a3b8;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-weight: 500;
}

/* Active Operator States */
.op-badge.mci.active {
  background: #d1fae5;
  color: #065f46;
  border-color: var(--mci);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.op-badge.mtn.active {
  background: #fef3c7;
  color: #92400e;
  border-color: var(--mtn);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.op-badge.rightel.active {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: var(--rightel);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}


.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.amount-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: bold;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.3s;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-submit:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* Hero Text */
.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

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

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
}

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

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact Section */
.section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 3rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-card h3 { margin-bottom: 0.5rem; color: var(--secondary); }
.contact-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.5rem; }
.contact-link { font-weight: 700; color: var(--primary); }

.contact-card.full-width {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  text-align: right;
  gap: 1.5rem;
  padding: 2rem 3rem;
}

.full-width .contact-icon { margin: 0; flex-shrink: 0; }
.address-content h3 { margin-bottom: 0.25rem; }
.address-content p { margin: 0; font-size: 1rem; }

/* Trust Section */
.trust-section {
  background: white;
  border-top: 1px solid var(--border);
}

.trust-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 2rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 300px;
}

.trust-icon {
  width: 50px;
  height: 50px;
  color: var(--primary);
}
.trust-icon svg { width: 100%; height: 100%; }

.trust-info h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--secondary); }
.trust-info p { color: var(--text-light); font-size: 0.95rem; }

.enamad-box {
  display: flex;
  gap: 1rem;
}

.enamad-frame {
  background: white;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enamad-frame img {
  max-width: 100%;
  height: auto;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-text { margin-bottom: 2rem; }
  .stats { justify-content: center; }
  
  .contact-card.full-width {
    flex-direction: column;
    text-align: center;
  }
  
  .trust-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .trust-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-text h1 { font-size: 2rem; }
}
