/* Cruisy Control Site - base styles */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --text: #e8e8ec;
  --text-muted: #888;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --border: #2a2a35;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-bar { display: flex; align-items: center; gap: 1rem; }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-link:hover { color: var(--accent); }
.nav-menu-wrap { position: relative; }
.nav-menu-dropdown summary { cursor: pointer; list-style: none; }
.nav-menu-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  min-width: 180px;
  z-index: 100;
}
.nav-dropdown a, .nav-dropdown-btn {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.nav-dropdown-logout { color: var(--accent) !important; }

.main-content { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ——— Premium Control (site-wide: body.control-premium; home adds .home-premium for full-bleed main) ——— */
body.control-premium {
  --hp-deep: #03050c;
  --hp-navy: #0a1022;
  --hp-glass: rgba(18, 24, 38, 0.52);
  --hp-glass-strong: rgba(28, 36, 54, 0.65);
  --hp-line: rgba(255, 255, 255, 0.1);
  --hp-line-blue: rgba(126, 184, 255, 0.22);
  --hp-cyan: #5ee7df;
  --hp-ice: #8ec5ff;
  --hp-crimson: #e84855;
  --hp-text: #f2f5fb;
  --hp-muted: rgba(242, 245, 251, 0.58);
  background: var(--hp-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(94, 231, 223, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 50%, rgba(142, 197, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(232, 72, 85, 0.06), transparent 45%),
    linear-gradient(180deg, var(--hp-navy) 0%, var(--hp-deep) 45%, #020308 100%);
  background-attachment: fixed;
  color: var(--hp-text);
}

body.control-premium .site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1120px;
  min-height: 64px;
  padding: 0 1.25rem 0 1rem;
  margin: 0;
  z-index: 200;
  background: var(--hp-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(142, 197, 255, 0.12) inset;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.control-premium .site-header.control-premium-header--scrolled {
  background: var(--hp-glass-strong);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.control-premium .site-header .nav-link {
  color: var(--hp-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
body.control-premium .site-header .nav-link:hover {
  color: var(--hp-ice);
}
body.control-premium .site-header .nav-link.nav-link-icon {
  width: 2.625rem;
  height: 2.625rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.15rem;
  color: var(--hp-muted);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.control-premium .site-header .nav-link.nav-link-icon:hover {
  color: var(--hp-ice);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hp-line-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
body.control-premium .site-header .nav-link.btn-primary {
  background: linear-gradient(135deg, rgba(94, 231, 223, 0.25), rgba(142, 197, 255, 0.2));
  border: 1px solid var(--hp-line-blue);
  color: var(--hp-text);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  box-shadow: 0 0 20px rgba(94, 231, 223, 0.15);
}
body.control-premium .site-header .nav-link.btn-primary:hover {
  border-color: rgba(142, 197, 255, 0.45);
  color: #fff;
}

body.control-premium .nav-dropdown {
  background: rgba(20, 26, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

body.control-premium:not(.home-premium) .main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.75rem 1.5rem 2.5rem;
}

body.control-premium.home-premium .main-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.control-premium .site-footer {
  padding: 3rem 1.5rem 2.5rem;
  color: var(--hp-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.home-premium-wrap {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 7.5rem 1.5rem 4rem;
  overflow: hidden;
}

.home-premium-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-premium-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: home-premium-float 18s ease-in-out infinite;
}
.home-premium-orb--cyan {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle, rgba(94, 231, 223, 0.35) 0%, transparent 70%);
  top: -8%;
  left: -5%;
  animation-delay: 0s;
}
.home-premium-orb--ice {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  background: radial-gradient(circle, rgba(142, 197, 255, 0.28) 0%, transparent 70%);
  top: 35%;
  right: -10%;
  animation-delay: -6s;
}
.home-premium-orb--crimson {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  background: radial-gradient(circle, rgba(232, 72, 85, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 25%;
  animation-delay: -12s;
}

@keyframes home-premium-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, 3%) scale(1.03); }
  66% { transform: translate(-2%, 1%) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .home-premium-orb {
    animation: none;
  }
  .home-premium-card,
  .home-premium-btn,
  .home-premium-card-arrow {
    transition: none;
  }
  .home-premium-card:hover {
    transform: none;
  }
  .home-premium-btn--primary:hover,
  .home-premium-btn--glass:hover {
    transform: none;
  }
}

.home-premium-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 4.5rem;
  padding: 0 0.5rem;
}

.home-premium-title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff 0%, rgba(242, 245, 251, 0.92) 40%, var(--hp-ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(142, 197, 255, 0.25);
}

.home-premium-lead {
  margin: 0 auto 2.5rem;
  max-width: 28em;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--hp-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-premium-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.home-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home-premium-btn--primary {
  color: #041018;
  background: linear-gradient(145deg, var(--hp-cyan) 0%, #7dd9f0 45%, var(--hp-ice) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 24px rgba(94, 231, 223, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.home-premium-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(94, 231, 223, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.home-premium-btn--glass {
  color: var(--hp-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hp-line-blue);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.home-premium-btn--glass:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 197, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(142, 197, 255, 0.12);
}

.home-premium-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0.25rem 2rem;
}

.home-premium-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--hp-line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(142, 197, 255, 0.08) inset;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(142, 197, 255, 0.35), transparent 40%, rgba(232, 72, 85, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.home-premium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(142, 197, 255, 0.25);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 60px rgba(94, 231, 223, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.home-premium-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--hp-cyan);
  background: linear-gradient(145deg, rgba(94, 231, 223, 0.15), rgba(142, 197, 255, 0.08));
  border-radius: 18px;
  border: 1px solid rgba(142, 197, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-premium-card:nth-child(2) .home-premium-card-icon {
  color: var(--hp-ice);
}
.home-premium-card:nth-child(3) .home-premium-card-icon {
  color: #ff8a9a;
  background: linear-gradient(145deg, rgba(232, 72, 85, 0.18), rgba(142, 197, 255, 0.06));
  border-color: rgba(232, 72, 85, 0.22);
}

.home-premium-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hp-text);
}

.home-premium-card-text {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hp-muted);
}

.home-premium-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hp-ice);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.25s ease;
}
.home-premium-card-link:hover {
  color: var(--hp-cyan);
}
.home-premium-card:hover .home-premium-card-arrow {
  transform: translateX(4px);
}
.home-premium-card-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

@media (max-width: 640px) {
  body.control-premium .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 20px;
    padding: 0 0.75rem;
  }
  .home-premium-wrap {
    padding: 6.5rem 1rem 3rem;
  }
  .home-premium-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.auth-page { max-width: 400px; margin: 2rem auto; }
.auth-page h1 { margin-bottom: 1rem; }
.auth-form .btn { margin-top: 0.5rem; }
.alert { padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: rgba(230,57,70,0.2); color: #ff6b6b; }
.alert-success { background: rgba(72,187,120,0.2); color: #51cf66; }
.text-muted { color: var(--text-muted); }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.form-row .form-group { flex: 1; min-width: 120px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-right: 1rem; }
.profile-header { display: flex; align-items: flex-start; }
.profile-header-with-cover { padding: 0; overflow: hidden; }
.profile-header-cover {
  height: 180px;
  overflow: hidden;
  background-color: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-header-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-header-cover-placeholder { background: linear-gradient(135deg, var(--border) 0%, var(--bg-card) 100%); }
.profile-header-body { padding: 1rem 1.5rem; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.profile-heading { flex: 1; min-width: 0; }

/* Profile page – dark theme (same layout as reference) */
body.profile-dark .main-content { background: var(--bg); }
.profile-page-dark { max-width: 640px; margin: 0 auto; }
.profile-page-dark .profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  margin-bottom: 1rem;
}
.profile-page-dark .profile-card-header { position: relative; }
.profile-page-dark .profile-cover-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.profile-page-dark .profile-cover-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg) 100%);
}
.profile-page-dark .profile-avatar-wrap {
  position: absolute;
  bottom: -44px;
  left: 1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.profile-page-dark .profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.profile-page-dark .profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.profile-page-dark .profile-card-body {
  padding: 3rem 1.5rem 1.5rem;
}
.profile-page-dark .profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.profile-page-dark .profile-role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.profile-page-dark .profile-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.profile-page-dark .profile-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}
.profile-page-dark .profile-metric {
  display: flex;
  flex-direction: column;
}
.profile-page-dark .profile-metric strong {
  font-size: 1.1rem;
  color: var(--text);
}
.profile-page-dark .profile-metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.profile-page-dark .profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.profile-page-dark .profile-about {
  background: var(--bg-card) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 0 1rem;
}
.profile-page-dark .profile-about h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.profile-page-dark .profile-bio-short,
.profile-page-dark .profile-bio-about {
  color: var(--text);
  margin-bottom: 0.75rem;
}
.profile-page-dark .profile-details { margin: 0.5rem 0; }
.profile-page-dark .profile-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  color: var(--text);
}
.profile-page-dark .profile-detail i { color: var(--text-muted); }
.profile-page-dark .profile-detail a { color: var(--accent); }
.profile-page-dark .profile-detail a:hover { color: var(--accent-hover); }
.profile-page-dark .text-muted { color: var(--text-muted); }
.profile-page-dark .profile-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border);
  color: var(--text);
}
.profile-page-dark .profile-section h2 { color: var(--text); }
.profile-page-dark .profile-section a { color: var(--accent); }
.profile-page-dark .profile-section .btn-primary { background: var(--accent); color: #fff; }
.profile-page-dark .profile-section .btn-outline { border-color: var(--border); color: var(--text); }
.profile-page-dark .profile-section .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.profile-page-dark .listing-price { color: var(--accent); }
.club-logo { width: 24px; height: 24px; object-fit: contain; margin-right: 0.5rem; vertical-align: middle; }
.profile-clubs { list-style: none; padding: 0; margin: 0; }
.profile-clubs li { margin-bottom: 0.75rem; }
.profile-clubs li a { display: inline-flex; align-items: center; text-decoration: none; }
.profile-clubs li a:hover { text-decoration: underline; }
.profile-clubs .club-tagline { display: block; font-size: 0.875rem; color: var(--text-muted); margin-left: 2rem; margin-top: 0.25rem; }
.profile-clubs .badge-role { margin-left: 0.5rem; font-size: 0.7rem; }
.club-card { text-decoration: none; color: inherit; display: block; transition: border-color 0.2s; }
.club-card:hover { border-color: var(--accent); }
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-header-row h2 { margin: 0; }
.gallery-inputs { display: flex; flex-direction: column; gap: 0.5rem; }
.listing-img, .product-img, .ride-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; margin-bottom: 0.5rem; }
/* Marketplace cards: same-size thumbnails in grid */
.listings-grid .listing-img,
.products-grid .product-img {
  height: 160px;
  width: 100%;
  aspect-ratio: unset;
  object-fit: cover;
}
.listing-price, .product-price { font-weight: 600; color: var(--accent); }
.marketplace-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.marketplace-header h1 { font-size: 1.75rem; margin: 0 1rem 0 0; }
.marketplace-header .events-search { margin-left: auto; }

.marketplace-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.marketplace-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  width: 12rem;
  min-width: 12rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.marketplace-cat-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.marketplace-cat-card.active {
  border-color: var(--accent);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
}
.marketplace-cat-card .category-icon {
  font-size: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
}
.marketplace-cat-card span {
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
}

.marketplace-tabs { margin: 1rem 0; }
.marketplace-tabs a { margin-right: 1rem; padding: 0.25rem 0.5rem; text-decoration: none; color: var(--text-muted); }
.marketplace-tabs a.active { color: var(--accent); font-weight: 600; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; font-size: 0.8rem; background: var(--border); border-radius: 4px; margin-right: 0.25rem; }
.badge-active { background: rgba(72,187,120,0.3); color: #51cf66; }
.badge-pending { background: rgba(255,193,7,0.2); color: #ffc107; }
.badge-banned { background: rgba(230,57,70,0.2); color: #ff6b6b; }

.admin-dashboard h1 { margin-bottom: 1.5rem; }
.admin-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.admin-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; text-decoration: none; color: var(--text);
}
.admin-card:hover { border-color: var(--accent); color: var(--accent); }
.admin-card i { font-size: 2rem; }

.admin-section h1, .admin-users h1, .admin-users-edit h1 { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.admin-form { max-width: 400px; margin-top: 1rem; }
.form-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.checkbox-label { display: block; margin-bottom: 0.5rem; cursor: pointer; }
.checkbox-label input { margin-right: 0.5rem; }

/* Events page - Sooma-style layout */
.events-page { max-width: 1200px; margin: 0 auto; }
.events-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.events-header h1 { font-size: 1.75rem; margin: 0 1rem 0 0; }
.events-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.events-tab {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.events-tab:hover { color: var(--text); }
.events-tab.active { background: var(--accent); color: #fff; }
.events-search { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.events-search-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.events-search-wrap i { color: var(--text-muted); }
.events-search-input {
  border: none; background: none; color: var(--text);
  min-width: 180px;
}
.events-search-input::placeholder { color: var(--text-muted); }
.events-search-input:focus { outline: none; }

.events-calendar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.calendar-nav h2 { font-size: 1.25rem; margin: 0; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.calendar-dow {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  padding: 0.5rem; text-align: center;
}
.calendar-cell {
  min-height: 80px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.calendar-cell--empty { background: transparent; border-color: transparent; }
.calendar-day-num { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.calendar-event {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event:hover { background: rgba(230, 57, 70, 0.3); }

.events-schedule { margin-top: 1rem; }
.schedule-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.schedule-title { font-size: 1.1rem; margin: 0; color: var(--text-muted); }
.schedule-month-nav { display: flex; align-items: center; gap: 0.5rem; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card-schedule {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.event-card-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg);
}
.event-card-image img { width: 100%; height: 100%; object-fit: cover; }
.event-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-card) 100%);
  color: var(--text-muted);
  font-size: 2.5rem;
}
.event-card-date-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(10, 10, 15, 0.85);
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.event-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.event-card-body h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.event-card-body h3 a { color: var(--text); text-decoration: none; }
.event-card-body h3 a:hover { color: var(--accent); }
.event-card-club { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.event-card-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1rem; flex: 1; line-height: 1.4; }
.events-empty { padding: 2rem; text-align: center; }

/* Public shop page – hero + profile (Facebook-style) */
.shop-public-page { max-width: 900px; margin: 0 auto; }
.shop-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.shop-header-left { flex: 1; min-width: 0; }
.shop-social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.shop-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  padding: 0;
  text-decoration: none;
}
.shop-social-link i { font-size: 1.75rem; }
.shop-hero { margin-bottom: 2rem; }
.shop-hero-banner {
  height: 280px;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-card) 100%);
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-hero-placeholder { font-size: 2rem; color: var(--text-muted); }
.shop-hero-profile-wrap {
  position: relative;
  margin-top: -60px;
  padding: 0 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.shop-hero-profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-card);
  background: var(--bg);
  margin-bottom: 0.5rem;
}
.shop-hero-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}
.shop-hero-title { margin: 0 0 0.25rem; font-size: 1.75rem; }
.shop-hero-desc { color: var(--text-muted); margin: 0 0 1rem; max-width: 600px; }
.shop-section { margin-bottom: 2rem; }
.shop-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.shop-categories-inner { margin-bottom: 0; }
.shop-pages-list { display: flex; flex-direction: column; gap: 1rem; }
.shop-page-card h3 { margin: 0 0 0.5rem; }
.shop-page-body { color: var(--text-muted); font-size: 0.95rem; }
.shop-delivery-list { list-style: none; padding: 0; margin: 0; }
.shop-delivery-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.shop-policy-body { color: var(--text-muted); font-size: 0.95rem; }
.shop-reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.shop-review-card { margin-bottom: 0; }
.shop-review-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.shop-review-rating { color: #f0c14b; }
.shop-dashboard-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.shop-settings-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.shop-settings-row form { margin: 0; }

/* ——— Control premium: inner pages (glass surfaces, type, controls) ——— */
body.control-premium.profile-dark .main-content {
  background: transparent;
}

body.control-premium .main-content h1,
body.control-premium .main-content h2,
body.control-premium .main-content h3 {
  color: var(--hp-text);
}

body.control-premium .nav-menu-trigger {
  color: var(--hp-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}
body.control-premium .nav-menu-trigger:hover {
  color: var(--hp-ice);
  background: rgba(255, 255, 255, 0.06);
}

body.control-premium .nav-dropdown a,
body.control-premium .nav-dropdown .nav-dropdown-btn {
  color: var(--hp-text);
  border-radius: 10px;
}
body.control-premium .nav-dropdown a:hover,
body.control-premium .nav-dropdown .nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.control-premium .card:not(.home-premium-card),
body.control-premium .club-card.card,
body.control-premium .admin-card,
body.control-premium .marketplace-cat-card,
body.control-premium .product-card,
body.control-premium .listing-card.card,
body.control-premium .shop-page-card,
body.control-premium .shop-review-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.022) 100%);
  border: 1px solid var(--hp-line);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: var(--hp-text);
}
body.control-premium .admin-card:hover {
  border-color: rgba(142, 197, 255, 0.35);
  color: var(--hp-ice);
}
body.control-premium .club-card:hover,
body.control-premium .marketplace-cat-card:hover {
  border-color: rgba(142, 197, 255, 0.28);
}
body.control-premium .marketplace-cat-card.active {
  border-color: rgba(94, 231, 223, 0.35);
  box-shadow: 0 0 24px rgba(94, 231, 223, 0.12);
}

body.control-premium .btn-primary {
  background: linear-gradient(145deg, var(--hp-cyan) 0%, #7dd9f0 45%, var(--hp-ice) 100%);
  color: #041018;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 24px rgba(94, 231, 223, 0.25);
}
body.control-premium .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
body.control-premium .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hp-line-blue);
  color: var(--hp-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.control-premium .btn-outline:hover {
  border-color: rgba(142, 197, 255, 0.45);
  color: var(--hp-ice);
}

body.control-premium .form-group input,
body.control-premium .form-group textarea,
body.control-premium .form-group select,
body.control-premium .form-input,
body.control-premium .events-search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  color: var(--hp-text);
}
body.control-premium .form-group input::placeholder,
body.control-premium .form-group textarea::placeholder,
body.control-premium .events-search-input::placeholder {
  color: var(--hp-muted);
}
body.control-premium .form-group label,
body.control-premium .form-hint {
  color: var(--hp-muted);
}

body.control-premium .admin-table th,
body.control-premium .admin-table td {
  border-bottom-color: var(--hp-line);
}
body.control-premium .admin-table th {
  color: var(--hp-muted);
}
body.control-premium .admin-table a {
  color: var(--hp-ice);
}

body.control-premium .text-muted {
  color: var(--hp-muted);
}

body.control-premium .auth-page {
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hp-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
body.control-premium .auth-page > p a,
body.control-premium .auth-page .auth-social a {
  color: var(--hp-ice);
}

body.control-premium .admin-form:not(.card) {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hp-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

body.control-premium .alert {
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.control-premium .alert-error {
  background: rgba(232, 72, 85, 0.15);
  color: #ff9aa8;
}
body.control-premium .alert-success {
  background: rgba(72, 187, 120, 0.15);
  color: #7dffb3;
}

body.control-premium .events-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  color: var(--hp-muted);
}
body.control-premium .events-tab:hover {
  color: var(--hp-text);
}
body.control-premium .events-tab.active {
  background: linear-gradient(135deg, rgba(94, 231, 223, 0.25), rgba(142, 197, 255, 0.2));
  border-color: var(--hp-line-blue);
  color: var(--hp-text);
}
body.control-premium .events-calendar {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hp-line);
  border-radius: 20px;
}
body.control-premium .event-card-body h3 a {
  color: var(--hp-text);
}
body.control-premium .event-card-body h3 a:hover {
  color: var(--hp-ice);
}
body.control-premium .event-card-desc,
body.control-premium .event-card-club {
  color: var(--hp-muted);
}
body.control-premium .marketplace-tabs a {
  color: var(--hp-muted);
}
body.control-premium .marketplace-tabs a.active {
  color: var(--hp-ice);
}

body.control-premium .profile-page-dark .profile-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hp-line);
  border-radius: 22px;
}
body.control-premium .profile-page-dark .profile-cover-placeholder {
  background: linear-gradient(135deg, rgba(142, 197, 255, 0.12), rgba(94, 231, 223, 0.06));
}
body.control-premium .profile-page-dark .profile-avatar-wrap {
  border-color: rgba(18, 24, 38, 0.95);
}

body.control-premium .shop-hero-banner {
  background: linear-gradient(135deg, rgba(142, 197, 255, 0.1), rgba(10, 16, 34, 0.95));
}
body.control-premium .shop-hero-profile-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: var(--hp-line);
  border-radius: 0 0 20px 20px;
}
body.control-premium .shop-hero-profile-img {
  border-color: rgba(28, 36, 54, 0.95);
}
body.control-premium .shop-hero-title {
  color: var(--hp-text);
}
body.control-premium .shop-hero-desc,
body.control-premium .shop-page-body {
  color: var(--hp-muted);
}
body.control-premium .shop-delivery-item,
body.control-premium .shop-settings-row {
  border-bottom-color: var(--hp-line);
}
