:root {
  --bg: #0d0d11;
  --bg-2: #15151b;
  --bg-3: #1d1d26;
  --border: #2a2a36;
  --text: #e9e9ee;
  --text-2: #9999a8;
  --accent: #ff4d8d;
  --accent-2: #c8398b;
  --gold: #ffc857;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav .brand { font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.nav .brand span { color: var(--accent); }
.nav .menu { display: flex; gap: 16px; align-items: center; }
.nav .menu a { color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav .menu a:hover { color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.hero {
  text-align: center; padding: 64px 24px 40px;
  background: radial-gradient(ellipse at top, rgba(255,77,141,.15), transparent 60%);
}
.hero h1 { font-size: 44px; margin: 0 0 12px; letter-spacing: -1px; }
.hero p { color: var(--text-2); font-size: 18px; max-width: 600px; margin: 0 auto; }

.cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin: 32px 0;
}
.cat {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { font-size: 32px; margin-bottom: 8px; }
.cat-name { font-weight: 600; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg-3);
}
.card-body { padding: 14px; }
.card-title { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.card-meta { color: var(--text-2); font-size: 13px; }
.card-price { color: var(--accent); font-weight: 700; margin-top: 8px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge.feat { background: var(--gold); color: #1a1300; }
.badge.gold { background: var(--gold); color: #1a1300; }
.badge.diamond { background: linear-gradient(135deg, #b8e6ff, #d4b3ff); color: #1a1331; }
.badge.silver { background: #9ca3af; color: #11141a; }

button, .btn {
  background: var(--accent); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  cursor: pointer; transition: background .15s;
  font-family: inherit; font-size: 14px;
}
button:hover, .btn:hover { background: var(--accent-2); color: #fff; }
button.ghost, .btn.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
button.ghost:hover, .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

input, textarea, select {
  width: 100%; padding: 10px 12px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
}
label { display: block; margin: 0 0 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field { margin-bottom: 14px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.filters input, .filters select { max-width: 200px; }

.empty {
  text-align: center; padding: 48px 24px;
  color: var(--text-2); border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 18px; box-shadow: var(--shadow); z-index: 100;
}
.toast.error { border-color: var(--red); }
.toast.ok { border-color: var(--green); }

.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0;
}
@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
.gallery { display: grid; gap: 8px; }
.gallery img { width: 100%; border-radius: var(--radius); }

.swipe-card {
  position: relative; max-width: 420px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.swipe-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.swipe-actions { display: flex; gap: 14px; justify-content: center; padding: 16px; }
.swipe-actions button {
  width: 60px; height: 60px; border-radius: 50%; font-size: 24px; padding: 0;
}
.swipe-actions .skip { background: var(--bg-3); border: 1px solid var(--border); color: var(--text); }
.swipe-actions .like { background: var(--accent); }

.tab-bar { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab-bar button {
  background: transparent; color: var(--text-2);
  border: 0; padding: 10px 16px; border-radius: 0;
  border-bottom: 2px solid transparent; font-weight: 600;
}
.tab-bar button.active { color: var(--accent); border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
