@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shine: rgba(255, 255, 255, 0.05);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  outline: none;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Background Effects */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none; /* Prevent interference with clicks */
}
.blob-1 {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
  animation: float 10s infinite ease-in-out;
}
.blob-2 {
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--secondary);
  animation: float 12s infinite ease-in-out reverse;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 50px); }
}

/* Navigation */
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
}
.logo-icon { color: var(--warning); }

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

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
  font-size: 0.95rem;
}

.nav-item:hover, .nav-item.active {
  color: white;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 -5px 10px var(--primary);
}

/* Main Layout */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  animation: fadeIn 0.6s ease-out;
  width: 100%;
}
.view.active { display: block; }

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

/* Hero Section */
.hero-container {
  display: flex;
  flex-direction: column-reverse; /* Mobile: Widget Top, Text Bottom */
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 3rem 0;
  text-align: center; /* Center text on mobile */
}

/* Desktop View */
@media (min-width: 900px) {
  .hero-container {
    flex-direction: row; /* Desktop: Widget Left, Text Right */
    align-items: center; /* Vertically center */
    justify-content: space-between;
    text-align: right; /* Reset text align for desktop */
    /* Calculate height to fit screen minus nav and padding */
    min-height: calc(100vh - 120px); 
    padding: 0;
  }
  
  .hero-content {
    flex: 1;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-widget {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Align trust section to right on desktop */
  .trust-section {
    align-items: flex-start;
  }
}

/* Hero Content */
.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .hero-title { font-size: 2.8rem; }
}

.text-gradient {
  background: linear-gradient(to left, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero-desc { margin-right: 0; margin-left: 0; font-size: 1.1rem; }
}

/* Trust Section */
.trust-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center; /* Center on mobile */
}

.enamad-box {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.3s;
}
.enamad-box:hover { transform: scale(1.05); }
.enamad-box img { width: 100%; height: 100%; object-fit: contain; }

.trust-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.tf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.tf-icon {
  font-size: 1.5rem;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 8px;
  border-radius: 10px;
  display: flex;
}

/* Widget */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  width: 100%;
}
@media (min-width: 900px) {
  .glass-panel { padding: 2rem; }
}

.widget-header h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  text-align: center;
}

.input-group, .amount-group { margin-bottom: 1.2rem; }
.input-group label, .amount-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: right;
}

.input-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  transition: 0.3s;
}
.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.input-icon { color: var(--text-muted); width: 20px; }
.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.9rem;
  color: white;
  font-size: 1.2rem;
  font-family: inherit;
  letter-spacing: 1px;
}

.operators {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.op {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  opacity: 0.5;
  transition: 0.3s;
}
.op.active { opacity: 1; font-weight: bold; }
.op-mci.active { background: rgba(16, 185, 129, 0.2); color: #10b981; border-color: #10b981; }
.op-mtn.active { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: #fbbf24; }
.op-rtl.active { background: rgba(168, 85, 247, 0.2); color: #a855f7; border-color: #a855f7; }

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.amount-grid button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  font-size: 0.9rem;
}
.amount-grid button:hover, .amount-grid button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-amount-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 0.8rem;
  border-radius: 12px;
  color: white;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
}

.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.3s;
  font-family: inherit;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  margin-top: 1rem;
}
.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

/* Contact Page */
.contact-container {
  max-width: 1000px;
  margin: 2rem auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-header h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.contact-header p { color: var(--text-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.info-text .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.info-text p { margin: 0; font-weight: 500; line-height: 1.6; }

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 0.8rem;
  border-radius: 10px;
  color: white;
  font-family: inherit;
  transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.3s;
}
.btn-submit:hover { background: var(--primary-dark); }
</style>
