/* ============================================
   NAMAZ DEFTERİM – Premium Website CSS
   Aesthetic: Luxury Islamic / Dark Teal & Gold
   ============================================ */

:root {
  --teal-darkest: #060F12;
  --teal-dark: #0F242C;
  --teal: #204959;
  --teal-mid: #2E657A;
  --teal-light: #3D8FA8;
  --gold: #DFBA6B;
  --gold-light: #F4ECCF;
  --gold-dim: rgba(223, 186, 107, 0.15);
  --gold-border: rgba(223, 186, 107, 0.25);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --success: #00E676;
  --danger: #FF5252;
  --text: #FFFFFF;
  --text-muted: #A5B6BC;
  --card: #142C36;
  --radius: 20px;
  --nav-h: 72px;
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --font-arabic: 'Noto Naskh Arabic', serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--teal-darkest);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--teal-darkest); }

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--teal-darkest); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(6, 15, 18, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 var(--gold-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 10px 22px;
  border-radius: 40px;
  color: var(--gold) !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: rgba(223, 186, 107, 0.25) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 60px) 80px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.geo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(223,186,107,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223,186,107,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, #2E657A, transparent 70%);
}

.hero-orb-2 {
  width: 400px; height: 400px;
  top: 30%; right: -50px;
  background: radial-gradient(circle, #DFBA6B 0%, transparent 70%);
  opacity: 0.12;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  bottom: 0; left: 40%;
  background: radial-gradient(circle, #204959, transparent 70%);
}

.arabesque-corner {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' stroke='%23DFBA6B' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='%23DFBA6B' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='50' cy='50' r='15' stroke='%23DFBA6B' stroke-width='0.6' fill='none'/%3E%3Cline x1='5' y1='50' x2='95' y2='50' stroke='%23DFBA6B' stroke-width='0.5'/%3E%3Cline x1='50' y1='5' x2='50' y2='95' stroke='%23DFBA6B' stroke-width='0.5'/%3E%3Cline x1='18' y1='18' x2='82' y2='82' stroke='%23DFBA6B' stroke-width='0.4'/%3E%3Cline x1='82' y1='18' x2='18' y2='82' stroke='%23DFBA6B' stroke-width='0.4'/%3E%3C/svg%3E");
  background-size: contain;
}

.top-left { top: var(--nav-h); left: 0; }
.top-right { top: var(--nav-h); right: 0; transform: scaleX(-1); }

/* Hero content */
.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--gold-border);
  border-radius: 40px;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 28px;
  background: var(--gold-dim);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-verse {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}

.verse-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), transparent);
  display: none;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold);
  direction: rtl;
  line-height: 2;
}

.verse-translation {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.verse-translation em {
  color: var(--gold);
  font-style: normal;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(32, 73, 89, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(223, 186, 107, 0.2);
  background: linear-gradient(135deg, #3D8FA8, var(--teal-mid));
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--gold); border-color: var(--gold-border); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* === PHONE MOCKUP === */
.hero-phone {
  flex-shrink: 0;
  position: relative;
}

.phone-frame {
  width: 280px;
  background: linear-gradient(160deg, #1A3A47, #0D1F26);
  border: 1.5px solid rgba(223,186,107,0.3);
  border-radius: 44px;
  padding: 14px 10px 10px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.6);
}

.phone-notch {
  width: 80px; height: 22px;
  background: #060F12;
  border-radius: 12px;
  margin: 0 auto 10px;
}

.phone-screen {
  border-radius: 30px;
  background: linear-gradient(180deg, #0F242C 0%, #060F12 100%);
  overflow: hidden;
  padding: 14px 12px;
  min-height: 500px;
}

.phone-home-bar {
  width: 100px; height: 4px;
  background: rgba(223,186,107,0.3);
  border-radius: 2px;
  margin: 10px auto 0;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(223,186,107,0.08), transparent);
  pointer-events: none;
}

/* Mock Screen Content */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mock-logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
}

.mock-logo-dot {
  width: 18px; height: 18px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
}

.mock-streak {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(223,186,107,0.12);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
}

.mock-date {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.mock-countdown {
  background: rgba(46,101,122,0.25);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  margin-bottom: 14px;
}

.mock-countdown-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.mock-countdown-time {
  font-family: 'Cinzel', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.mock-prayers { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }

.mock-prayer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.mock-prayer.active {
  background: rgba(223,186,107,0.08);
  border-color: rgba(223,186,107,0.3);
}

.mp-name { font-size: 0.6rem; font-family: var(--font-heading); color: var(--text); }
.mp-time { font-size: 0.55rem; color: var(--text-muted); }

.mp-status {
  font-size: 0.5rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.mp-status.cemaat { background: rgba(0,230,118,0.15); color: var(--success); }
.mp-status.solo { background: rgba(0,230,118,0.1); color: #6EF7B0; }
.mp-status.pending { background: rgba(223,186,107,0.15); color: var(--gold); }
.mp-status.neutral { color: var(--text-muted); }

.mock-dhikr-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 0.52rem;
  color: var(--text-muted);
}

.mock-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-mid), var(--gold));
  border-radius: 2px;
  transition: width 1s ease;
}

.mock-prog-val { font-size: 0.5rem; color: var(--gold); white-space: nowrap; }

/* === ANIMATE IN === */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION COMMON === */
section {
  padding: 120px 40px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.orn-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.gold-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FEATURES === */
.features {
  padding-top: 80px;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid rgba(223,186,107,0.12);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,186,107,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(223,186,107,0.2);
  border-color: rgba(223,186,107,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-large {
  grid-column: span 2;
}

.feature-wide {
  grid-column: span 2;
}

.fc-icon {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.fc-list { display: flex; flex-direction: column; gap: 8px; }

.fc-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 4px;
}

.fc-list li::first-letter { color: var(--gold); }

.fc-verse {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  border-left: 2px solid var(--gold);
}

.arabic-small {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--gold);
  direction: rtl;
  line-height: 2;
  display: block;
}

.fc-verse p:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* === SCREENS SECTION === */
.screens {
  background: linear-gradient(180deg, transparent, rgba(32,73,89,0.08), transparent);
  max-width: 100%;
  overflow: hidden;
  padding: 120px 40px;
}

.screens-slider { position: relative; }

.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 20px 40px;
  cursor: grab;
  transition: transform 0.3s;
}

.screens-track::-webkit-scrollbar { display: none; }
.screens-track.grabbing { cursor: grabbing; }

.screen-card {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
  width: 220px;
}

.mini-phone {
  background: linear-gradient(160deg, #1A3A47, #0D1F26);
  border: 1px solid rgba(223,186,107,0.25);
  border-radius: 28px;
  padding: 10px 8px 8px;
  margin-bottom: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mini-phone:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(223,186,107,0.3);
}

.mp-screen {
  border-radius: 20px;
  background: linear-gradient(180deg, #0F242C, #060F12);
  padding: 12px 10px;
  min-height: 380px;
  overflow: hidden;
}

.bg-dark { background: linear-gradient(180deg, #0F242C 0%, #060F12 100%); }

.screen-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.screen-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mini screen content */
.mps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mps-logo {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--gold);
}

.mps-streak {
  font-size: 0.6rem;
  color: var(--gold);
  background: rgba(223,186,107,0.12);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
}

.mps-countdown-box {
  text-align: center;
  padding: 10px;
  background: rgba(46,101,122,0.2);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.mps-ct-label { font-size: 0.45rem; color: var(--text-muted); letter-spacing: 0.06em; font-family: var(--font-heading); text-transform: uppercase; }
.mps-ct-time { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); font-weight: 700; }

.mps-prayers-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }

.mps-p {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mps-p.green { border-color: rgba(0,230,118,0.2); }
.mps-p.green span:last-child { color: var(--success); }
.mps-p.gold-pulse { border-color: rgba(223,186,107,0.3); background: rgba(223,186,107,0.07); }
.mps-p.gold-pulse span:last-child { color: var(--gold); }
.mps-p.dim { opacity: 0.4; }

.mps-verse-box {
  background: rgba(0,0,0,0.2);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
  padding: 8px 10px;
}

.arabic-tiny {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--gold);
  direction: rtl;
  line-height: 1.8;
  display: block;
  text-align: right;
}

.mps-verse-tr { font-size: 0.45rem; color: var(--text-muted); font-style: italic; }

/* Chart */
.mps-chart {
  margin: 8px 0;
  padding: 10px 6px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), rgba(223,186,107,0.3));
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.chart-bar.dim { background: linear-gradient(180deg, rgba(255,82,82,0.6), rgba(255,82,82,0.15)); }

.chart-bar span { font-size: 0.35rem; color: var(--text-muted); }

.mps-stats-row {
  display: flex;
  justify-content: space-around;
  margin: 8px 0;
  padding: 6px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.mps-stat-item { text-align: center; }
.msi-val { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; }
.msi-val.green { color: var(--success); }
.msi-val.gold { color: var(--gold); }
.msi-val.blue { color: var(--teal-light); }
.msi-lbl { font-size: 0.38rem; color: var(--text-muted); }

.mps-heatmap { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.hm-row { display: flex; gap: 3px; }

.hm-cell {
  width: 18px; height: 18px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}

.hm-cell.full { background: rgba(0,230,118,0.5); }
.hm-cell.part { background: rgba(223,186,107,0.4); }
.hm-cell.empty { background: rgba(255,82,82,0.3); }

/* Tasbih screen */
.tasbih-circle-container {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.tasbih-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(223,186,107,0.1), transparent);
  box-shadow: 0 0 20px rgba(223,186,107,0.15);
}

.tc-count { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.tc-label { font-size: 0.35rem; color: var(--text-muted); text-align: center; }

.tasbih-progress-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tp-item {
  font-size: 0.48rem;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.tp-item.done { color: var(--success); border-color: rgba(0,230,118,0.3); }
.tp-item.active { color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim); }

.mps-zikir-name {
  text-align: center;
  margin-bottom: 14px;
}

.tasbih-tap-btn {
  text-align: center;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  padding: 8px 0;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* Calendar screen */
.mps-calendar { margin-bottom: 10px; }
.cal-month { font-family: var(--font-heading); font-size: 0.6rem; color: var(--gold); text-align: center; margin-bottom: 6px; }

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-days-header span { font-size: 0.38rem; color: var(--text-muted); text-align: center; font-family: var(--font-heading); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.38rem;
  color: var(--text-muted);
  border-radius: 4px;
}

.cal-cell.full { background: rgba(0,230,118,0.25); color: var(--success); }
.cal-cell.today { background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold); font-weight: 700; }
.cal-cell.empty { background: transparent; }

.mps-day-detail {
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.mdd-title { font-size: 0.5rem; color: var(--gold); margin-bottom: 6px; font-family: var(--font-heading); }
.mdd-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mdd-name { font-size: 0.48rem; color: var(--text-muted); }
.mdd-badge { font-size: 0.4rem; padding: 2px 5px; border-radius: 6px; }
.mdd-badge.green { background: rgba(0,230,118,0.15); color: var(--success); }

/* Badges mini screen */
.badges-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.badge-mini {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(223,186,107,0.08);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
}

.badge-mini.locked {
  filter: grayscale(1);
  opacity: 0.3;
  border-color: rgba(255,255,255,0.06);
}

.badge-detail-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(223,186,107,0.06);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
}

.bdm-icon { font-size: 1.5rem; }
.bdm-title { font-family: var(--font-heading); font-size: 0.55rem; color: var(--gold); margin-bottom: 3px; }
.bdm-desc { font-size: 0.45rem; color: var(--text-muted); }

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  color: var(--gold);
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.slider-dot.active {
  opacity: 1;
  background: var(--gold);
  transform: scale(1.3);
}

/* === DHIKR SECTION === */
.dhikr-section {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: linear-gradient(180deg, transparent, rgba(32,73,89,0.05), transparent);
}

.dhikr-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dhikr-orb {
  position: absolute;
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(32,73,89,0.2), transparent 70%);
  filter: blur(60px);
}

.dhikr-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.dhikr-tab {
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.dhikr-tab.active {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

.dhikr-tab:hover:not(.active) {
  color: var(--text);
  border-color: var(--glass-border);
}

.dhikr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.dhikr-card {
  background: var(--card);
  border: 1px solid rgba(223,186,107,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  position: relative;
  overflow: hidden;
}

.dhikr-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.dhikr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.dhikr-card:hover::after { opacity: 1; }

.dhikr-card[style*="display:none"], .dhikr-card.hidden {
  display: none !important;
}

.dhikr-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(61, 143, 168, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.dhikr-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold);
  direction: rtl;
  text-align: right;
  line-height: 2;
  margin-bottom: 8px;
  display: block;
}

.dhikr-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.dhikr-meaning {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
}

.dhikr-target {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.dhikr-count {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.dhikr-count-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dhikr-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.dhikr-reason em { color: var(--teal-light); font-style: normal; }

/* === BADGES SECTION === */
.badges-section {
  text-align: center;
}

.badges-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.badge-item {
  background: var(--card);
  border: 1px solid rgba(223,186,107,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.badge-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(223,186,107,0.3);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(223,186,107,0.3));
}

.badge-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === DOWNLOAD SECTION === */
.download-section {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 120px 40px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(15,36,44,0.8), transparent);
}

.dl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-geo {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(223,186,107,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(32,73,89,0.08) 0%, transparent 50%);
}

.dl-orb {
  position: absolute;
  width: 600px; height: 300px;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(223,186,107,0.06), transparent 70%);
  filter: blur(40px);
}

.dl-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.dl-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.dl-title em { color: var(--gold); font-style: italic; }

.dl-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 44px;
}

.dl-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 16px;
  border: 1px solid var(--gold-border);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
}

.dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.dl-ios {
  background: linear-gradient(135deg, #1A3A47, #0D1F26);
}

.dl-android {
  background: linear-gradient(135deg, #1C3629, #0A1F15);
  border-color: rgba(0,230,118,0.2);
}

.dl-btn svg { color: var(--gold); flex-shrink: 0; }

.dl-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dl-btn-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.04em; font-family: var(--font-heading); }
.dl-btn-main { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--gold); }

.dl-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.dl-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-verse {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: rgba(223,186,107,0.5);
  direction: rtl;
  line-height: 2;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* === MOBILE NAV MENU === */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(6,15,18,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  padding: 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-mobile-menu a:hover { color: var(--gold); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .hero { padding: 120px 40px 80px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large, .feature-wide { grid-column: span 2; }
  .dhikr-cards { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .badges-showcase { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    gap: 60px;
  }

  .hero-content { max-width: 100%; }
  .hero-verse { text-align: center; }
  .arabic-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin: 0 auto 28px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 80px 24px; }
  .screens { padding: 80px 0; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-large, .feature-wide { grid-column: span 1; }

  .dhikr-cards { grid-template-columns: 1fr; }
  .badges-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-title { font-size: 2.4rem; }
  .dl-buttons { flex-direction: column; align-items: center; }
  .dl-btn { width: 280px; justify-content: center; }
  .badges-showcase { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dl-features { gap: 16px; }
  .hero-stats { gap: 16px; }
}

/* === LEGAL / CONTENT PAGES === */
.legal-page {
  padding-top: calc(var(--nav-h) + 40px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-container {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 40px;
  background: var(--card);
  border: 1px solid rgba(223, 186, 107, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.legal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 8px;
  text-align: center;
}

.legal-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 40px;
}

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

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 6px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  padding-left: 12px;
  margin-bottom: 16px;
}

.legal-section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.legal-section li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s;
}

.legal-back-btn:hover {
  transform: translateX(-4px);
}

.footer-link {
  color: var(--gold);
  margin-left: 8px;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

@media (max-width: 860px) {
  .legal-container {
    margin: 20px 16px 60px;
    padding: 24px;
  }
  .legal-title {
    font-size: 2rem;
  }
}

