/* Core Styles & Design Tokens */
:root {
  --bg-dark: #04120a;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d3822 0%, #04120a 75%);
  --card-bg: rgba(12, 38, 24, 0.85);
  --card-border: rgba(34, 197, 94, 0.25);
  --card-hover-border: rgba(34, 197, 94, 0.5);
  
  --primary: #22c55e;
  --primary-glow: rgba(34, 197, 94, 0.4);
  --primary-dark: #15803d;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  
  --font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.25);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.text-gradient-green {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container & Layout */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 90px;
}

@media (min-width: 1024px) {
  .page-wrapper {
    padding-bottom: 40px;
  }
}

.container {
  padding: 0 12px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Clean & Compact Top Announcement Bar for Mobile */
.announcement-bar {
  background: linear-gradient(90deg, #15803d, #22c55e, #15803d);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Brand Bar */
.brand-header {
  padding: 14px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Section Cards & Blocks */
.section-block {
  margin-top: 20px;
  margin-bottom: 20px;
}

.card-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .card-box {
    padding: 32px 28px;
  }
}

/* Image Assets Display Containers */
.asset-img-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 16px;
  background: #000;
}

.asset-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.hero-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.hero-product-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-product-showcase {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-product-showcase > div {
    flex: 1;
  }
}

.product-hero-img {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 15px 30px rgba(34, 197, 94, 0.35));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Quick Features Pill Grid */
.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .quick-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-pill {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.feature-pill-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.feature-pill-title {
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-pill-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Step By Step Section */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
  }
}

.step-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: #4ade80;
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Countdown Urgency Banner */
.urgency-banner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(153, 27, 27, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  margin: 20px 0;
}

.urgency-title {
  color: #f87171;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.timer-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  direction: ltr;
}

.timer-unit {
  background: #000;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 55px;
}

.timer-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ef4444;
  font-family: monospace;
}

.timer-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Order Form Section - Simplified & Streamlined */
.order-section {
  scroll-margin-top: 70px;
}

.order-form-card {
  background: linear-gradient(180deg, rgba(14, 45, 29, 0.95), rgba(6, 25, 15, 0.98));
  border: 2px solid var(--primary);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
}

@media (min-width: 768px) {
  .order-form-card {
    padding: 32px 28px;
  }
}

.form-header-title {
  text-align: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-header-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Offers Grid Cards */
.offers-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .offers-selection {
    flex-direction: row;
  }
}

.offer-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-card.active {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.offer-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-card.active .offer-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.offer-radio::after {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  display: none;
}

.offer-card.active .offer-radio::after {
  display: block;
}

.offer-badge-popular {
  position: absolute;
  top: -10px;
  left: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.offer-details {
  flex-grow: 1;
}

.offer-title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.offer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.offer-price {
  text-align: left;
}

.price-main {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
}

.price-unit {
  font-size: 0.8rem;
  color: #fff;
}

.price-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Simplified Inputs */
.input-group {
  margin-bottom: 14px;
}

.input-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-light);
}

.input-label span {
  color: #ef4444;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  transition: var(--transition);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
  background: rgba(0, 0, 0, 0.85);
}

.form-control::placeholder {
  color: #64748b;
}

/* Form Summary Box */
.order-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.35);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-light);
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.free-shipping-tag {
  color: #22c55e;
  font-weight: 700;
}

/* Submit CTA Button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulse-green 2s infinite;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Trust Badges Footer */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .trust-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

.trust-badge-icon {
  font-size: 1.3rem;
}

.trust-badge-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Floating Sticky Mobile Order Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 18, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--primary);
  padding: 8px 14px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

@media (min-width: 1024px) {
  .sticky-mobile-bar {
    display: none;
  }
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
}

.sticky-bar-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.sticky-bar-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.sticky-bar-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  text-decoration: none;
}

/* Modals System (Thank You & 3-Minute Dwell Popup) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: #092215;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon-success {
  width: 70px;
  height: 70px;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px auto;
}

.modal-title {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-order-details {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-order-details div {
  margin-bottom: 4px;
}

.modal-btn-close {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
}
