@font-face {
  font-family: 'Al-Jazeera-Arabic';
  src: url('../../fonts/Al-Jazeera-Arabic-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* نظام ألوان فاتح فاخر */
  --primary: #ff5a1f;
  --primary-dim: rgba(255, 90, 31, 0.08);
  --primary-hover: #e04b16;
  
  --bg-primary: #f2f4f7;
  --bg-surface: #ffffff;
  --bg-surface-rgb: 255, 255, 255;
  --bg-surface-soft: #f8f9fa;
  --bg-surface-hover: #f1f3f5;
  
  --text-primary: #1a1b1e;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  
  --border-color: #dee2e6;
  --border-light: #edf2f7;
  
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --danger: #d93025;
  --success: #1e8e3e;
}

/* Global Layout Variables */
:root {
  --sidebar-width: 300px;
  --max-width: 720px;
  --font-family: 'Al-Jazeera-Arabic', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family) !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== UTILITY ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
}
.glass-strong {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.hidden { display: none !important; }
.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: var(--danger-hover); }
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: var(--success-hover); }
.btn-ghost {
  background: var(--bg-surface-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--border-light);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-sm { 
  padding: 8px 16px; 
  font-size: 0.85rem; 
  border-radius: 10px;
}
.btn-lg { 
  padding: 16px 32px; 
  font-size: 1rem; 
  border-radius: 14px;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--text-primary);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== SMART HEADER AD ===== */
.header-ad-wrapper {
  max-width: var(--max-width);
  margin: 12px auto 20px; display: block;
  padding: 0 16px;
  animation: fadeIn 0.5s ease-out;
}

.ad-banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.ad-media {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.ad-overlay-content {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to top, rgba(0,0,0,0.02), transparent);
}

.ad-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ad-badge-top {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Ad Space Available Style */
.ad-placeholder-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--primary-dim));
  border: 2px dashed var(--primary);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ad-placeholder-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
}

.ad-placeholder-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.ad-whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s;
}

.ad-whatsapp-btn:hover {
  transform: scale(1.05);
  color: white;
}

/* ===== HEADER ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: var(--bg-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px; /* مسافة موحدة للجميع */
}
.header-left, .logo, #header-auth {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* عند فتح البحث: اخفاء اللوجو والأيقونات وإظهار صندوق البحث */
.main-header.search-expanded .header-left,
.main-header.search-expanded .header-right {
  display: none !important;
}

/* حاوية البحث: تظهر داخل الهيدر وتأخذه بالكامل */
.search-container {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.main-header.search-expanded .search-container {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes slideInDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.main-header.search-expanded .search-container {
  display: flex;
}

.main-header.search-expanded .header-left,
.main-header.search-expanded #header-auth,
.main-header.search-expanded #theme-toggle {
  opacity: 1; /* لا نخفي العناصر في التصميم الجديد */
  pointer-events: auto;
  position: static;
}

.search-input {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  padding: 10px 16px;
  width: 100%;
  outline: none;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
  width: 100%;
  outline: none;
}
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
#header-logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

#header-logo-img:hover {
  transform: scale(1.05);
}
.login-btn {
  background: var(--primary);
  color: #000;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.login-btn:hover {
  transform: translateY(-2px);
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}
.user-badge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
}
.user-badge-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== NAV DRAWER (Full Screen Instant) ===== */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  display: none; /* مخفي تماماً */
}

.nav-drawer.open {
  display: flex; /* يظهر فوراً بدون أي تأخير أو حركة */
}
.nav-drawer .drawer-nav li {
  opacity: 1;
  list-style: none;
}


.drawer-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.drawer-close:hover { background: var(--bg-surface-hover); }

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  border: 2px solid var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-info .name {
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-primary);
}
.user-info .sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.user-info .post-count {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 4px;
}

.drawer-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-dim);
  border-radius: 6px;
  border: 1px solid rgba(255, 90, 31, 0.2);
}

.drawer-badge span {
  display: inline-block;
}

.drawer-nav { flex: 1; padding: 12px 0; }
.drawer-nav ul { list-style: none; }
.drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text-primary);
  transition: all var(--transition);
  font-size: 1rem;
  border-right: 3px solid transparent;
}
.drawer-nav li a:hover,
.drawer-nav li a.active {
  background: var(--bg-surface-hover);
  color: var(--primary);
  border-right-color: var(--primary);
  padding-right: 28px;
}
.drawer-nav li a svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
}
.drawer-nav hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 8px 16px;
}
.admin-link a {
  color: var(--danger) !important;
  font-weight: 600;
}
.admin-link a:hover {
  background: var(--danger-dim) !important;
  border-right-color: var(--danger) !important;
}

.drawer-footer {
  padding: 16px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.overlay.visible { opacity: 1; visibility: visible; }

/* ===== CONTENT FEED (Modern Clean Style) ===== */
.content-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 16px 100px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-feed .review-card + .review-card {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .content-feed {
    padding: 8px 8px 100px;
    gap: 0;
  }
}

.loader-container {
  text-align: center;
  padding: 60px 20px;
}
.loader {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-secondary); font-size: 14px; }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  animation: fadeIn 0.8s ease-out;
}
.empty-state svg { 
  width: 80px; 
  height: 80px; 
  margin-bottom: 24px; 
  opacity: 0.2; 
}
.empty-state h3 { 
  font-size: 20px; 
  margin-bottom: 12px; 
  color: var(--text-primary); 
  font-weight: 700;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== REVIEW CARD (Clean Flat Style - No Card) ===== */
.review-card {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  animation: fadeIn 0.3s ease backwards;
}

@media (max-width: 720px) {
  .review-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.review-card:hover {
  box-shadow: none;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
}

.review-card-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card-meta-text .review-card-author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-card-meta-text .review-card-author-name-row .review-card-author-name::after {
  content: "·";
  margin-right: 0;
  margin-left: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.review-card-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.review-card-author-name:hover { color: var(--primary); }

.review-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.review-card-author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-dim), rgba(255, 90, 31, 0.2));
  color: var(--primary);
  border-radius: 50%; /* تحويل الحواف إلى دائرية بالكامل */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  border: 2px solid rgba(255, 90, 31, 0.15);
  transition: all 0.25s ease;
  flex-shrink: 0;
  overflow: hidden; /* ضمان بقاء الصورة داخل الدائرة */
}

.review-card-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card-author-avatar:hover {
  border-color: var(--primary);
}

/* Options Dropdown */
.review-options-dropdown {
  position: relative;
}

.options-btn {
  color: var(--text-muted);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.options-btn:hover {
  background: var(--bg-surface-soft);
  color: var(--text-primary);
}

.options-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  min-width: 160px;
  z-index: 100;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.options-menu.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.options-menu button {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.2s;
  text-align: right;
}

.options-menu button:hover {
  background: var(--bg-surface-soft);
  color: var(--text-primary);
}

.options-menu button.delete-opt {
  color: var(--danger);
}

.options-menu button.delete-opt:hover {
  background: rgba(255, 77, 77, 0.1);
}

.review-card-restaurant-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: none;
}

.review-card-restaurant-name svg {
  flex-shrink: 0;
  color: var(--primary);
}

.review-card-restaurant-name-top {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1;
}

.review-card-restaurant-name-top svg {
  flex-shrink: 0;
  color: var(--primary);
  width: 15px;
  height: 15px;
}

.review-card-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  background: var(--bg-surface-hover);
  transition: transform 0.3s ease;
}

.review-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-surface-soft), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.review-card-content {
  padding: 8px 20px 14px;
}

.review-card-comment {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Modern Image Slider (Carousel) */
.review-image-slider-container {
  position: relative;
  width: 100%;
  margin: 10px 0 0;
  overflow: hidden;
}

.review-image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}

.review-image-slider::-webkit-scrollbar {
  display: none;
}

.review-image-slider img {
  width: 100%;
  flex-shrink: 0;
  height: 420px;
  object-fit: cover;
  scroll-snap-align: center;
  background: var(--bg-surface-soft);
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 5;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.slider-dot.active {
  width: 22px;
  background: #fff;
  border-radius: 4px;
}


.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 20;
}

.multi-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item-remove {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* Likes counter row (Modern Style) */
.review-card-likes-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.review-card-likes-row svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  stroke: none;
}

.review-card-likes-row.has-likes {
  color: var(--text-secondary);
}

.review-card-likes-row .btn-details {
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

/* Modern action bar */
.review-card-actions {
  display: flex;
  width: 100%;
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.review-card-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  margin: 0;
  position: relative;
}

.review-card-actions button:hover {
  background: var(--bg-surface-soft);
  color: var(--primary);
}

.review-card-actions button:active {
  opacity: 0.7;
}

.review-card-actions button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.review-card-actions button:hover svg {
  opacity: 0.8;
}

/* Liked state */
.review-card-actions .like-btn.liked {
  color: var(--primary);
}

.review-card-actions .like-btn.liked svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* Report Button Specifics */
.review-card-actions .report-btn {
  color: var(--text-muted);
}

.review-card-actions .report-btn:hover {
  color: var(--danger);
  background: rgba(217, 48, 37, 0.05);
}

/* Report Modal Options */
.report-options button {
  justify-content: flex-start;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-radius: 12px;
  text-align: right;
  width: 100%;
}

.report-options button:hover {
  background: var(--bg-surface-hover);
  color: var(--danger);
  border-color: var(--danger);
}

/* Unified Detail Button */
.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 5px 12px;
  border-radius: 8px;
  background: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  border: none;
  transition: color 0.2s ease;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.2px;
}

.btn-details:hover {
  color: var(--primary);
  background: none;
}

.btn-details:active {
  opacity: 0.7;
}

.btn-details svg {
  color: var(--primary);
}

/* ===== RATINGS ===== */
/* ===== DETAIL VIEW (Facebook/Native Style) ===== */
.detail-back-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}
.detail-back-bar button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-card {
  border-top: none !important;
}

.detail-ratings-section {
  background: transparent;
  border-radius: 0;
  padding: 24px 0;
  margin: 0;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.detail-ratings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 20px;
}

.detail-avg-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.detail-avg-label {
  text-align: left;
}

.detail-avg-label span:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 20px;
}

.detail-rating-label {
  width: 80px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-rating-progress-wrapper {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.detail-rating-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.6s ease-out;
}

.detail-rating-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 30px;
  text-align: left;
}

.detail-post-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  opacity: 0.6;
}

.form-group-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-remove-field {
  background: var(--bg-surface-soft);
  color: var(--danger);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-remove-field:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.ratings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding: 0 20px;
}
.rating-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.rating-item:hover {
  border-color: var(--primary-dim);
  background: var(--primary-dim);
}
.rating-item-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rating-item-stars {
  display: flex;
  gap: 2px;
  direction: ltr;
}
.star {
  width: 14px;
  height: 14px;
  color: var(--star-empty);
}
.star.filled { color: var(--star-color); }
.star.half {
  position: relative;
  color: var(--star-empty);
}
.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--star-color);
}

/* ===== AD CARD (Unified Style) ===== */
.ad-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out backwards;
  position: relative;
}

@media (max-width: 720px) {
  .ad-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
.ad-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.ad-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.ad-card-body { padding: 20px; }
.ad-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.ad-card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.ad-card-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ad-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 8px;
  background: #fff8e1;
  color: #ffb300;
  margin-bottom: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 179, 0, 0.2);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.modal-title { font-size: 1.15rem; font-weight: bold; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg-surface-hover); }
.modal-body { padding: 24px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  transition: border-color var(--transition);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}
.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}
.form-file {
  position: relative;
}
.form-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.form-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.form-file-label:hover,
.form-file-input:focus + .form-file-label {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.form-file-preview {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 200px;
}
.form-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== STAR RATING INPUT ===== */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  direction: ltr;
  justify-content: flex-end;
}
.star-rating-input input { display: none; }
.star-rating-input label {
  cursor: pointer;
  font-size: 28px;
  color: var(--star-empty);
  transition: color var(--transition-fast);
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: var(--star-color);
}

/* ===== TOAST / NOTIFICATION (Modern & Mobile Optimized) ===== */
.toast-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: 100%;
  max-width: 450px;
  padding: 0 24px;
}
.toast {
  padding: 16px 24px;
  border-radius: 18px;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  pointer-events: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  background: var(--primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important; /* ثابت بدون تأثيرات شفافية */
}

/* توحيد الألوان للبرتقالي */
.toast-success, .toast-info { background: var(--primary) !important; color: #000 !important; }
.toast-error { background: #ff4444 !important; color: #fff !important; }

/* إيقاف الحركات */
@keyframes toastPop {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@media (max-width: 720px) {
  .toast-container { bottom: 30px; }
  .toast { font-size: 14px; padding: 16px 20px; width: 100%; }
}

/* ===== AUTH MODAL TABS ===== */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-switch a {
  color: var(--primary);
  cursor: pointer;
}
.auth-switch a:hover { text-decoration: underline; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 900;
}
.fab:hover {
  transform: scale(1.1) rotate(90deg);
}
.fab svg { width: 24px; height: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .logo h1 { font-size: 1.1rem; }
  .review-card-image { height: 180px; }
  .ratings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: var(--radius-lg); }
  .review-card-image-placeholder { height: 180px; }
  .header-right .login-btn { padding: 6px 14px; font-size: 13px; }
}

/* ===== ADMIN PANEL EXTRA STYLES ===== */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}
.status-badge.approved {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid var(--success);
}
.status-badge.rejected {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.status-badge.pending {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-warning {
  background: #f59e0b;
  color: #000;
}
.btn-warning:hover {
  background: #d97706;
}

.pending-card-actions .btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-card .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== PREMIUM PROFILE UI ===== */
.profile-header-premium {
  position: relative;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 32px 32px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), #8a2b06);
  opacity: 0.85;
  border-radius: 0 0 16px 16px;
  position: relative;
}
.profile-cover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 150%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.profile-info-container {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 24px 28px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.profile-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 5px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.profile-text-info {
  padding-bottom: 8px;
}

.profile-full-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.profile-username {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-dim);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
}
.stat-item strong {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 800;
}

.profile-back-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.profile-back-btn:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .profile-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -50px;
  }
  .profile-avatar-large {
    width: 90px;
    height: 90px;
  }
  .profile-full-name {
    font-size: 1.3rem;
  }
}

/* ===== SHARE BUTTONS ===== */
.share-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-profile-btn:hover {
  background: var(--primary);
  color: #000;
}

.review-card-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-btn.liked {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.like-btn.liked svg {
  fill: var(--danger);
}

.share-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-post-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.profile-header-minimal {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
.profile-back-btn {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-back-btn:hover {
  background: var(--bg-surface-hover);
  transform: translateX(-4px);
}

/* Bottom Nav Removed */

/* Restaurant Info Bar in Detail View */
.restaurant-info-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-surface-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.info-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-item svg {
  flex-shrink: 0;
  color: var(--primary);
}

.info-item.location {
  border-right: 4px solid #4285F4;
}

.info-item.phone {
  border-right: 4px solid #34A853;
}

/* Form Layout Helper */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* User Profile Badge */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: #000;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Premium Profile Header System */
.profile-header-premium {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.profile-cover {
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--bg-surface-soft);
  overflow: hidden;
}

.profile-cover::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(20px) brightness(0.7);
  background-size: cover;
  background-position: center;
}

.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.profile-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-back-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.profile-info-container {
  display: flex;
  padding: 0 24px 24px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
  gap: 20px;
  align-items: flex-end;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text-info {
  flex: 1;
  padding-bottom: 8px;
}

.profile-full-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.profile-username {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* User Profile Badge */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: #000;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Combined Profile Actions & Stats */
.profile-header-actions-combined {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.profile-stats-pill {
  background: var(--bg-surface-soft);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.profile-stats-pill strong {
  color: var(--text-primary);
}

.profile-actions-buttons {
  display: flex;
  gap: 6px;
}

.profile-actions-buttons .share-profile-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.profile-actions-buttons .share-profile-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .profile-cover { height: 140px; }
  .profile-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    padding: 0 16px 20px;
  }
  .profile-avatar-large {
    width: 100px;
    height: 100px;
  }
  .profile-full-name { font-size: 1.5rem; }
  .profile-header-actions-combined {
    justify-content: center;
    width: 100%;
  }
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  color: #1DA1F2;
  vertical-align: middle;
}

.user-profile-full-name-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge svg {
  fill: #1DA1F2;
}

/* Admin Tab Navigation */
.admin-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nav-tab {
  padding: 10px 25px;
  border-radius: 30px;
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

.nav-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* User Admin Card */
.user-admin-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  animation: fadeIn 0.4s ease-out;
}

.user-admin-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
align-items: flex-end;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text-info {
  flex: 1;
  padding-bottom: 8px;
}

.profile-full-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.profile-username {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* User Profile Badge */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: #000;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Combined Profile Actions & Stats */
.profile-header-actions-combined {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.profile-stats-pill {
  background: var(--bg-surface-soft);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.profile-stats-pill strong {
  color: var(--text-primary);
}

.profile-actions-buttons {
  display: flex;
  gap: 6px;
}

.profile-actions-buttons .share-profile-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.profile-actions-buttons .share-profile-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .profile-cover { height: 140px; }
  .profile-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    padding: 0 16px 20px;
  }
  .profile-avatar-large {
    width: 100px;
    height: 100px;
  }
  .profile-full-name { font-size: 1.5rem; }
  .profile-header-actions-combined {
    justify-content: center;
    width: 100%;
  }
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  color: #1DA1F2;
  vertical-align: middle;
}

.user-profile-full-name-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge svg {
  fill: #1DA1F2;
}

/* Admin Tab Navigation */
.admin-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nav-tab {
  padding: 10px 25px;
  border-radius: 30px;
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

.nav-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* User Admin Card */
.user-admin-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  animation: fadeIn 0.4s ease-out;
}

.user-admin-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  color: var(--primary);
  border: 2px solid var(--border-color);
}
.user-admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hidden { display: none !important; }

/* ============================================= */
/* ===== RESPONSIVE: TABLETS & iPADS (768px+) == */
/* ============================================= */
@media (min-width: 768px) {
  :root {
    --max-width: 740px; 
  }

  .main-header { height: 80px; }
  .header-container { max-width: 1100px; padding: 0 40px; }

  .content-feed {
    max-width: var(--max-width);
    margin: 40px auto;
    padding-bottom: 120px;
    gap: 30px;
  }

  /* --- كارت البروفايل الفاخر (Large Screen) --- */
  .profile-header-premium {
    background: var(--bg-surface);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 40px;
  }

  .profile-cover {
    height: 220px;
    border-radius: 0;
  }

  .profile-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 40px;
    margin-top: -80px;
    gap: 15px;
  }

  .profile-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    border: 6px solid var(--bg-surface);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 5;
    flex-shrink: 0;
  }

  .profile-text-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .user-profile-full-name-wrapper {
    justify-content: center;
  }

  .profile-full-name {
    font-size: 2.2rem;
    font-weight: 900;
  }

  .profile-header-actions-combined {
    margin-top: 15px;
    justify-content: center;
    gap: 15px;
  }

  /* --- كروت المراجعات (Large Screen) --- */
  .review-card {
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  }

  .review-card-image, .review-image-slider img {
    height: 500px;
    border-radius: 16px;
  }
}

/* ============================================= */
/* ===== RESPONSIVE: LARGE DESKTOP (1300px+) === */
/* ============================================= */
@media (min-width: 1300px) {
  :root { --max-width: 820px; }
  .profile-cover { height: 260px; }
  .profile-avatar-large { width: 180px; height: 180px; }
  .profile-full-name { font-size: 2.4rem; }
}

/* ============================================= */
/* ===== RESPONSIVE: MOBILE FIXES ============== */
/* ============================================= */
@media (max-width: 767px) {
  .profile-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
  }
  .profile-avatar-large {
    width: 110px;
    height: 110px;
  }
}




/* Rating Input Styles */
.rating-input-group {
  margin-bottom: 12px;
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 28px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #ffb800; /* Gold/Yellow for stars */
  transform: scale(1.1);
}

.star-rating-input label:active {
  transform: scale(0.9);
}

/* Review Card Ratings Display */
.rating-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rating-chip {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Bulk Actions Bar */
.bulk-actions-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  animation: slideInDown 0.3s ease;
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: var(--primary);
}

.bulk-btns {
  display: flex;
  gap: 8px;
}

.review-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

@keyframes slideInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
