/* ==========================================================================
   Vanitee Haven — Design System
   Luxury dark / gold, mobile-first, PWA-aware.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ---- Color ---- */
  --bg-primary: #070707;
  --bg-secondary: #121212;
  --bg-tertiary: #1b1b1b;
  --bg-elevated: #181818;

  --accent-gold: #c5a059;
  --accent-gold-hover: #e5c158;
  --accent-gold-dark: #8c6e3b;
  --accent-gold-glow: rgba(197, 160, 89, 0.22);

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-strong: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(197, 160, 89, 0.18);

  --glass-bg: rgba(18, 18, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(16px);

  --success: #6cbf6c;
  --error: #e2716c;

  /* ---- Type ---- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Fluid type scale — clamp(min, preferred, max) so text scales smoothly
     across viewport instead of jumping at breakpoints. */
  --fs-xs:   clamp(0.72rem, 0.69rem + 0.15vw, 0.78rem);
  --fs-sm:   clamp(0.82rem, 0.79rem + 0.15vw, 0.88rem);
  --fs-base: clamp(0.95rem, 0.92rem + 0.15vw, 1rem);
  --fs-md:   clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl:   clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --fs-2xl:  clamp(1.9rem, 1.6rem + 1.6vw, 2.6rem);
  --fs-3xl:  clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem);

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* ---- Shape / motion ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;

  /* ---- Layout ---- */
  --max-width: 1200px;
  --header-h: 64px;
  --touch-target: 44px;

  /* PWA safe areas (notch / home indicator) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.2;
}

p { color: var(--text-secondary); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

button, input, select, textarea { font-family: inherit; }

/* Custom scrollbar (webkit) — thin, unobtrusive, on-brand */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(197, 160, 89, 0.5); }

/* Visible, on-brand focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-fade-up { animation: fadeInUp 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: max(var(--sp-5), var(--safe-left)) max(var(--sp-5), var(--safe-right));
}

@media (min-width: 640px) {
  .container { padding-inline: var(--sp-8); }
}

.text-gold {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #f5ecd1 0%, var(--accent-gold) 60%, var(--accent-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons — minimum 44px touch target on every interactive control
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.35);
}

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

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.03);
}

.btn-gold-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-gold-outline i { color: inherit; }

.btn-gold-outline:hover:not(:disabled) {
  background: rgba(197, 160, 89, 0.1);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.22);
}

.btn-gold-outline.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(197, 160, 89, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   Surfaces
   ========================================================================== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.card-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .card-panel { padding: var(--sp-8); }
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding-top: max(var(--sp-3), var(--safe-top));
  padding-bottom: var(--sp-3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo i { color: var(--accent-gold); }

#main-nav {
  position: relative;
  flex-shrink: 0;
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: var(--touch-target);
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-md);
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu-btn:hover,
#main-nav.open .nav-menu-btn {
  background: rgba(197, 160, 89, 0.16);
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.22);
}

.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 150;
}

#main-nav.open .nav-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link i {
  width: 1.15rem;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.language-switcher i {
  width: 1.15rem;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.language-switcher select,
.language-switcher .goog-te-combo {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-width: 110px;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.language-switcher select option,
.language-switcher .goog-te-combo option {
  background: #111;
  color: var(--text-primary);
}

.goog-te-gadget {
  font-family: inherit !important;
  color: var(--text-primary) !important;
}

.goog-te-gadget-simple {
  background: transparent !important;
  border: none !important;
}

.goog-te-menu-frame {
  background: #111 !important;
}

.goog-te-menu2 {
  background: #111 !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item:focus div {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.goog-te-menu2-item:hover div {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Hide Google Translate chrome */
.goog-te-banner-frame,
#goog-gt-tt {
  display: none !important;
}

/* Restyle the inline language widget to match the app theme */
#google_translate_element {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

#google_translate_element * {
  pointer-events: auto !important;
}

#google_translate_element .goog-te-combo {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(197, 160, 89, 0.25) !important;
  color: var(--text-primary) !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.35rem 0.6rem !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  outline: none !important;
  min-width: 120px !important;
}

#google_translate_element .goog-te-combo option {
  background: #111 !important;
  color: var(--text-primary) !important;
}

/* Hide any floating Google Translate bars */
body > .goog-te-banner-frame {
  display: none !important;
}

#google_translate_element {
  display: inline-flex !important;
}

/* On very narrow screens, keep the header tidy — the menu button is small,
   so the dropdown handles overflow itself. */
@media (max-width: 420px) {
  .nav-menu-dropdown { min-width: 200px; }
  .logo span:not(.text-gold) { display: none; } /* keep icon + gold wordmark only */
}

/* ==========================================================================
   SPA view containers
   ========================================================================== */

.view-container {
  padding: 1rem;
  min-height: calc(80vh - var(--header-h));
}

.view-section { display: none; }

.view-section.active {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}

/* ==========================================================================
   Discover / home hero
   ========================================================================== */

.home-hero {
  text-align: center;
  padding: var(--sp-10) var(--sp-2) var(--sp-8) var(--sp-2);
  background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.07) 0%, transparent 65%);
}

.home-hero h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
}

.home-hero p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto var(--sp-8) auto;
  font-weight: 300;
}

@media (min-width: 768px) {
  .home-hero { padding: var(--sp-16) var(--sp-4) var(--sp-10) var(--sp-4); }
}

/* Category filters — horizontal scroll on narrow screens instead of an
   unpredictable multi-row wrap; snaps like a native chip picker. */
.filter-wrapper {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: var(--sp-1);
  justify-content: flex-start;
}

.filter-wrapper::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .filter-wrapper { justify-content: center; flex-wrap: wrap; overflow-x: visible; }
}

.filter-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  min-height: var(--touch-target);
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-gold);
  color: var(--text-primary);
  background: rgba(197, 160, 89, 0.07);
}

/* ==========================================================================
   Profiles grid & cards
   ========================================================================== */

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .profiles-grid { gap: var(--sp-6); }
}

.profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(197, 160, 89, 0.1);
}

.card-banner {
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
  position: relative;
}

.card-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 65%;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
}

.card-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  overflow: hidden;
  margin: -36px auto 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
  background-color: var(--bg-tertiary);
}

.card-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card-content {
  padding: var(--sp-5);
  padding-top: var(--sp-3);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
}

.card-name {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.card-name i { color: var(--accent-gold); font-size: 0.9em; }

.card-category {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.card-bio {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Profile detail header
   ========================================================================== */

.profile-detail-header {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .profile-detail-header { min-height: 340px; margin-bottom: var(--sp-10); }
}

.profile-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
  z-index: 1;
}

.profile-cover-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,0.97) 10%, rgba(7,7,7,0.55) 55%, rgba(7,7,7,0.15) 100%);
}

.profile-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .profile-header-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--sp-10);
    gap: var(--sp-8);
  }
}

.profile-avatar-large {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  flex-shrink: 0;
  background-color: var(--bg-secondary);
}

@media (min-width: 768px) {
  .profile-avatar-large { width: 130px; height: 130px; border-width: 4px; }
}

.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .profile-name-row { justify-content: flex-start; }
}

.profile-name-row h1 { font-size: var(--fs-2xl); font-weight: 700; }

.profile-socials-list {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  justify-content: center;
}

@media (min-width: 768px) {
  .profile-socials-list { justify-content: flex-start; }
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.profile-social-link:hover { color: var(--accent-gold); transform: translateY(-2px); }

/* ==========================================================================
   Tabs
   ========================================================================== */

.profile-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
  gap: var(--sp-6);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.profile-tabs-nav::-webkit-scrollbar { display: none; }

.tab-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 500;
  min-height: var(--touch-target);
  padding: 0 0.1rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tab-link:hover { color: var(--text-primary); }
.tab-link.active { color: var(--accent-gold); }

.tab-link .lock-icon { margin-right: 6px; font-size: 0.85em; }

.tab-link.is-locked {
  opacity: 0.5;
  filter: grayscale(0.5);
  cursor: not-allowed;
  color: var(--text-secondary);
}
.tab-link.is-locked:hover { color: var(--text-secondary); }

.tab-link.is-locked.disabled-cursor { pointer-events: none; }

.tab-link.active.is-locked { opacity: 1; filter: none; color: var(--accent-gold); cursor: pointer; }

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.profile-tab-content { display: none; }

.profile-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

/* ==========================================================================
   Highlights tab
   ========================================================================== */

.highlights-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .highlights-container { grid-template-columns: 2fr 1fr; gap: var(--sp-10); }
}

/* ==========================================================================
   Contact Privately (members only)
   ========================================================================== */

.contact-locked-panel {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}
.contact-locked-panel .contact-lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}
.contact-card .contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
}
.contact-card .contact-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}
.contact-card .contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.bio-card h3, .highlights-list-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--sp-2);
}

.timeline-item {
  position: relative;
  padding-left: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::after { display: none; }

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  color: var(--accent-gold);
  font-weight: 700;
}

.timeline-title { font-weight: 600; font-size: var(--fs-base); margin-top: 0.15rem; }

/* ==========================================================================
   Memberships
   ========================================================================== */

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .membership-grid { gap: var(--sp-6); }
}

.membership-card {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .membership-card { padding: var(--sp-8); }
}

.membership-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }

.membership-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.membership-tier { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }

.membership-price {
  font-size: var(--fs-2xl);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.membership-price span { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 400; }

.membership-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.perks-list li i {
  color: var(--success);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.perks-list li span {
  display: block;
  flex: 1;
  min-width: 0;
  white-space: pre-line;
  word-break: break-word;
}

/* ==========================================================================
   Listings (events / shows / meet & greet)
   ========================================================================== */

.listing-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.ws-tab-contents{
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.ws-tab-panel { display: none; }
.ws-tab-panel.active { display: block; animation: fadeIn 0.3s ease forwards; }
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  gap: var(--sp-4);
  transition: var(--transition-smooth);
}

@media (min-width: 680px) {
  .listing-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-6);
    gap: var(--sp-6);
  }
}

.listing-card:hover { border-color: var(--accent-gold); }

.listing-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

@media (min-width: 680px) {
  .listing-thumb {
    width: 120px;
    height: 84px;
  }
}

.listing-date-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  align-self: flex-start;
}

@media (min-width: 680px) {
  .listing-date-block {
    flex-direction: column;
    gap: 0;
    padding: var(--sp-3);
    min-width: 68px;
    text-align: center;
    align-self: center;
  }
}

.date-month {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
}

.date-day { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; line-height: 1.1; }

.listing-details { flex-grow: 1; width: 100%; min-width: 0; }

.listing-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 0.3rem;
  overflow-wrap: break-word;
}

.listing-meta-row {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.listing-action-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-4);
  border-top: 1px solid var(--border-color);
  padding-top: var(--sp-4);
}

@media (min-width: 680px) {
  .listing-action-block {
    width: auto;
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
    gap: var(--sp-6);
  }
}

.listing-price { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; }

/* ==========================================================================
   Media catalog (music / movies)
   ========================================================================== */

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .merch-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-5); }
}

.merch-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.merch-card:hover { border-color: var(--accent-gold); transform: translateY(-3px); }

.merch-img-wrap {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
}

.merch-content {
  padding: var(--sp-4);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-2);
}

.merch-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.merch-bottom { display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   Fan portal
   ========================================================================== */

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .portal-grid { grid-template-columns: 1fr 2fr; gap: var(--sp-10); align-items: start; }
}

.user-card {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
}

@media (min-width: 768px) {
  .user-card { padding: var(--sp-10); }
}

.user-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  overflow: hidden;
  margin-bottom: var(--sp-4);
  background-color: var(--bg-tertiary);
}

.user-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.user-name { font-size: var(--fs-lg); font-weight: 600; }
.user-email { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-5); word-break: break-all; }

.portal-tabs-content h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.portal-section-block { margin-bottom: var(--sp-10); }
.portal-section-block:last-child { margin-bottom: 0; }

/* ==========================================================================
   Digital pass
   ========================================================================== */

.digital-pass {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, #0d0d0d 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.digital-pass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold));
}

@media (min-width: 580px) {
  .digital-pass {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: var(--sp-6);
  }
  .digital-pass::before { width: 4px; height: 100%; background: linear-gradient(180deg, var(--accent-gold-dark), var(--accent-gold)); }
}

.pass-details h3 { font-size: var(--fs-lg); margin-bottom: 0.25rem; }

.pass-creator {
  color: var(--accent-gold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  display: block;
}

.pass-meta { font-size: var(--fs-sm); color: var(--text-secondary); }

.pass-qr {
  background: white;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pass-qr img { width: 100%; height: 100%; }

.pass-actions {
  display: flex;
  flex-shrink: 0;
}

@media (min-width: 580px) {
  .pass-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
  }
}

.btn-download-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-download-card:hover:not(:disabled) {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-download-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Auth
   ========================================================================== */

.auth-wrapper {
  max-width: 420px;
  margin: var(--sp-8) auto;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .auth-wrapper { margin: var(--sp-12) auto; padding: var(--sp-10); }
}

.auth-title { font-size: var(--fs-xl); font-weight: 700; text-align: center; margin-bottom: 0.4rem; text-transform: uppercase; }

.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--sp-8); }

.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.form-control {
  width: 100%;
  min-height: var(--touch-target);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px min prevents iOS auto-zoom on focus */
  transition: var(--transition-smooth);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.15rem;
  padding-right: 2.5rem;
}

.auth-toggle { text-align: center; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-secondary); }

.forgot-link:hover { color: var(--accent-gold); }

.auth-toggle-link {
  color: var(--accent-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
}

/* ==========================================================================
   Modals — bottom sheet on mobile, centered card from tablet up.
   A full-width overlay card with big padding reads great on desktop and
   cramped/awkward on a phone; anchoring it to the bottom edge like a
   native sheet is the actual fix for "ugly on mobile".
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: var(--sp-5); }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 480px;
  padding: var(--sp-6) var(--sp-5) max(var(--sp-6), calc(var(--sp-6) + var(--safe-bottom)));
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: slideUpSheet 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.modal-content::before {
  /* drag-handle affordance, mobile only */
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-color-strong);
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    animation: fadeInUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  }
  .modal-content::before { display: none; }
}

.modal-close-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: var(--touch-target);
  height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close-btn:hover { color: var(--text-primary); }

/* ==========================================================================
   Uploads
   ========================================================================== */

.upload-preview-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: var(--sp-5);
  position: relative;
}

.upload-preview-area:hover { border-color: var(--accent-gold); background: rgba(255, 255, 255, 0.02); }

.upload-icon { font-size: 2rem; color: var(--text-secondary); margin-bottom: var(--sp-2); }

.upload-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: var(--sp-3);
  display: none;
}

/* ==========================================================================
   Toasts — sit above the bottom safe area and any bottom-sheet chrome
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: calc(var(--sp-5) + var(--safe-bottom));
  left: max(var(--sp-4), var(--safe-left));
  right: max(var(--sp-4), var(--safe-right));
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-3);
  pointer-events: none;
}

@media (min-width: 580px) {
  .toast-container { right: auto; max-width: 380px; }
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast.error { border-left-color: var(--error); }
.toast.success { border-left-color: var(--success); }

/* ==========================================================================
   Offline banner
   ========================================================================== */

.offline-banner {
  background: #8c3a36;
  color: white;
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  padding-top: max(var(--sp-2), var(--safe-top));
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
  z-index: 999;
}

.offline-banner.active { display: block; }

/* ==========================================================================
   Loading overlay
   ========================================================================== */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  transition: opacity 0.4s ease;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(197, 160, 89, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}
/* Google's own widget: functional, but invisible & out of flow */
.goog-te-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}
.goog-te-banner-frame, #goog-gt-tt, .skiptranslate > iframe {
  display: none !important;
}
body { top: 0 !important; } /* Google sometimes pushes body down */

/* ---- Your custom switcher ---- */
.lang-switcher {
  position: relative;
  z-index: 5;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.lang-switcher-btn i:first-child { color: var(--accent-gold); }

.lang-switcher-caret {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher-caret { transform: rotate(180deg); }

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lang-switcher-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang-option:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

.lang-option.active {
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
}
