/* =====================================================
   Renteaze – Global Design System v3
   Pan-African Edition · Font Awesome Icons
   Domain: renteaze.xyz
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --primary:        #c0522a;
  --primary-dark:   #9e3e1c;
  --primary-light:  #f5ece7;
  --secondary:      #1a2744;
  --secondary-light:#2d3f6b;
  --accent:         #e8a87c;
  --gold:           #d4a853;
  --success:        #22a06b;
  --danger:         #e53e3e;
  --warning:        #f6ad55;
  --info:           #3182ce;

  --bg:             #faf9f7;
  --bg-card:        #ffffff;
  --bg-muted:       #f4f1ee;

  --text:           #1a1714;
  --text-muted:     #6b5f57;
  --text-light:     #a89890;

  --border:         #e8e0db;
  --border-dark:    #d1c5be;

  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.15);
  --shadow-xl:      0 24px 64px rgba(0,0,0,.18);

  --font-sans:      'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:     'Playfair Display', Georgia, serif;

  --nav-h:          68px;
  --sidebar-w:      248px;
  --transition:     0.2s ease;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.serif { font-family: var(--font-serif); font-style: italic; }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.85rem; }
.text-center { text-align: center; }

/* ── Layout ─────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 40px 0; }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; color: var(--primary);
}
.navbar-logo .serif { font-family: var(--font-serif); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-links a i { font-size: 0.9rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* User dropdown */
.nav-avatar-wrap { position: relative; }
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  border: 2px solid var(--border); overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--danger); color: white; font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid white;
}
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  min-width: 220px; padding: 8px; display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; width: 100%; text-align: left;
  color: var(--text); transition: var(--transition);
}
.user-dropdown a i, .user-dropdown button i { width: 16px; color: var(--text-muted); }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-muted); }
.user-dropdown .dd-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown .dd-header { padding: 12px 14px 8px; }
.user-dropdown .dd-name  { font-weight: 700; font-size: .95rem; }
.user-dropdown .dd-email { font-size: .78rem; color: var(--text-muted); }

/* Mobile nav */
.nav-hamburger { display: none; padding: 8px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: white; padding: calc(var(--nav-h) + 20px) 24px 24px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 16px; border-radius: var(--radius);
  font-weight: 500; color: var(--text); font-size: .95rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.mobile-nav a i { width: 20px; color: var(--text-muted); }
.page-content { padding-top: var(--nav-h); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap; cursor: pointer;
}
.btn i { font-size: .88rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-outline { border: 1.5px solid var(--border-dark); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-danger  { background: var(--danger);  color: white; }
.btn-success { background: var(--success); color: white; }
.btn-gold    { background: var(--gold);    color: white; }
.btn-info    { background: var(--info);    color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body   { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.card-header i { color: var(--primary); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ── Listing Cards ───────────────────────────────────── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 24px; }
.listing-card { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: white; border: 1px solid var(--border); transition: var(--transition); }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-muted); }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-card-img img { transform: scale(1.06); }
.listing-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: white; color: var(--primary);
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 4px;
}
.listing-card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition); cursor: pointer;
  border: none; color: var(--text-muted);
}
.listing-card-fav:hover { transform: scale(1.12); color: var(--danger); }
.listing-card-fav.active { color: var(--danger); }
.listing-card-body { padding: 14px 16px 16px; }
.listing-card-location { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.listing-card-title { font-size: 0.97rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.listing-card-meta { display: flex; align-items: center; justify-content: space-between; }
.listing-rating { display: flex; align-items: center; gap: 4px; font-size: 0.84rem; font-weight: 600; color: var(--text); }
.listing-rating i { color: var(--gold); }
.listing-price { font-size: 0.97rem; font-weight: 700; color: var(--primary); }
.listing-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.92rem;
  color: var(--text); background: white; transition: border-color var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,82,42,.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint  { font-size: 0.79rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.81rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .88rem; pointer-events: none; }
.input-icon-wrap .form-control { padding-left: 36px; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.badge i { font-size: .7rem; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-danger  { background: #fee2e2; color: var(--danger);  }
.badge-warning { background: #fef9c3; color: #92400e; }
.badge-info    { background: #dbeafe; color: var(--info);   }
.badge-muted   { background: var(--bg-muted); color: var(--text-muted); }
.badge-gold    { background: #fef3c7; color: #92400e; }

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg-muted); padding: 11px 16px; text-align: left; font-size: .8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: 0.89rem; vertical-align: middle; }
tr:hover td { background: var(--bg-muted); }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { background: white; border-radius: var(--radius-xl); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { color: var(--primary); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-muted); font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-overlay[hidden] { display: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,12,10,.65) 0%, rgba(15,12,10,.35) 50%, rgba(15,12,10,.7) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 920px; padding: 0 20px; padding-top: 80px; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero h1 { color: white; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }

/* ── Search Bar ──────────────────────────────────────── */
.search-bar { background: white; border-radius: var(--radius-xl); padding: 16px; box-shadow: var(--shadow-xl); max-width: 880px; margin: 0 auto; }
.search-cats { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.search-cats::-webkit-scrollbar { display: none; }
.search-cat-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition); border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.search-cat-btn i { font-size: .78rem; }
.search-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.search-cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.search-fields { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); }
.search-field i { color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
.search-field input { border: none; outline: none; width: 100%; font-size: .92rem; color: var(--text); background: none; }
.search-field input::placeholder { color: var(--text-light); }

/* ── Category grid ───────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 14px; }
.cat-card {
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 14px; text-align: center; cursor: pointer; transition: var(--transition);
}
.cat-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card.active { border-color: var(--primary); background: var(--primary-light); }
.cat-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.cat-name { font-size: 0.81rem; font-weight: 700; color: var(--text); }
.cat-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* ── Dashboard Sidebar ───────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.dash-sidebar {
  width: var(--sidebar-w); background: var(--secondary);
  padding: 20px 10px; flex-shrink: 0;
  position: fixed; top: var(--nav-h); bottom: 0; overflow-y: auto; z-index: 50;
}
.dash-sidebar-logo { color: white; font-size: .95rem; font-weight: 700; padding: 0 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dash-sidebar-logo i { color: var(--accent); }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,.6);
  transition: var(--transition); margin-bottom: 2px;
}
.dash-nav a i { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.12); color: white; }
.dash-nav a.active i { color: var(--accent); }
.dash-nav .section-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); padding: 14px 12px 5px; }
.dash-main { margin-left: var(--sidebar-w); flex: 1; padding: 32px; min-width: 0; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.dash-header h1 i { color: var(--primary); font-size: 1.2rem; }
.dash-header p { color: var(--text-muted); margin-top: 4px; font-size: .9rem; }

/* ── Stat Cards ──────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.stat-card-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.stat-card-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.success { background: #dcfce7; color: var(--success); }
.stat-card-icon.info    { background: #dbeafe; color: var(--info); }
.stat-card-icon.warning { background: #fef9c3; color: #92400e; }
.stat-card-icon.gold    { background: #fef3c7; color: #92400e; }
.stat-label { font-size: .79rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub   { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

/* ── Toast ───────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: var(--radius-lg);
  background: white; box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--success);
  font-size: 0.88rem; font-weight: 500;
  animation: slideInRight .3s ease; min-width: 280px; pointer-events: all;
}
.toast i { font-size: 1rem; }
.toast.error   { border-left-color: var(--danger);  }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info);    }
.toast .toast-icon-success { color: var(--success); }
.toast .toast-icon-error   { color: var(--danger);  }
.toast .toast-icon-warning { color: var(--warning); }
.toast .toast-icon-info    { color: var(--info);    }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Spinner ─────────────────────────────────────────── */
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .7s linear infinite; margin: 40px auto; }
.spinner-sm { width: 18px; height: 18px; border-width: 2px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 60px 0; }

/* ── Tabs ────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab-btn { padding: 10px 16px; font-size: .88rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tab-btn i { font-size: .85rem; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Pagination ──────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--border); font-size: .87rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Alert ───────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: var(--radius); font-size: .89rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #92400e; border: 1px solid #fef08a; }

/* ── Wallet card ─────────────────────────────────────── */
.wallet-card { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%); color: white; border-radius: var(--radius-xl); padding: 32px; }
.wallet-label   { font-size: .83rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.wallet-balance { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.wallet-currency { font-size: .95rem; opacity: .6; margin-bottom: 20px; }

/* ── Empty state ─────────────────────────────────────── */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty-state .es-icon { font-size: 3rem; color: var(--border-dark); margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; max-width: 320px; margin: 0 auto 20px; }

/* ── Skeleton ────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* ── Progress bar ────────────────────────────────────── */
.progress-bar  { height: 6px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .5s ease; }

/* ── Ad Banner ───────────────────────────────────────── */
.ad-banner { border-radius: var(--radius-xl); overflow: hidden; position: relative; min-height: 200px; cursor: pointer; }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,39,68,.88) 40%, transparent 100%); padding: 32px; display: flex; align-items: center; }
.ad-banner-content { color: white; max-width: 460px; }
.ad-sponsored { display: inline-flex; align-items: center; gap: 4px; background: var(--gold); color: white; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ad-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.ad-desc  { font-size: .9rem; opacity: .85; margin-bottom: 16px; }

/* ── Support ticket ──────────────────────────────────── */
.ticket-item { padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background var(--transition); cursor: pointer; }
.ticket-item:hover { background: var(--bg-muted); }
.ticket-priority-high   { border-left: 3px solid var(--danger); }
.ticket-priority-medium { border-left: 3px solid var(--warning); }
.ticket-priority-low    { border-left: 3px solid var(--success); }
.ticket-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: .9rem; line-height: 1.6; margin-bottom: 10px; }
.chat-bubble.sent     { background: var(--primary); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.received { background: var(--bg-muted); color: var(--text); border-bottom-left-radius: 4px; }
.chat-bubble.system   { background: var(--bg-muted); color: var(--text-muted); text-align: center; font-size: .82rem; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--secondary); color: rgba(255,255,255,.72); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand .logo i { color: var(--accent); }
.footer-brand p { font-size: .87rem; line-height: 1.8; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: .9rem; }
.footer-social-btn:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col a  { display: flex; align-items: center; gap: 8px; font-size: .87rem; margin-bottom: 11px; transition: color var(--transition); }
.footer-col a i { font-size: .82rem; width: 14px; color: var(--accent); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a:hover { color: white; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .dash-sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 20px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .ad-title { font-size: 1.1rem; }
}
