/*
 * Noor (نور) - CSS Stylesheet
 * Custom Premium Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Reenie+Beanie&display=swap');

:root {
  /* Dark Theme Colors (Default) */
  --bg-color: #050e0c;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d2823 0%, #050e0c 80%);
  --panel-bg: rgba(9, 29, 25, 0.45);
  --panel-border: rgba(16, 185, 129, 0.15);
  --panel-border-glow: rgba(212, 175, 55, 0.1);
  --text-primary: #f3fcfb;
  --text-secondary: #94b2ad;
  --primary-color: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --accent-color: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.3);
  --danger-color: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-calligraphy: 'Reenie Beanie', cursive;
  --card-bg-gradient: linear-gradient(135deg, rgba(16, 44, 38, 0.6) 0%, rgba(9, 23, 20, 0.6) 100%);
  --glass-blur: blur(20px);
}

[data-theme="light"] {
  /* Light Theme Colors */
  --bg-color: #f4faf8;
  --bg-gradient: radial-gradient(circle at 50% 0%, #e0f2ed 0%, #f4faf8 85%);
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(16, 185, 129, 0.2);
  --panel-border-glow: rgba(20, 110, 85, 0.05);
  --text-primary: #111d1a;
  --text-secondary: #4a6661;
  --primary-color: #0d9488;
  --primary-glow: rgba(13, 148, 136, 0.2);
  --accent-color: #b58d1b;
  --accent-glow: rgba(181, 141, 27, 0.2);
  --danger-color: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.15);
  --card-shadow: 0 8px 32px 0 rgba(13, 148, 136, 0.08);
  --card-bg-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 246, 0.9) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Background Glowing Blurbs */
.glow-blurb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}
.glow-blurb-1 {
  top: 10%;
  left: 10%;
  background: var(--primary-color);
}
.glow-blurb-2 {
  bottom: 10%;
  right: 10%;
  background: var(--accent-color);
}

/* App Container */
.app-container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Brand */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-title);
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text-primary) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin: 0; /* Reset default H1 margins for visual perfection */
}

.brand-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.controls-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons Styling */
.btn-icon {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Premium Navigation Tabs */
.nav-tabs {
  display: flex;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
  padding: 0.4rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow-x: auto;
  gap: 0.25rem;
  box-shadow: var(--card-shadow);
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(16, 185, 129, 0.6) 100%);
  box-shadow: 0 4px 15px var(--primary-glow);
}

[data-theme="light"] .tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f766e 100%);
}

/* Views Wrapper */
.view-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
  flex-grow: 1;
}

.view-panel.active {
  display: block;
}

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

/* ==========================================
 * VIEW 1: DASHBOARD / SEARCH
 * ========================================== */

/* Filter & Search Dashboard Grid Layout */
.search-controls {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon-svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow), inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Quick Filter Badges */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.filter-options {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--panel-border);
  padding: 0.25rem;
  border-radius: 10px;
  gap: 0.2rem;
}

[data-theme="light"] .filter-options {
  background: rgba(0, 0, 0, 0.05);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.filter-btn.active-boy {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.filter-btn.active-girl {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

/* Alphabet Quick Jump Toolbar */
.alphabet-toolbar {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-top: 0.2rem;
  border-top: 1px dashed var(--panel-border);
}

.letter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.letter-btn:hover {
  border-color: var(--panel-border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.letter-btn.active {
  background: var(--accent-color);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Grid & Cards layout */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.name-card {
  background: var(--card-bg-gradient);
  border: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.name-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--panel-border-glow), transparent);
  transition: all 0.3s ease;
}

.name-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12), 0 0 1px 1px var(--primary-color) inset;
}

.name-card.card-boy:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.name-card.card-girl:hover {
  border-color: #ec4899;
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.card-badge {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.badge-boy {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .badge-boy {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge-girl {
  background: rgba(236, 72, 153, 0.15);
  color: #fbcfe8;
  border: 1px solid rgba(236, 72, 153, 0.2);
}
[data-theme="light"] .badge-girl {
  background: #fdf2f8;
  color: #be185d;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.card-action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.card-action-btn.wishlist-btn.active {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.card-action-btn.wishlist-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-action-btn.pronounce-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-body-section {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
}

.card-name-arabic {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.card-title-english {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-title-arabic {
  font-size: 1.5rem;
  font-family: var(--font-title);
  color: var(--accent-color);
  font-weight: 400;
}

.card-meaning {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: auto;
}

.style-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.05);
}

.card-pronunciation {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  border-radius: 20px;
  grid-column: 1 / -1;
}

.empty-state svg {
  width: 60px;
  height: 60px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Premium Ad/Promo Containers */
.ad-container, .promo-container {
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  border-radius: 20px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
}

.ad-label, .promo-label {
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  font-weight: 600;
}

/* ==========================================
 * VIEW 2: SWIPE DECK (TINDER MODE)
 * ========================================== */
.swipe-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
  margin-bottom: 2rem;
}

.deck-wrapper {
  position: relative;
  width: 320px;
  height: 430px;
  perspective: 1000px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0e2924 0%, #061210 100%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: 50% 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 5;
  transition: transform 0.1s ease;
}

[data-theme="light"] .swipe-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5fbf9 100%);
  box-shadow: 0 15px 35px rgba(13, 148, 136, 0.12);
}

.swipe-card:nth-child(2) {
  transform: translateY(10px) scale(0.95);
  z-index: 4;
  opacity: 0.6;
  pointer-events: none;
}

.swipe-card:nth-child(3) {
  transform: translateY(20px) scale(0.9);
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
}

.swipe-card.grabbing {
  cursor: grabbing;
}

.swipe-badge-overlay {
  position: absolute;
  top: 30px;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  opacity: 0;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 100;
}

.swipe-badge-like {
  right: 30px;
  color: var(--primary-color);
  border: 4px solid var(--primary-color);
  transform: rotate(15deg);
}

.swipe-badge-pass {
  left: 30px;
  color: var(--danger-color);
  border: 4px solid var(--danger-color);
  transform: rotate(-15deg);
}

.swipe-card-arabic {
  font-size: 3.5rem;
  text-align: center;
  color: var(--accent-color);
  margin-top: 1rem;
  font-family: var(--font-title);
}

.swipe-card-english {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.swipe-card-meaning {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.btn-swipe {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-swipe:hover {
  transform: scale(1.1);
}

.btn-swipe-pass {
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-swipe-pass:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px var(--danger-glow);
}

.btn-swipe-like {
  color: var(--primary-color);
  border-color: rgba(16, 185, 129, 0.3);
}
.btn-swipe-like:hover {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-swipe svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================
 * VIEW 3: SURNAME MATCHER (SOUND-CHECK STUDIO)
 * ========================================== */
.matcher-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.matcher-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
[data-theme="light"] .form-input {
  background: #fff;
}
.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

.select-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394b2ad'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

/* Phonetic Grade Card */
.grade-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grade-badge-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.3);
}

.grade-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.grade-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.analytics-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Calligraphic typography showcase */
.showcase-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-card {
  background: var(--card-bg-gradient);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.showcase-accent-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0.08;
  filter: blur(50px);
  pointer-events: none;
}

.showcase-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.showcase-name-english {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.showcase-name-arabic {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-family: var(--font-title);
}

.showcase-handwriting {
  font-family: var(--font-calligraphy);
  font-size: 3.5rem;
  color: var(--text-primary);
  opacity: 0.85;
  margin-top: 1rem;
}

/* ==========================================
 * VIEW 4: WISHLIST MANAGER
 * ========================================== */
.wishlist-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wishlist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
  gap: 1rem;
}

.wishlist-count {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-count span {
  background: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.wishlist-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(16, 185, 129, 0.7) 100%);
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Drag list / Ranker dashboard */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.wishlist-item-card {
  background: var(--card-bg-gradient);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.wishlist-rank-number {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
  opacity: 0.7;
  width: 30px;
  display: flex;
  justify-content: center;
}

.wishlist-item-details {
  flex-grow: 1;
}

.wishlist-item-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wishlist-item-arabic {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.wishlist-item-meaning {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.wishlist-item-ranker {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}

.rating-stars {
  display: flex;
  gap: 0.15rem;
}

.star-svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.15s ease;
}

.star-svg.active {
  color: var(--accent-color);
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.wishlist-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wishlist-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.wishlist-delete-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Tier list container */
.tier-list-section {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 1rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tier-list-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-row {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.tier-label {
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
}

.tier-S { background: #fda4af; color: #4c0519; } /* Soft Rose/Pink */
.tier-A { background: #fed7aa; color: #431407; } /* Soft Peach/Orange */
.tier-B { background: #fef08a; color: #422006; } /* Soft Butter/Yellow */
.tier-C { background: #cbd5e1; color: #1e293b; } /* Soft Slate/Grey */

.tier-content {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem;
  gap: 0.75rem;
  align-items: center;
}

[data-theme="light"] .tier-content {
  background: rgba(0, 0, 0, 0.03);
}

.tier-pill {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.tier-pill:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

/* ==========================================
 * MODAL: DETAILS POPUP
 * ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInModal 0.25s ease-out forwards;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--card-bg-gradient);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUpModal {
  from { transform: scale(0.9) translateY(20px); }
  to { transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.modal-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
  padding: 2.5rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--panel-border);
  text-align: center;
  position: relative;
}

.modal-gender-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.modal-arabic {
  font-size: 3.5rem;
  color: var(--accent-color);
  font-family: var(--font-title);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--accent-glow);
}

.modal-english {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.modal-pronounce-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.25rem;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
}

.info-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.pair-badge-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.pair-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Global Toast Notification styling */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(9, 29, 25, 0.9);
  border: 1px solid var(--primary-color);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast-success svg {
  color: var(--primary-color);
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.toast-danger svg {
  color: var(--danger-color);
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================
 * MOBILE RESPONSIVENESS AND POLISHING
 * ========================================== */

@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }

  header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .nav-tabs {
    padding: 0.3rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .nav-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Safari/Chrome */
  }

  .tab-btn {
    min-width: 100px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .search-controls {
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .filter-options {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .alphabet-toolbar {
    padding: 0.3rem 0;
  }

  .names-grid {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  /* Swiper Mobile Polish */
  .deck-wrapper {
    width: 300px;
    max-width: 85vw;
    height: 400px;
  }

  .swipe-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .swipe-card-arabic {
    font-size: 2.8rem;
  }

  .swipe-card-english {
    font-size: 1.8rem;
  }

  .swipe-card-meaning {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .btn-swipe {
    width: 50px;
    height: 50px;
  }

  /* Surname Matcher Mobile Polish */
  .matcher-panel {
    padding: 1.25rem;
    border-radius: 16px;
    gap: 1.2rem;
  }

  .showcase-card {
    padding: 1.5rem;
    min-height: 200px;
    border-radius: 16px;
  }

  .showcase-name-english {
    font-size: 1.8rem;
  }

  .showcase-name-arabic {
    font-size: 2.2rem;
  }

  .showcase-handwriting {
    font-size: 2.6rem;
  }

  /* Wishlist Mobile Polish */
  .wishlist-toolbar {
    padding: 0.8rem 1rem;
    border-radius: 12px;
  }

  .wishlist-grid {
    gap: 1rem;
  }

  .wishlist-item-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .wishlist-rank-number {
    font-size: 1.2rem;
    width: 20px;
  }

  .wishlist-item-name {
    font-size: 1.05rem;
  }

  .wishlist-item-arabic {
    font-size: 0.85rem;
  }

  .wishlist-item-meaning {
    max-width: 130px;
  }

  .tier-list-section {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .tier-label {
    width: 100px;
    font-size: 0.8rem;
    padding: 0.25rem;
  }

  .tier-content {
    min-height: 55px;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .tier-pill {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  /* Details Modal Mobile Polish */
  .modal-box {
    border-radius: 20px;
  }

  .modal-banner {
    padding: 2rem 1.25rem 1.25rem 1.25rem;
  }

  .modal-arabic {
    font-size: 2.8rem;
  }

  .modal-name {
    font-size: 1.8rem;
  }

  .modal-body {
    padding: 1.25rem;
    gap: 1.2rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .modal-footer button {
    flex: 1;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 0.5rem;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }

  .brand-wrapper {
    gap: 0.5rem;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 9px;
  }

  .controls-wrapper {
    width: auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .nav-tabs {
    border-radius: 10px;
    padding: 0.2rem;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    min-width: auto;
  }

  .search-input {
    padding: 0.8rem 0.8rem 0.8rem 2.8rem;
    font-size: 0.9rem;
  }

  .names-grid {
    grid-template-columns: 1fr;
  }
  
  .name-card {
    height: 200px;
    padding: 1.25rem;
  }
  
  .card-title-english {
    font-size: 1.2rem;
  }
  
  .card-title-arabic {
    font-size: 1.3rem;
  }

  .deck-wrapper {
    height: 380px;
  }

  .btn-swipe {
    width: 45px;
    height: 45px;
  }

  .showcase-card {
    padding: 1rem;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header Wishlist (E-Commerce Cart Style) Badge */
.wishlist-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ec4899; /* Hot Pink rose */
  color: #ffffff !important;
  border: 2px solid var(--panel-bg);
  border-radius: 50%;
  font-size: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(236, 72, 153, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* Subtle bounce animation when count changes */
.badge-bounce {
  animation: badgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBounce {
  0% {
    transform: scale(0.6);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Autocomplete Search Dropdown in Surname Matcher */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-top: 5px;
  scrollbar-width: thin;
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 3px;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.autocomplete-item:hover {
  background: rgba(212, 175, 55, 0.08);
}

.autocomplete-item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.autocomplete-item-arabic {
  font-family: serif;
  font-size: 1rem;
  color: var(--gold-primary);
  margin-left: 0.5rem;
}

.autocomplete-item-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.autocomplete-item-badge.boy {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.autocomplete-item-badge.girl {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.autocomplete-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

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

/* ==========================================
 * PREMIUM SIDEBAR ADVERTISEMENTS SYSTEM
 * ========================================== */

.page-layout-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.side-panel-promo {
  display: none; /* Hidden on smaller screens by default */
  width: 160px;
  min-width: 160px;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  flex-direction: column;
  align-items: center;
}

.side-panel-promo-left {
  left: 1.5rem;
}

.side-panel-promo-right {
  right: 1.5rem;
}

.side-panel-promo-sticky {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-label {
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  font-weight: 600;
}

.promo-card-wrapper {
  width: 100%;
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  border-radius: 20px;
  padding: 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
}

@media (min-width: 1200px) {
  .side-panel-promo {
    display: flex;
  }
  
  .page-layout-container {
    padding-left: 210px;
    padding-right: 210px;
  }
  
  .dashboard-top-promo,
  .dashboard-bottom-promo {
    display: none !important;
  }
}

/* SEO Content Section Styles */
.seo-content-section {
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
  text-align: left;
}

.seo-content-section h2 {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.seo-content-section h3 {
  font-size: 1.2rem;
  color: var(--emerald-primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.seo-content-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.seo-feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
}

.seo-feature-card h3 {
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.seo-feature-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Category Discover & Alphabet Links */
.seo-categories-board,
.seo-alphabet-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.seo-category-link,
.seo-alphabet-board a {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.seo-category-link:hover,
.seo-alphabet-board a:hover {
  background: var(--gold-primary);
  color: #050e0c !important;
  border-color: transparent;
  transform: translateY(-2px);
}




