/* ═══════════════════════════════════════
   FONTS
═══════════════════════════════════════ */
@font-face {
  font-family: 'MadinaQuran';
  src: url('../fonts/madina.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('../fonts/thmanyahserifdisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('../fonts/thmanyahserifdisplay-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DigitalKhatt-OldMadina';
  src: url('../fonts/DigitalKhatt-OldMadina.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DigitalKhatt-Indobak';
  src: url('../fonts/DigitalKhattIndoPak.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Me_Quran V1';
  src: url('../fonts/Me_Quran-V1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Elgharib LogoWeb';
  src: url('../fonts/Elgharib-logoWEB.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════
   LIGHT THEME (default)
═══════════════════════════════════════ */
:root,
body.theme-light {
  color-scheme: light;
  --bg: #fcfcfc;
  --bg-surface: #f4f4f4;
  --bg-card: #ffffff;
  --bg-elevated: #eeeeee;
  --border: #e0e0e0;
  --border-gold: #cccccc;

  --gold: #111111;
  --gold-light: #000000;
  --gold-dim: rgba(0, 0, 0, 0.06);

  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #777777;

  --header-bg: rgba(255, 255, 255, 0.95);
  --drawer-bg: #ffffff;

  --font-display: 'Thmanyah Serif Display', serif;
  --font-ui: 'Thmanyah Sans', sans-serif;
  --font-text: 'Thmanyah Sans', 'Kufam', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-quran: 'MadinaQuran', 'Amiri', serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition: 0.22s ease;

  --tg-blue: #113f5c;
  --accent: #113f5c;

  --mushaf-bg: #ffffff;
  --mushaf-border: #e0e0e0;
  --mushaf-shadow: rgba(0, 0, 0, 0.08);
  --mushaf-text: #111111;
  --highlight-bg: rgba(17, 63, 92, 0.12);
  --highlight-color: #113f5c;
}

/* ═══════════════════════════════════════
   DARK THEME
═══════════════════════════════════════ */
body.theme-dark {
  color-scheme: dark;
  --bg: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --border: #333333;
  --border-gold: #444444;

  --gold: #ffffff;
  --gold-light: #f0f0f0;
  --gold-dim: rgba(255, 255, 255, 0.08);

  --text-primary: #f0f0f0;
  --text-secondary: #cccccc;
  --text-muted: #888888;

  --header-bg: rgba(5, 5, 5, 0.90);
  --drawer-bg: #0a0a0a;

  --tg-blue: #1d618a;
  --accent: #1d618a;

  --mushaf-bg: #0a0a0a;
  --mushaf-border: #333333;
  --mushaf-shadow: rgba(0, 0, 0, 0.5);
  --mushaf-text: #f0f0f0;
  --highlight-bg: rgba(29, 97, 138, 0.18);
  --highlight-color: #1d618a;
}

/* ═══════════════════════════════════════
   ORCHID THEME (Sahlaby)
═══════════════════════════════════════ */
body.theme-orchid {
  color-scheme: dark;
  --bg: #1a0f21;
  --bg-surface: #22152b;
  --bg-card: #2c1a38;
  --bg-elevated: #372145;
  --border: #4d2f61;
  --border-gold: #5c3875;

  --gold: #dcb3ed;
  --gold-light: #e6c8f2;
  --gold-dim: rgba(220, 179, 237, 0.1);

  --text-primary: #f2e6f7;
  --text-secondary: #d8b8e6;
  --text-muted: #b88ec9;

  --header-bg: rgba(26, 15, 33, 0.90);
  --drawer-bg: #22152b;

  --tg-blue: #9b6cb5;
  --accent: #b07bd4;

  --mushaf-bg: #22152b;
  --mushaf-border: #4d2f61;
  --mushaf-shadow: rgba(0, 0, 0, 0.4);
  --mushaf-text: #f2e6f7;
  --highlight-bg: rgba(176, 123, 212, 0.18);
  --highlight-color: #dcb3ed;
}

/* ═══════════════════════════════════════
   SEPIA THEME (Nescafé)
═══════════════════════════════════════ */
body.theme-sepia {
  color-scheme: light;
  --bg: #f4ecd8;
  --bg-surface: #efe4c9;
  --bg-card: #e9dbba;
  --bg-elevated: #dfcda4;
  --border: #c8b488;
  --border-gold: #b39b6b;

  --gold: #5c4115;
  --gold-light: #44300e;
  --gold-dim: rgba(92, 65, 21, 0.08);

  --text-primary: #3b2a12;
  --text-secondary: #5e4624;
  --text-muted: #826639;

  --header-bg: rgba(244, 236, 216, 0.90);
  --drawer-bg: #efe4c9;

  --tg-blue: #8b5a2b;
  --accent: #8b5a2b;

  --mushaf-bg: #fbf7ef;
  --mushaf-border: #d4c4a1;
  --mushaf-shadow: rgba(0, 0, 0, 0.05);
  --mushaf-text: #3b2a12;
  --highlight-bg: rgba(139, 90, 43, 0.12);
  --highlight-color: #8b5a2b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  font-weight: 300;
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
  /* Enable OpenType features: kashida, swashes, stylistic alternates, contextual */
  font-feature-settings: 'calt' 1, 'liga' 1, 'kern' 1, 'swsh' 1, 'salt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1;
  -webkit-font-feature-settings: 'calt' 1, 'liga' 1, 'kern' 1, 'swsh' 1, 'salt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1;
  -moz-font-feature-settings: 'calt' 1, 'liga' 1, 'kern' 1, 'swsh' 1, 'salt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1;
  font-variant-ligatures: common-ligatures contextual;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.theme-dark .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-name-logo {
  font-family: 'Elgharib LogoWeb', sans-serif;
  font-weight: normal;
  font-size: 3.3rem; /* PC - large */
  line-height: 1;
  color: var(--text-primary);
  display: block;
  padding-top: 5px;
  margin-right: 0px;
}

@media (max-width: 768px) {
  .brand-name-logo {
    font-size: 2.8rem; /* iPhone - medium */
    margin-right: 2px;
  }
}

@media (max-width: 480px) {
  .brand-name-logo {
    font-size: 2.1rem; /* Android - slightly small */
    margin-right: 4px;
  }
}

.brand-name-en {
  display: none !important;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-verify {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-pill-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 3px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-pill-group .ctrl-btn {
  background: transparent;
  color: #000000;
  border-radius: 999px;
  width: 36px;
  height: 36px;
}

.header-pill-group .ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  box-shadow: none;
}

body.theme-dark .header-pill-group {
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

body.theme-dark .header-pill-group .ctrl-btn {
  color: #ffffff;
}

body.theme-dark .header-pill-group .ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: none;
}

.pill-divider {
  width: 1px;
  height: 18px;
  background: #000000;
  margin: 0 4px;
}

body.theme-dark .pill-divider {
  background: #ffffff;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  position: relative;
  flex-shrink: 0;
}

.header-pill-group .ctrl-btn svg {
  width: 22px !important;
  height: 22px !important;
}

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

.ctrl-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* LANGUAGE */
.lang-switcher {
  position: relative;
}

.lang-btn {
  width: auto;
  padding: 0 10px;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-label {
  font-family: var(--font-ui);
}

.lang-arrow {
  transition: transform 0.22s ease;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
  z-index: 300;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-dropdown-inner {
  padding: 6px;
}

#google_translate_element {
  display: none;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-secondary);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: right;
  cursor: pointer;
}

.lang-opt:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.lang-opt.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.lang-flag {
  font-size: 1.1em;
  flex-shrink: 0;
}

.lang-opt span:not(.lang-flag) {
  flex: 1;
}

.lang-check {
  opacity: 0;
  color: var(--gold);
  flex-shrink: 0;
}

.lang-opt.active .lang-check {
  opacity: 1;
}

/* THEME */
.theme-icon {
  display: none;
  align-items: center;
}

.theme-icon svg {
  display: block;
}

body.theme-dark .theme-icon-dark {
  display: flex;
}

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

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

body.theme-light .theme-icon-light {
  display: flex;
}

/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  align-items: flex-end;
}

.ham-line {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ham-line:nth-child(1) {
  width: 18px;
}

.ham-line:nth-child(2) {
  width: 14px;
}

.ham-line:nth-child(3) {
  width: 18px;
}

.menu-btn:hover .ham-line:nth-child(2) {
  width: 18px;
}

.menu-btn.is-open .ham-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 18px;
}

.menu-btn.is-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.is-open .ham-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 18px;
}

/* ═══════════════════════════════════════
   SIDE DRAWER
═══════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100dvh;
  background: var(--drawer-bg);
  border-left: 1px solid var(--border);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  font-family: var(--font-ui);
}

.side-drawer.open {
  transform: translateX(0);
}

.side-drawer.open .drawer-link,
.side-drawer.open .drawer-about,
.side-drawer.open .drawer-section-title {
  animation: drawerItemIn 0.35s ease both;
}

.side-drawer.open .drawer-section:nth-child(1) .drawer-link:nth-child(1) {
  animation-delay: 0.05s;
}

.side-drawer.open .drawer-section:nth-child(1) .drawer-link:nth-child(2) {
  animation-delay: 0.09s;
}

.side-drawer.open .drawer-section:nth-child(1) .drawer-link:nth-child(3) {
  animation-delay: 0.13s;
}

@keyframes drawerItemIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

.drawer-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.drawer-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.drawer-body::-webkit-scrollbar {
  width: 3px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.drawer-section {
  margin-bottom: 4px;
  padding-bottom: 8px;
}

.drawer-section+.drawer-section {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 10px 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: right;
}

.drawer-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Dark mode: make drawer text white and icons lighter */
body.theme-dark .drawer-link {
  color: rgba(255, 255, 255, 0.85);
}

body.theme-dark .drawer-link:hover {
  color: #ffffff;
}

body.theme-dark .drawer-section-title {
  color: rgba(255, 255, 255, 0.4);
}

.drawer-link-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--bg-elevated);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

body.theme-dark .drawer-link-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.drawer-link:hover .drawer-link-icon {
  background: var(--gold-dim);
  color: var(--gold);
}

.tg-icon {
  color: var(--tg-blue);
}

body.theme-dark .tg-icon {
  color: #4fa8d6;
}

.drawer-link-text {
  flex: 1;
}

.drawer-link-arrow {
  opacity: 0.3;
  flex-shrink: 0;
}

body.theme-dark .drawer-link-arrow {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.6);
}

.drawer-link:hover .drawer-link-arrow {
  opacity: 0.6;
}

.tasbih-item {
  cursor: default;
  font-size: 0.9rem;
  color: var(--text-secondary);
  justify-content: center;
}

body.theme-dark .tasbih-item {
  color: rgba(255, 255, 255, 0.65);
}

.tasbih-item:hover {
  background: transparent;
  color: var(--text-secondary);
}

.drawer-about {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

body.theme-dark .drawer-about {
  color: rgba(255, 255, 255, 0.5);
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

body.theme-dark .drawer-footer {
  color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  padding: 50px 24px 90px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 0, transparent 50%), repeating-linear-gradient(-45deg, currentColor 0, currentColor 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
  pointer-events: none;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  animation: heroSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-title {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

.hero-title-accent {
  color: var(--text-muted);
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6em;
  margin-top: 10px;
}

.hero-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.footer-en-desc {
  font-family: 'Kufam', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 450px;
}

.footer-en-copy {
  font-family: 'Kufam', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Telegram Official Box */
.tg-official-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px;
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: none !important;
  animation: tgBoxFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
  position: relative;
  overflow: hidden;
}

body.theme-light .tg-official-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-dark .tg-official-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.tg-official-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: none !important;
  border: none !important;
}

body.theme-dark .tg-official-box:hover {
  box-shadow: none !important;
  border: none !important;
}

@keyframes tgBoxFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

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

.tg-box-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tg-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 136, 204, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-official-box:hover .tg-box-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.tg-box-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tg-box-title {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.tg-box-subtitle {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
}

.tg-box-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tg-box-btn {
  padding: 6px 18px;
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
  white-space: nowrap;
}

.tg-official-box:hover .tg-box-btn {
  background: linear-gradient(135deg, #009ae5 0%, #0077bb 100%);
  box-shadow: 0 3px 12px rgba(0, 136, 204, 0.35);
}

.tg-box-count {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Visitor Badge — elegant pill below TG button */
.hero-visitor-badge {
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 8px 18px;
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: none !important;
  transition: all 0.3s ease;
  cursor: default;
}

body.theme-light .hero-visitor-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-visitor-badge:hover {
  transform: translateY(-2px);
  border: none !important;
  box-shadow: none !important;
}

.visitor-badge-icon {
  color: var(--accent);
  opacity: 1;
  flex-shrink: 0;
}

.visitor-badge-num {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
}

.visitor-badge-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.visitor-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {

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

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

/* Hero Fade */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* Scroll Hint Arrow */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-muted);
  animation: bounceDown 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-hint.visible {
  opacity: 1;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.btn-primary-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary-search:hover {
  background: #1a9ad6;
  transform: translateY(-1px);
}

.btn-primary-search.full-w {
  width: 100%;
  justify-content: center;
}

.custom-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.custom-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.12);
}

.custom-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   FONT SELECTION STEP
═══════════════════════════════════════ */
.font-selection-box {
  position: relative;
  background: linear-gradient(150deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.font-selection-box::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 50% 0%, var(--highlight-bg) 0%, transparent 55%);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.font-selection-box::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(45deg, var(--text-primary) 0, var(--text-primary) 1px, transparent 0, transparent 50%), repeating-linear-gradient(-45deg, var(--text-primary) 0, var(--text-primary) 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

body.theme-dark .font-selection-box {
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .font-selection-box::before {
  opacity: 0.35;
}

body.theme-dark .font-selection-box::after {
  opacity: 0.025;
}

.font-selection-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.font-selection-title {
  font-family: 'Kufam', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.font-selection-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.font-categories-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.font-category-item {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.font-category-item:hover {
  border-color: var(--border-gold);
}

.font-category-item.active {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(42, 171, 238, 0.05);
  transform: translateZ(0);
}

.font-category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}

.font-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: right;
  flex: 1;
}

.font-category-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--text-muted);
}

.font-category-item.active .font-category-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.font-category-content {
  max-height: 0;
  overflow: hidden;
  will-change: max-height;
  transition: max-height 0.25s ease-out;
}

.font-category-item.active .font-category-content {
  max-height: 1200px;
}

.font-category-inner {
  padding: 0 20px 20px;
}

.empty-category-msg {
  text-align: center;
  padding: 20px 0 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-ui);
}

.font-options-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.font-card-modern {
  display: block;
  cursor: pointer;
  position: relative;
}

.font-radio-input {
  position: absolute;
  opacity: 0;
}

.font-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 20px;
  transition: all 0.25s ease;
}

.font-card-inner:hover {
  border-color: var(--border-gold);
}

.font-radio-input:checked+.font-card-inner {
  border-color: var(--accent);
  background: rgba(42, 171, 238, 0.05);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.12);
}

.font-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.font-card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.font-card-info {
  flex: 1;
  text-align: right;
}

.font-title-main {
  font-family: var(--font-text);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.font-subtitle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.font-sample-preview {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  direction: rtl;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.selection-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.selection-status svg {
  width: 18px;
  height: 18px;
}

.font-radio-input:checked+.font-card-inner .selection-status {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-start-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: white;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.25);
}

.btn-start-search:hover {
  background: #1a9ad6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.35);
}

/* ═══════════════════════════════════════
   NEW SEARCH BOX (STEP 2)
═══════════════════════════════════════ */
.search-section {
  padding: 0 24px 80px;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 40%, var(--bg) 100%);
}

body.theme-light .search-section {
  background: linear-gradient(180deg, #fcfcfc 0%, #f0f2f5 35%, #f7f8fa 70%, #fcfcfc 100%);
}

body.theme-dark .search-section {
  background: linear-gradient(180deg, #050505 0%, #0c0c0c 35%, #080808 70%, #050505 100%);
}

.search-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(17, 63, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.theme-dark .search-section::before {
  background: radial-gradient(circle, rgba(29, 97, 138, 0.08) 0%, transparent 70%);
}

.search-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(17, 63, 92, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.theme-dark .search-section::after {
  background: radial-gradient(circle, rgba(29, 97, 138, 0.05) 0%, transparent 70%);
}

.search-section-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.new-search-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.theme-dark .new-search-box {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.new-search-box:focus-within {
  box-shadow: 0 6px 36px rgba(42, 171, 238, 0.1);
  border-color: rgba(42, 171, 238, 0.32);
}

.search-box-header {
  padding: 24px 24px 16px;
  text-align: center;
}

.search-box-main-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Modern Segmented Tabs */
.search-tabs-container {
  padding: 0 24px 16px;
}

.search-tabs-nav {
  display: flex;
  align-items: stretch;
  background: var(--bg-elevated);
  padding: 5px;
  border-radius: 16px;
  gap: 5px;
  border: 1px solid var(--border);
}

.search-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tab-btn:hover {
  color: var(--text-secondary);
}

.search-tab-btn.active {
  color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.theme-dark .search-tab-btn.active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.search-tab-divider {
  display: none;
}

.back-to-fonts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px auto 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  background: transparent;
  border: none;
}

.back-to-fonts-btn:hover {
  color: var(--text-primary);
}

/* Panels */
.search-panel {
  display: none;
  padding: 8px 24px 28px;
}

.search-panel.active {
  display: block;
  animation: panelIn 0.25s ease;
}

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

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

/* Simple panel layout */
.simple-search-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.simple-search-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.simple-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 16px 0;
}

.simple-or-divider::before,
.simple-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Search input */
.new-search-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.new-search-input-wrap {
  flex: 1;
  position: relative;
}

.new-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.new-search-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.new-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.new-search-input::placeholder {
  color: var(--text-muted);
}

/* Suggestions popup */
.new-suggestions-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .new-suggestions-popup {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 55vh;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  }

  .results-overlay-title {
    display: none;
  }

  .mushaf-page-container {
    padding: 24px 16px;
  }
}

body.theme-dark .new-suggestions-popup {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.new-suggestions-popup.open {
  display: block;
  animation: popupIn 0.15s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.new-suggestions-popup::-webkit-scrollbar {
  width: 3px;
}

.new-suggestions-popup::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--bg-elevated);
}

.sugg-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.suggestion-text {
  font-family: var(--font-quran);
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sugg-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.sugg-surah,
.sugg-ayah,
.sugg-page {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.sugg-action-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Advanced search panel */
.adv-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.adv-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.adv-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.adv-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.adv-input::-webkit-outer-spin-button,
.adv-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.adv-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.adv-input::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.select-wrapper {
  flex: 1;
}

/* ═══════════════════════════════════════
   FULL-SCREEN RESULTS OVERLAY
═══════════════════════════════════════ */
.results-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--bg);
  flex-direction: column;
}

.results-overlay.open {
  display: flex;
  animation: overlaySlideIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes overlaySlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.results-overlay-header {
  flex-shrink: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.results-overlay-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-overlay-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}

.results-overlay-back:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.results-overlay-title {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.results-overlay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.results-copy-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.results-copy-all-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
  background: var(--gold-dim);
}

.results-overlay-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.results-overlay-close:hover {
  background: rgba(220, 50, 50, 0.1);
  color: #e05555;
  border-color: rgba(220, 50, 50, 0.2);
}

.results-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px 48px;
}

.results-overlay-body::-webkit-scrollbar {
  width: 5px;
}

.results-overlay-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

.results-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* View toggle */
.results-view-toggle {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-ui);
  background: none;
  border: none;
}

.view-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.view-btn:hover:not(.active) {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   VERSE CARDS VIEW
═══════════════════════════════════════ */
.verses-area {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.verse-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}

.verse-item:last-child {
  border-bottom: none;
}

.verse-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meta-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.verse-body {
  width: 100%;
}

.verse-text {
  font-family: var(--font-quran);
  font-size: 1.65rem;
  line-height: 2.2;
  color: var(--text-primary);
  direction: rtl;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.verse-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.verse-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.verse-copy-btn:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  border-color: rgba(42, 171, 238, 0.3);
}

.verse-item.flash {
  background: rgba(94, 204, 138, 0.07) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px 16px !important;
  border-bottom-color: transparent !important;
}

/* ═══════════════════════════════════════
   MUSHAF PAGE VIEW
═══════════════════════════════════════ */
.mushaf-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 16px;
}

.mushaf-page-container {
  background: var(--mushaf-bg);
  border: 1.5px solid var(--mushaf-border);
  border-radius: 6px;
  box-shadow: 0 4px 32px var(--mushaf-shadow), inset 0 0 0 4px rgba(255, 255, 255, 0.04);
  padding: 28px 24px;
  max-width: 580px;
  width: 100%;
  position: relative;
}

.mushaf-nav-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
  max-width: 580px;
  width: 100%;
}

.mushaf-nav-minibtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.mushaf-nav-minibtn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.mushaf-nav-minibtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mushaf-page-footer {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mushaf-page-container::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--mushaf-border);
  border-radius: 3px;
  opacity: 0.5;
  pointer-events: none;
}

.mushaf-page-text {
  font-family: var(--font-quran);
  font-size: 1.2rem;
  line-height: 2.2;
  color: var(--mushaf-text);
  direction: rtl;
  text-align: center;
  word-spacing: 3px;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.mushaf-verse-inline {
  cursor: text;
  display: inline;
  user-select: text;
  -webkit-user-select: text;
}

body.is-non-v1 .mushaf-page-text,
body.is-non-v1 .verse-text {
  word-spacing: 0px !important;
}

.mushaf-verse-inline.flash {
  background: rgba(94, 204, 138, 0.18) !important;
}

.mushaf-verse-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(120, 90, 40, 0.6);
  margin: 0 5px;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

body.theme-dark .mushaf-verse-num {
  color: rgba(200, 180, 120, 0.6);
}

/* IndoPak Specific Adjustments */
.mushaf-page-wrap.is-indopak .mushaf-page-text {
  font-size: 1.45rem;
  /* Larger for better readability of complex diacritics */
  line-height: 2.6;
  word-spacing: 5px;
}

.mushaf-page-wrap.is-indopak .mushaf-page-container {
  border-color: rgba(120, 90, 40, 0.3);
  background: var(--mushaf-bg);
  /* Keeping consistency but could be changed */
}

/* Card Results IndoPak Adjustments */
.verses-area.is-indopak .verse-text {
  font-size: 1.95rem;
  /* Even larger for cards */
  line-height: 2.6;
}

/* Highlight for word search */
.highlight {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  border-radius: 4px;
  padding: 1px 3px;
  font-weight: 700;
}

/* States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.loader {
  width: 26px;
  height: 26px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.4;
}

.search-results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.search-results-count strong {
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════════════════════════════
   DUAS OVERLAY
═══════════════════════════════════════ */
.duas-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  flex-direction: column;
}

.duas-overlay.open {
  display: flex;
  animation: overlaySlideIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.duas-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.duas-back-btn,
.duas-close-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.duas-back-btn:hover,
.duas-close-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

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

.duas-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 60px;
  max-width: 660px;
  margin: 0 auto;
  width: 100%;
}

.duas-body::-webkit-scrollbar {
  width: 4px;
}

.duas-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.duas-thanks-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: duaFadeUp 0.4s ease both;
}

body.theme-dark .duas-thanks-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.duas-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.duas-thanks-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.duas-thanks-msg {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.duas-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: duaFadeUp 0.4s 0.05s ease both;
}

.duas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dua-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: duaFadeUp 0.4s var(--dua-delay, 0s) ease both;
}

.dua-card:hover {
  border-color: rgba(42, 171, 238, 0.28);
  transform: translateX(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.theme-dark .dua-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

@keyframes duaFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.dua-text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-primary);
  text-align: center;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-top-modern {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.theme-dark .footer-logo:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-about-col {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.footer-en-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 18px;
  text-align: left;
  direction: ltr;
}

.footer-en-copy {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: left;
  direction: ltr;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  direction: ltr;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.2);
}

.footer-nav-col {
  flex: 0 0 auto;
  min-width: 150px;
}

.footer-nav-title {
  font-family: 'Kufam', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-weight: 600;
}

.nav-link-item:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

.nav-link-bullet {
  width: 6px;
  height: 6px;
  background: var(--border-gold);
  border-radius: 50%;
  transition: all 0.25s ease;
}

.nav-link-item:hover .nav-link-bullet {
  background: var(--accent);
  transform: scale(1.5);
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0 20px;
  position: relative;
}

.footer-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-surface);
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.4;
}

.footer-bottom {
  text-align: center;
}

.footer-copy {
  font-family: 'Kufam', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
  margin-top: 15px;
  line-height: 1.6;
}

.footer-copy strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--bg-card);
  border: 1px solid rgba(94, 204, 138, 0.28);
  color: #3dba74;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 1100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

body.theme-dark .toast {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════
   GOOGLE TRANSLATE HIDE
═══════════════════════════════════════ */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-ftd-c {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-tooltip {
  display: none !important;
}

.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 680px) {
  .hero {
    padding: 30px 18px 70px;
  }

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

  .header-inner {
    padding: 0 14px;
  }

  .tg-channel-btn {
    font-size: 0.82rem;
    padding: 9px 16px;
  }

  .search-section {
    padding: 0 16px 60px;
  }

  .search-panel {
    padding: 18px 16px 20px;
  }

  .search-tabs-nav {
    padding: 0 4px;
  }

  .search-tab-btn {
    padding: 14px 12px;
    font-size: 0.82rem;
  }

  .new-search-input-row {
    flex-direction: column;
    gap: 10px;
  }

  .new-search-input-row .btn-primary-search {
    width: 100%;
    justify-content: center;
  }

  .adv-search-grid {
    grid-template-columns: 1fr;
  }

  .mushaf-page-container {
    padding: 16px 12px;
    max-width: 95%;
  }

  .mushaf-page-text {
    font-size: 1.1rem;
    line-height: 2.1;
    word-spacing: 2px;
  }

  .results-overlay-body {
    padding: 16px 14px 40px;
  }

  .verse-text {
    font-size: 1.2rem;
  }

  .duas-body {
    padding: 20px 16px 40px;
  }

  .duas-thanks-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dua-text {
    font-size: 0.98rem;
  }

  /* Footer responsive */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-link {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .footer-inner {
    padding: 32px 18px 22px;
  }

  @media (max-width: 480px) {
    .results-copy-all-btn {
      display: none !important;
    }

    .results-overlay-back span {
      display: none;
    }
  }

  /* Extra mobile fixes */
  .brand-name-en {
    font-size: 0.65rem;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .font-sample-preview {
    font-size: 1rem;
    padding: 8px;
  }

  .header-inner {
    gap: 5px;
  }
}

@media (max-width: 400px) {
  .brand-name-en {
    display: none;
  }

  .logo-img.top-logo-trans {
    width: 36px;
  }
}

/* ═══════════════════════════════════════
   MODERN UI UPGRADES 
═══════════════════════════════════════ */

/* Containers & Step Indicator */
.step-indicator {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gold-dim);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* Elegant Font Cards */
.font-options-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.font-card-modern {
  cursor: pointer;
  position: relative;
  width: 100%;
}

.font-card-inner {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 14px;
}

.font-card-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.font-title-main {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.font-sample-preview {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--mushaf-bg);
  border: 1px solid var(--mushaf-border);
  border-radius: 10px;
  color: var(--mushaf-text);
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: center;
  direction: rtl;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.selection-status {
  margin-right: auto;
  color: var(--border);
  transition: transform 0.3s ease, color 0.3s ease;
}

.font-radio-input:checked+.font-card-inner {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: scale(1.02);
  box-shadow: 0 15px 35px -10px rgba(42, 171, 238, 0.15);
}

.font-radio-input:checked+.font-card-inner .font-card-icon-wrap {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.font-radio-input:checked+.font-card-inner .selection-status {
  color: var(--accent);
  transform: scale(1.1);
}

/* Modern Execute Buttons */
.btn-continue-modern,
.btn-execute-advanced {
  width: 100%;
  padding: 16px 30px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px -5px rgba(42, 171, 238, 0.4);
  border: none;
  font-size: 1.05rem;
}

.btn-continue-modern:hover {
  background: #1e99d4;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(42, 171, 238, 0.5);
}

/* Search Tabs Style - Apple style segmented control */
.search-tabs-pill {
  display: flex;
  background: var(--bg-elevated);
  padding: 6px;
  border-radius: 18px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-tabs-pill::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tab-pill.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* The Modern Search Field */
.input-wrapper-inner {
  position: relative;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

body.theme-dark .input-wrapper-inner {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-wrapper-inner:focus-within {
  border-color: var(--accent);
  box-shadow: 0 5px 25px -10px rgba(42, 171, 238, 0.15);
}

.modern-input-field {
  width: 100%;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none !important;
}

.inner-search-btn {
  padding: 8px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Select Browsing Design */
.surah-browse-strip {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.strip-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.select-glow-wrapper {
  flex: 1;
  display: flex;
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 4px;
  border: 1px solid var(--border);
  align-items: center;
}

.modern-select {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

/* Fix select dropdown options in dark mode */
.modern-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

body.theme-dark .modern-select option {
  background: #1c1c1c;
  color: #f0f0f0;
}

body.theme-dark .modern-select {
  color: #f0f0f0;
  color-scheme: dark;
}

body.theme-dark .select-glow-wrapper {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Advanced search select fix for dark mode */
body.theme-dark .modern-select.small-h option {
  background: #1c1c1c;
  color: #f0f0f0;
}

/* Fix custom-select in advanced search dark mode */
body.theme-dark .custom-select {
  background-color: var(--bg-elevated);
  color: #f0f0f0;
  color-scheme: dark;
}

body.theme-dark .custom-select option {
  background: #1c1c1c;
  color: #f0f0f0;
}

.arrow-go-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.arrow-go-btn:hover {
  background: var(--gold-dim);
  transform: scale(1.05);
}

/* Floating Back Button */
.btn-change-font-floating {
  margin: 20px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-change-font-floating:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Advanced Grid Adjustments */
.advanced-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.grid-item-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grid-item-input label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-right: 8px;
}

.center-txt {
  text-align: center;
}

@media (max-width: 550px) {
  .advanced-grid-layout {
    grid-template-columns: 1fr;
  }

  .font-options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 15px 0 !important;
  }

  .font-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 10px 8px;
    height: 100%;
    justify-content: space-between;
  }

  .font-card-icon-wrap {
    width: 38px;
    height: 38px;
    margin: 0 auto 5px;
  }

  .font-card-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .font-title-main {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .font-subtitle {
    font-size: 0.65rem;
  }

  .font-sample-preview {
    font-size: 0.85rem !important;
    line-height: 1.5;
    padding: 5px;
    margin-top: 5px;
  }

  .selection-status {
    margin: 5px auto 0;
  }

  .tg-official-box {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }

  .tg-box-content {
    flex-direction: column;
    gap: 10px;
  }

  .tg-box-info {
    align-items: center;
  }
}

/* ═══════════════════════════════════════
   DUAS FONTS
═══════════════════════════════════════ */
.dua-text {
  font-family: 'Thmanyah Serif Display', serif !important;
  font-weight: 300 !important;
}

/* ═══════════════════════════════════════
   TOP TRANSPARENT LOGO
═══════════════════════════════════════ */
.logo-img.top-logo-trans {
  border: none;
  background: transparent;
  border-radius: 0;
  object-fit: contain;
  width: 44px;
}

body.theme-dark .logo-img.top-logo-trans {
  filter: invert(1);
}

/* ═══════════════════════════════════════
   FONT CATEGORIES GRID (HOME)
═══════════════════════════════════════ */
.font-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .font-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .font-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  color: inherit;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 63, 92, 0.06);
}

body.theme-dark .category-card:hover {
  box-shadow: 0 8px 24px rgba(29, 97, 138, 0.12);
}

.category-card.empty-cat {
  opacity: 0.6;
  pointer-events: none;
}

.cat-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--accent);
  margin-bottom: 8px;
}

.category-card h3 {
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
}

.category-card p {
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@keyframes verseHighlight {
  0% {
    background-color: transparent;
  }

  10% {
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent);
  }

  80% {
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent);
  }

  100% {
    background-color: transparent;
  }
}

.highlight-pulse {
  animation: verseHighlight 3s ease-in-out forwards;
}

@font-face {
  font-family: 'Elgharib-LogoAvt';
  src: url('../fonts/Elgharib-logoavt1.woff2') format('woff2');
  font-display: swap;
}

.logo-avt-icon {
  font-family: 'Elgharib LogoWeb', sans-serif;
  font-size: 34px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: auto;
  height: auto;
  user-select: none;
  font-weight: normal;
}

@media (max-width: 768px) {
  .logo-avt-icon {
    font-size: 36px;
    margin-left: 2px;
  }
}

.theme-dark .logo-avt-icon,
.theme-night .logo-avt-icon {
  color: var(--text-primary);
}

/* LIGHT MODE FOOTER LOGO FIX */
body.theme-light .footer-logo,
body.theme-light .drawer-logo,
body.theme-light .duas-logo,
body.theme-light .logo-avt-icon img {
  filter: brightness(0);
}

/* DARK MODE FOOTER LOGO FIX */
body.theme-dark .footer-logo,
body.theme-dark .drawer-logo,
body.theme-dark .duas-logo,
body.theme-dark .logo-avt-icon img {
  filter: brightness(0) invert(1);
}

/* MANUSCRIPT ICON DARK MODE FIX */
body.theme-dark .manuscript-icon {
  color: #ffffff !important;
}

/* QUICK FONT SELECTOR */
.header-quick-font {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 auto;
}

.quick-font-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(128, 128, 128, 0.15);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 10px 40px 10px 20px;
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  text-align-last: center;
}

.header-quick-font .quick-font-select {
  width: 380px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
}

body.theme-dark .header-quick-font .quick-font-select {
  background: rgba(42, 171, 238, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.quick-font-select:hover,
.quick-font-select:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(42, 171, 238, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.6);
}

body.theme-dark .quick-font-select:hover,
body.theme-dark .quick-font-select:focus {
  background: rgba(0, 0, 0, 0.2);
}

.qf-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--accent);
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.quick-font-select:hover~.qf-arrow,
.quick-font-select:focus~.qf-arrow {
  transform: translateY(2px);
}

.mobile-quick-font-wrap {
  display: none;
}

.mobile-quick-access-section {
  display: none;
}

@media (max-width: 768px) {
  .header-quick-font {
    display: none;
  }

  .mobile-quick-access-section {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 25px;
    padding: 0 15px;
  }

  .qa-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .qa-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .qa-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: 'Thmanyah Sans', sans-serif;
  }

  .mobile-quick-font-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    margin-top: 0;
  }

  .mobile-qf-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  body.theme-dark .mobile-qf-inner {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .mobile-qf-inner:hover,
  .mobile-qf-inner:focus-within {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  .mobile-qf-inner:active {
    transform: scale(0.97);
  }

  .mobile-quick-font-wrap .quick-font-select {
    width: auto;
    min-width: 200px;
    border-radius: 999px;
    padding: 10px 40px 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-primary);
    text-align: center;
  }

  .mobile-quick-font-wrap .quick-font-select:hover,
  .mobile-quick-font-wrap .quick-font-select:focus {
    transform: none;
    box-shadow: none;
  }

  .mobile-quick-font-wrap .qf-arrow {
    right: 16px;
    color: var(--accent);
  }
}


/* FONT CATEGORIES LIST DESIGNS */
.font-categories-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 380px) {
  .font-categories-list {
    gap: 8px;
  }
}

.category-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px 10px 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.category-list-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.1);
  transform: translateY(-2px);
}

.cat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--highlight-bg);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
}

.cat-letter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Kufam', sans-serif;
}

.cat-details {
  flex: 1;
}

.cat-details h3 {
  font-family: 'Kufam', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 3px 0;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .cat-details h3 {
    font-size: 0.75rem;
  }
}

.cat-details p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kufam', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  line-height: 1.5;
}

.cat-badge-count {
  background: rgba(42, 171, 238, 0.12);
  color: var(--accent);
}

.cat-badge-soon {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.category-list-item.disabled-item {
  opacity: 0.55;
  pointer-events: none;
}

.category-list-item.disabled-item .cat-icon-wrap {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════
   DIRECT FONT SELECTION LIST (v6.3)
═══════════════════════════════════════ */
.font-direct-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.font-direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  cursor: pointer;
}

.font-direct-item:hover:not(.fd-item-locked) {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(17, 63, 92, 0.1);
  transform: translateY(-2px);
}

.font-direct-item.fd-item-locked {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.fd-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--highlight-bg);
  border-radius: 10px;
  font-family: 'Kufam', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

body.theme-dark .fd-num-badge {
  background: rgba(29, 97, 138, 0.15);
}

.fd-item-info {
  flex: 1;
  min-width: 0;
}

.fd-item-name {
  font-family: 'Thmanyah Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

.fd-item-sub {
  font-family: 'Kufam', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  direction: ltr;
  text-align: right;
}

.fd-item-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Kufam', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.fd-status-active {
  background: rgba(46, 160, 67, 0.12);
  color: #2ea043;
}

body.theme-dark .fd-status-active {
  background: rgba(46, 160, 67, 0.15);
  color: #56d364;
}

.fd-status-locked {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* Locked Secondary Categories */
.font-locked-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.locked-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.locked-cat-chip:not(.disabled-chip):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.locked-cat-chip.disabled-chip {
  opacity: 0.5;
  pointer-events: none;
}

.chip-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.chip-badge.chip-count {
  background: rgba(17, 63, 92, 0.1);
  color: var(--accent);
}

body.theme-dark .chip-badge.chip-count {
  background: rgba(29, 97, 138, 0.15);
}

/* ═══════════════════════════════════════
   FONT CATEGORIES ACCORDION (v6.6)
═══════════════════════════════════════ */
.font-cats-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.fc-cat {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fc-cat:hover:not(.fc-cat-locked) {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fc-cat.open {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(17, 63, 92, 0.08);
}

body.theme-dark .fc-cat.open {
  box-shadow: 0 6px 24px rgba(29, 97, 138, 0.12);
}

.fc-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  user-select: none;
  transition: background 0.2s ease;
  font-family: var(--font-ui);
  border: none;
}

.fc-cat-header:hover {
  background: var(--bg-elevated);
}

.fc-cat-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.fc-cat-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--highlight-bg);
  border-radius: 10px;
  font-family: 'Kufam', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent);
  flex-shrink: 0;
}

body.theme-dark .fc-cat-letter {
  background: rgba(29, 97, 138, 0.15);
}

.fc-cat-name {
  font-family: 'Thmanyah Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-cat-count {
  display: inline-flex;
  align-items: center;
  font-family: 'Kufam', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(17, 63, 92, 0.1);
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

body.theme-dark .fc-cat-count {
  background: rgba(29, 97, 138, 0.15);
}

.fc-cat-soon {
  display: inline-flex;
  align-items: center;
  font-family: 'Kufam', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.fc-cat-arrow {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.fc-cat.open .fc-cat-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Accordion body */
.fc-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-cat.open .fc-cat-body {
  max-height: 600px;
}

.fc-cat-inner {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-cat-inner .font-direct-item {
  border-radius: 12px;
  padding: 14px 14px;
}

/* Locked category */
.fc-cat-locked {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.fc-cat-disabled {
  cursor: not-allowed;
}

/* Link category */
a.fc-cat-link {
  text-decoration: none;
  color: inherit;
}

a.fc-cat-link:hover {
  border-color: var(--accent);
}

a.fc-cat-link .fc-cat-header {
  cursor: pointer;
}

@media (max-width: 480px) {
  .fc-cat-header {
    padding: 14px 14px;
  }

  .fc-cat-name {
    font-size: 0.88rem;
  }

  .fc-cat-letter {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .fc-cat-inner .font-direct-item {
    padding: 12px 12px;
    gap: 10px;
  }
}

/* ═══════════════════════════════════════
   FULL-PAGE WORD SEARCH (v6.4)
═══════════════════════════════════════ */
.word-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg-surface);
  flex-direction: column;
  overflow: hidden;
}

.word-search-overlay.open {
  display: flex;
  animation: wsPageIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.word-search-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.theme-dark .word-search-header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.word-search-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.word-search-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.word-search-back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.word-search-title {
  font-family: 'Kufam', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}

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

.word-search-close-btn:hover {
  background: rgba(220, 50, 50, 0.1);
  color: #e05555;
  border-color: rgba(220, 50, 50, 0.2);
}

.word-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px 40px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.word-search-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.word-search-input-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 6px 8px 6px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.word-search-input-inner:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(17, 63, 92, 0.08);
}

body.theme-dark .word-search-input-inner:focus-within {
  box-shadow: 0 0 0 5px rgba(29, 97, 138, 0.15);
}

.word-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.word-search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-text);
  font-size: 1.05rem;
  color: var(--text-primary);
  padding: 14px 0;
  outline: none;
}

.word-search-field::placeholder {
  color: var(--text-muted);
}

.word-search-submit-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Kufam', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.word-search-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(17, 63, 92, 0.3);
}

.word-search-hints {
  text-align: center;
  margin-bottom: 20px;
}

.word-search-hints p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Suggestions === */
.word-search-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-suggest-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-suggest-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(17, 63, 92, 0.08);
  transform: translateY(-1px);
}

.ws-suggest-item:active {
  transform: scale(0.99);
}

.ws-suggest-surah {
  background: rgba(42, 171, 238, 0.04);
  border-color: rgba(42, 171, 238, 0.2);
}

.ws-suggest-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--highlight-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ws-suggest-surah .ws-suggest-icon {
  background: rgba(42, 171, 238, 0.12);
}

.ws-suggest-info {
  flex: 1;
  min-width: 0;
}

.ws-suggest-title {
  display: block;
  font-family: 'Kufam', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 3px;
}

.ws-suggest-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ws-suggest-text {
  display: block;
  font-family: var(--font-quran);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ws-suggest-meta {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ws-suggest-meta span {
  display: inline-flex;
  align-items: center;
}

.ws-suggest-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}

.ws-suggest-item:hover .ws-suggest-arrow {
  opacity: 0.8;
  color: var(--accent);
}

/* === Word Search Results === */
.ws-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.ws-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.ws-empty p {
  font-size: 1rem;
  margin: 0 0 8px;
}

.ws-empty-hint {
  font-size: 0.82rem !important;
  color: var(--text-muted);
}

.ws-results-header {
  padding: 12px 0 16px;
  text-align: center;
}

.ws-results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ws-results-count strong {
  color: var(--accent);
  font-weight: 800;
}

.ws-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-result-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}

.ws-result-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(17, 63, 92, 0.08);
}

.ws-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ws-result-text {
  font-family: var(--font-quran);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  margin-bottom: 14px;
  word-break: break-word;
}

.ws-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Verse mushaf link button in results */
.verse-mushaf-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(17, 63, 92, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.verse-mushaf-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .word-search-header-inner {
    padding: 12px 14px;
  }

  .word-search-title {
    font-size: 0.95rem;
  }

  .word-search-back-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .word-search-body {
    padding: 18px 14px 30px;
  }

  .word-search-input-inner {
    padding: 4px 6px 4px 14px;
    border-radius: 14px;
  }

  .word-search-field {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .word-search-submit-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .ws-suggest-item {
    padding: 14px 14px;
    gap: 10px;
  }

  .ws-suggest-icon {
    width: 36px;
    height: 36px;
  }

  .ws-result-card {
    padding: 14px 16px;
  }

  .ws-result-text {
    font-size: 1rem;
  }

  .font-direct-item {
    padding: 14px 14px;
    gap: 10px;
  }

  .fd-num-badge {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .fd-item-name {
    font-size: 0.88rem;
  }
}

/* GLOBAL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.exit {
  opacity: 0;
  transform: translateY(-10px);
}

/* ═══════════════════════════════════════
   BOTTOM NAVIGATION BAR (Index only)
═══════════════════════════════════════ */
body.has-bottom-nav {
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
}

.bottom-main-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 15px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1000;
  transition: all 0.3s ease;
}

body.theme-dark .bottom-main-nav {
  background: rgba(20, 20, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.bnav-item svg {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.8;
}

.bnav-item:hover {
  color: var(--text-primary);
}

.bnav-item:hover svg {
  transform: translateY(-2px);
  opacity: 1;
}

.bnav-item.active {
  color: var(--accent);
}

.bnav-item.active svg {
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(42, 171, 238, 0.4));
}

.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.5);
}

body.theme-dark .bnav-item.active {
  color: #ffffff;
}

body.theme-dark .bnav-item.active svg {
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

body.theme-dark .bnav-item.active::before {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.bnav-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bnav-item.disabled:hover svg {
  transform: none;
}

@media (min-width: 768px) {
  body.has-bottom-nav {
    padding-bottom: 100px !important;
  }
  .bottom-main-nav {
    max-width: 450px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
    height: 68px;
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 0 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  }
  body.theme-dark .bottom-main-nav {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  }
  .bnav-item.active::before {
    top: -1px;
  }
}

/* Android / Small Screens specifically */
@media (max-width: 768px) {
  @supports not (-webkit-touch-callout: none) {
    .header-pill-group .ctrl-btn {
      width: 32px !important;
      height: 32px !important;
    }
    .header-pill-group .ctrl-btn svg {
      width: 18px !important;
      height: 18px !important;
    }
    .pill-divider {
      height: 14px !important;
    }
    .ctrl-btn.menu-btn {
      width: 34px !important;
      height: 34px !important;
    }
    .ham-line:nth-child(1) {
      width: 16px !important;
    }
    .ham-line:nth-child(2) {
      width: 12px !important;
    }
    .ham-line:nth-child(3) {
      width: 16px !important;
    }
    .menu-btn:hover .ham-line:nth-child(2) {
      width: 16px !important;
    }
  }
}

/* ═══════════════════════════════════════
   QURAN FONTS COMPONENT (QFC) - V3
═══════════════════════════════════════ */
.qfc-showcase {
  padding: 20px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 60px; /* Space between categories */
}

/* Category Group container */
.qfc-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* The Main Square Card (Now a Wide Blended Banner) */
.qfc-main-card {
  position: sticky;
  top: 85px; 
  width: 100%;
  max-width: 500px;
  min-height: 80px;
  margin: 0 auto 30px auto;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.08) 0%, rgba(42, 171, 238, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--text-primary);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.04);
  padding: 16px 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.theme-dark .qfc-main-card {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(42, 171, 238, 0.01) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qfc-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(42, 171, 238, 0.08);
}

.qfc-main-card.locked {
  background: var(--bg-surface);
  box-shadow: none;
  border-radius: 20px;
  color: var(--text-primary);
  opacity: 0.7;
}

.qfc-icon {
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #004477 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s ease;
}

.qfc-main-card:hover .qfc-icon {
  transform: scale(1.05);
}

.qfc-main-card.locked .qfc-icon {
  background: none;
  color: var(--text-muted);
}

.qfc-title {
  font-family: 'Kufam', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  text-align: right;
}

.qfc-count {
  font-size: 0.75rem;
  background: rgba(42, 171, 238, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.qfc-main-card:hover .qfc-count {
  background: rgba(42, 171, 238, 0.15);
}

.qfc-main-card.locked .qfc-count {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* The Fonts Container (slides UNDER the sticky main card) */
.qfc-fonts-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* Individual Font Item */
.qfc-font-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qfc-font-item:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.1);
}

.qfc-font-item.locked {
  opacity: 0.6;
  pointer-events: none;
}

.qfc-font-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s;
}

.qfc-font-header:hover {
  background: var(--bg-elevated);
}

.qfc-f-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--highlight-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Thmanyah Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.qfc-f-info {
  flex: 1;
}

.qfc-f-info h4 {
  font-family: 'Kufam', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.qfc-f-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  direction: ltr;
  display: block;
}

.qfc-f-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.qfc-f-arrow svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.qfc-font-item.active .qfc-f-arrow {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

.qfc-font-soon {
  font-family: 'Kufam', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* Accordion Body */
.qfc-font-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease-out, padding 0.15s ease-out;
  background: var(--bg-surface);
  padding: 0 16px;
}

.qfc-font-item.active .qfc-font-body {
  max-height: 400px;
  padding: 0 16px 16px;
}

.qfc-f-actions {
  display: flex;
  gap: 12px;
}

.qfc-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qfc-preview-box {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem !important;
  line-height: 1.8;
  padding: 20px 10px;
}

.qfc-btn.use-btn {
  background: var(--accent);
  color: #fff;
}

.qfc-btn.use-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(42, 171, 238, 0.3);
}

.qfc-btn.dl-btn {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.qfc-btn.dl-btn:hover {
  background: rgba(42, 171, 238, 0.05);
  transform: translateY(-3px);
}

/* =====================================
   SCROLL ANIMATIONS 
   ===================================== */
[data-scroll="fade-up"] {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="slide-up"] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =====================================
   RESPONSIVE DESIGN (Android vs iPhone)
   ===================================== */
@media (max-width: 380px) {
  /* Small Androids */
  .qfc-main-card {
    min-height: auto;
    padding: 14px 12px;
    gap: 10px;
    margin-bottom: 25px;
    border-radius: 16px;
    width: 100%;
    height: auto;
  }
  .qfc-main-card:hover {
    transform: translateY(-2px);
  }
  .qfc-icon {
    font-size: 2rem;
  }
  .qfc-title {
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .qfc-count {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .qfc-font-header {
    padding: 12px;
    gap: 12px;
  }
  .qfc-f-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .qfc-f-info h4 {
    font-size: 0.9rem;
  }
  .qfc-f-info span {
    font-size: 0.7rem;
  }
  .qfc-f-arrow {
    width: 32px;
    height: 32px;
  }
  .qfc-f-arrow svg {
    width: 16px;
    height: 16px;
  }
  .qfc-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 10px;
  }
  .qfc-preview-box {
    min-height: 80px;
    font-size: 1.1rem !important;
    padding: 15px 10px;
  }
}

/* =====================================
   ANDROID PERFORMANCE OVERRIDES
   Disables animations and heavy filters
   to ensure smooth experience
   ===================================== */
html.is-android [data-scroll] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

html.is-android .qfc-main-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

html.is-android .qfc-font-body {
  transition: none !important;
}

html.is-android .qfc-icon,
html.is-android .qfc-title,
html.is-android .qfc-count,
html.is-android .qfc-font-item,
html.is-android .qfc-f-arrow,
html.is-android .qfc-font-header,
html.is-android .qfc-btn {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}