/* ═══════════════════════════════════════
   الهيف — Dashboard Design System
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700&display=swap');

:root {
  --white: #ffffff;
  --bg: #f7f6f4;
  --bg-card: #ffffff;
  --navy: #1E2A38;
  --border: rgba(30, 42, 56, 0.1);
  --border-hover: rgba(30, 42, 56, 0.16);
  --gold-border: rgba(197, 164, 109, 0.32);
  --black: #1E2A38;
  --black-muted: #4a5568;
  --gray: #8a8580;
  --gray-light: #b5b0a8;
  --gold: #C5A46D;
  --gold-light: #d4b88a;
  --gold-bg: rgba(197, 164, 109, 0.1);
  --success: #2d8a4e;
  --success-bg: rgba(45, 138, 78, 0.1);
  --warning: #b8860b;
  --warning-bg: rgba(184, 134, 11, 0.1);
  --danger: #c0392b;
  --danger-bg: rgba(192, 57, 43, 0.08);
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 14px rgba(30, 42, 56, 0.05);
  --shadow-md: 0 8px 28px rgba(30, 42, 56, 0.08);
  --shadow-gold: 0 6px 24px rgba(197, 164, 109, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Cairo', sans-serif;
  --text-primary: #111111;
  --text-secondary: #444444;
  --fw-heading: 700;
  --fw-subheading: 600;
  --fw-body: 500;
  --lh-body: 1.75;
  --lh-heading: 1.35;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-primary);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: var(--font);
  font-weight: var(--fw-body);
}

/* ─── Layout ─── */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar__brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

.sidebar__logo-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  background: var(--gold-bg);
}

.sidebar__logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: var(--fw-heading);
  color: var(--text-primary);
}

.sidebar__logo-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: var(--fw-body);
}

.sidebar__nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.sidebar__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  padding: 0.75rem 0.75rem 0.35rem;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: var(--fw-body);
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-bottom: 3px;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text-primary);
  font-weight: var(--fw-subheading);
}

.nav-item.active {
  background: var(--gold-bg);
  color: var(--text-primary);
  font-weight: var(--fw-subheading);
  border: 1px solid var(--gold-border);
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-item.active .nav-item__icon {
  color: var(--gold);
}

.nav-item__icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
}

.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.sidebar__footer a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar__footer a:hover { color: var(--gold); }

.main {
  flex: 1;
  margin-right: var(--sidebar-w);
  min-width: 0;
}

.topbar {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__title {
  font-size: 1.15rem;
  font-weight: var(--fw-heading);
  color: var(--text-primary);
}

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

.content {
  padding: 1.75rem;
}

/* ─── Mobile sidebar toggle ─── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 99;
}

/* ─── Cards & Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.stat-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-3px);
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: var(--fw-body);
  margin-bottom: 0.55rem;
}

.stat-card__value {
  font-size: 1.85rem;
  font-weight: var(--fw-heading);
  color: var(--text-primary);
  line-height: var(--lh-heading);
}

.stat-card__value--gold { color: var(--gold); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(197, 164, 109, 0.2);
}

.card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card__title {
  font-size: 1.05rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
}

.card__body {
  padding: 1.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: var(--fw-subheading);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(30, 42, 56, 0.2);
  box-shadow: 0 2px 12px rgba(30, 42, 56, 0.15);
}

.btn-primary:hover:not(:disabled) {
  background: #2a3a4d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-border);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b89458 100%);
  color: var(--white);
  border: 1px solid rgba(197, 164, 109, 0.4);
  box-shadow: 0 2px 12px rgba(197, 164, 109, 0.22);
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--gold-border);
  color: var(--navy);
  background: var(--gold-bg);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* ─── Forms ─── */
.form-section {
  margin-bottom: 2rem;
}

.form-section__title {
  font-size: 0.95rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(197, 164, 109, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

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

.form-group.full { grid-column: 1 / -1; }

/* طلب شراء — إضافة إعلان */
.buy-request-fields {
  grid-column: 1 / -1;
  padding: 1rem 1.1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.buy-request-fields__intro {
  color: #6d28d9;
  font-weight: 600;
  margin-bottom: 0.75rem !important;
}

.buy-request-fields__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.badge--buy-request {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

@media (max-width: 768px) {
  .buy-request-fields__grid {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  font-size: 0.9rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
}

.form-group label .required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: var(--fw-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: var(--lh-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-border);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-bg), 0 2px 8px rgba(30, 42, 56, 0.04);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: var(--fw-body);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ─── Image Upload ─── */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.image-upload:hover,
.image-upload.dragover {
  border-color: var(--gold-border);
  background: var(--gold-bg);
  box-shadow: var(--shadow-gold);
}

.image-upload input { display: none; }

.image-upload__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.image-upload__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.image-upload__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: grab;
}

.image-item:active { cursor: grabbing; }

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

.image-item__order {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 22px;
  height: 22px;
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-item__remove {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 26px;
  height: 26px;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.image-item:hover .image-item__remove { opacity: 1; }

.image-item.dragging { opacity: 0.5; }

/* ─── Offers Grid ─── */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.offer-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-4px);
}

.offer-card__img {
  aspect-ratio: 16/10;
  background: var(--bg);
  overflow: hidden;
}

.offer-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card__body { padding: 1.25rem; }

.offer-card__type {
  font-size: 0.75rem;
  font-weight: var(--fw-subheading);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.offer-card__title {
  font-size: 1.1rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: var(--lh-heading);
}

.offer-card__meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: var(--fw-body);
  margin-bottom: 0.8rem;
}

.offer-card__price {
  font-size: 1.3rem;
  font-weight: var(--fw-heading);
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(197, 164, 109, 0.15);
}

.offer-card__actions {
  display: flex;
  gap: 0.35rem;
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
}

.badge--published {
  background: var(--success-bg);
  color: var(--success);
}

.badge--draft {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge--archived {
  background: var(--bg);
  color: var(--text-secondary);
}

/* ─── Table ─── */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: var(--fw-subheading);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg);
}

.table tr:hover td { background: rgba(197, 164, 109, 0.05); }

.table td {
  color: var(--text-primary);
  font-weight: var(--fw-body);
}

/* ─── News ─── */
.news-list { display: flex; flex-direction: column; gap: 1rem; }

.news-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-item:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-2px);
}

.news-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.news-item__title {
  font-size: 1.05rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
}

.news-item__meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.news-item__excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(16px);
  transition: transform var(--transition);
}

.modal.active .modal__box { transform: translateY(0); }

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal__title {
  font-size: 1.15rem;
  font-weight: var(--fw-heading);
  color: var(--text-primary);
}

.modal__close {
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--error { background: var(--danger); }

/* ─── Empty & Loading ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 0.75rem;
}

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

/* ─── Quick actions (home) ─── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.quick-action:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-3px);
}

.quick-action__icon {
  width: 44px;
  height: 44px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
}

.quick-action__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--fw-subheading);
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.quick-action__text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ─── Settings page ─── */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-preview {
  min-height: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-preview--wide {
  min-height: 120px;
}

.settings-preview img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.settings-preview--wide img {
  max-height: 140px;
  width: 100%;
  object-fit: cover;
}

/* ─── Responsive (tablet+) ─── */
@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active { display: block; }

  .sidebar-toggle { display: block; }

  .main { margin-right: 0; }
}

/* تحذير اتصال Supabase */
.db-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius, 12px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #7f1d1d;
}

.db-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.db-banner p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.db-banner__meta {
  font-size: 0.8rem !important;
  opacity: 0.85;
}

.review-meta {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.review-meta li { margin-bottom: 0.25rem; }

.review-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.offer-admin-card--highlight {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 164, 109, 0.2);
}

.pending-ad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.pending-ad-row:last-child { border-bottom: none; }

.notif-bell-wrap { position: relative; }

.notif-bell {
  position: relative;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.notif-bell__badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.notif-panel__read-all {
  border: none;
  background: none;
  color: var(--gold);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
}

.notif-panel__list { padding: 0.5rem; }

.notif-panel__empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.notif-item {
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.notif-item--read { opacity: 0.75; }

.notif-item__title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.notif-item__meta {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.notif-item__meta li { margin-bottom: 0.2rem; }

.notif-item__meta span { color: var(--text-primary); font-weight: 600; }

