/* ==========================================================================
   الشاعر ذو النون أحمد نايل - التصميم الملكي الداكن (Dark Royal Obsidian & Gold)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@300;400;600;700;900&family=Reem+Kufi:wght@500;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #080a0f;
  --bg-card: rgba(18, 22, 33, 0.72);
  --bg-card-hover: rgba(26, 32, 48, 0.85);
  --bg-elevated: #111520;
  --bg-glass: rgba(15, 19, 28, 0.65);
  
  --gold-primary: #d4af37;
  --gold-glow: #f5cf68;
  --gold-dark: #997d25;
  --gold-subtle: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.28);
  
  --amber-warm: #e69138;
  --sand-accent: #e5d3b3;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 8px 32px -4px rgba(212, 175, 55, 0.18);
  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-poetry: 'Amiri', serif;
  --font-ui: 'Cairo', sans-serif;
  --font-calligraphy: 'Reem Kufi', sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-ui);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--gold-primary);
  selection-color: #000;
}

::selection {
  background: var(--gold-primary);
  color: #050608;
}

/* Background Ambient Lighting & Particles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.ambient-glow-1 {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
}

.ambient-glow-2 {
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  opacity: 0.1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 10, 15, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(8, 10, 15, 0.92);
  border-bottom-color: var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.25rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-icon-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.4));
  transition: transform 0.35s ease, filter 0.35s ease;
  flex-shrink: 0;
}

.logo-brand:hover .logo-icon-wrap {
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.7));
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(120deg, #fff, var(--gold-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.74rem;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  font-family: var(--font-poetry);
  white-space: nowrap;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 3px;
  white-space: nowrap;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to left, var(--gold-primary), var(--gold-glow));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
  opacity: 0.7;
}

.nav-links a.active {
  color: var(--gold-glow, #f5cf68) !important;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(245, 207, 104, 0.55);
}

.nav-links a.active::after {
  width: 100% !important;
  opacity: 1 !important;
  height: 2.5px;
  background: linear-gradient(to left, var(--gold-primary), var(--gold-glow));
  box-shadow: 0 0 12px rgba(245, 207, 104, 0.75);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-ambient-audio {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-ambient-audio:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-ambient-audio.playing {
  background: linear-gradient(135deg, var(--gold-primary), var(--amber-warm));
  color: #0b0d12;
  font-weight: bold;
}

.btn-ambient-audio .audio-note-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ambient-audio .headphone-avatar-img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-ambient-audio:hover .headphone-avatar-img {
  transform: scale(1.1);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.btn-ambient-audio.playing .audio-note-icon {
  animation: headphoneRhythm 1.4s infinite ease-in-out;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.btn-ambient-audio.playing .headphone-avatar-img {
  border-color: #0b0d12;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45), 0 0 18px var(--gold-glow);
}

@keyframes headphoneRhythm {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-6deg); }
  50% { transform: scale(1.05) rotate(0deg); }
  75% { transform: scale(1.15) rotate(6deg); }
}

@keyframes musicNoteBounce {
  0% { transform: scale(1) rotate(-8deg); }
  100% { transform: scale(1.22) rotate(8deg); }
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--gold-glow);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.mobile-toggle:hover,
.mobile-toggle.active {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-glow);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  transform: scale(1.05);
}

.admin-text-compact {
  display: none;
}

.mobile-nav-admin-item {
  display: none;
}

.btn-admin-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold-glow);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-admin-header:hover {
  background: var(--gold-glow);
  color: #000;
  border-color: var(--gold-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 15, 0.75) 0%,
    rgba(8, 10, 15, 0.88) 60%,
    rgba(8, 10, 15, 1) 100%
  );
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: right;
}

.badge-poetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-glow);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-poetry);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #f9f295 0%, #e0aa3e 40%, #e78024 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.85;
}

.hero-quote-box {
  background: var(--bg-glass);
  border-right: 3px solid var(--gold-primary);
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
}

.hero-quote-text {
  font-family: var(--font-poetry);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--sand-accent);
  line-height: 1.7;
}

.hero-quote-author {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-top: 8px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--gold-primary) 70%, var(--gold-dark) 100%);
  color: #080a0f;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
  transform: translateY(-3px);
}

.btn-facebook {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #60a5fa;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-facebook:hover {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
  transform: translateY(-3px);
}

/* Hero Portrait Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.4), rgba(255, 255, 255, 0.05) 50%, rgba(212, 175, 55, 0.2));
  box-shadow: var(--shadow-ambient), 0 0 60px rgba(212, 175, 55, 0.12);
  transition: transform 0.5s ease;
}

.portrait-frame:hover {
  transform: translateY(-6px) scale(1.01);
}

.portrait-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

.portrait-floating-tag {
  position: absolute;
  bottom: -15px;
  left: 25px;
  background: rgba(15, 18, 28, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-tag-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-tag-text h4 {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.floating-tag-text p {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
  scroll-margin-top: 80px;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-subtitle {
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-poetry);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '❦';
  display: block;
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-top: 8px;
  opacity: 0.8;
}

.section-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   Verse of the Day (حكمة وبوح اليوم)
   ========================================================================== */
.daily-verse-banner {
  background: linear-gradient(135deg, rgba(24, 29, 44, 0.9), rgba(13, 16, 24, 0.95));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.daily-verse-banner::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 25px;
  font-size: 140px;
  font-family: var(--font-poetry);
  color: rgba(212, 175, 55, 0.05);
  line-height: 1;
  pointer-events: none;
}

.verse-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.verse-text-group {
  flex: 1;
  min-width: 280px;
}

.verse-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-glow);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#daily-verse-quote {
  font-family: var(--font-poetry);
  font-size: 1.6rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

#daily-verse-poem-name {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.verse-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
}

/* ==========================================================================
   Poetry Showcase (ديوان النصوص والقصائد)
   ========================================================================== */
.poetry-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.poetry-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold-glow);
}

.poetry-search-box {
  position: relative;
  min-width: 260px;
}

.poetry-search-box input {
  width: 100%;
  background: rgba(8, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 10px 42px 10px 16px;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.poetry-search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

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

/* Grid of Poems */
.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.poem-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 1.6rem 2rem;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poem-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.1);
}

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

.poem-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100%;
}

.poem-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 1.25rem;
}

.poem-header-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.poem-card-tag {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.poem-card-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.poem-card-title {
  font-family: var(--font-poetry);
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.poem-card-excerpt {
  font-family: var(--font-poetry);
  font-size: 1.18rem;
  color: var(--sand-accent);
  line-height: 1.95;
  margin-bottom: 1.5rem;
  white-space: pre-line;
  position: relative;
  flex-grow: 1;
}

/* Bottom Unified Dock - Guarantees all buttons across all cards are at the exact same level */
.poem-card-bottom-dock {
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
}

.poem-card-social {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0.85rem 0 0.6rem 0 !important;
  margin: 0 !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  min-height: 48px !important;
  box-sizing: border-box !important;
}

.poem-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem !important;
  margin-top: 0 !important;
  min-height: 46px !important;
  box-sizing: border-box !important;
}

.btn-read-poem {
  background: transparent;
  border: none;
  color: var(--gold-glow);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-read-poem:hover {
  color: #fff;
  transform: translateX(-4px);
}

.btn-copy-card {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  padding: 4px;
}

.btn-poem-like {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 0 14px;
  font-size: 0.82rem;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  transition: var(--transition-smooth);
  height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-poem-like:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: translateY(-2px);
}

.btn-poem-like.liked {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.btn-poem-like .heart-icon {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-poem-like.liked .heart-icon {
  fill: #ef4444;
  stroke: #ef4444;
  transform: scale(1.15);
}

.like-counter {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-glow);
}

.btn-poem-like.liked .like-counter {
  color: #fca5a5;
}

.btn-fb-like-action {
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #60a5fa;
  border-radius: var(--radius-full);
  padding: 0 13px;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-fb-like-action:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.45);
  transform: translateY(-2px);
}

.btn-fb-like-action:active {
  transform: scale(0.96);
}

.btn-fb-like-action svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-fb-like-action:hover svg {
  transform: scale(1.15);
}

/* زر التفاعل مع منشور تيك توك */
.btn-tiktok-action {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  border-radius: var(--radius-full);
  padding: 0 13px;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-tiktok-action:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.9), rgba(254, 44, 85, 0.95));
  color: #ffffff;
  border-color: #fe2c55;
  box-shadow: 0 4px 18px rgba(254, 44, 85, 0.45);
  transform: translateY(-2px);
}

.btn-tiktok-action:active {
  transform: scale(0.96);
}

.btn-tiktok-action svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-tiktok-action:hover svg {
  transform: scale(1.15);
  fill: #ffffff;
}

/* زر التفاعل مع يوتيوب */
.btn-yt-action {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: var(--radius-full);
  padding: 0 13px;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-yt-action:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.45);
  transform: translateY(-2px);
}

/* شارة مصدر المنشور في ترويسة بطاقة القصيدة */
.poem-source-pill {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  gap: 5px;
}

.poem-source-pill.tiktok {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}

.poem-source-pill.facebook {
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.32);
  color: #60a5fa;
}

.poem-source-pill.youtube {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Modal Social & Facebook Bar */
.modal-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.65rem 1.75rem;
  background: rgba(10, 13, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-social-bar .btn-poem-like {
  padding: 7px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-social-bar #modal-fb-direct-action-btn,
.modal-social-bar .btn-fb-like-action,
.modal-social-bar .btn-tiktok-action,
.modal-social-bar .btn-yt-action {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  font-size: 0.84rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.fb-like-plugin-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  flex-shrink: 0;
}

/* ==========================================================================
   Modal Poem Reader (التصميم الفاخر للديوان وقارئ القصائد)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drag Indicator - Hidden on Desktop, Visible on Mobile Sheet */
.modal-drag-indicator {
  display: none;
}

.modal-container {
  background: linear-gradient(180deg, #101420 0%, #0a0d14 100%);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  height: auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), var(--shadow-gold);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

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

.modal-header {
  padding: 1.25rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 18, 28, 0.95);
  flex-shrink: 0;
  gap: 1rem;
}

.modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.modal-title-wrap h3 {
  font-family: var(--font-poetry);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.modal-title-wrap span {
  font-size: 0.85rem;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-time-tag {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: normal;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.font-size-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.font-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 9px;
  font-weight: bold;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.font-btn:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.font-btn:active {
  transform: scale(0.92);
  color: #fff;
  background: rgba(212, 175, 55, 0.35);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Modal Body & Luxurious Poem Typography */
.modal-body {
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
  text-align: center;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
  background: radial-gradient(circle at 50% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.modal-body::-webkit-scrollbar-button,
.modal-body::-webkit-scrollbar-button:single-button,
.modal-body::-webkit-scrollbar-button:vertical:decrement,
.modal-body::-webkit-scrollbar-button:vertical:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.modal-poem-content {
  font-family: var(--font-poetry);
  font-size: var(--modal-poem-font-size, 1.45rem);
  line-height: 2.3;
  color: #f7f3e8;
  white-space: pre-line;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.2px;
  transition: font-size 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-poem-ornament {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  opacity: 0.65;
}

.modal-poem-ornament::before,
.modal-poem-ornament::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary));
}

.modal-poem-ornament::after {
  background: linear-gradient(to left, transparent, var(--gold-primary));
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 18, 28, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.modal-footer .btn-label-mobile {
  display: none;
}
.modal-footer .btn-label-desktop {
  display: inline;
}

/* ==========================================================================
   Videos Showcase Section (مكتبة المرئيات والفيديوهات)
   ========================================================================== */
.videos-section {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.9) 0%, rgba(13, 17, 26, 0.95) 50%, rgba(8, 10, 15, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.video-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.v-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.v-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(24, 119, 242, 0.25));
  border-color: var(--gold-border);
  color: var(--gold-glow);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.video-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.88;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.06);
  opacity: 1;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 15, 0.35);
  transition: var(--transition-smooth);
}

.video-card:hover .video-play-overlay {
  background: rgba(8, 10, 15, 0.15);
}

.play-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(18, 22, 33, 0.85);
  border: 2px solid var(--gold-primary);
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
}

.video-card:hover .play-circle-btn {
  transform: scale(1.15);
  background: var(--gold-primary);
  color: #080a0f;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.8);
}

.video-duration-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.video-badge-source {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(24, 119, 242, 0.85);
  color: #fff;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--gold-primary);
}

.video-card-title {
  font-family: var(--font-poetry);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.video-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.video-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
}

.btn-watch-now {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: var(--gold-glow);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-ui);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease;
}

.btn-watch-now:hover {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-primary));
  color: #080a0f;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.video-card-footer .btn-watch-now {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.video-card-footer .btn-tiktok-action,
.video-card-footer .btn-fb-like-action,
.video-card-footer .btn-yt-action {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-full) !important;
}

.video-card-footer .btn-tiktok-action span,
.video-card-footer .btn-fb-like-action span,
.video-card-footer .btn-yt-action span {
  white-space: nowrap !important;
  display: inline !important;
}

.video-card-footer .btn-tiktok-action svg,
.video-card-footer .btn-fb-like-action svg,
.video-card-footer .btn-yt-action svg {
  flex-shrink: 0 !important;
}

/* Video Player Screen inside Modal */
.video-player-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-simulated-player {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.video-simulated-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.2) 0%, rgba(8, 10, 15, 0.85) 100%);
}

.video-simulated-content {
  position: relative;
  z-index: 2;
  text-align: right;
}

.audio-soundwave-anim {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin-bottom: 12px;
}

.audio-soundwave-anim span {
  width: 4px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: waveHeight 0.8s infinite alternate ease-in-out;
}

.audio-soundwave-anim span:nth-child(2) { animation-delay: 0.15s; }
.audio-soundwave-anim span:nth-child(3) { animation-delay: 0.3s; }
.audio-soundwave-anim span:nth-child(4) { animation-delay: 0.45s; }
.audio-soundwave-anim span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveHeight {
  from { height: 6px; }
  to { height: 24px; }
}

/* ==========================================================================
   Biography & Journey (عن الشاعر والدرويش)
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, #0d1017 50%, var(--bg-main) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.book-showcase-card {
  position: relative;
  text-align: center;
}

.book-showcase-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  position: relative;
}

.book-showcase-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.about-text-wrap {
  text-align: right;
}

.about-quote {
  font-family: var(--font-poetry);
  font-size: 1.35rem;
  color: var(--gold-glow);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border-right: 3px solid var(--gold-primary);
  padding-right: 1.25rem;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.poet-attributes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.attr-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.attr-icon {
  font-size: 1.6rem;
  color: var(--gold-primary);
}

.attr-info h5 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.attr-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Live Social Radar Banner (Meta & TikTok) */
.social-radar-strip {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(24, 119, 242, 0.14), rgba(0, 242, 254, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 22px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.social-radar-strip::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #d4af37, #1877f2, #00f2fe);
}

.social-radar-strip .radar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.social-radar-strip .radar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulseGreen 1.6s infinite;
  flex-shrink: 0;
}

.social-radar-strip strong {
  color: var(--color-gold, #d4af37);
  display: inline-block;
  margin-left: 6px;
}

.btn-radar-sync {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(24, 119, 242, 0.3));
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-ui, sans-serif);
}

.btn-radar-sync:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(24, 119, 242, 0.55));
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-radar-sync.syncing svg {
  animation: spinSync 0.7s linear infinite;
}

@media (max-width: 820px) {
  .social-radar-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .btn-radar-sync {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Facebook Social & Community Hub (المقتطفات من فيسبوك والبث المباشر)
   ========================================================================== */
.facebook-hub-section {
  position: relative;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mode Switcher */
.fb-view-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 2.5rem;
}

.switcher-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.switch-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.switch-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(24, 119, 242, 0.25));
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.feed-status-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* View 1: Meta Live Embed */
.fb-live-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.fb-live-frame-box {
  background: rgba(15, 18, 28, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(24, 119, 242, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  min-height: auto;
  width: 100%;
}

.fb-live-frame-box .fb-page,
.fb-live-frame-box .fb-page span,
.fb-live-frame-box .fb-page iframe {
  width: 100% !important;
  max-width: 500px !important;
  border-radius: var(--radius-md);
  margin: 0 auto;
}

.fb-live-notice .notice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
}

.notice-card h4 {
  font-size: 1.25rem;
  color: var(--gold-glow);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.notice-meta {
  background: rgba(8, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--sand-accent);
  word-break: break-all;
}

.notice-meta code {
  color: #60a5fa;
}

.fb-hero-card {
  background: linear-gradient(135deg, rgba(24, 30, 48, 0.95), rgba(12, 15, 24, 0.98));
  border: 1px solid rgba(24, 119, 242, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.fb-profile-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fb-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid #1877f2;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}

.fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-details h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-badge {
  color: #1877f2;
  font-size: 1.1rem;
}

.fb-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Facebook Page Live Followers & Stats Strip */
.fb-page-stats-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.fb-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(24, 119, 242, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.fb-stat-box:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.15);
  transform: translateY(-2px);
}

.fb-stat-icon {
  font-size: 1rem;
  color: #60a5fa;
  display: flex;
  align-items: center;
}

.fb-stat-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.fb-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fb-stat-sync {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.live-dot-green {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-stat-sync-refresh {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #93c5fd;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-ui);
}

.btn-stat-sync-refresh:hover {
  background: rgba(24, 119, 242, 0.3);
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-stat-sync-refresh.syncing svg {
  animation: spinSync 0.7s linear infinite;
}

@keyframes spinSync {
  100% { transform: rotate(360deg); }
}

.stat-bump {
  animation: countBump 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes countBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); color: #4ade80; }
  100% { transform: scale(1); }
}

/* Floating Real-time Reaction Particle */
.live-reaction-particle {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: #4ade80;
  background: rgba(12, 15, 24, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.5);
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(74, 222, 128, 0.4);
  transform: translate(-50%, 0);
  animation: floatUpFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -45px) scale(1);
  }
}

.fb-official-badge-wrap {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.btn-fb-follow {
  background: linear-gradient(135deg, #1877f2 0%, #155bc0 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.4);
  transition: var(--transition-smooth);
}

.btn-fb-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
  background: linear-gradient(135deg, #2583f7 0%, #1765d4 100%);
}

.btn-fb-follow.followed {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
}

.btn-fb-follow .badge-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  margin-right: 4px;
}

.fb-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.fb-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: var(--transition-smooth);
  height: 100%;
  box-sizing: border-box;
}

.fb-post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.fb-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.fb-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

.fb-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-poster-meta h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.fb-badge-tag {
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 4px;
}

.fb-post-timestamp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #93c5fd;
  font-family: var(--font-ui);
}

.fb-exact-time {
  font-weight: 600;
  color: #bfdbfe;
}

.fb-time-ago {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.fb-card-comment-box {
  background: rgba(255, 255, 255, 0.035);
  border-right: 3px solid #1877f2;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 1rem 0 !important;
  font-size: 0.88rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.fb-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-family: var(--font-ui);
}

.fb-commenter-name {
  font-weight: 700;
  color: #60a5fa;
}

.fb-comment-date {
  color: #94a3b8;
  font-size: 0.74rem;
}

.fb-comment-text {
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.poem-card-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
}

.video-publish-time {
  font-size: 0.75rem;
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
}

.modal-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #93c5fd;
  margin-right: 8px;
}

.fb-post-content {
  font-family: var(--font-poetry);
  font-size: 1.15rem;
  color: var(--sand-accent);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  white-space: pre-line;
  flex-grow: 1 !important;
}

/* Bottom Unified Dock - Guarantees all comments and buttons are at the exact same vertical level across cards */
.fb-post-bottom-dock {
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
}

.fb-post-metrics {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem !important;
  margin-top: 0 !important;
  color: var(--text-dim);
  font-size: 0.85rem;
  gap: 8px;
  flex-wrap: nowrap !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.fb-post-metrics a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.fb-post-metrics a span {
  white-space: nowrap !important;
  display: inline !important;
}

.fb-metrics-icons {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-live-like, .btn-live-comment {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-family: var(--font-ui);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-live-like:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  transform: translateY(-2px);
}

.btn-live-like.has-liked {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
}

.btn-live-like.has-liked .like-heart {
  animation: heartPump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.btn-live-comment:hover {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
  transform: translateY(-2px);
}


/* ==========================================================================
   Guestbook / دفتر التوقيعات والخواطر
   ========================================================================== */
.guestbook-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(14px);
}

.guestbook-form-side h3 {
  font-family: var(--font-poetry);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.guestbook-form-side p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.guestbook-form .form-group {
  margin-bottom: 1.2rem;
}

.guestbook-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--sand-accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.guestbook-messages-side {
  max-height: 480px;
  overflow-y: auto;
  padding-left: 10px;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guest-card {
  background: rgba(14, 18, 27, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md, 12px);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.4s ease;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.guest-card-facebook {
  border-right: 4px solid #1877f2;
}

.guest-card-web {
  border-right: 4px solid var(--gold-primary);
}

.guest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.guest-author-col {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.guest-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-top: 2px;
}

.avatar-fb {
  background: linear-gradient(135deg, #1877f2, #0d54b4);
  color: #fff;
}

.avatar-web {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-glow);
}

.guest-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.guest-author-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-name {
  font-weight: 700;
  color: var(--gold-glow);
  font-size: 1rem;
  line-height: 1.3;
}

.guest-meta-time {
  flex-shrink: 0;
  text-align: left;
}

.guest-time {
  font-size: 0.76rem;
  color: rgba(226, 217, 196, 0.65);
  white-space: nowrap !important;
  display: inline-block;
  direction: rtl;
  font-family: var(--font-ui);
}

.guest-source-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.fb-source-tag {
  background: rgba(24, 119, 242, 0.16);
  border: 1px solid rgba(24, 119, 242, 0.45);
  color: #70b3ff;
}

.web-source-tag {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-glow);
}

.guest-author-secondary {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.guest-post-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--sand-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-card-body {
  border-top: 1px dashed rgba(212, 175, 55, 0.14);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.guest-message {
  font-family: var(--font-poetry);
  font-size: 1.12rem;
  color: #fff9ea;
  line-height: 1.7;
  letter-spacing: 0.2px;
  margin: 0;
}

/* Mobile responsive adjustments for guest cards */
@media (max-width: 600px) {
  .guest-card {
    padding: 1rem 0.95rem;
  }
  
  .guest-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .guest-meta-time {
    width: 100%;
    text-align: right;
    padding-right: 46px; /* align with text indentation past the avatar */
    margin-top: -2px;
  }
  
  .guest-time {
    font-size: 0.72rem;
  }
  
  .guest-name {
    font-size: 0.95rem;
  }
  
  .guest-post-tag {
    max-width: 200px;
  }
  
  .guest-message {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: #050609;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-family: var(--font-poetry);
  font-size: 1.8rem;
  color: var(--gold-glow);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--gold-glow);
  padding-right: 6px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ==========================================================================
   Responsive Adaptations & Universal Multi-Screen Navigation
   ========================================================================== */

/* 1. الشاشات المتوسطة والمحمولة (1101px إلى 1280px) */
@media (max-width: 1280px) and (min-width: 1101px) {
  .nav-wrap {
    gap: 0.75rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 5px 2px;
  }
  .logo-text h1 {
    font-size: 1.15rem;
  }
  .logo-text span {
    font-size: 0.7rem;
  }
  .btn-ambient-audio {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .btn-admin-header {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* 2. شاشات الأجهزة اللوحية والحواسيب الصغرى (أقل من 1100px) */
@media (max-width: 1100px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 2px solid var(--gold-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .nav-links a::after {
    display: none !important;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-glow);
    transform: translateX(-4px);
  }

  .nav-links a.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.05));
    border-color: var(--gold-primary);
    color: var(--gold-glow) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-quote-box {
    border-right: none;
    border-top: 3px solid var(--gold-primary);
    border-radius: var(--radius-md);
  }
  .hero-cta-group {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .guestbook-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fb-live-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    height: 64px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px !important;
  }
  .nav-links {
    top: 64px !important;
    max-height: calc(100vh - 64px) !important;
    padding: 1.25rem 1.25rem 2rem !important;
  }
  .mobile-nav-admin-item {
    display: block !important;
  }
  .logo-brand {
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
  }
  .logo-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
  }
  .logo-text {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .logo-text h1 {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .logo-text span {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
    opacity: 0.85;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .btn-ambient-audio {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .btn-ambient-audio .audio-text {
    display: none !important;
  }
  .btn-ambient-audio .headphone-avatar-img {
    width: 24px !important;
    height: 24px !important;
  }
  .btn-ambient-audio .sound-wave {
    margin: 0 !important;
  }
  .btn-admin-header {
    display: none !important;
  }
  .mobile-nav-admin-item {
    display: block !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center !important;
  }
  .mobile-nav-admin-item a.nav-admin-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim) !important;
    font-size: 0.95rem !important;
    opacity: 0.3 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
  }
  .mobile-nav-admin-item a.nav-admin-link:hover,
  .mobile-nav-admin-item a.nav-admin-link:active {
    opacity: 0.95 !important;
    color: var(--gold-glow) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
  }
  .mobile-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  /* Mobile Hero CTAs & Balanced Actions */
  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary,
  .hero-cta-group .btn-facebook {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 13px 20px !important;
    font-size: 0.96rem !important;
    box-sizing: border-box !important;
  }
  /* Mobile Section Spacing & Flow */
  section {
    padding: 55px 0 !important;
    scroll-margin-top: 70px !important;
  }
  .section-head {
    margin-bottom: 2.25rem !important;
  }
  .section-title {
    font-size: 2rem !important;
  }
  .section-desc {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }
  .daily-verse-banner {
    margin-bottom: 2.5rem !important;
    padding: 1.5rem 1.25rem !important;
  }
  .poems-grid,
  .videos-grid {
    grid-template-columns: 1fr !important;
  }
  .portrait-frame img {
    height: 380px;
    max-width: 100%;
  }
  .fb-hero-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
  }
  .fb-profile-info {
    flex-direction: column;
    align-items: center;
  }
  .fb-page-stats-strip {
    justify-content: center;
    gap: 8px;
  }
  .fb-header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .fb-header-actions .btn-facebook,
  .fb-header-actions .btn-fb-follow {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .fb-view-switcher {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .switcher-buttons {
    flex-direction: column;
    width: 100%;
  }
  .switcher-buttons .switch-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 10px 14px;
    text-align: center;
  }
  .feed-status-info {
    text-align: center;
    font-size: 0.8rem;
  }
  .fb-live-wrapper {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .fb-live-frame-box {
    padding: 0.75rem 0.25rem;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .fb-page,
  .fb-page > span,
  .fb-page iframe {
    max-width: 100% !important;
    width: 100% !important;
  }
  .fb-live-notice {
    width: 100%;
  }
  .fb-live-notice .notice-card {
    padding: 1.5rem;
  }
  .poet-attributes {
    grid-template-columns: 1fr;
  }
  .video-modal .modal-container {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto;
  }
  .poetry-controls,
  .video-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    padding: 1rem;
  }
  .poetry-filter-tabs,
  .video-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .tab-btn,
  .v-tab-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
  }
  .tab-btn.active,
  .v-tab-btn.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold-primary);
    color: var(--gold-glow);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
  }
  .poetry-search-box {
    width: 100%;
    min-width: 0;
  }
  .video-controls .btn-facebook {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .nav-wrap {
    height: 60px !important;
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .nav-links {
    top: 60px !important;
    max-height: calc(100vh - 60px) !important;
  }
  .logo-text h1 {
    font-size: 0.98rem !important;
    white-space: nowrap !important;
  }
  .logo-text span {
    display: none !important;
  }
  .logo-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .header-actions {
    gap: 5px !important;
  }
  .btn-ambient-audio,
  .mobile-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .mobile-toggle {
    font-size: 1.2rem !important;
  }
  .poem-card-header {
    gap: 8px !important;
    align-items: center !important;
  }
  .poem-header-badges {
    gap: 5px !important;
  }
  .poem-card-tag,
  .poem-source-pill {
    padding: 3px 10px !important;
    font-size: 0.72rem !important;
  }
  .poem-card-time {
    font-size: 0.72rem !important;
  }
  .fb-post-metrics {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  .fb-metrics-icons {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }
  .btn-live-like,
  .btn-live-comment {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .fb-post-metrics a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
  }
  .fb-post-metrics a span {
    white-space: nowrap !important;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.4;
  }
  .hero-quote-box {
    padding: 1.25rem 1rem;
  }
  .hero-quote-box p {
    font-size: 1.2rem;
    line-height: 1.8;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary,
  .hero-cta-group .btn-facebook {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .daily-verse-banner {
    padding: 1.35rem 1rem;
  }
  #daily-verse-quote {
    font-size: 1.25rem;
  }
  .poem-card {
    padding: 1.6rem 1.25rem;
  }
  .poem-card-title {
    font-size: 1.35rem;
  }
  .video-card-body {
    padding: 1.2rem 1rem;
  }
  .video-card-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Mobile Poem Reader (إعادة تصميم الشاشات الصغيرة للموبايل - تجربة قارئ راقية)
   ========================================================================== */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important; /* Bottom-sheet feel on mobile */
  }

  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 94dvh !important;
    max-height: 94dvh !important;
    border-radius: 22px 22px 0 0 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-bottom: none !important;
    margin: 0 !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .modal-overlay.active .modal-container {
    transform: translateY(0) !important;
  }

  /* Sheet Pull Handle */
  .modal-drag-indicator {
    display: block !important;
    width: 44px;
    height: 4px;
    background: rgba(212, 175, 55, 0.45);
    border-radius: 4px;
    margin: 8px auto 2px auto;
    flex-shrink: 0;
  }

  .modal-header {
    padding: 0.65rem 1rem 0.6rem !important;
    gap: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .modal-title-wrap h3 {
    font-size: 1.32rem !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
  }

  .modal-title-wrap span {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }

  .modal-time-tag {
    font-size: 0.74rem !important;
    opacity: 0.85;
  }

  .modal-actions {
    gap: 6px !important;
  }

  .font-size-control {
    padding: 2px 4px !important;
    gap: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
  }

  .font-btn {
    padding: 3px 8px !important;
    font-size: 0.85rem !important;
    min-width: 28px !important;
    height: 28px !important;
    touch-action: manipulation;
  }

  .modal-close-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.2rem !important;
  }

  /* Compact Horizontal Social Toolbar */
  .modal-social-bar {
    padding: 0.5rem 1rem !important;
    gap: 10px !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    min-height: 44px !important;
  }

  .modal-social-bar::-webkit-scrollbar {
    display: none !important;
  }

  .modal-social-bar .btn-poem-like,
  .modal-social-bar #modal-fb-direct-action-btn,
  .modal-social-bar .btn-fb-like-action,
  .modal-social-bar .btn-tiktok-action,
  .modal-social-bar .btn-yt-action {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
    height: 32px !important;
    max-width: none !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }

  .modal-social-bar #modal-fb-direct-action-btn span,
  .modal-social-bar .btn-fb-like-action span,
  .modal-social-bar .btn-tiktok-action span,
  .modal-social-bar .btn-yt-action span {
    white-space: nowrap !important;
    display: inline !important;
  }

  .fb-like-plugin-wrap {
    flex-shrink: 0 !important;
    display: none !important; /* Hide iframe plugin on mobile to keep bar clean */
  }

  /* Spacious, Beautiful Poem Text Area */
  .modal-body {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 1.5rem 1.15rem 2rem !important;
  }

  .modal-poem-content {
    font-size: var(--modal-poem-font-size, 1.24rem);
    line-height: 2.15 !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    word-break: break-word;
  }

  /* Streamlined Horizontal Bottom Action Bar */
  .modal-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0.65rem 1rem !important;
    background: rgba(10, 14, 22, 0.98) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.18) !important;
  }

  .modal-footer #modal-poem-fb-link,
  .modal-footer #video-modal-fb-link {
    flex: 1 1 auto !important;
    width: auto !important;
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 42px !important;
  }

  .modal-footer #modal-poem-fb-link.btn-tiktok-visit,
  .modal-footer #video-modal-fb-link.btn-tiktok-visit {
    background: linear-gradient(135deg, #fe2c55, #e01741) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.4) !important;
    border: none !important;
  }

  .modal-footer #modal-poem-fb-link.btn-yt-visit,
  .modal-footer #video-modal-fb-link.btn-yt-visit {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4) !important;
    border: none !important;
  }

  .modal-footer #modal-copy-btn,
  .modal-footer #modal-share-btn,
  .modal-footer #video-modal-share-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    white-space: nowrap !important;
  }

  .modal-footer .btn-label-desktop {
    display: none !important;
  }
  .modal-footer .btn-label-mobile {
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .modal-title-wrap h3 {
    font-size: 1.22rem !important;
  }
  .modal-poem-content {
    font-size: var(--modal-poem-font-size, 1.18rem);
    line-height: 2.1 !important;
  }
  .modal-footer #modal-copy-btn,
  .modal-footer #modal-share-btn,
  .modal-footer #video-modal-share-btn {
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
  }
  .modal-footer #modal-poem-fb-link,
  .modal-footer #video-modal-fb-link {
    font-size: 0.76rem !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .nav-wrap {
    height: 60px;
    gap: 6px;
  }
  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
  }
  .logo-brand {
    gap: 6px;
  }
  .logo-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .logo-text h1 {
    font-size: 0.9rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .logo-text span {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .btn-ambient-audio,
  .mobile-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .mobile-toggle {
    border-radius: 8px !important;
    font-size: 1.15rem !important;
  }
  .hero-section {
    padding-top: 85px;
    padding-bottom: 40px;
  }
  .badge-poetry {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
  .hero-quote-box {
    padding: 0.85rem 0.9rem;
    margin-bottom: 1.5rem;
  }
  .hero-quote-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-cta-group a {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 10px 16px;
  }
  .portrait-frame {
    max-width: 100%;
    padding: 6px;
  }
  .portrait-frame img {
    height: 280px;
  }
  .portrait-floating-tag {
    bottom: -10px;
    left: 8px;
    right: 8px;
    padding: 8px 10px;
  }
  .floating-tag-text h4 {
    font-size: 0.82rem;
  }
  .floating-tag-text p {
    font-size: 0.68rem;
  }
  .daily-verse-banner {
    padding: 1.15rem 0.8rem;
    margin-bottom: 3rem;
  }
  #daily-verse-quote {
    font-size: 1.1rem;
    line-height: 1.65;
  }
  #daily-verse-poem-name {
    font-size: 0.82rem;
  }
  .verse-actions {
    width: 100%;
    gap: 8px;
  }
  .verse-actions .icon-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 6px;
  }
  .poetry-controls,
  .video-controls {
    padding: 0.85rem 0.75rem;
    gap: 0.9rem;
  }
  .poetry-filter-tabs,
  .video-filter-tabs {
    gap: 6px;
  }
  .tab-btn,
  .v-tab-btn {
    font-size: 0.8rem;
    padding: 8px 4px;
    white-space: nowrap;
  }
  .poetry-search-box input {
    font-size: 0.84rem;
    padding: 8px 36px 8px 12px;
  }
  .poem-card {
    padding: 1.25rem 0.85rem;
  }
  .poem-card-title {
    font-size: 1.2rem;
  }
  .poem-card-preview {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .video-card-body {
    padding: 1rem 0.85rem;
  }
  .video-card-title {
    font-size: 1.12rem;
  }
  .btn-watch-now {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .notice-card {
    padding: 1.15rem 0.85rem !important;
  }
  .guestbook-form-card,
  .guestbook-list-card {
    padding: 1.25rem 0.85rem;
  }
  .guest-entry-card {
    padding: 0.9rem 0.75rem;
  }
  .guest-message {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   11. قسم تيك توك الحصري (@drwesh22 TikTok Hub)
   ========================================================================== */
.tiktok-hub-section {
  position: relative;
  padding: 5.5rem 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(0, 242, 254, 0.05), transparent 60%),
              radial-gradient(ellipse at 20% 70%, rgba(254, 44, 85, 0.05), transparent 60%),
              var(--bg-main);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tiktok-pulse-badge {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(254, 44, 85, 0.12)) !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.tiktok-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fe2c55;
  box-shadow: 0 0 8px #fe2c55, 0 0 12px #00f2fe;
  animation: pulse-tt 1.8s infinite;
}

@keyframes pulse-tt {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.tiktok-hero-card {
  background: linear-gradient(135deg, rgba(16, 20, 31, 0.9), rgba(22, 16, 28, 0.85));
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.08);
  position: relative;
}

.tiktok-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #fe2c55, var(--gold-primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tiktok-profile-info {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.tiktok-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #00f2fe, #fe2c55);
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.35);
  flex-shrink: 0;
}

.tiktok-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}

.tiktok-details h3 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tiktok-details .tt-handle {
  font-size: 0.92rem;
  color: #00f2fe;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}

.tiktok-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.tiktok-stats-strip {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.tiktok-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.tiktok-stat-box strong {
  color: #fff;
  font-weight: 700;
}

.tiktok-stat-box span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.btn-tiktok-visit {
  background: linear-gradient(135deg, #fe2c55, #e01741);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.35);
  border: none;
}

.btn-tiktok-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(254, 44, 85, 0.55);
  color: #fff;
}

.btn-yt-visit {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
  border: none;
}

.btn-yt-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.55);
  color: #fff;
}

/* TikTok Cards Grid */
.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.tiktok-card {
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.85) 0%, rgba(13, 16, 25, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

.tiktok-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 14px 32px -4px rgba(0, 242, 254, 0.15), 0 0 20px rgba(254, 44, 85, 0.12);
}

.tiktok-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}

.tt-card-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.tt-card-badge.badge-musical {
  background: rgba(254, 44, 85, 0.16);
  color: #ff5b79;
  border-color: rgba(254, 44, 85, 0.45);
  box-shadow: 0 0 12px rgba(254, 44, 85, 0.2);
}

.tt-card-badge.badge-recitation {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.tt-card-badge.badge-programs {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.tt-card-badge.badge-latest {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
  animation: pulseLatest 2.5s infinite ease-in-out;
}

@keyframes pulseLatest {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.45); }
}

.tt-card-user {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-card-user .verified {
  color: #00f2fe;
}

.tiktok-card-preview {
  position: relative;
  height: 200px;
  background: radial-gradient(circle at center, #1b2234 0%, #0a0d14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.tt-poster-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.tiktok-card:hover .tt-poster-bg {
  transform: scale(1.06);
  opacity: 0.55;
}

.tiktok-play-overlay {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #fe2c55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(254, 44, 85, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tiktok-card:hover .tiktok-play-overlay {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.7);
}

.tt-overlay-stats {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  font-size: 0.78rem;
}

.tt-stat-pill {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tiktok-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tiktok-card-title {
  font-family: var(--font-poetry);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-glow);
  margin-bottom: 8px;
  line-height: 1.4;
}

.tiktok-card-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

.tt-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--sand-accent);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.tiktok-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-tt-watch {
  flex: 1;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(254, 44, 85, 0.18));
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-tt-watch:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(254, 44, 85, 0.3));
  border-color: #00f2fe;
}

.btn-tt-external {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-tt-external:hover {
  color: #fe2c55;
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.08);
}

/* TikTok Video Player Modal */
.tiktok-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.tiktok-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.tiktok-modal-dialog {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.15);
  animation: modal-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tiktok-modal-header {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tiktok-modal-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-tiktok-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-tiktok-modal-btn:hover {
  color: #fe2c55;
}

.tiktok-modal-body {
  padding: 0;
  height: 560px;
  background: #000;
  overflow: hidden;
  position: relative;
}

.tiktok-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tiktok-modal-footer {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 768px) {
  .tiktok-hero-card {
    padding: 1.75rem 1.25rem !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
  }
  .tiktok-profile-info {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  .tiktok-avatar {
    width: 82px !important;
    height: 82px !important;
    margin: 0 auto !important;
  }
  .tiktok-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .tiktok-details h3 {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.25rem !important;
  }
  .tiktok-details p {
    text-align: center !important;
    margin-bottom: 0.85rem !important;
    font-size: 0.88rem !important;
  }
  .tiktok-stats-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .tiktok-stat-box {
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  .tiktok-header-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }
  .btn-tiktok-visit {
    width: 100% !important;
    max-width: 380px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }
  .tiktok-grid {
    grid-template-columns: 1fr !important;
  }
  .tiktok-modal-dialog {
    max-width: 95vw !important;
  }
  .tiktok-modal-body {
    height: 480px !important;
  }
}

/* ==========================================================================
   المكتبة الصوتية والأنغام الوجدانية (Audio Ambiance Library Modal & Long Press)
   ========================================================================== */
.btn-ambient-audio {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
}

.btn-ambient-audio.holding {
  transform: scale(0.92);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.65) !important;
  border-color: var(--gold-glow) !important;
  background: rgba(212, 175, 55, 0.35) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.btn-ambient-audio.holding::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-glow);
  animation: holdingRing 0.5s ease-out forwards;
}

@keyframes holdingRing {
  0% { transform: scale(0.85); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Audio Library Modal Styles */
.audio-lib-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.audio-lib-modal.active {
  display: flex;
  opacity: 1;
}

.audio-lib-container {
  background: linear-gradient(145deg, rgba(17, 22, 33, 0.98), rgba(11, 14, 22, 0.98));
  border: 1px solid var(--gold-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  position: relative;
  animation: audioModalUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes audioModalUp {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.audio-lib-header {
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.audio-lib-header-info h3 {
  color: var(--gold-glow);
  font-family: var(--font-poetry);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.audio-lib-header-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.audio-lib-close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-lib-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.audio-lib-body {
  padding: 1.3rem 1.6rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Control Bar */
.audio-lib-controls-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.audio-vol-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.audio-vol-control label {
  font-size: 0.85rem;
  color: var(--sand-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.audio-vol-slider {
  flex: 1;
  accent-color: var(--gold-primary);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.audio-lib-status-tag {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-glow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Track Cards Grid */
.audio-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audio-track-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.audio-track-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-border);
  transform: translateX(-4px);
}

.audio-track-card.active {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15);
}

.audio-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.audio-track-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.audio-track-card.active .audio-track-icon {
  background: var(--gold-primary);
  color: #0b0d12;
  box-shadow: 0 0 16px var(--gold-glow);
}

.audio-track-texts h4 {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 2px;
}

.audio-track-texts p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audio-track-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-select-track {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.audio-track-card.active .btn-select-track {
  background: linear-gradient(135deg, var(--gold-primary), var(--amber-warm));
  color: #0b0d12;
  border: none;
  font-weight: 700;
}

.btn-select-track:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--gold-primary);
}

/* Custom Upload Card */
.audio-custom-card {
  border: 1px dashed var(--gold-border);
  background: rgba(212, 175, 55, 0.04);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-custom-card:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Footer of modal */
.audio-lib-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
}

.audio-lib-hint {
  font-size: 0.82rem;
  color: var(--sand-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-lib-footer-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-stop-all-audio {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stop-all-audio:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}
