/*
Theme Name: Nazzr Theme
Theme URI: https://nazzr.com
Author: Nazzr Team
Author URI: https://nazzr.com
Description: Official Nazzr bilingual (Arabic/English) WordPress theme for the opinion & polling platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nazzr
Tags: rtl-language-support, translation-ready, blog, custom-menu, featured-images, two-columns, full-width-template
*/

/* =============================================
   GOOGLE FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --color-primary: #878ced;
  --color-primary-light: #a8adf4;
  --color-primary-dark: #5b5fc7;
  --color-accent: #c7caf8;
  --color-accent-warm: #f0a05a;
  --color-bg: #F7F7FD;
  --color-bg-alt: #EEEEF9;
  --color-bg-dark: #0E0E1F;
  --color-surface: #FFFFFF;
  --color-text: #1A1A18;
  --color-text-muted: #6B6B7A;
  --color-text-light: #9B9BAA;
  --color-border: #D8D8F0;
  --color-border-light: #EEEEF6;
  --color-success: #3D9970;
  --color-error: #D62828;

  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --font-latin: 'DM Sans', sans-serif;
  --font-body: var(--font-arabic);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.12);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --max-width: 1200px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.lang-en {
  font-family: var(--font-latin);
  direction: ltr;
  text-align: left;
}

body.lang-ar {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   UTILITY CLASSES
============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

.section-padding {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-padding-sm {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

/* =============================================
   COMPONENTS — BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,67,50,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* =============================================
   COMPONENTS — BADGES & TAGS
============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green {
  background: #D1FAE5;
  color: var(--color-primary);
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
}

/* =============================================
   COMPONENTS — CARDS
============================================= */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.75rem;
}

/* =============================================
   SITE HEADER
============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.site-logo img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.site-logo:hover img { opacity: 0.8; }

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--color-primary);
  background: rgba(27,67,50,0.07);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-login {
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-login:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* =============================================
   MAIN CONTENT OFFSET
============================================= */
.site-main {
  padding-top: 70px;
}

/* =============================================
   HERO SECTION (HOME)
============================================= */
.hero-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F0FE 0%, #FAFAFF 55%, #EEEEFF 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(135,140,237,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(135,140,237,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(199,202,248,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(135,140,237,0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(135,140,237,0.12);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(135,140,237,0.25);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual / Stats */
.hero-visual {
  position: relative;
  /* Padding gives floating badges room to extend outside the card
     without being clipped by any parent overflow */
  padding: 28px 28px 22px 22px;
}

.hero-stats-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(135,140,237,0.18);
  border: 1px solid rgba(135,140,237,0.2);
  position: relative;
  /* overflow: hidden removed — it was clipping the floating badges */
  overflow: visible;
}

.hero-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
  /* Explicit radius so it rounds correctly without needing overflow:hidden on parent */
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stats-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.brand-stat:last-child { margin-bottom: 0; }

.brand-stat-info {
  flex: 1;
}

.brand-stat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.brand-stat-bar {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.brand-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

.brand-stat-pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 40px;
  text-align: end;
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: -15px;
  left: -15px;
  animation-delay: 2s;
}

.floating-badge .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.floating-badge .icon.green { background: #D1FAE5; }
.floating-badge .icon.gold  { background: #FEF3C7; }

.floating-badge .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.floating-badge .value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

/* =============================================
   TOPICS / BUBBLES SECTION
============================================= */
.topics-section {
  background: #0E0E1F;
  color: #fff;
  overflow: hidden;
}

.topics-header {
  text-align: center;
  margin-bottom: 3rem;
}

.topics-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.topics-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto;
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  padding: 1rem 0;
}

.topic-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  transition: all var(--transition-base);
  animation: bubbleFloat 6s ease-in-out infinite;
}

.topic-bubble:hover,
.topic-bubble.active {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(135,140,237,0.35);
}

.topic-bubble:nth-child(2n)   { animation-delay: 0.5s; }
.topic-bubble:nth-child(3n)   { animation-delay: 1s; }
.topic-bubble:nth-child(4n)   { animation-delay: 1.5s; }
.topic-bubble:nth-child(5n)   { animation-delay: 2s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =============================================
   STATS ROW
============================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}

.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   HOW IT WORKS SECTION
============================================= */
.how-section {
  background: var(--color-bg-alt);
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

body.lang-en .section-label::before { order: -1; }
body.lang-ar .section-label::before { order: 1; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(135,140,237,0.18);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(135,140,237,0.08);
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 1rem;
  font-family: var(--font-latin);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(135,140,237,0.3);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================
   FEATURES / SURVEY SAMPLES SECTION (BUSINESS)
============================================= */
.features-section {
  background: var(--color-bg);
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-showcase:last-child { margin-bottom: 0; }

.feature-showcase.reverse {
  direction: ltr;
}

body.lang-ar .feature-showcase.reverse {
  direction: ltr;
}

body.lang-en .feature-showcase.reverse {
  grid-template-columns: 1fr 1fr;
}

body.lang-en .feature-showcase.reverse .feature-visual { order: -1; }

.feature-content {}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: #D1FAE5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(135,140,237,0.15);
  color: var(--color-primary-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Survey Sample Card */
.survey-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(135,140,237,0.12);
  border: 1px solid rgba(135,140,237,0.2);
}

.survey-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.survey-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}

.survey-count {
  font-size: 0.8rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.survey-option {
  margin-bottom: 0.9rem;
}

.survey-option:last-child { margin-bottom: 0; }

.survey-option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.survey-option-pct {
  font-weight: 700;
  color: var(--color-primary);
}

.survey-bar {
  height: 10px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.survey-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
  border-radius: var(--radius-full);
}

/* =============================================
   PRICING SECTION (BUSINESS)
============================================= */
.pricing-section {
  background: var(--color-bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 2px solid var(--color-border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.pricing-card.featured::after {
  content: attr(data-label);
  position: absolute;
  top: 20px;
  inset-inline-end: -30px;
  background: var(--color-accent-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 3rem;
  transform: rotate(35deg);
}

body.lang-ar .pricing-card.featured::after {
  transform: rotate(-35deg);
}

.pricing-tier {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.pricing-card.featured .pricing-tier {
  color: rgba(255,255,255,0.7);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.pricing-card.featured .pricing-period {
  color: rgba(255,255,255,0.6);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.pricing-features li .check {
  color: var(--color-success);
  font-weight: 700;
}

.pricing-card.featured .pricing-features li .check {
  color: var(--color-accent);
}

/* =============================================
   COMMUNITY PAGE
============================================= */
.community-hero {
  background: linear-gradient(135deg, #2B1F6B 0%, #4B4FA8 50%, var(--color-primary) 100%);
  color: #fff;
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(4rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}

.community-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.community-hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.community-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.community-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.community-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Community Join Form */
.join-section {
  background: var(--color-bg-alt);
}

.join-form-wrap {
  max-width: 580px;
  margin: 3rem auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

/* =============================================
   BLOG / NEWS
============================================= */
.blog-hero {
  background: var(--color-bg-alt);
  padding: clamp(5rem, 8vw, 8rem) 0 3rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-no-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #D1FAE5;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  flex: 1;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
}

.blog-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.blog-read-more:hover { gap: 0.6rem; }

/* Single Post */
.single-post {
  padding: clamp(5rem, 8vw, 8rem) 0 4rem;
}

.single-post-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
}

.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.post-content ul, .post-content ol {
  margin: 1.25rem 0 1.25rem 2rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-inline-start: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border-light);
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border-light);
  color: var(--color-text);
}

.related-post-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.related-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.related-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.related-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.related-post-title:hover { color: var(--color-primary); }

.related-post-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
}

.newsletter-widget .sidebar-widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.newsletter-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.7); }

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(149,213,178,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(212,168,83,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================
   SITE FOOTER
============================================= */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-accent); }

.footer-newsletter-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-input:focus { border-color: rgba(255,255,255,0.4); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

/* =============================================
   404 / NO RESULTS
============================================= */
.no-results-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
  text-align: center;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.no-results-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.no-results-section p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* =============================================
   ANIMATIONS
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }

  .single-post-inner {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .post-sidebar .sidebar-widget { margin-bottom: 0; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .site-main { padding-top: 60px; }

  .primary-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.5rem var(--container-padding);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-menu a { width: 100%; padding: 0.75rem 1rem; }

  .menu-toggle { display: flex; }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .community-benefits {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: start;
  }

  .hero-actions { justify-content: flex-start; }
  .hero-subtitle { margin: 0 0 2.5rem; }
}

/* =============================================
   WORDPRESS CORE STYLES
============================================= */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.alignwide  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

.wp-block-pullquote {
  border-top: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  margin: 2rem 0;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(27,67,50,0.15);
  color: var(--color-primary-dark);
}

/* =============================================
   LOGO — black background fix
   mix-blend-mode: multiply makes the black
   background invisible on light surfaces.
   On dark surfaces it disappears naturally.
============================================= */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;   /* hides black bg on white/light header */
  transition: opacity var(--transition-fast);
}

.logo-img:hover { opacity: 0.8; }

/* In dark contexts (footer) flip to screen so purple stays visible */
.site-footer .logo-img {
  mix-blend-mode: screen;
  filter: brightness(0) invert(1);  /* white version on dark footer */
  opacity: 0.85;
}

/* =============================================
   TOPIC BUBBLE IMAGES
============================================= */
.topic-bubble img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  mix-blend-mode: screen;   /* white outline/fill shows on dark bg */
  flex-shrink: 0;
}

/* =============================================
   BRAND LOGOS in hero stats card
============================================= */
.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  padding: 4px;
}

/* =============================================
   SURVEY / FEATURE IMAGES
============================================= */
.survey-illustration {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.25rem;
}

.survey-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =============================================
   APP STORE BADGES — community page
============================================= */
.app-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.app-badge-link img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.app-badge-link:hover img {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =============================================
   CTA SECTION — purple gradient
============================================= */
.cta-section {
  background: linear-gradient(135deg, #3B3D9E 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Ghost button (white border on dark bg) */
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-full);
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-arabic);
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER LOGO — use screen blend on dark bg
============================================= */
.site-footer .logo-img {
  mix-blend-mode: normal;
  filter: none;
  opacity: 0.9;
}

/* =============================================
   LEGAL PAGES (Terms & Privacy)
============================================= */
.legal-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.legal-intro {
  background: var(--color-bg-alt);
  border-inline-start: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: .95rem;
  color: var(--color-text-muted);
}

.legal-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.legal-section h2::before {
  content: '';
  width: 4px;
  height: 1.25rem;
  background: var(--color-primary);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.5rem 0 .6rem;
}

.legal-section p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal-section ul, .legal-section ol {
  margin: .75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.legal-section li {
  color: var(--color-text-muted);
  font-size: .95rem;
  position: relative;
}

.legal-section ul li::marker {
  color: var(--color-primary);
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 700;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(135,140,237,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.legal-section a:hover {
  text-decoration-color: var(--color-primary);
}

/* =============================================
   LOGO BLACK BACKGROUND WORKAROUND
   Until transparent PNGs are uploaded,
   this clips the logo to a tight white box
   hiding the black edges.
============================================= */
.logo-img {
  mix-blend-mode: multiply !important;
  background: #ffffff !important;
  border-radius: 4px;
  padding: 2px 6px;
  height: 36px !important;
}

.site-footer .logo-img {
  mix-blend-mode: screen !important;
  background: transparent !important;
  filter: brightness(0) invert(1);
  padding: 0;
}
