:root {
  --primary: #d4af37;
  --primary-hover: #b5952f;
  --danger: #ef4444;
  --bg: #0f0f13;
  --surface: #18181f;
  --card: #1f1f28;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #2d2d3a;
  --radius: 12px;
  --max-width: 1200px;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand img { max-height: 36px; border-radius: 6px; }

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-weight: 500;
}

.site-header nav a { color: var(--text); }
.site-header nav a:hover { color: var(--primary); }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--muted); margin: 0 0.75rem; }
.site-footer a:hover { color: var(--primary); }

main { min-height: 60vh; }

section { padding: 3rem 0; }

.hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.1), transparent 40%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-bar input::placeholder { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212,175,55,0.3);
}

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

.listing-card, .category-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.listing-card:hover, .category-card:hover { text-decoration: none; }

.listing-card h3, .category-card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.2rem; }

.listing-card .small, .category-card .small { color: var(--muted); }

.small { color: var(--muted); font-size: 0.875rem; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--primary);
  color: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, filter 0.15s;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #000;
  box-shadow: 0 4px 14px rgba(212,175,55,0.25);
}

.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

form label {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-top: 0.35rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

textarea { min-height: 100px; resize: vertical; }

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.auth-page .card { width: 100%; max-width: 440px; }

.age-gate {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  padding: 2rem;
}

.age-gate .card { max-width: 500px; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.alert-success { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.alert-error { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.3); }
.alert-warning { background: rgba(234,179,8,0.1); color: #facc15; border-color: rgba(234,179,8,0.3); }

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header a { color: var(--text); margin-left: 1rem; font-weight: 500; }
.admin-header a:hover { color: var(--primary); }

.admin .stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.admin .stats .card { text-align: center; }
.admin .stats strong { display: block; font-size: 2rem; color: var(--primary); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td { text-align: left; padding: 0.9rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; color: var(--primary); }
tr:hover { background: rgba(212,175,55,0.03); }

.center { text-align: center; padding: 4rem 1rem; }

.page .content, .profile .content {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lead { font-size: 1.25rem; color: var(--muted); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

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

.image-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.pricing .card { text-align: center; }
.pricing .price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 0.5rem 0; }

@media (max-width: 640px) {
  .site-header .container, .admin-header .container { flex-direction: column; align-items: flex-start; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .search-bar { flex-direction: column; }
  .hero { padding: 3rem 0; }
  section { padding: 2rem 0; }
}
