/* ============================================================
   VirtualRealityMap.ch — Main Stylesheet
   ============================================================ */

:root {
  --header-bg:    #0f172a;
  --header-h:     64px;
  --bg:           #f0f2f5;
  --card-bg:      #ffffff;
  --primary:      #7c3aed;
  --primary-h:    #6d28d9;
  --primary-rgb:  124,58,237;
  --success:      #16a34a;
  --danger:       #dc2626;
  --warning:      #d97706;
  --accent:       #06b6d4;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:    0 10px 25px -3px rgba(0,0,0,.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--header-bg);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo img { filter: brightness(0) invert(1); }
.logo--footer img { filter: brightness(0) invert(1); opacity: .8; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,.8);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-link--accent { color: #a78bfa; }

.nav-user {
  position: relative;
  cursor: pointer;
}
.nav-user__name {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: background .15s;
}
.nav-user:hover .nav-user__name { background: rgba(255,255,255,.1); }
.nav-user__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
}
.nav-user:hover .nav-user__menu,
.nav-user:focus-within .nav-user__menu { display: block; }
.nav-user__menu a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text);
  font-size: .9rem;
}
.nav-user__menu a:hover { background: var(--bg); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  margin-left: auto;
  padding: .25rem .5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover  { background: var(--primary-h); }
.btn--success  { background: var(--success); color: #fff; }
.btn--success:hover  { background: #15803d; }
.btn--danger   { background: var(--danger);  color: #fff; }
.btn--danger:hover   { background: #b91c1c; }
.btn--outline  { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover  { background: var(--primary); color: #fff; }
.btn--ghost    { color: var(--text-muted); background: transparent; border-color: var(--border); }
.btn--ghost:hover    { background: var(--bg); color: var(--text); }
.btn--sm  { padding: .35rem .85rem; font-size: .82rem; }
.btn--lg  { padding: .75rem 1.75rem; font-size: 1rem; }
.btn--xs  { padding: .2rem .6rem; font-size: .78rem; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c0a3e 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.35) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(6,182,212,.2) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 5rem 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
}
.hero-content .btn { margin: .4rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  padding: 3rem 0;
  color: #fff;
}
.page-hero--sm { padding: 2.5rem 0; }
.page-hero--admin { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 3rem 0; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-head .section-title { margin-bottom: 0; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */

.categories-section { background: #fff; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.category-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
  text-decoration: none;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.category-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.category-card__body { padding: 1.25rem; background: var(--card-bg); }
.category-card__body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.category-card__body p  { color: var(--primary); font-weight: 600; margin-bottom: .25rem; }
.category-card__sub     { color: var(--text-muted); font-size: .88rem; }

/* ============================================================
   LISTING CARDS
   ============================================================ */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.listings-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.listing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }

.listing-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}
.listing-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.listing-card:hover .listing-card__img img { transform: scale(1.05); }
.listing-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

.listing-card__badges {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.listing-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.listing-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.3; }
.listing-card__city { color: var(--text-muted); font-size: .85rem; margin-bottom: .6rem; }
.listing-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.listing-card__price { color: var(--success); font-weight: 700; margin-left: auto; }
.listing-card__system { font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.listing-card__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge--cat { background: rgba(var(--primary-rgb),.15); color: var(--primary); }

.tag {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag--feature { background: rgba(6,182,212,.1); color: var(--accent); border-color: rgba(6,182,212,.3); }
.tag--effect  { background: rgba(22,163,74,.1); color: var(--success); border-color: rgba(22,163,74,.3); }

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section { background: linear-gradient(135deg, #1e1b4b, #0f172a); padding: 4rem 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.8rem; color: #fff; margin-bottom: .5rem; }
.cta-inner p  { color: rgba(255,255,255,.7); max-width: 520px; }

/* ============================================================
   ARCADES PAGE LAYOUT
   ============================================================ */

.arcades-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.filters-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.filters-header h3 { font-size: 1rem; font-weight: 700; }
.filters-clear { font-size: .8rem; color: var(--text-muted); }
.filters-clear:hover { color: var(--danger); }

.filter-group { margin-bottom: 1.25rem; }
.filter-group__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  padding: .25rem 0;
  cursor: pointer;
}
.filter-option input { accent-color: var(--primary); }
.filter-input {
  width: 100%;
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.filter-input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.listings-count { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   LISTING DETAIL
   ============================================================ */

.listing-detail { padding: 2rem 0 4rem; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.listing-detail__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.listing-detail__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.listing-detail__hero-img { width: 100%; height: 400px; object-fit: cover; }
.listing-detail__img-placeholder {
  width: 100%; height: 300px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.listing-detail__name { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.listing-detail__address { color: var(--text-muted); margin-bottom: 1.5rem; }
.listing-detail__desc { font-size: 1.05rem; color: var(--text); line-height: 1.7; margin-bottom: 2rem; }
.listing-detail__section { margin-bottom: 1.75rem; }
.listing-detail__section h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--text-muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }

.listing-map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.info-card__row:last-of-type { border-bottom: none; margin-bottom: .75rem; }
.info-card__label { font-size: .85rem; color: var(--text-muted); }
.info-card__value { font-weight: 600; font-size: .9rem; text-align: right; }
.info-card__price .info-card__value { font-size: 1.4rem; color: var(--success); font-weight: 800; }
.info-card .btn { margin-top: .75rem; }

.related-section { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.related-section h2 { margin-bottom: 1.5rem; }

/* ============================================================
   COMPANIES PAGE
   ============================================================ */

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.company-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.company-card__logo { flex-shrink: 0; }
.company-card__logo img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius-sm); }
.company-card__logo-placeholder {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.company-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.company-card__body p  { font-size: .87rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  padding: 2rem 1.5rem;
}
.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card__header { text-align: center; margin-bottom: 2rem; }
.auth-card__header img { margin: 0 auto 1.25rem; filter: none; }
.auth-card__header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .25rem; }
.auth-card__header p  { color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-card__footer { margin-top: 1.5rem; text-align: center; font-size: .9rem; color: var(--text-muted); }
.auth-card__footer p { margin-bottom: .4rem; }
.auth-card__legal { font-size: .8rem; }

/* ============================================================
   FORMS
   ============================================================ */

.form-wrap { max-width: 820px; }
.submit-form { display: flex; flex-direction: column; gap: 0; }
.form-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.form-group { margin-bottom: 1rem; }
.form-group--sm { flex: 0 0 80px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.form-hint { color: var(--text-muted); font-weight: 400; font-size: .8rem; }
.form-control {
  width: 100%;
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15);
  background: #fff;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.checkbox-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.checkbox-option:hover { background: var(--bg); }
.checkbox-option input { accent-color: var(--primary); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: .5rem;
  flex-wrap: wrap;
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dashboard-header h2 { font-size: 1.3rem; font-weight: 700; }

.dashboard-listings { display: flex; flex-direction: column; gap: 1rem; }
.dashboard-listing-row {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
}
.dashboard-listing-row__img { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); flex-shrink: 0; }
.dashboard-listing-row__img img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-listing-row__img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1e1b4b, #0f172a); }
.dashboard-listing-row__info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.dashboard-listing-row__info p  { font-size: .82rem; color: var(--text-muted); }
.dashboard-listing-row__notes  { color: var(--warning) !important; }
.dashboard-listing-row__actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-badge--pending  { background: rgba(217,119, 6,.12); color: var(--warning); }
.status-badge--approved { background: rgba(22,163,74,.12); color: var(--success); }
.status-badge--rejected { background: rgba(220,38,38,.12); color: var(--danger); }
.status-badge--admin    { background: rgba(var(--primary-rgb),.12); color: var(--primary); }
.status-badge--user     { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--border);
  text-align: center;
}
.stat-card--warning { border-color: var(--warning); }
.stat-card--success { border-color: var(--success); }
.stat-card--danger  { border-color: var(--danger); }
.stat-card__num { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: .25rem; }
.stat-card__label { font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-bottom: .5rem; }
.stat-card__link { font-size: .8rem; color: var(--primary); font-weight: 600; }

.admin-nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-nav-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  border: 2px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.admin-nav-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); text-decoration: none; }
.admin-nav-card--warning:hover { border-color: var(--warning); }
.admin-nav-card__icon { font-size: 2rem; }
.admin-nav-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.admin-nav-card p  { font-size: .82rem; color: var(--text-muted); }

.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.admin-tab {
  padding: .5rem 1.25rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all .15s;
}
.admin-tab:hover   { color: var(--text); text-decoration: none; }
.admin-tab.active  { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--header-bg); color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .75rem 1rem; text-align: left; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.admin-listings { display: flex; flex-direction: column; gap: 1rem; }
.admin-listing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
.admin-listing-card__img { width: 120px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.admin-listing-card__img img { width: 100%; height: 100%; object-fit: cover; }
.admin-listing-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.admin-listing-card__meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .35rem; }
.admin-listing-card__submitter { font-size: .82rem; color: var(--text-muted); }
.admin-listing-card__notes { font-size: .82rem; color: var(--warning); margin-top: .35rem; }
.admin-listing-card__actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }

.inline-form { display: inline-block; }
.inline-notes { margin-top: .4rem; font-size: .85rem; }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}
.alert--success { background: rgba(22,163,74,.1); color: #15803d; border: 1px solid rgba(22,163,74,.3); }
.alert--error   { background: rgba(220,38,38,.1); color: #b91c1c; border: 1px solid rgba(220,38,38,.3); }
.alert--info    { background: rgba(6,182,212,.1);  color: #0891b2; border: 1px solid rgba(6,182,212,.3); }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3    { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.empty-state p     { margin-bottom: 1.25rem; }

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page__icon { font-size: 4rem; margin-bottom: 1rem; }
.error-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.error-page p  { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   PROSE (Privacy Policy etc)
   ============================================================ */

.prose {
  max-width: 720px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose p, .prose address { margin-bottom: 1rem; line-height: 1.75; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,.7);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); margin-top: .75rem; max-width: 280px; }
.footer-links h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.footer-links a  { display: block; color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: .4rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); text-align: center; }

.text-muted { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .arcades-layout { grid-template-columns: 220px 1fr; }
  .listing-detail__grid { grid-template-columns: 1fr 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .main-nav .btn { text-align: center; }
  .site-header { position: relative; }

  .arcades-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }

  .listing-detail__grid  { grid-template-columns: 1fr; }
  .listing-detail__main  { order: 1; }
  .listing-detail__sidebar { order: 2; }
  .info-card { position: static; }

  .dashboard-listing-row { grid-template-columns: 1fr; }
  .dashboard-listing-row__img { display: none; }

  .admin-listing-card { grid-template-columns: 1fr; }
  .admin-listing-card__img { display: none; }
  .admin-listing-card__actions { flex-direction: row; flex-wrap: wrap; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }

  .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .listing-detail__hero-img { height: 250px; }
  .form-row { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
}
