/* ═══════════════════ LAYOUT ═══════════════════ */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem
}

.section {
  padding: 5rem 0
}

.section-alt {
  background: var(--bg-secondary)
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .8rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .08);
  border: 1px solid rgba(227, 207, 170, .2);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: .8rem
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .02em;
  margin-bottom: .6rem;
  line-height: 1.25
}

.section-desc {
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 10%, rgba(227, 207, 170, .06), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(204, 174, 134, .04), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(139, 92, 246, .03), transparent 60%);
}

.hero-ornament {
  font-size: .72rem;
  color: var(--accent-gold);
  letter-spacing: .25em;
  opacity: .5;
  margin-bottom: 1rem;
  animation: fadeUp .6s .1s both
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .9rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .08);
  border: 1px solid rgba(227, 207, 170, .25);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 1.2rem;
  animation: fadeUp .6s .15s both;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: .02em;
  margin-bottom: .8rem;
  animation: fadeUp .6s .2s both;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--accent-green), var(--accent-teal));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* animation: shimmer 3s linear infinite; */
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.85;
  margin-bottom: 2.2rem;
  animation: fadeUp .6s .28s both;
}

.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 2.8rem;
  color: var(--accent-gold);
  direction: rtl;
  margin-bottom: .5rem;
  opacity: .7;
  /* animation: float 4s ease-in-out infinite; */
  /* animation-delay: .5s; */
}

.hero-ctas {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .6s .36s both;
  margin-bottom: 3rem
}

.cta-primary {
  padding: .65rem 1.8rem;
  border-radius: 100px;
  background: var(--accent-green);
  color: #000;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .05em;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227, 207, 170, .3);
  opacity: .9
}

.cta-outline {
  padding: .65rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .05em;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem
}

.cta-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green)
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .6s .44s both
}

.hstat {
  text-align: center
}

.hstat-n {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1
}

.hstat-l {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .25rem
}

/* ═══════════════════ SCREENSHOTS SECTION ═══════════════════ */
.screenshots-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  overflow: hidden
}

.ss-track-wrap {
  position: relative
}

.ss-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 2rem 2rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ss-scroll::-webkit-scrollbar {
  display: none
}

.ss-phone {
  flex-shrink: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.ss-phone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), var(--shadow-glow)
}

.ss-phone-notch {
  height: 10px;
  background: var(--bg-card-alt);
  border-radius: 0 0 12px 12px;
  width: 60px;
  margin: 8px auto 0
}

.ss-phone-screen {
  padding: 0;
  background: var(--bg-card-alt)
}

.ss-phone-img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block
}

/* phone screen mockup when no real image */
.ss-mock {
  width: 100%;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  background: var(--bg-card-alt);
  overflow: hidden
}

.ss-mock-bar {
  height: 38px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0
}

.ss-mock-title {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: .1em
}

.ss-mock-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden
}

.ss-mock-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 6px
}

.ss-mock-tab {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .5rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color)
}

.ss-mock-tab.active {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green)
}

.ss-mock-search {
  height: 26px;
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px
}

.ss-mock-search-txt {
  font-size: .48rem;
  color: var(--text-muted)
}

.ss-mock-stats {
  display: flex;
  gap: 4px;
  margin-bottom: 6px
}

.ss-mock-stat {
  flex: 1;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 5px;
  text-align: center
}

.ss-mock-stat.act {
  background: var(--accent-green)
}

.ss-mock-stat-n {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-green)
}

.ss-mock-stat.act .ss-mock-stat-n {
  color: #000
}

.ss-mock-stat-l {
  font-size: .38rem;
  color: var(--text-muted);
  margin-top: 1px
}

.ss-mock-stat.act .ss-mock-stat-l {
  color: rgba(0, 0, 0, .7)
}

.ss-mock-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color)
}

.ss-mock-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0
}

.ss-mock-info {
  flex: 1
}

.ss-mock-en {
  font-size: .52rem;
  font-weight: 700;
  color: var(--text-primary)
}

.ss-mock-meta {
  font-size: .42rem;
  color: var(--text-muted)
}

.ss-mock-ar {
  font-family: 'Amiri', serif;
  font-size: .72rem;
  color: var(--accent-green);
  direction: rtl
}

/* juz/ruku mock */
.ss-mock-jitem {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 4px
}

.ss-mock-jicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.ss-mock-jname {
  font-size: .52rem;
  font-weight: 700;
  color: var(--text-primary)
}

.ss-mock-jstart {
  font-size: .42rem;
  color: var(--text-muted)
}

.ss-mock-jar {
  font-family: 'Amiri', serif;
  font-size: .65rem;
  color: var(--accent-green);
  direction: rtl;
  margin-left: auto
}

.ss-label {
  text-align: center;
  margin-top: .8rem;
  padding: 0 .5rem
}

.ss-label-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-primary)
}

.ss-label-sub {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: .15rem
}

.ss-scroll-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .72rem;
  color: var(--text-muted)
}

.ss-scroll-hint span {
  color: var(--accent-green)
}

/* ═══════════════════ BROWSE ═══════════════════ */
.browse-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem
}

.btab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all .2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.btab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s;
  border-radius: inherit
}

.btab-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px)
}

.btab-card:hover::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(227, 207, 170, .06), transparent 70%);
  opacity: 1
}

.btab-icon {
  font-size: 2.2rem;
  margin-bottom: .9rem;
  display: block
}

.btab-title {
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem
}

.btab-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.65
}

.btab-count {
  margin-top: .8rem;
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .18rem .6rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .1);
  border: 1px solid rgba(227, 207, 170, .2);
  color: var(--accent-green)
}

/* filter demo */
.filter-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem
}

.fd-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.fd-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem
}

.fd-chip {
  padding: .3rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-alt);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default
}

.fd-chip.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000
}

.fd-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .8rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: .4rem
}

.fd-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.fd-info {
  flex: 1
}

.fd-en {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .15rem
}

.fd-meta {
  display: flex;
  gap: .35rem
}

.fd-badge {
  font-size: .6rem;
  padding: .12rem .45rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted)
}

.fd-ar {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--accent-green);
  direction: rtl;
}

[data-theme="light"] .fd-ar {
  color: #000;
}

/* ═══════════════════ 3 READ MODES ═══════════════════ */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem
}

.mode-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all .2s;
}

.mode-card.featured {
  border-color: rgba(227, 207, 170, .35);
  animation: goldGlow 3s ease-in-out infinite
}

.mode-card:hover {
  transform: translateY(-4px)
}

.mode-pill {
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 100px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem
}

.mode-pill.single {
  background: rgba(204, 174, 134, .12);
  border: 1px solid rgba(204, 174, 134, .25);
  color: var(--accent-teal)
}

.mode-pill.whole {
  background: rgba(227, 207, 170, .12);
  border: 1px solid rgba(227, 207, 170, .25);
  color: var(--accent-green)
}

.mode-pill.mushaf {
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .25);
  color: var(--accent-gold)
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
  display: block
}

.mode-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem
}

.mode-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7
}

.mode-features {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.mode-features li {
  font-size: .75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.5
}

.mode-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 800;
  font-size: .72rem;
  flex-shrink: 0;
  margin-top: .05rem
}

/* Arabic demo block */
.arabic-demo-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: right;
  direction: rtl;
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 2.8rem;
  line-height: 2.4;
  color: var(--accent-green);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .arabic-demo-block {
  color: #000;
}

.arabic-demo-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: .4
}

.w-verb {
  color: var(--gram-verb)
}

.w-noun {
  color: var(--gram-noun)
}

.w-particle {
  color: var(--gram-particle)
}

.w-pronoun {
  color: var(--gram-pronoun)
}

.w-divine {
  color: var(--gram-divine)
}

.vmark {
  color: var(--accent-teal);
  font-size: .65em;
  font-family: 'DM Sans', sans-serif
}

/* ═══════════════════ MUSHAF DEEP DIVE ═══════════════════ */
.mushaf-layout-demo {
  display: grid;
  grid-template-columns: 44px 220px 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  min-height: 320px;
}

.mushaf-rail {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 0;
  gap: .35rem;
}

.mushaf-tab {
  width: 32px;
  padding: .42rem .1rem;
  border-radius: 6px;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  border: 1px solid transparent;
}

.mushaf-tab.active {
  background: var(--accent-green)
}

.mushaf-tab-lbl {
  font-size: .44rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-align: center
}

.mushaf-tab.active .mushaf-tab-lbl {
  color: #000
}

.mushaf-tab-ar {
  font-family: 'Amiri', serif;
  font-size: .55rem;
  color: var(--accent-gold);
  line-height: 1
}

.mushaf-tab.active .mushaf-tab-ar {
  color: #000
}

.mushaf-panel {
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border-color);
  padding: 1rem .8rem;
  overflow: hidden;
}

.mdp-title {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .18rem
}

.mdp-ar {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--accent-gold);
  direction: rtl;
  margin-bottom: .2rem
}

.mdp-sub {
  font-size: .62rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: .4rem
}

.mdp-desc {
  font-size: .67rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: .5rem
}

.mdp-stat {
  display: flex;
  justify-content: space-between;
  padding: .22rem .35rem;
  border-bottom: 1px solid var(--border-color);
  font-size: .63rem
}

.mdp-sk {
  color: var(--text-muted)
}

.mdp-sv {
  font-weight: 700;
  color: var(--text-secondary)
}

.mdp-tip {
  font-size: .62rem;
  color: var(--accent-gold);
  font-style: italic;
  padding: .35rem .5rem;
  background: rgba(245, 158, 11, .07);
  border-left: 2px solid var(--accent-gold);
  border-radius: 0 4px 4px 0;
  margin-top: .4rem;
  line-height: 1.5
}

.mushaf-text-area {
  padding: 1.2rem;
  direction: rtl;
  text-align: justify;
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.25rem;
  color: var(--accent-green);
  line-height: 2.5
}

/* tabs grid */
.tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 2rem
}

.tab-explain {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: all .18s
}

.tab-explain:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px)
}

.te-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(227, 207, 170, .1);
  border: 1px solid rgba(227, 207, 170, .2);
  padding: .18rem .55rem;
  border-radius: 100px;
  margin-bottom: .6rem
}

.te-ar {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--accent-gold);
  direction: rtl;
  margin-bottom: .3rem;
  display: block
}

.te-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem
}

.te-desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.6
}

.te-stat {
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-top: .4rem
}

/* ═══════════════════ COLOR MODES ═══════════════════ */
.color-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem
}

.cm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all .2s
}

.cm-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px)
}

.cm-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem
}

.cm-icon {
  font-size: 1.6rem
}

.cm-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary)
}

.cm-badge {
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .1);
  border: 1px solid rgba(227, 207, 170, .2);
  color: var(--accent-green)
}

.cm-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem
}

.leg-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .22rem .6rem;
  border-radius: 100px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color)
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0
}

.cm-none-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 2rem
}

.arabic-color-demo {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: right;
  direction: rtl;
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.5rem;
  line-height: 2.3;
  margin-top: 2rem;
}

/* ═══════════════════ AUDIO ═══════════════════ */
.audio-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem
}

.audio-player-demo {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem
}

.apd-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem
}

.apd-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-teal);
  cursor: default
}

.apd-btn.play {
  background: var(--accent-green);
  color: #000;
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  border-color: var(--accent-green)
}

.apd-viz {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 28px;
  margin-bottom: .8rem
}

.apd-bar {
  width: 3px;
  background: var(--accent-teal);
  border-radius: 2px;
  animation: waveBar .55s ease-in-out infinite
}

.apd-bar:nth-child(2) {
  animation-delay: .08s;
  height: 13px
}

.apd-bar:nth-child(3) {
  animation-delay: .16s;
  height: 20px
}

.apd-bar:nth-child(4) {
  animation-delay: .12s;
  height: 10px
}

.apd-bar:nth-child(5) {
  animation-delay: .22s;
  height: 24px
}

.apd-bar:nth-child(6) {
  animation-delay: .04s;
  height: 15px
}

.apd-bar:nth-child(7) {
  animation-delay: .28s;
  height: 22px
}

.apd-bar:nth-child(8) {
  animation-delay: .1s;
  height: 16px
}

.apd-bar:nth-child(9) {
  animation-delay: .18s;
  height: 8px
}

.apd-bar:nth-child(10) {
  animation-delay: .06s;
  height: 20px
}

.apd-bar:nth-child(11) {
  animation-delay: .24s;
  height: 12px
}

.apd-bar:nth-child(12) {
  animation-delay: .14s;
  height: 25px
}

.apd-bar:nth-child(13) {
  animation-delay: .3s;
  height: 9px
}

.apd-bar:nth-child(14) {
  animation-delay: .09s;
  height: 18px
}

.apd-bar:nth-child(15) {
  animation-delay: .2s;
  height: 14px
}

.apd-bar:nth-child(16) {
  animation-delay: .07s;
  height: 22px
}

.apd-prog {
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  margin-bottom: .4rem;
  overflow: hidden
}

.apd-prog-fill {
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
  border-radius: 2px
}

.apd-times {
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  color: var(--text-muted)
}

.reciters-list {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.reciter-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md)
}

.reciter-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0
}

.reciter-info {
  flex: 1
}

.reciter-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary)
}

.reciter-style {
  font-size: .68rem;
  color: var(--text-muted)
}

.reciter-active {
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .1);
  border: 1px solid rgba(227, 207, 170, .2);
  color: var(--accent-green)
}

.fc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem
}

.fc-list li {
  font-size: .75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.5
}

.fc-list li::before {
  content: '→';
  color: var(--accent-teal);
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: .08rem
}

/* ═══════════════════ LANGUAGES ═══════════════════ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: all .18s
}

.lang-card:hover {
  border-color: var(--accent-green);
  transform: translateX(3px)
}

.lang-flag {
  font-size: 1.8rem;
  flex-shrink: 0
}

.lang-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .1rem
}

.lang-native {
  font-size: .78rem;
  color: var(--text-muted)
}

.lang-sub {
  font-size: .65rem;
  color: var(--accent-green);
  margin-top: .1rem;
  font-weight: 600
}

.english-variants {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.ev-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem
}

.ev-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem
}

.ev-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .7rem
}

.ev-quote {
  font-size: .78rem;
  font-style: italic;
  color: var(--text-secondary);
  padding: .6rem .8rem;
  background: var(--bg-card);
  border-left: 2px solid var(--accent-green);
  border-radius: 0 8px 8px 0;
  line-height: 1.65
}

/* ═══════════════════ WORD FEATURES ═══════════════════ */
.features-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all .2s
}

.feature-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px)
}

.fc-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
  display: block
}

.fc-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem
}

.fc-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem
}

.wc-visual {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  align-items: center;
  direction: rtl;
  margin-top: .8rem;
  min-height: 80px
}

.wc-w {
  font-family: 'Amiri', serif;
  color: var(--accent-teal);
  cursor: default
}

/* ═══════════════════ SETTINGS ═══════════════════ */
.settings-tabs-demo {
  display: flex;
  gap: .25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: .25rem;
  width: fit-content;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
  justify-content: center
}

.std-tab {
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .14s
}

.std-tab.active {
  background: var(--accent-green);
  color: #000
}

.settings-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem
}

.sp {
  display: none
}

.sp.active {
  display: block;
  animation: fadeUp .3s ease
}

.disp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem
}

.disp-block {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem
}

.disp-block-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .7rem
}

.color-swatches {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin: .5rem 0
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: default;
  border: 2px solid transparent
}

.swatch.sel {
  border-color: var(--accent-green);
  transform: scale(1.15)
}

.cache-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.cache-action {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem
}

.cache-action-icon {
  font-size: 1.3rem
}

.cache-action-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .1rem
}

.cache-action-desc {
  font-size: .68rem;
  color: var(--text-muted)
}

/* ═══════════════════ STRUCTURE ═══════════════════ */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem
}

.struct-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: all .18s
}

.struct-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px)
}

.struct-num {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .15rem
}

.struct-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .5rem
}

.struct-ar {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  direction: rtl;
  margin-bottom: .5rem
}

.struct-desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.55
}

/* ═══════════════════ FLOW ═══════════════════ */
.flow-steps {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: .5rem 0;
  margin-bottom: 2rem
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: .9rem 1.2rem;
  white-space: nowrap;
  flex-shrink: 0
}

.flow-step-num {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-green);
  margin-bottom: .2rem
}

.flow-step-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-primary)
}

.flow-arrow {
  font-size: 1.2rem;
  color: var(--accent-green);
  padding: 0 .5rem;
  flex-shrink: 0;
  opacity: .6
}

/* ═══════════════════ REFERENCE TABLE ═══════════════════ */
.ref-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .8rem
}

.ref-table th {
  text-align: left;
  padding: .7rem 1rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color)
}

.ref-table th:first-child {
  border-radius: 12px 0 0 0
}

.ref-table th:last-child {
  border-radius: 0 12px 0 0
}

.ref-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary)
}

.ref-table tr:hover td {
  background: var(--bg-card-alt)
}

.ref-table tr:last-child td {
  border-bottom: none
}

.ref-table tr:last-child td:first-child {
  border-radius: 0 0 0 12px
}

.ref-table tr:last-child td:last-child {
  border-radius: 0 0 12px 0
}

.rt-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 700;
  padding: .12rem .45rem;
  border-radius: 100px;
  background: rgba(227, 207, 170, .1);
  border: 1px solid rgba(227, 207, 170, .2);
  color: var(--accent-green);
  margin-right: .2rem
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media(max-width:900px) {
  .mushaf-layout-demo {
    grid-template-columns: 44px 1fr
  }

  .mushaf-panel {
    display: none
  }
}

@media(max-width:768px) {

  .browse-tabs,
  .modes-grid,
  .tabs-grid,
  .lang-grid,
  .features-2col,
  .disp-grid,
  .cache-grid,
  .structure-grid {
    grid-template-columns: 1fr
  }

  .color-modes-grid,
  .english-variants {
    grid-template-columns: 1fr
  }

  .cm-none-card {
    flex-direction: column
  }

  .flow-steps {
    flex-direction: column;
    align-items: flex-start
  }

  .flow-arrow {
    transform: rotate(90deg)
  }

  .sh-nav {
    display: none
  }

  .hero-stats {
    gap: 1.5rem
  }

  .mushaf-layout-demo {
    grid-template-columns: 40px 1fr
  }
}