/* Local Inter Web Font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/inter-latin-900-normal.woff2') format('woff2');
}

/* Local Material Symbols Outlined Icon Font */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('fonts/material-symbols-outlined.woff2') format('woff2');
}

.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
  --ink: #12151f;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --navy: #101828;
  --gold: #b88746;
  --teal: #0f766e;
  --blue: #2563eb;
  --green: #12b76a;
  --red: #d92d20;
  --amber: #f79009;
  --shadow: 0 18px 45px rgba(16, 24, 40, .10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--soft);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--gold));
}

.brand-logo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.links,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.links a:hover,
.links a.active {
  color: var(--ink);
  background: #f2f4f7;
}

.menu-btn {
  display: none;
}

.btn {
  border: 0;
  border-radius: var(--radius);
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .16);
}

.btn.gold {
  background: var(--gold);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  font-size: 22px;
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, .90), rgba(16, 24, 40, .50)),
    url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.location-hero {
  background:
    linear-gradient(90deg, rgba(16, 24, 40, .90), rgba(16, 24, 40, .48)),
    url("https://images.unsplash.com/photo-1521295121783-8a321d551ad2?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 88px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.65;
}

.search-panel {
  margin-top: 34px;
  padding: 10px;
  background: rgba(255, 255, 255, .95);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 8px;
  max-width: 980px;
  box-shadow: var(--shadow);
}

.field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 18px;
}

.categories {
  grid-template-columns: repeat(6, 1fr);
}

.category,
.card,
.panel,
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.category {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category .icon {
  color: var(--gold);
  font-size: 30px;
}

.category strong {
  display: block;
  margin-bottom: 4px;
}

.category span:not(.icon) {
  color: var(--muted);
  font-size: 13px;
}

.country-grid {
  grid-template-columns: repeat(3, 1fr);
}

.country-card {
  min-height: 170px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.country-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.country-card .icon {
  color: var(--gold);
  font-size: 32px;
}

.country-card strong {
  font-size: 22px;
}

.country-card span:not(.icon) {
  color: var(--muted);
  line-height: 1.5;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.region-list.compact {
  grid-template-columns: repeat(3, 1fr);
}

.region-card {
  min-height: 126px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.region-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.region-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.city-links a {
  color: var(--muted);
  font-weight: 700;
}

.city-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.listings {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 230px;
  position: relative;
  background: #d0d5dd;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 900;
}

.badge.green {
  color: var(--green);
}

.badge.gold {
  color: var(--gold);
}

.card-body {
  padding: 18px;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--navy);
  font-weight: 900;
  font-size: 20px;
  margin: 12px 0;
}

.seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.trust-band {
  background: var(--navy);
  color: #fff;
}

.trust-grid {
  grid-template-columns: 1.2fr repeat(3, 1fr);
  align-items: center;
}

.trust-grid h2 {
  font-size: 36px;
  margin-bottom: 0;
}

.trust-item {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}

.trust-item .icon {
  color: var(--gold);
  font-size: 30px;
}

.trust-item p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.55;
  margin-bottom: 0;
}

.page-title {
  padding: 44px 0 28px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 10px;
}

.page-title p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 10px;
  margin-bottom: 22px;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.filter {
  padding: 18px;
  height: fit-content;
}

.filter h3 {
  margin-bottom: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  color: var(--muted);
}

/* --- Redesigned Dashboard Styles --- */

.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--soft);
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 8px;
}

.sidebar-header .brand {
  font-size: 18px;
}

.sidebar .side-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.sidebar .side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
}

.sidebar .side-link .icon {
  font-size: 22px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.sidebar .side-link:hover,
.sidebar .side-link.active {
  color: var(--navy);
  background: #f2f4f7;
}

.sidebar .side-link:hover .icon,
.sidebar .side-link.active .icon {
  color: var(--gold);
}

.sidebar .side-link.active {
  font-weight: 700;
  background: #f2f4f7;
  box-shadow: inset 3px 0 0 var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Collapsed Desktop Sidebar */
.dash-shell.collapsed {
  grid-template-columns: 80px 1fr;
}

.dash-shell.collapsed .sidebar {
  padding: 24px 12px;
}

.dash-shell.collapsed .sidebar .sidebar-header {
  justify-content: center;
  padding: 0;
}

.dash-shell.collapsed .sidebar .brand span:not(.mark) {
  display: none;
}

.dash-shell.collapsed .sidebar .side-link span:not(.icon) {
  display: none;
}

.dash-shell.collapsed .sidebar .side-link {
  justify-content: center;
  padding: 12px 0;
}

.dash-shell.collapsed .sidebar .side-link.active {
  border-radius: var(--radius);
  box-shadow: none;
  background: #f2f4f7;
  color: var(--gold);
}

/* Top Navigation Bar */
.dash-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.dash-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: padding 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-sidebar-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.toggle-sidebar-btn:hover {
  background: #f2f4f7;
  color: var(--ink);
}

.dash-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* User profile / Avatar dropdown */
.user-avatar-dropdown {
  position: relative;
}

.avatar-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: transparent;
  border: none;
  transition: background-color 0.2s ease;
}

.avatar-trigger:hover {
  background-color: #f2f4f7;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.avatar-trigger span.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.avatar-trigger .icon {
  font-size: 16px;
  color: var(--muted);
}

.avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 60;
  animation: slideDown 0.2s ease-out;
}

.avatar-menu.show {
  display: flex;
}

.avatar-menu-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.avatar-menu-header div {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.avatar-menu-header span {
  font-size: 12px;
  color: var(--muted);
}

.avatar-menu a,
.avatar-menu button {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.avatar-menu a:hover,
.avatar-menu button:hover {
  background: #f2f4f7;
  color: var(--ink);
}

.avatar-menu .menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

/* Welcome Section */
.welcome-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a253c 100%);
  color: #fff;
  padding: 32px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(184, 135, 70, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-text h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 14px;
  max-width: 520px;
  line-height: 1.5;
}

.welcome-card .btn.gold {
  box-shadow: 0 10px 20px rgba(184, 135, 70, 0.2);
}

/* Dashboard Grid Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
  border-color: rgba(184, 135, 70, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.live {
  background: #ecfdf3;
  color: var(--green);
}

.stat-icon.pending {
  background: #fffaeb;
  color: var(--amber);
}

.stat-icon.expired {
  background: #fef3f2;
  color: var(--red);
}

.stat-icon.views {
  background: #f0f5ff;
  color: var(--blue);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-info .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

/* Tabs Area */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
  display: block;
}

/* My Ads List Grid */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Modern Listing Cards */
.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 135, 70, 0.3);
}

.listing-media {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #eaecf0;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-card:hover .listing-media img {
  transform: scale(1.05);
}

.listing-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-badge {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-badge.live {
  background: #ecfdf3;
  color: var(--green);
}

.listing-badge.pending {
  background: #fffaeb;
  color: var(--amber);
}

.listing-badge.expired {
  background: #fef3f2;
  color: var(--red);
}

.listing-category {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--navy);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.listing-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-details .listing-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.listing-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-top: auto;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-meta-item .icon {
  font-size: 14px;
}

.listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.listing-actions .btn {
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.listing-actions .btn-delete {
  grid-column: span 2;
  background: transparent;
  border: 1px solid rgba(217, 45, 32, 0.2);
  color: var(--red);
}

.listing-actions .btn-delete:hover {
  background: #fff5f5;
  border-color: var(--red);
}

/* Profile View Card */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.profile-photo-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  position: relative;
  border: 4px solid var(--soft);
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.edit-avatar-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.edit-avatar-overlay:hover {
  transform: scale(1.1);
}

.edit-avatar-overlay .icon {
  font-size: 16px;
}

.profile-photo-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-photo-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.profile-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.profile-info-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-detail-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.profile-edit-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.profile-edit-form.show {
  display: block;
}

.profile-info-card .form {
  margin-top: 0;
}

/* Mobile Hamburger */
.hamburger-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: #f2f4f7;
  color: var(--ink);
}

/* Mobile Sidebar Overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    box-shadow: 0 0 30px rgba(16, 24, 40, 0.15);
    border-right: 1px solid var(--line);
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-header {
    margin-bottom: 24px;
  }

  .dash-header {
    padding: 0 20px;
  }

  .toggle-sidebar-btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .dash-main {
    padding: 20px;
  }

  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .welcome-card .btn {
    width: 100%;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 16px;
  }

  .avatar-trigger span.user-name {
    display: none;
  }

  .listing-actions {
    grid-template-columns: 1fr;
  }

  .listing-actions .btn-delete {
    grid-column: span 1;
  }

  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Feed item & status details */
.status {
  font-weight: 900;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 9px;
}

.status.live {
  color: var(--green);
  background: #ecfdf3;
}

.status.pending {
  color: var(--amber);
  background: #fffaeb;
}

.status.expired {
  color: var(--red);
  background: #fef3f2;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feed-item p {
  margin-bottom: 3px;
  color: var(--muted);
}


.auth-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: rgba(246, 247, 251, .92);
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.form .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.terms-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  outline: 0;
  background: #fff;
}

textarea.input {
  padding-top: 12px;
  min-height: 130px;
  resize: vertical;
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 135, 70, .14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field .input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover {
  background: #f2f4f7;
  color: var(--ink);
}

.password-toggle .icon {
  font-size: 21px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.small-link {
  color: var(--gold);
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}

.post-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.step {
  flex: 1;
  height: 7px;
  background: var(--line);
  border-radius: 999px;
}

.step.active {
  background: var(--gold);
}

.upload {
  min-height: 170px;
  border: 1px dashed #98a2b3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  background: #fcfcfd;
  cursor: pointer;
  padding: 24px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.upload:hover,
.upload:focus-within,
.upload.drag-over {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 135, 70, .10);
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload .icon {
  color: var(--gold);
  font-size: 38px;
}

.upload strong {
  color: var(--ink);
  font-size: 16px;
}

.upload span:not(.icon) {
  font-size: 13px;
  font-weight: 700;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Single Listing Details Page Styles */
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.listing-main-panel {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}

.listing-media-wrap {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #101828;
}

.listing-media-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.listing-content {
  padding: 28px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.listing-header h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 220px;
  color: var(--ink);
}

.listing-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  background: rgba(184, 135, 70, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(184, 135, 70, 0.2);
  white-space: nowrap;
}

.listing-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listing-description {
  margin-bottom: 28px;
}

.listing-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--ink);
}

.listing-description p {
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-line;
  font-size: 15px;
  margin: 0;
}

.listing-cta-box {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.listing-call-btn {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  text-align: center;
}

.listing-side-panel {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}

.side-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.side-info-item .icon {
  font-size: 28px;
  color: var(--gold);
}

.side-info-item div {
  display: flex;
  flex-direction: column;
}

.side-info-item strong,
.side-info-item a {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.side-info-item small {
  color: var(--muted);
  font-size: 12px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.listing-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.highlight-item .icon {
  color: var(--gold);
  font-size: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .listing-detail-layout {
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .listing-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    box-shadow: 0 0 30px rgba(16, 24, 40, 0.15);
    border-right: 1px solid var(--line);
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-header {
    margin-bottom: 24px;
  }

  .dash-header {
    padding: 0 20px;
  }

  .toggle-sidebar-btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .dash-main {
    padding: 20px;
  }

  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .welcome-card .btn {
    width: 100%;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .links,
  .actions {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: relative;
  }

  .nav.open .links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    z-index: 100;
    gap: 8px;
  }

  .nav.open .actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav.open .actions .btn {
    width: 100%;
  }

  .search-panel,
  .toolbar,
  .layout,
  .dash-shell,
  .dash-content,
  .post-grid,
  .post-grid-full {
    grid-template-columns: 1fr;
  }

  .categories,
  .country-grid,
  .region-list,
  .region-list.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings,
  .stats,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 22px 16px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 680px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .page-title {
    padding: 24px 0 16px;
  }

  .listing-content {
    padding: 18px;
  }

  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .listing-header h1 {
    font-size: 22px;
  }

  .listing-price {
    font-size: 22px;
  }

  .listing-media-wrap,
  .listing-media-img {
    max-height: 360px;
  }
}

@media (max-width: 520px) {

  .categories,
  .country-grid,
  .region-list,
  .region-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) {
  .menu-btn {
    display: none !important;
  }
}