@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;600;700;800;900&family=Reem+Kufi:wght@600;700;800&family=Scheherazade+New:wght@600;700&display=swap');

:root {
  --primary-bg: #02070d;
  --surface-bg: #071524;
  --card-bg: rgba(10, 24, 38, 0.75);
  --card-hover: rgba(16, 36, 56, 0.9);
  --emerald-dark: #02241b;
  --emerald-mid: #064e3b;
  --emerald-glow: #059669;
  --emerald-light: #10b981;
  --gold-pure: #ffd700;
  --gold-glow: #f59e0b;
  --gold-dark: #b45309;
  --gold-light: #fef08a;
  --gold-gradient: linear-gradient(135deg, #fffbeb 0%, #fef08a 25%, #f59e0b 60%, #b45309 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 60%, #02241b 100%);
  --gold-border: linear-gradient(135deg, rgba(254, 240, 138, 0.6) 0%, rgba(217, 119, 6, 0.2) 100%);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(245, 158, 11, 0.25);
  --shadow-lux: 0 12px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.1);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);
  --font-main: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-quran: 'Amiri', 'Scheherazade New', serif;
  --font-title: 'Reem Kufi', var(--font-main);
  --app-radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  padding-bottom: 120px;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 78, 59, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(180, 83, 9, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(6, 78, 59, 0.3) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f59e0b' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0l40 40-40 40zM40 40l20-20 20 20-20 20zM0 80l40-40 40 40z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(2, 7, 13, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-glow);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================== */
/* 1. TOP ROYAL VIP APP BAR                                       */
/* ============================================================== */

.royal_vip_banner {
  background: linear-gradient(90deg, #02241b 0%, #064e3b 40%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  padding: 10px 16px;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.pulsing_dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Buttons */
.vip_btn, .action_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.vip_btn_gold, .btn_gold {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 60%, #b45309 100%);
  color: #02070d !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.vip_btn_gold:hover, .btn_gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
}

.vip_btn_emerald, .btn_emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #02241b 100%);
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.vip_btn_emerald:hover, .btn_emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ============================================================== */
/* 2. SITE HEADER & LOGO                                          */
/* ============================================================== */

.site_header {
  background: rgba(7, 21, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}

.site_logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site_logo .logo_icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(6, 78, 59, 0.5));
  border: 1.5px solid var(--gold-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.site_logo h1 {
  font-family: var(--font-title);
  font-size: 20px;
  color: #ffffff;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.site_logo span {
  font-size: 12px;
  color: var(--gold-light);
  display: block;
}

/* Desktop Navigation */
.nav_desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 992px) {
  .nav_desktop {
    display: flex;
  }
}

.nav_btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav_btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-pure);
}

.nav_btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(6, 78, 59, 0.4));
  border-color: var(--gold-glow);
  color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* ============================================================== */
/* 3. MEMORIAL HERO SECTION (الأستاذ سعيد مبارك)                  */
/* ============================================================== */

.memorial_hero {
  background: linear-gradient(145deg, rgba(7, 21, 36, 0.9) 0%, rgba(2, 36, 27, 0.8) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 28px 20px;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lux);
  position: relative;
  overflow: hidden;
}

.memorial_hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .memorial_hero {
    flex-direction: row;
    text-align: right;
    padding: 32px;
    gap: 32px;
    align-items: center;
  }
}

.memorial_photo_box {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .memorial_photo_box {
    margin-bottom: 0;
  }
}

.memorial_photo {
  width: 170px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  border: 2px solid var(--gold-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.3);
  display: block;
}

@media (min-width: 768px) {
  .memorial_photo {
    width: 210px;
    height: 270px;
  }
}

.memorial_badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700 0%, #b45309 100%);
  color: #02070d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.memorial_content {
  flex: 1;
}

.bismillah_title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--gold-pure);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.deceased_name {
  font-family: var(--font-title);
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .deceased_name {
    font-size: 32px;
  }
}

.deceased_dua {
  font-family: var(--font-quran);
  font-size: 19px;
  line-height: 1.9;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border-right: 3px solid var(--gold-glow);
  padding: 14px 18px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 20px;
}

.memorial_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (min-width: 768px) {
  .memorial_actions {
    justify-content: flex-start;
  }
}

/* ============================================================== */
/* 4. QUICK STATS BAR                                             */
/* ============================================================== */

.quick_stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .quick_stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat_card {
  background: var(--card-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--app-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.stat_card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-glow);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.stat_icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(6, 78, 59, 0.4));
  border: 1px solid var(--gold-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-pure);
  flex-shrink: 0;
}

.stat_card b {
  display: block;
  font-size: 20px;
  color: var(--gold-pure);
  line-height: 1.2;
}

.stat_card span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================== */
/* 5. SECTION BOX & HEADINGS                                      */
/* ============================================================== */

.section_box {
  background: var(--card-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.section_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.section_title {
  font-family: var(--font-title);
  font-size: 19px;
  color: var(--gold-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Controls & Selects */
.reciter_bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .reciter_bar {
    grid-template-columns: 1fr 1fr;
  }
}

.reciter_select, .search_input {
  width: 100%;
  background: rgba(2, 7, 13, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  color: #ffffff;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.reciter_select:focus, .search_input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.reciter_select option {
  background: #071524;
  color: #fff;
}

/* ============================================================== */
/* 6. SURAH GRID & CARDS                                          */
/* ============================================================== */

.surah_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .surah_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .surah_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.surah_card, .surah_item_card {
  background: rgba(7, 21, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.surah_card:hover, .surah_item_card:hover {
  background: rgba(16, 36, 56, 0.85);
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.surah_item_card.active_playing {
  border-color: var(--gold-pure);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(6, 78, 59, 0.4));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.surah_right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.surah_number, .surah_star_badge {
  width: 38px;
  height: 38px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-pure);
  flex-shrink: 0;
}

.surah_name, .surah_arabic_name {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.surah_meta, .surah_sub_meta {
  font-size: 11px;
  color: var(--text-muted);
}

.mini_play_btn, .round_play_ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold-glow);
  color: var(--gold-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini_play_btn:hover, .round_play_ico:hover {
  background: var(--gold-pure);
  color: #02070d;
  transform: scale(1.1);
}

.surah_actions, .surah_action_btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================== */
/* 7. QURAN READING VIEW                                          */
/* ============================================================== */

.quran_reader_box {
  background: rgba(2, 7, 13, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}

.bismillah_ornament {
  font-family: var(--font-quran);
  font-size: 26px;
  color: var(--gold-pure);
  text-align: center;
  margin: 10px 0 24px 0;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.ayahs_stream {
  font-family: var(--font-quran);
  font-size: 22px;
  line-height: 2.3;
  color: #f8fafc;
  text-align: justify;
  text-justify: inter-word;
}

.ayah_stop_sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-glow);
  border-radius: 50%;
  font-size: 12px;
  color: var(--gold-pure);
  margin: 0 4px;
  vertical-align: middle;
  background: rgba(245, 158, 11, 0.1);
}

/* ============================================================== */
/* 8. VIDEO & LIVE STREAMS GRID                                   */
/* ============================================================== */

.video_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .video_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video_card {
  background: rgba(2, 7, 13, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.video_wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video_wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video_meta {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(7, 21, 36, 0.9);
}

/* ============================================================== */
/* 9. AZKAR & SUPPLICATIONS                                       */
/* ============================================================== */

.azkar_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .azkar_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================== */
/* 10. DIGITAL SMART TASBEEH                                      */
/* ============================================================== */

.tasbeeh_wrapper {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
}

.tasbeeh_screen {
  background: linear-gradient(145deg, #02070d 0%, #03141f 100%);
  border: 2px solid var(--gold-glow);
  border-radius: 20px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.2);
}

.tasbeeh_counter_num {
  font-family: 'Cairo', monospace;
  font-size: 56px;
  font-weight: 900;
  color: var(--gold-pure);
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  line-height: 1;
}

.tasbeeh_btn_big {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700 0%, #f59e0b 50%, #b45309 100%);
  border: 4px solid #fff;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5), inset 0 -6px 12px rgba(0, 0, 0, 0.4);
  color: #02070d;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  margin: 10px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tasbeeh_btn_big:active {
  transform: scale(0.92);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ============================================================== */
/* 11. ISLAMIC AI ASSISTANT                                       */
/* ============================================================== */

.ai_chat_box {
  background: rgba(2, 7, 13, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 16px;
}

.ai_chat_messages {
  max-height: 420px;
  min-height: 220px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai_msg {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 88%;
  word-wrap: break-word;
}

.ai_msg_bot {
  background: rgba(7, 21, 36, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f8fafc;
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.ai_msg_user {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

.ai_chat_input_bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.ai_chat_input {
  flex: 1;
  background: rgba(7, 21, 36, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: #fff;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.ai_chat_input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* ============================================================== */
/* 12. FLOATING AUDIO PLAYER                                      */
/* ============================================================== */

.floating_audio_player {
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(7, 21, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--gold-glow);
  border-radius: 20px;
  padding: 10px 16px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
}

@media (min-width: 900px) {
  .floating_audio_player {
    bottom: 24px;
  }
}

.player_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .player_inner {
    flex-wrap: nowrap;
  }
}

.player_track_info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.player_track_icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #b45309);
  color: #02070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.player_track_text b {
  display: block;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.player_track_text span {
  font-size: 11px;
  color: var(--gold-light);
  display: block;
}

.player_controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player_btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.player_btn:hover {
  background: var(--gold-pure);
  color: #02070d;
}

.player_btn_main {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  color: #02070d;
  border: none;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.player_progress_box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.progress_slider {
  flex: 1;
  accent-color: var(--gold-pure);
  cursor: pointer;
}

.time_label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

/* ============================================================== */
/* 13. MOBILE BOTTOM NAVIGATION                                   */
/* ============================================================== */

.bottom_nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 21, 36, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 9998;
  padding: 0 8px;
}

@media (min-width: 900px) {
  .bottom_nav {
    display: none;
  }
}

.bnav_item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.2s;
}

.bnav_item i {
  font-size: 18px;
}

.bnav_item.active {
  color: var(--gold-pure);
  transform: translateY(-2px);
}

.bnav_item.active i {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* ============================================================== */
/* 14. FOOTER & MODALS                                            */
/* ============================================================== */

.site_footer {
  text-align: center;
  padding: 30px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(2, 7, 13, 0.9);
}

.site_footer b {
  color: var(--gold-pure);
}

/* PWA Royal Modal */
.royal_modal_backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.royal_modal_box {
  background: linear-gradient(145deg, #081a24 0%, #04121a 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 158, 11, 0.25);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.modal_header h3 {
  font-family: var(--font-title);
  color: var(--gold-pure);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal_close_btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal_close_btn:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: rotate(90deg);
}

.instruction_card {
  text-align: right;
  transition: transform 0.2s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

.modal_body {
  padding-top: 4px;
}

.tab_section {
  animation: fadeIn 0.3s ease;
}

.banner_subtext {
  font-size: 11px;
  color: #cbd5e1;
  display: none;
}

@media (min-width: 600px) {
  .banner_subtext {
    display: inline;
  }
}
