/* ==========================================================================
   FAWAT (فوات) - DOWNLOAD & LANDING PAGE CSS
   Faithful recreation of Mobile & Desktop Mockup with Dark/Light Support
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-main: #0B0F0D;
  --bg-surface: #101713;
  --bg-card: #131E18;
  --bg-card-hover: #192720;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(229, 178, 93, 0.28);

  --text-primary: #F0F4F1;
  --text-secondary: #9AA79F;
  --text-muted: #64736B;

  --gold-primary: #E5B25D;
  --gold-light: #FCE09B;
  --gold-dark: #C58F38;
  --gold-glow: rgba(229, 178, 93, 0.25);

  --accent-green: #2ECC71;
  --accent-green-bg: rgba(46, 204, 113, 0.12);
  --accent-green-border: rgba(46, 204, 113, 0.28);

  --btn-gold-bg: #E5B25D;
  --btn-gold-text: #0D1410;
  --btn-gold-hover: #F0C475;

  --nav-bg: rgba(11, 15, 13, 0.88);
  --calligraphy-gold: #F3C669;
}

/* Light Theme */
body.light-theme {
  --bg-main: #FBFDFB;
  --bg-surface: #F2F6F3;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7FAF8;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(18, 86, 61, 0.22);

  --text-primary: #121F17;
  --text-secondary: #4E6056;
  --text-muted: #7A8D83;

  --gold-primary: #0F5E43;
  --gold-light: #167D5A;
  --gold-dark: #0A4330;
  --gold-glow: rgba(15, 94, 67, 0.15);

  --accent-green: #0F5E43;
  --accent-green-bg: rgba(15, 94, 67, 0.08);
  --accent-green-border: rgba(15, 94, 67, 0.25);

  --btn-gold-bg: #0F5E43;
  --btn-gold-text: #FFFFFF;
  --btn-gold-hover: #157957;

  --nav-bg: rgba(251, 253, 251, 0.92);
  --calligraphy-gold: #0F5E43;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Highlights */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
}

.glow-top {
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.65;
}

.glow-center {
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 178, 93, 0.09) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.45;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-highlight);
}

.logo-text-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: var(--gold-primary);
  font-weight: 700;
  line-height: 1;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.badge-tag:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

body.light-theme .badge-tag {
  color: #4A5B52;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .badge-tag:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #121F17;
}

.badge-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

body.light-theme .badge-tag .dot {
  background: #059669;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: scale(1.05);
}

.icon-sun {
  display: none;
}

body.light-theme .icon-sun {
  display: block;
}

body.light-theme .icon-moon {
  display: none;
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--btn-gold-text);
  background: var(--btn-gold-bg);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: all 0.2s ease;
}

.btn-nav-download:hover {
  background: var(--btn-gold-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 56px 20px 40px;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* App Logo in Hero */
.app-icon-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.app-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 34px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  filter: blur(18px);
  z-index: 0;
}

.app-icon-box {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--border-highlight);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: #0A110D;
}

.app-icon-box:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 42px rgba(229, 178, 93, 0.3);
}

.hero-app-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Release Version Badge - Sleek Tech Pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 178, 93, 0.35);
  color: var(--text-primary);
}

body.light-theme .hero-badge {
  background: #FFFFFF;
  border-color: #E2E8E4;
  color: #4A5B52;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-theme .hero-badge:hover {
  border-color: #0F5E43;
  color: #121F17;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.badge-separator {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.7rem;
}

/* Typography */
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

/* CTAs */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 18px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1 1 210px;
  max-width: 245px;
  min-width: 0;
  box-sizing: border-box;
  height: 54px;
  min-height: 54px;
}

/* Google Play Button */
.btn-google-play {
  background: #0F1612;
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
}

.btn-google-play:hover {
  background: #17231D;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

body.light-theme .btn-google-play {
  background: #0F5E43;
  color: #FFFFFF;
  border: 1px solid transparent;
}

body.light-theme .btn-google-play:hover {
  background: #157957;
}

body.light-theme .btn-google-play .btn-subtext {
  color: rgba(255, 255, 255, 0.85);
}

body.light-theme .btn-google-play .btn-maintext {
  color: #FFFFFF;
}

.btn-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-text-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.btn-subtext {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.85;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 3px;
}

.btn-maintext {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

/* WhatsApp Channel CTA */
.btn-whatsapp-channel {
  background: #E5B25D;
  color: #111A14;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-whatsapp-channel:hover {
  background: #F0C475;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-whatsapp-channel .btn-subtext {
  color: #38423B;
  opacity: 0.9;
}

.btn-whatsapp-channel .btn-maintext {
  color: #111A14;
}

body.light-theme .btn-whatsapp-channel {
  background: #FFFFFF;
  border: 1px solid #D6DFD9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme .btn-whatsapp-channel:hover {
  background: #F7FAF8;
  border-color: #0F5E43;
  box-shadow: 0 8px 20px rgba(15, 94, 67, 0.1);
}

body.light-theme .btn-whatsapp-channel .btn-icon {
  color: #0F5E43;
}

body.light-theme .btn-whatsapp-channel .btn-subtext {
  color: #63756C;
}

body.light-theme .btn-whatsapp-channel .btn-maintext {
  color: #121F17;
}

body.light-theme .btn-whatsapp-channel .btn-arrow {
  color: #0F5E43;
}

.btn-arrow {
  margin-left: 8px;
  display: flex;
  align-items: center;
  color: currentColor;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-whatsapp-channel:hover .btn-arrow {
  transform: translateX(4px);
}

/* Direct APK Link */
.direct-apk-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  margin: 12px auto 0;
  text-align: center;
  width: 100%;
}

.direct-apk-note:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   Screenshots Showcase Section
   ========================================================================== */
.screenshots-section {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 30px auto 50px;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   3D Swappable & Auto-Rotating Card Stack
   ========================================================================== */
.swappable-stack-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  margin: 30px auto 10px;
  height: 570px;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
}

.cards-stage {
  position: relative;
  width: 228px;
  height: 540px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.55s ease,
    visibility 0.55s;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.stack-card:active {
  cursor: grabbing;
}

/* Card 3D Depth States */
.stack-card.card-active {
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 20;
  pointer-events: auto;
}

.stack-card.card-next-1 {
  transform: translate3d(120px, 12px, -80px) rotateY(-14deg) scale(0.88);
  -webkit-transform: translate3d(120px, 12px, -80px) rotateY(-14deg) scale(0.88);
  opacity: 0.82;
  z-index: 15;
  pointer-events: auto;
}

.stack-card.card-prev-1 {
  transform: translate3d(-120px, 12px, -80px) rotateY(14deg) scale(0.88);
  -webkit-transform: translate3d(-120px, 12px, -80px) rotateY(14deg) scale(0.88);
  opacity: 0.82;
  z-index: 15;
  pointer-events: auto;
}

.stack-card.card-next-2 {
  transform: translate3d(210px, 24px, -160px) rotateY(-22deg) scale(0.76);
  -webkit-transform: translate3d(210px, 24px, -160px) rotateY(-22deg) scale(0.76);
  opacity: 0.45;
  z-index: 10;
  pointer-events: none;
}

.stack-card.card-prev-2 {
  transform: translate3d(-210px, 24px, -160px) rotateY(22deg) scale(0.76);
  -webkit-transform: translate3d(-210px, 24px, -160px) rotateY(22deg) scale(0.76);
  opacity: 0.45;
  z-index: 10;
  pointer-events: none;
}

.stack-card.card-hidden {
  transform: translate3d(0, 40px, -240px) scale(0.65);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  visibility: hidden;
}

/* Navigation Arrows */
.stack-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-nav-btn:hover {
  background: var(--gold-primary);
  color: #0D1410;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.stack-nav-btn.btn-prev {
  left: 30px;
}

.stack-nav-btn.btn-next {
  right: 30px;
}

body.light-theme .stack-nav-btn {
  background: #FFFFFF;
  color: #0F5E43;
  border-color: #D2DCD6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

body.light-theme .stack-nav-btn:hover {
  background: #0F5E43;
  color: #FFFFFF;
}

/* Dots Indicator */
.stack-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 25px;
}

.stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.stack-dot.active {
  width: 28px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Modern Minimal Phone Frame */
.phone-frame {
  position: relative;
  width: 228px;
  height: 480px;
  background: #080C0A;
  border: 4px solid #1E2822;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(229, 178, 93, 0.18);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stack-card:hover .phone-frame,
.stack-card.card-active .phone-frame {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 24px var(--gold-glow);
  border-color: var(--gold-primary);
}

body.light-theme .phone-frame {
  background: #FFFFFF;
  border-color: #D2DCD6;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: #0c1410;
}

.screen-caption {
  margin-top: 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  width: 100%;
}

.stack-card.card-active .screen-caption {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-caption h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.screen-caption p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features / 3 Core Pillars Section
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 10px auto 40px;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.pillar-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card-icon-header {
  margin-bottom: 18px;
}

.pillar-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 178, 93, 0.1);
  border: 1px solid rgba(229, 178, 93, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.pillar-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.pillar-footer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.badge-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
}

/* ==========================================================================
   Qaza Calculator Section
   ========================================================================== */
.qaza-calc-section {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 10px auto 50px;
  padding: 0 20px;
  text-align: center;
}

.qaza-calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  margin-top: 8px;
}

body.light-theme .qaza-calc-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Date Pickers Row */
.qaza-date-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.qaza-date-block {
  flex: 1;
  text-align: left;
}

.qaza-date-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.qaza-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qaza-date-trigger:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.qaza-date-trigger.has-date {
  color: var(--gold-primary);
  border-color: rgba(229, 178, 93, 0.3);
}

body.light-theme .qaza-date-trigger.has-date {
  color: #0F5E43;
  border-color: rgba(15, 94, 67, 0.3);
}

.qaza-date-display {
  flex: 1;
  text-align: left;
}

/* Calculate Button */
.qaza-calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0;
}

.qaza-calc-btn:hover:not(:disabled) {
  background: var(--btn-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.qaza-calc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Results */
.qaza-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  animation: qazaFadeIn 0.5s ease-out;
}

@keyframes qazaFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Results */
.qaza-results {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  animation: qazaFadeIn 0.4s ease-out;
}

@keyframes qazaFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prayer Grid: Minimal, Clean & Dignified */
.qaza-prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.qaza-prayer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qaza-prayer-item:hover {
  border-color: rgba(229, 178, 93, 0.4);
  transform: translateY(-2px);
}

.qaza-prayer-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.qaza-prayer-ar {
  font-family: 'Amiri', serif;
  font-size: 0.88rem;
  color: var(--gold-primary);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 8px;
}

body.light-theme .qaza-prayer-ar {
  color: #0F5E43;
}

.qaza-prayer-count {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body.light-theme .qaza-prayer-count {
  color: #0F5E43;
}

/* Clean Consolidated Summary Bar */
.qaza-summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
  margin-bottom: 14px;
}

.qaza-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
}

.qaza-stat-box.qaza-stat-total {
  background: linear-gradient(135deg, rgba(229, 178, 93, 0.1), rgba(229, 178, 93, 0.03));
  border-color: rgba(229, 178, 93, 0.25);
}

body.light-theme .qaza-stat-box.qaza-stat-total {
  background: linear-gradient(135deg, rgba(15, 94, 67, 0.08), rgba(15, 94, 67, 0.02));
  border-color: rgba(15, 94, 67, 0.22);
}

.qaza-stat-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.qaza-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.qaza-stat-total .qaza-stat-num {
  font-size: 1.35rem;
  color: var(--gold-primary);
}

body.light-theme .qaza-stat-total .qaza-stat-num {
  color: #0F5E43;
}

/* Footnotes */
.qaza-note-footer {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

body.light-theme .qaza-note-footer {
  background: rgba(0, 0, 0, 0.02);
}

.qaza-note-footer p {
  margin: 3px 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.qaza-note-footer strong {
  color: var(--gold-primary);
}

body.light-theme .qaza-note-footer strong {
  color: #0F5E43;
}

/* ==========================================================================
   Roller Date Picker Modal
   ========================================================================== */
.roller-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.roller-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.roller-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 600px) {
  .roller-overlay {
    align-items: center;
  }

  .roller-modal {
    border-radius: 20px;
    max-width: 380px;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }

  .roller-overlay.active .roller-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

body.light-theme .roller-modal {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.roller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.roller-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.roller-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roller-close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Roller Body */
.roller-body {
  position: relative;
  padding: 8px 0;
  overflow: hidden;
}

.roller-columns {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.roller-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
}

.roller-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Roller Wheel */
.roller-wheel {
  position: relative;
  height: 200px;
  padding: 80px 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.roller-wheel::-webkit-scrollbar {
  display: none;
}

.roller-wheel-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  opacity: 0.4;
  transform: scale(0.88);
}

.roller-wheel-item.selected {
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.15rem;
  opacity: 1;
  transform: scale(1);
}

body.light-theme .roller-wheel-item.selected {
  color: #0F5E43;
}

.roller-wheel-item.near {
  opacity: 0.7;
  transform: scale(0.94);
}

/* Highlight Bar */
.roller-highlight {
  position: absolute;
  top: calc(50% + 11px);
  left: 16px;
  right: 16px;
  height: 42px;
  transform: translateY(-50%);
  background: var(--gold-glow);
  border: 1px solid rgba(229, 178, 93, 0.2);
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
}

body.light-theme .roller-highlight {
  background: rgba(15, 94, 67, 0.06);
  border-color: rgba(15, 94, 67, 0.15);
}

/* Footer Buttons */
.roller-footer {
  display: flex;
  gap: 10px;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--border-subtle);
}

.roller-cancel-btn,
.roller-confirm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.roller-cancel-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.roller-cancel-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.roller-confirm-btn {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
}

.roller-confirm-btn:hover {
  background: var(--btn-gold-hover);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* ==========================================================================
   FAQ Section (AEO & Search)
   ========================================================================== */
.faq-section {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 30px auto 50px;
  padding: 0 20px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 680px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
  transition: all 0.25s ease;
}

.faq-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.faq-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.faq-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Spiritual Calligraphy Banner
   ========================================================================== */
.spiritual-banner {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.bismillah-calligraphy {
  font-family: 'Amiri', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--calligraphy-gold);
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(229, 178, 93, 0.3);
}

.banner-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.banner-subline .arabic-tagline {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.banner-subline .divider {
  color: var(--text-muted);
  opacity: 0.5;
}

.banner-subline .english-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.dedication-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 8px;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img {
  max-height: 75vh;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 20px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.copyright-notice {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.dot-sep {
  color: var(--border-subtle);
  font-size: 0.65rem;
}

.footer-footnote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.heart-icon {
  color: var(--gold-primary);
}

.footer-contact {
  margin-top: 6px;
}

.footer-contact-link {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-contact-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

body.light-theme .footer-contact-link {
  color: #0F5E43;
}

/* ==========================================================================
   Comprehensive Multi-Device Responsive Design System
   Breakpoints:
   - Ultra-Wide Screens & Smart TVs: >= 1600px, >= 2160px (4K/8K TVs)
   - Laptops & Large Desktops: 1025px - 1440px
   - Tablets & Small Laptops: 769px - 1024px
   - Phablets & Large Phones: 481px - 768px
   - Standard Mobile: 361px - 480px
   - Small & Foldable Phones: <= 360px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SMART TVs & ULTRA-WIDE / 4K DISPLAYS (min-width: 1600px & 2160px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }

  .nav-container {
    max-width: 1440px;
    padding: 20px 40px;
  }

  .hero-section {
    padding: 72px 30px 60px;
  }

  .hero-content {
    max-width: 820px;
  }

  .app-icon-box {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1.05rem;
    max-width: 640px;
  }

  .hero-cta-group {
    max-width: 640px;
    gap: 20px;
  }

  .btn-cta {
    padding: 14px 24px;
    border-radius: 16px;
    max-width: 300px;
  }

  .screenshots-section {
    max-width: 1540px;
  }

  .screens-carousel {
    gap: 32px;
    justify-content: center;
  }

  .screen-card {
    width: 230px;
  }

  .phone-frame {
    width: 230px;
    height: 470px;
    border-radius: 40px;
  }

  .features-section {
    max-width: 1340px;
  }

  .pillar-card {
    padding: 34px 28px;
    border-radius: 22px;
  }

  .spiritual-banner {
    max-width: 840px;
    padding: 64px 30px 50px;
  }

  .bismillah-calligraphy {
    font-size: 2.8rem;
  }
}

/* 4K & Ultra-HD TVs (min-width: 2160px) */
@media (min-width: 2160px) {
  html {
    font-size: 22px;
  }

  .nav-container,
  .screenshots-section,
  .features-section {
    max-width: 1800px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .screens-carousel {
    justify-content: center;
  }

  .phone-frame {
    width: 260px;
    height: 530px;
  }
}

/* --------------------------------------------------------------------------
   2. STANDARD LAPTOPS & DESKTOPS (1025px - 1440px)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) and (min-width: 1025px) {
  .nav-container {
    max-width: 1140px;
  }

  .features-section {
    max-width: 1060px;
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS IN HORIZONTAL & SMALL LAPTOPS (993px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-container {
    padding: 14px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pillar-card {
    padding: 22px 18px;
  }
}

/* --------------------------------------------------------------------------
   4. TABLETS (PORTRAIT) & IPADS (769px - 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .nav-container {
    padding: 12px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .pillar-card:last-child {
    grid-column: span 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .swappable-stack-container {
    height: 510px;
    margin: 25px auto 10px;
  }

  .cards-stage {
    width: 215px;
    height: 480px;
  }

  .phone-frame {
    width: 215px;
    height: 440px;
    border-radius: 32px;
  }

  .stack-card {
    width: 215px;
  }

  .stack-card.card-next-1 {
    transform: translate3d(100px, 10px, -70px) rotateY(-13deg) scale(0.88);
    -webkit-transform: translate3d(100px, 10px, -70px) rotateY(-13deg) scale(0.88);
    opacity: 0.8;
  }

  .stack-card.card-prev-1 {
    transform: translate3d(-100px, 10px, -70px) rotateY(13deg) scale(0.88);
    -webkit-transform: translate3d(-100px, 10px, -70px) rotateY(13deg) scale(0.88);
    opacity: 0.8;
  }

  .stack-card.card-next-2 {
    transform: translate3d(170px, 18px, -130px) rotateY(-20deg) scale(0.75);
    -webkit-transform: translate3d(170px, 18px, -130px) rotateY(-20deg) scale(0.75);
    opacity: 0.4;
  }

  .stack-card.card-prev-2 {
    transform: translate3d(-170px, 18px, -130px) rotateY(20deg) scale(0.75);
    -webkit-transform: translate3d(-170px, 18px, -130px) rotateY(20deg) scale(0.75);
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   5. PHABLETS & LARGE PHONES (481px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-container {
    padding: 12px 18px;
  }

  .hero-section {
    padding: 42px 16px 32px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.92rem;
    padding: 0 10px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 250px;
    gap: 9px;
    margin: 0 auto 14px;
  }

  .btn-cta {
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    padding: 0 16px;
    border-radius: 11px;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
  }

  .btn-cta .btn-icon {
    margin-right: 10px;
  }

  .btn-cta .btn-icon svg {
    width: 20px;
    height: 20px;
  }

  .btn-cta .btn-subtext {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .btn-cta .btn-maintext {
    font-size: 0.9rem;
  }

  .direct-apk-note {
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 16px;
  }

  .pillar-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .swappable-stack-container {
    height: 460px;
    margin: 20px auto 10px;
  }

  .cards-stage {
    width: 210px;
    height: 420px;
  }

  .stack-card {
    width: 210px;
  }

  .phone-frame {
    width: 210px;
    height: 420px;
  }

  .stack-card.card-next-1 {
    transform: translate3d(85px, 10px, -70px) rotateY(-13deg) scale(0.86);
    opacity: 0.78;
  }

  .stack-card.card-prev-1 {
    transform: translate3d(-85px, 10px, -70px) rotateY(13deg) scale(0.86);
    opacity: 0.78;
  }

  .stack-card.card-next-2 {
    transform: translate3d(150px, 20px, -130px) rotateY(-20deg) scale(0.74);
    opacity: 0.4;
  }

  .stack-card.card-prev-2 {
    transform: translate3d(-150px, 20px, -130px) rotateY(20deg) scale(0.74);
    opacity: 0.4;
  }

  .bismillah-calligraphy {
    font-size: 1.9rem;
  }

  /* Qaza Calculator Responsive (<= 768px) */
  .qaza-date-row {
    flex-direction: column;
    gap: 14px;
  }

  .qaza-jummah-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .qaza-jummah-count-pill {
    align-self: flex-start;
  }
}

/* --------------------------------------------------------------------------
   6. STANDARD SMARTPHONES (361px - 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .nav-container {
    padding: 10px 14px;
  }

  .logo-area {
    gap: 8px;
  }

  .nav-brand-img {
    width: 32px;
    height: 32px;
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .logo-arabic {
    font-size: 1.2rem;
  }

  .badge-tag {
    display: none;
  }

  .btn-nav-download {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 32px 12px 24px;
  }

  .app-icon-wrapper {
    margin-bottom: 18px;
  }

  .app-icon-box {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .hero-badge {
    padding: 5px 12px;
    font-size: 0.72rem;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .hero-tagline {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .hero-description {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-cta-group {
    max-width: 220px;
    gap: 8px;
    margin: 0 auto 12px;
  }

  .btn-cta {
    flex: 0 0 auto;
    padding: 0 14px;
    border-radius: 10px;
    width: 100%;
    max-width: 220px;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }

  .btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .btn-maintext {
    font-size: 0.86rem;
  }

  .btn-subtext {
    font-size: 0.55rem;
  }

  .direct-apk-note {
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
    justify-content: center;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Screenshots Showcase */
  .screenshots-section {
    padding: 0 10px;
    margin: 20px auto 35px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
    padding: 0 8px;
  }

  /* 3D Card Stack Mobile Optimization */
  .swappable-stack-container {
    height: 440px;
    margin: 15px auto 10px;
  }

  .cards-stage {
    width: 180px;
    height: 400px;
  }

  .stack-card {
    width: 180px;
  }

  .stack-card.card-next-1 {
    transform: translate3d(65px, 8px, -60px) rotateY(-12deg) scale(0.86);
    opacity: 0.75;
  }

  .stack-card.card-prev-1 {
    transform: translate3d(-65px, 8px, -60px) rotateY(12deg) scale(0.86);
    opacity: 0.75;
  }

  .stack-card.card-next-2 {
    transform: translate3d(105px, 16px, -110px) rotateY(-18deg) scale(0.74);
    opacity: 0.35;
  }

  .stack-card.card-prev-2 {
    transform: translate3d(-105px, 16px, -110px) rotateY(18deg) scale(0.74);
    opacity: 0.35;
  }

  .stack-nav-btn {
    width: 38px;
    height: 38px;
  }

  .stack-nav-btn.btn-prev {
    left: 4px;
  }

  .stack-nav-btn.btn-next {
    right: 4px;
  }

  .phone-frame {
    width: 180px;
    height: 380px;
    border-radius: 28px;
    border-width: 3px;
  }

  .screen-caption h4 {
    font-size: 0.82rem;
  }

  .screen-caption p {
    font-size: 0.68rem;
  }

  /* Pillars Feature Cards */
  .features-section {
    padding: 0 12px;
    margin-bottom: 25px;
  }

  .pillar-card {
    padding: 18px 15px;
    border-radius: 16px;
  }

  .pillar-title {
    font-size: 0.98rem;
  }

  .pillar-desc {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  /* Calligraphy Section */
  .spiritual-banner {
    padding: 30px 12px 24px;
  }

  .bismillah-calligraphy {
    font-size: 1.6rem;
  }

  .banner-subline .arabic-tagline {
    font-size: 1.08rem;
  }

  .banner-subline .english-tagline {
    font-size: 0.92rem;
  }

  .dedication-text {
    font-size: 0.8rem;
  }

  .spec-label {
    font-size: 0.65rem;
  }

  /* Footer */
  .site-footer {
    padding: 24px 12px;
  }

  .footer-links {
    gap: 6px 10px;
  }

  .footer-links a {
    font-size: 0.72rem;
  }

  .copyright-notice {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .footer-footnote {
    font-size: 0.68rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Qaza Calculator Responsive (<= 480px) */
  .qaza-calc-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .qaza-prayer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .qaza-prayer-item {
    padding: 10px 4px 8px;
  }

  .qaza-prayer-name {
    font-size: 0.65rem;
  }

  .qaza-prayer-ar {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .qaza-prayer-count {
    font-size: 1.25rem;
  }

  .qaza-summary-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qaza-stat-box {
    padding: 10px 12px;
  }

  .roller-column {
    width: 95px;
  }

  .roller-wheel-item {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   7. SMALL SMARTPHONES & FOLDABLES (<= 360px, e.g. Galaxy Z Fold outer, iPhone SE)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .hero-cta-group {
    max-width: 210px;
    gap: 7px;
    margin: 0 auto 10px;
  }

  .btn-cta {
    padding: 0 12px;
    max-width: 200px;
    height: 40px;
    min-height: 40px;
    border-radius: 9px;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
  }

  .btn-maintext {
    font-size: 0.82rem;
  }

  .btn-subtext {
    font-size: 0.54rem;
  }

  .swappable-stack-container {
    height: 380px;
  }

  .cards-stage {
    width: 155px;
    height: 340px;
  }

  .stack-card {
    width: 155px;
  }

  .phone-frame {
    width: 155px;
    height: 310px;
    border-radius: 22px;
    border-width: 2.5px;
  }

  .pillar-card {
    padding: 16px 12px;
  }

  .bismillah-calligraphy {
    font-size: 1.45rem;
  }

  /* Qaza Calculator Responsive (<= 360px) */
  .qaza-prayer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roller-column {
    width: 82px;
  }

  .roller-wheel-item {
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   8. ACCESSIBILITY: TV REMOTE NAVIGATION & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

  /* Touch Devices: optimize click targets */
  .btn-cta,
  .btn-nav-download,
  .theme-toggle,
  .screen-card {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}