:root {
  /* Middle Eastern Street - Light & Elegant Theme */
  --primary-color: #D4A373;
  /* Warm Gold/Tan */
  --secondary-color: #0891B2;
  /* Elegant Teal */
  --accent-gold: #B8860B;
  /* Dark Goldenrod */

  /* Neutral Colors - Light Theme */
  --bg-main: #FAFAF9;
  /* Soft Off-White */
  --bg-card: rgba(255, 255, 255, 0.95);
  /* Clean White Card */
  --bg-alt: rgba(249, 245, 235, 0.8);
  /* Warm Cream */
  --border-color: rgba(212, 163, 115, 0.2);
  /* Subtle Gold Border */

  --text-main: #1F2937;
  /* Dark Gray */
  --text-muted: #6B7280;
  /* Medium Gray */
  --text-light: #9CA3AF;
  /* Light Gray */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
  --gradient-gold: linear-gradient(135deg, #D4A373 0%, #B8860B 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(212, 163, 115, 0.1) 0%, transparent 70%);

  /* Shadows - Soft for light theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(212, 163, 115, 0.2);
  --shadow-teal-glow: 0 0 20px rgba(8, 145, 178, 0.15);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-main);
  background-image: var(--gradient-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Elegant Pattern Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(var(--border-color), transparent 1px),
    radial-gradient(var(--border-color), transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.4;
  z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

h2 {
  font-size: 2.8rem;
  color: var(--text-main);
}

h3 {
  font-size: 2.2rem;
  color: var(--accent-gold);
}

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

a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  flex-shrink: 0;
}

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

/* Center navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.logo-icon,
.logo-img {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(212, 163, 115, 0.3));
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-main);
  line-height: 1.2;
  /* Tightened since there is text below */
  display: block;
}

.beta-label {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-top: -2px;
  opacity: 0.9;
}

/* Force LTR on Search Bar and Auth Card even in RTL mode as per user request */
.discovery-search-container,
.auth-card {
  direction: ltr !important;
  text-align: left !important;
}

.discovery-search-container .input-group,
.auth-card .input-group {
  text-align: left !important;
}

/* Premium Auth Card Label Styling */
.auth-card label {
  color: #b8860b !important;
  /* Gold */
  font-weight: 800 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
  display: block;
}

.auth-card input {
  background: #f1f5f9 !important;
  /* Light blueish gray from screenshot */
  border: none !important;
  padding: 0.8rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  color: #000 !important;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-btn {
  background: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-btn:hover {
  background: var(--accent-gold) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md);
}

/* Custom Nav Links */
.nav-link-noor {
  color: #B8860B !important;
  /* Gold */
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-noor-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.nav-link-community {
  color: #0891B2 !important;
  /* Teal */
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-community::after {
  content: '💬';
  font-size: 0.9em;
}

.user-nav-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
}

/* RTL Overrides */
body.rtl {
  direction: rtl;
}

body.rtl .user-nav-container {
  padding-left: 0;
  padding-right: 10px;
  border-left: none;
  border-right: 1px solid var(--border-color);
}

body.rtl .nav-link-community::after {
  content: none;
}

body.rtl .nav-link-community::before {
  content: '💬';
  font-size: 0.9em;
  margin-left: 4px;
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s;
}

.user-avatar-small:hover {
  transform: scale(1.1);
  background: var(--accent-gold);
}

.logout-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  transition: color 0.2s;
  font-family: inherit;
}

.logout-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(212, 163, 115, 0.08) 0%, transparent 50%),
    var(--bg-main);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.hero::after {
  content: '☪';
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 15rem;
  opacity: 0.05;
  color: var(--primary-color);
  animation: float 8s ease-in-out infinite;
  filter: blur(2px);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}

/* Search & Filter Section */
.search-section {
  max-width: 1400px;
  margin: calc(-5rem) auto var(--spacing-xl);
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 10;
}

.search-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(212, 163, 115, 0.1);
  border: 1px solid var(--border-color);
  max-width: 1000px;
  margin: 0 auto;
}

.search-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group:last-of-type {
  border-right: none;
}

.input-group label {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.input-group input,
.input-group select {
  padding: 4px 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
}

.input-group input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
}

.search-actions {
  display: flex;
  gap: 8px;
  padding-left: 15px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a373 0%, #b8860b 100%);
  color: white !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--text-muted);
}

.btn-teal {
  background: rgba(8, 145, 178, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(8, 145, 178, 0.2);
}

.btn-teal:hover {
  background: rgba(8, 145, 178, 0.2);
  box-shadow: var(--shadow-teal-glow);
}

/* Main Content */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Location Cards */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--spacing-lg);
}

.location-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(212, 163, 115, 0.15);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(8, 145, 178, 0.15);
  border-color: rgba(8, 145, 178, 0.3);
}

.card-header {
  background: linear-gradient(to bottom, rgba(212, 163, 115, 0.05), transparent);
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

.card-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.card-cuisine {
  color: var(--secondary-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.card-body {
  padding: var(--spacing-md);
  flex-grow: 1;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-info {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-icon {
  color: var(--accent-gold);
}

.badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.badge-halal {
  background: rgba(8, 145, 178, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(8, 145, 178, 0.2);
}

.badge-tag {
  background: rgba(212, 163, 115, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 163, 115, 0.2);
}

.card-footer {
  padding: var(--spacing-md);
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uploader-link {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.uploader-link strong {
  color: var(--secondary-color);
}

/* Loading & Empty States */
.loading {
  text-align: center;
  padding: var(--spacing-xl);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  width: 100%;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
  filter: grayscale(100%);
}

.empty-state h3 {
  margin-bottom: var(--spacing-xs);
}

/* Auth Pages */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(212, 163, 115, 0.1);
  max-width: 450px;
  width: 100%;
  border: 1px solid var(--border-color);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-lg);
}

.auth-tab {
  flex: 1;
  padding: var(--spacing-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-shadow: 0 0 10px rgba(212, 163, 115, 0.2);
}

/* Profile Page */
.profile-header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  border: 1px solid var(--border-color);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-alt);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary-color);
  border: 4px solid rgba(212, 163, 115, 0.2);
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.1);
}

.profile-bio {
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.paypal-btn {
  background: #0070BA !important;
  color: white !important;
  box-shadow: 0 0 15px rgba(0, 112, 186, 0.3);
}

/* Map Styles */
.map-container {
  height: 450px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  z-index: 1;
}

/* Ensure map popups follow theme */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Cairo', sans-serif !important;
}

.leaflet-popup-tip {
  background: var(--bg-card) !important;
}

/* List Details */
.list-detail-header {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.list-places {
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.place-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: var(--spacing-md);
}

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

.place-marker {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* --- HERO SEARCH --- */
.hero-search {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-top: 2rem;
  max-width: 600px;
  width: 100%;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-select {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0 1rem;
  outline: none;
  cursor: pointer;
}

.hero-select option {
  background: white;
  color: var(--text-main);
}

.hero-link {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero-link:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-xl);
  backdrop-filter: blur(10px);
}

.footer p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Responsive Design */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero h2 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .container {
    padding: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .header {
    padding: var(--spacing-sm);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

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

  .nav-links a {
    display: block;
    font-size: 1.2rem;
    padding: var(--spacing-md);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-section {
    margin-top: -2rem;
    padding: 0 var(--spacing-sm);
  }

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

  .map-container {
    height: 350px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .location-card {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.4rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .search-card {
    padding: var(--spacing-md);
  }

  .btn {
    width: 100%;
  }

  .search-section div[style*="justify-content: center"] {
    flex-direction: column;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.glow-text {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--bg-card);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 800px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-body {
  padding: var(--spacing-lg);
}

/* AI Discovery Section Styling */
.ai-discovery-section {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(212, 163, 115, 0.08) 100%);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--spacing-sm);
}

.ai-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-family: 'Cairo', sans-serif;
  color: var(--secondary-color);
}

.ai-sparkle {
  font-size: 1.4rem;
}

.ai-summary {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
  padding-left: var(--spacing-sm);
  border-left: 3px solid var(--secondary-color);
}

.ai-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.ai-tag-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-chips span {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.strengths span {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.weaknesses span {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.ai-sentiment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sentiment-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Modal Info Grid */
.modal-info-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  background: var(--bg-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.hour-day {
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 768px) {

  .modal-info-grid,
  .ai-tags-grid {
    grid-template-columns: 1fr;
  }
}

/* AI Badge on Cards */
.ai-badge-card {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.9) 0%, rgba(212, 163, 115, 0.9) 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  animation: badgePulse 2s infinite ease-in-out;
}

.ai-badge-card .sparkle {
  font-size: 0.8rem;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
  }
}

/* Ensure location card relative for absolute positioning of badge */
.location-card {
  position: relative;
}

/* --- Footer Styles (Custom Component) --- */
app-footer {
  display: block;
  margin-top: 4rem;
}

app-footer .footer {
  background: var(--bg-card);
  padding: 4rem 1rem 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  text-align: left;
  /* Reset alignment */
}

app-footer .footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

app-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

app-footer .footer-brand h3 {
  font-family: var(--font-fancy);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: inline-block;
  line-height: 1.2;
}

app-footer .footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

app-footer .logo-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

app-footer .footer-links h4,
app-footer .footer-newsletter h4 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  /* Use teal/secondary color for headers */
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

app-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

app-footer .footer-links li {
  margin-bottom: 0.8rem;
}

app-footer .footer-links a {
  color: var(--text-muted);
  /* Darker text */
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-block;
}

app-footer .footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

app-footer .footer-newsletter p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

app-footer .footer-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

app-footer .footer-form input {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  flex: 1;
  font-size: 0.95rem;
  min-width: 0;
}

app-footer .footer-form button {
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

app-footer .footer-form button:hover {
  background: #00897b;
  /* Darker teal */
}

app-footer .footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

app-footer .admin-link {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.6;
  font-size: 0.85rem;
}

app-footer .admin-link:hover {
  opacity: 1;
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- LANGUAGE SWITCHER --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.lang-select {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: white;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-main);
}

/* --- HOW IT WORKS --- */
.how-it-works {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(212, 163, 115, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.step-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.step-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  display: block;
}

.step-card .btn-outline {
  margin-top: auto;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.step-card .btn-outline:hover {
  background: var(--accent-gold);
  color: white;
}

/* --- RTL SUPPORT --- */
body.rtl {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

body.rtl .header-actions {
  margin-left: 1.5rem;
  margin-right: auto;
}

body.rtl .logo-icon {
  margin-left: 10px;
  margin-right: 0;
}

body.rtl .btn-outline i {
  margin-left: 0;
  margin-right: 8px;
}

body.rtl .card-footer .stars {
  margin-left: 0px;
  margin-right: -10px;
}

/* --- NAVIGATION AUTH --- */
.nav-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.5rem 1rem !important;
  border-radius: 2rem !important;
}

.logout-btn {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  opacity: 0.8;
}

.logout-btn:hover {
  color: var(--text-main) !important;
  opacity: 1;
}

/* --- MULTI-PAGE & PREMIUM REDESIGN OVERRIDES --- */

/* Landing Page Hero Overlap */
.landing-search {
  margin-top: -5rem !important;
}

/* Tighten Spacing between Hero and Content */
.hero {
  padding: 4rem 2rem 2rem !important;
  margin-bottom: 0 !important;
}

.how-it-works {
  padding: 2rem 0 6rem !important;
  background: #fdfaf7;
  /* Subtle warm background for section contrast */
}

.step-card {
  background: white !important;
  border: 1px solid rgba(212, 163, 115, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  padding: 3rem 2rem !important;
  border-radius: 1.5rem !important;
}

.step-card h3 {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--accent-gold) !important;
  margin: 0.5rem 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.step-card p {
  color: var(--text-main) !important;
  font-size: 1rem !important;
  opacity: 0.9 !important;
}

.step-icon {
  font-size: 3rem !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.step-card .btn-outline {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 100px !important;
}

/* Search Bar Refinement (Image 2 Style) */
.discovery-top .search-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.discovery-top .search-grid {
  background: white !important;
  padding: 5px !important;
}

.discovery-top .input-group {
  padding: 10px 25px !important;
}

.discovery-top .search-actions .btn-primary {
  padding: 0 2rem !important;
  border-radius: 100px !important;
  height: 50px !important;
}

.discovery-top .search-actions .btn-secondary {
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --- Discovery Page Redesign Overrides --- */

/* Header Nav Button (Login / Register) */
.nav-btn {
  background: #d4a373 !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: capitalize !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.nav-btn:hover {
  background: #b8860b !important;
  transform: translateY(-1px);
}

/* Redesigned Search Bar Container */
.discovery-search-container {
  background: white;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #edf2f7;
}

.discovery-search-container .input-group {
  border-right: 1px solid #edf2f7;
  flex: 1;
  margin-bottom: 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.discovery-search-container .input-group:last-of-type {
  border-right: none;
}

.discovery-search-container label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #b8860b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.discovery-search-container input,
.discovery-search-container select {
  border: none !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  background: transparent !important;
  width: 100%;
  outline: none !important;
  height: auto !important;
}

.discovery-search-container .search-actions {
  padding-left: 1.5rem;
}

.discovery-search-container .btn-primary {
  border-radius: 100px;
  padding: 0.7rem 1.8rem;
  background: #d4a373;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

.discovery-search-container .btn-reset {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

/* Card Styling Update */
.discovery-page .location-card {
  background: white !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f1f1f1 !important;
  cursor: default !important;
}

.discovery-page .location-card .card-header {
  background: white !important;
  padding: 1.5rem 1.5rem 0.5rem !important;
  border-bottom: none !important;
}

.discovery-page .location-card .card-title {
  color: #d4a373 !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  margin-bottom: 2px !important;
}

.discovery-page .location-card .card-cuisine {
  color: #4a90e2 !important;
  /* Blueish light teal */
  font-size: 0.75rem !important;
  text-transform: capitalize !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}

.discovery-page .location-card .card-body {
  padding: 0.5rem 1.5rem 1rem !important;
}

.discovery-page .location-card .card-description {
  padding-top: 1rem;
  border-top: 1px solid #f8f8f8;
  margin-bottom: 1.5rem;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: #718096 !important;
  min-height: 4.5rem;
}

.discovery-page .location-card .card-info {
  border-top: none !important;
  padding-top: 0 !important;
  gap: 8px !important;
  margin-bottom: 1rem;
}

.discovery-page .location-card .info-item {
  font-size: 0.8rem !important;
  color: #4a5568 !important;
  display: flex;
  align-items: flex-start;
}

.discovery-page .location-card .info-icon {
  color: #e53e3e !important;
  /* Red pins and icons in image? No, wait, J&R Pastries image has red pin */
  font-size: 0.85rem !important;
  margin-top: 2px;
}

.discovery-page .location-card .card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.discovery-page .location-card .badge-tag {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: none !important;
  padding: 3px 10px !important;
  font-size: 0.65rem !important;
  border-radius: 100px !important;
}

.discovery-page .location-card .card-footer {
  padding: 1.2rem 1.5rem !important;
  border-top: 1px solid #f8f8f8 !important;
  background: white !important;
}

.discovery-page .location-card .uploader-link {
  color: #4a90e2 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

.discovery-page .location-card .card-rating {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #2d3748 !important;
}

.discovery-page .location-card .stars {
  color: #2d3748 !important;
  margin-right: 4px;
}

/* Specific Auth Card Button & Tab Styling */
.auth-card .btn-primary {
  background: #c58d2a !important;
  /* Richer gold from screenshot */
  border-radius: 100px !important;
  padding: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 12px rgba(197, 141, 42, 0.2) !important;
}

.auth-tabs {
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 2.5rem;
  display: flex;
}

.auth-tab {
  padding: 1rem 2rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #718096;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: all 0.3s;
}

.auth-tab.active {
  color: #c58d2a !important;
  border-bottom: 3px solid #c58d2a;
}

.auth-card a {
  color: #0891b2 !important;
  /* Blue link color from screenshot */
  text-decoration: none;
  font-weight: 500;
}

/* Fix for New Discussion Button Visibility */
#createThreadBtn,
#createForumBtn {
  color: #000 !important;
  background: var(--gradient-gold) !important;
  font-weight: 800 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

#createThreadBtn:hover,
#createForumBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
  filter: brightness(1.1);
}

/* Forum & Community Global Styles */
.forum-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.forum-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.forum-header p {
  color: #718096;
  font-size: 1.1rem;
}

.forum-list {
  display: grid;
  gap: 1.5rem;
}

.forum-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.forum-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(212, 163, 115, 0.1);
  border-color: #d4a373;
}

.forum-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 0.75rem;
  font-family: 'Cairo', sans-serif;
}

.forum-meta {
  color: #718096;
  line-height: 1.6;
  font-size: 1rem;
}

.thread-main {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 2.5rem;
  border-left: 5px solid #d4a373;
}

.thread-main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.thread-main .meta {
  color: #718096;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thread-main .prose {
  font-size: 1.15rem;
  color: #2d3748;
  line-height: 1.8;
}

.reply-count-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0 1.5rem;
  font-weight: 800;
  color: #b8860b;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-item {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  border: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.post-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border-color: #d4a373;
}

.post-meta {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.post-meta strong {
  color: #2d3748;
  font-weight: 700;
}

.post-content {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.reply-box {
  background: #fffdf9;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #fdf2e9;
  margin-top: 4rem;
  box-shadow: inset 0 2px 4px rgba(212, 163, 115, 0.05);
}

.reply-box h4 {
  margin-bottom: 1.5rem;
  color: #2d3748;
  font-weight: 800;
}

.reply-textarea {
  width: 100%;
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
}

.reply-textarea:focus {
  outline: none;
  border-color: #d4a373;
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #d4a373;
}

/* Modals Refined */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #e2e8f0;
  width: 90%;
  max-width: 550px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

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

.modal-content h2 {
  background: linear-gradient(135deg, #d4a373 0%, #b8860b 100%);
  color: white;
  margin: 0;
  padding: 2rem;
  font-size: 1.75rem;
  text-align: center;
}

.modal-content form {
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b8860b;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  background: #f8fafc;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #d4a373;
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* RTL Support in styles.css */
body.rtl .thread-main {
  border-left: none;
  border-right: 5px solid #d4a373;
}

body.rtl .modal-actions {
  justify-content: flex-start;
}