:root {
  --bg: #050507;
  --bg-elevated: rgba(14, 7, 10, 0.72);
  --surface: rgba(18, 8, 12, 0.58);
  --surface-2: rgba(28, 10, 16, 0.68);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-strong: rgba(239, 68, 68, 0.32);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(239, 68, 68, 0.25);
  --border-red: rgba(239, 68, 68, 0.48);
  --accent: #ef4444;
  --accent-bright: #ff4d5a;
  --accent-crimson: #b91c1c;
  --accent-soft: rgba(239, 68, 68, 0.16);
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --text-dim: #9ca3af;
  --success: #4ade80;
  --danger: #f87171;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --radius: 18px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 65% 55% at 15% 8%, rgba(220, 38, 38, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 18%, rgba(185, 28, 28, 0.16), transparent 60%),
    radial-gradient(ellipse 75% 55% at 50% 96%, rgba(127, 29, 29, 0.16), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.18s ease, opacity 0.18s ease; }
a:hover { color: #fecaca; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-monogram {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.34), rgba(127, 29, 29, 0.28));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand-wordmark strong { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--text); }
.brand-wordmark span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }

.lang-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.lang-pill:hover { color: var(--text); }
.lang-pill.active {
  background: rgba(220, 38, 38, 0.28);
  color: #fff;
  border: 1px solid var(--border-red);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.34);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.btn-primary:hover { color: #fff; filter: brightness(1.09); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-outline:hover { border-color: var(--border-red); background: rgba(239, 68, 68, 0.16); color: #fff; }

/* Minimalist Home & Tab Navigation */
.minimal-home {
  padding: 24px 0 44px;
}
.minimal-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 26px;
}
.minimal-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.minimal-subtitle {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.mode-pills {
  display: inline-flex;
  background: rgba(18, 8, 12, 0.65);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 7px 17px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.mode-pill:hover { color: var(--text); }
.mode-pill.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.32);
}

/* Tinder Swipe Deck */
.swipe-stage {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swipe-deck {
  position: relative;
  width: 100%;
  height: 510px;
  touch-action: pan-y;
  user-select: none;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(16, 7, 10, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(239, 68, 68, 0.08);
  cursor: grab;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  will-change: transform;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card[data-depth="1"] { transform: scale(0.95) translateY(14px); opacity: 0.72; pointer-events: none; }
.swipe-card[data-depth="2"] { transform: scale(0.90) translateY(28px); opacity: 0.42; pointer-events: none; }
.swipe-card[data-depth="hidden"] { opacity: 0; pointer-events: none; transform: scale(0.86) translateY(34px); }

.swipe-photo-wrap {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a0b0e, #070506);
  display: flex;
  align-items: center;
  justify-content: center;
}
.swipe-photo-wrap img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-photo-placeholder {
  font-family: var(--font-serif);
  font-size: 72px;
  color: rgba(239, 68, 68, 0.32);
}

.photo-bars {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 6;
}
.photo-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.15s ease;
}
.photo-bar.active { background: #ef4444; }

.photo-tap-zones {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62%;
  display: flex;
  z-index: 5;
}
.photo-tap-zones > div { flex: 1; }

.swipe-stamp {
  position: absolute;
  top: 38px;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  z-index: 8;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.swipe-stamp.like {
  left: 20px;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.26);
  border: 2px solid #ef4444;
  transform: rotate(-12deg);
}
.swipe-stamp.pass {
  right: 20px;
  color: #e4e4e7;
  background: rgba(24, 24, 27, 0.55);
  border: 2px solid #71717a;
  transform: rotate(12deg);
}

.swipe-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.80) 45%, rgba(5, 5, 7, 0.96) 100%);
  z-index: 6;
}
.swipe-name { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin: 0 0 2px; color: #fff; line-height: 1.15; }
.swipe-sub { font-size: 12px; color: var(--accent-bright); margin-bottom: 10px; }
.swipe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.glass-chip {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.swipe-services {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swipe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.ctrl-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(20, 10, 12, 0.72);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.ctrl-btn:hover { transform: translateY(-2px) scale(1.05); }
.ctrl-btn.sm { width: 44px; height: 44px; font-size: 16px; color: var(--text-soft); }
.ctrl-btn.pass:hover { border-color: #a1a1aa; color: #fff; background: rgba(63, 63, 70, 0.45); }
.ctrl-btn.like { width: 62px; height: 62px; font-size: 24px; border-color: var(--border-red); color: var(--accent-bright); background: rgba(220, 38, 38, 0.18); box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25); }
.ctrl-btn.like:hover { background: rgba(239, 68, 68, 0.35); color: #fff; }
.ctrl-btn.info:hover { border-color: var(--border-red); color: var(--accent-bright); background: var(--accent-soft); }

/* Match Modal */
.match-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 7, 0.74);
  backdrop-filter: blur(16px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 950;
}
.match-modal-backdrop.open { display: flex; }
.match-modal {
  max-width: 390px; width: 100%;
  background: rgba(18, 8, 12, 0.85);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border-strong);
  border-radius: 24px; padding: 28px 24px; text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

/* Shared Glassmorphic Cards & Listings Feed */
.section-block { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 0; line-height: 1.15; }
.section-subtitle { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 12px; }
.card-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 8px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.two-col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.editorial-card, .prose-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
}
.prose-shell { max-width: 840px; margin: 0 auto; }
.prose-card h1 { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin: 0 0 12px; line-height: 1.15; }
.prose-card h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 24px 0 10px; color: var(--accent-bright); }
.prose-card p, .prose-card li { color: var(--text-soft); }

.listing-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.listing-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.18);
}
.listing-media {
  height: 280px;
  background: linear-gradient(145deg, #16090c, #070506);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.28s ease; }
.listing-card:hover .listing-media img { transform: scale(1.03); }
.listing-media-placeholder { font-family: var(--font-serif); font-size: 52px; color: rgba(239, 68, 68, 0.35); }
.verified-chip {
  position: absolute; top: 12px; left: 12px;
  background: rgba(5, 5, 7, 0.72); backdrop-filter: blur(10px);
  border: 1px solid var(--border-red); color: #fecaca;
  padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.listing-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.listing-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; font-family: var(--font-serif); }
.listing-title a { color: var(--text); }
.listing-meta { font-size: 12px; color: var(--accent-bright); margin-bottom: 8px; }
.listing-summary { margin: 0 0 12px; font-size: 13px; color: var(--text-soft); flex: 1; }
.listing-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }

.ad-photo-card {
  padding: 0;
  min-height: 360px;
}
.ad-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.ad-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-contact { color: var(--text-soft); font-weight: 500; }
.footer-contact a { color: var(--accent-bright); }

/* Profile Detail Gallery */
.profile-hero-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border-strong);
  margin-bottom: 12px;
  display: block;
}
.profile-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.profile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-thumb.active, .profile-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Forms */
.form-field { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: rgba(12, 6, 8, 0.72);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.form-input:focus { border-color: var(--accent); background: rgba(20, 8, 12, 0.88); }

.flash-banner {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.flash-banner.success { border-left-color: var(--success); color: #bbf7d0; }
.flash-banner.error { border-left-color: var(--danger); color: #fecaca; }

/* Minimal Footer */
.site-footer {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-border);
  padding: 26px 0;
  margin-top: 48px;
  color: var(--text-dim);
  font-size: 12px;
}
.footer-minimal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-minimal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-minimal-links a { color: var(--text-soft); }

/* Translucent Red & Black Language Selection Screen */
.lang-gate-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 990;
}
.lang-gate-backdrop.open { display: flex; }
.lang-gate-box {
  max-width: 440px; width: 100%;
  background: rgba(16, 7, 10, 0.86);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-red);
  border-radius: 26px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(220, 38, 38, 0.16);
}
.lang-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lang-gate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: #fff;
  transition: all 0.18s ease;
}
.lang-gate-btn strong { font-size: 16px; font-weight: 700; }
.lang-gate-btn span { font-size: 11px; color: var(--text-dim); }
.lang-gate-btn:hover, .lang-gate-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(185, 28, 28, 0.24));
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile Optimization */
@media (max-width: 820px) {
  .container { padding: 0 14px; }
  .two-col-grid { grid-template-columns: 1fr; }
  .prose-card, .editorial-card { padding: 20px 16px; }
  .swipe-deck { height: 470px; }
  .listing-media { height: 240px; }
}
