/* ==========================================================================
   FAZAA (فزعة) - Ultra-Luxurious Snapchat Landing Page Stylesheet
   Typography Pairing: 'Tajawal' + 'Cairo' + 'Plus Jakarta Sans'
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&family=Cairo:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --font-heading: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --font-body: 'Cairo', system-ui, sans-serif;
  --font-num: 'Plus Jakarta Sans', 'Cairo', sans-serif;

  --gold-light: #fff3c4;
  --gold-glow: #fde68a;
  --gold-primary: #d6b45b;
  --gold-dark: #8c6a22;
  --gold-border: rgba(214, 180, 91, 0.38);
  
  --gold-gradient: linear-gradient(135deg, #fff3c4 0%, #d6b45b 48%, #9e7a2b 100%);
  --gold-gradient-subtle: linear-gradient(180deg, rgba(254, 230, 138, 0.15) 0%, rgba(214, 180, 91, 0.05) 100%);
  
  --bg-deep: #05070d;
  --card-surface: rgba(14, 19, 32, 0.88);
  --card-surface-hover: rgba(22, 30, 50, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  
  --shadow-gold: 0 12px 36px rgba(214, 180, 91, 0.35);
  --shadow-deep: 0 25px 60px rgba(0, 0, 0, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Motion Orbs */
.bg-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-1 {
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(214, 180, 91, 0.38), transparent 70%);
}

.orb-2 {
  bottom: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(140, 106, 34, 0.32), transparent 70%);
  animation-delay: 4s;
}

@keyframes orbFloat {
  0% { transform: scale(1) translateY(0); opacity: 0.45; }
  100% { transform: scale(1.22) translateY(24px); opacity: 0.8; }
}

/* Single Viewport Frame */
.viewport-frame {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  max-width: 450px;
  max-height: 920px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 480px) {
  .viewport-frame {
    height: 94vh;
    margin: 3vh auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-deep);
    background: linear-gradient(180deg, #090e1c 0%, #03050b 100%);
  }
}

/* Header Typography & Merchant ID */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-icon-wrap img {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.brand-meta h1 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-meta span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--gold-glow);
  font-weight: 700;
}

.verified-pill {
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-glow);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Master Interactive Card */
.master-card {
  background: var(--card-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  margin: auto 0;
  position: relative;
  overflow: hidden;
}

.shimmer-line {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 243, 196, 0.09) 50%,
    transparent 55%
  );
  transform: rotate(30deg);
  animation: shimmerSweep 6s infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: translateY(-100%) rotate(30deg); }
  100% { transform: translateY(100%) rotate(30deg); }
}

/* Tier Switcher Tabs */
.tier-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tab-btn.active {
  background: var(--gold-gradient);
  color: #05070d;
  box-shadow: 0 4px 16px rgba(214, 180, 91, 0.35);
}

.card-title-group {
  text-align: center;
  margin-bottom: 12px;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-glow);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Floating Card 3D Stage */
.card-stage {
  position: relative;
  width: 100%;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-stage img {
  max-width: 195px;
  max-height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(214, 180, 91, 0.38));
  animation: floatMotion 3.5s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

@keyframes floatMotion {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(1.5deg); }
}

/* Feature Check List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.num {
  font-family: var(--font-num);
  font-weight: 800;
}

.feature-list li .icon-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #05070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(214, 180, 91, 0.3);
}

/* Bottom CTA & Trust Section */
.bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  color: #05070d;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ctaPulse 2s infinite alternate;
}

.btn-primary-cta:active {
  transform: scale(0.97);
}

@keyframes ctaPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.delivery-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.delivery-badge i {
  color: var(--gold-glow);
}

/* Footer Disclosures */
.app-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.app-footer p {
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.legal-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.legal-btn-group a {
  color: var(--gold-primary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0a0e1a;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 400px;
  max-height: 75vh;
  overflow-y: auto;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-head h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
