/* ===================================
   FNDR — Design System v2
   Palette (unchanged): Slate / Rose / Emerald
   =================================== */

:root {
  /* Backgrounds — slate scale */
  --navy:        #0f172a;
  --navy-2:      #1e293b;
  --navy-3:      #334155;

  /* Brand — rose (kept under its historical name --gold) */
  --gold:        #f43f5e;
  --gold-lt:     #fb7185;
  --gold-glow:   rgba(244, 63, 94, 0.22);

  /* Accents */
  --blue:        #3b82f6;
  --blue-lt:     #60a5fa;
  --green:       #10b981;
  --red:         #ef4444;

  /* Text & surfaces */
  --white:       #f1f5f9;
  --white-dim:   rgba(241, 245, 249, 0.62);
  --white-faint: rgba(241, 245, 249, 0.06);
  --border:      rgba(241, 245, 249, 0.08);
  --border-m:    rgba(241, 245, 249, 0.16);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 40px rgba(2, 6, 23, 0.45);
  --shadow-rose: 0 10px 30px rgba(244, 63, 94, 0.28);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); }

::selection { background: rgba(244, 63, 94, 0.35); }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ===================================
   HEADER & NAV
   =================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}

.nav-link,
.nav-links a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-links a:hover { color: var(--white); background: var(--white-faint); }

.nav-link--active {
  color: var(--gold-lt) !important;
  background: rgba(244, 63, 94, 0.1) !important;
}

.nav-user { font-weight: 600; color: var(--white); }

.nav-login {
  border: 1px solid var(--border-m);
}

.nav-logout-form { display: inline; margin: 0; }

.nav-logout-form button {
  background: none;
  border: 1px solid var(--border-m);
  color: var(--white-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-logout-form button:hover { color: var(--white); background: var(--white-faint); }

.nav-cta {
  background: linear-gradient(120deg, var(--gold), var(--gold-lt)) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  transition: box-shadow 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-rose);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  margin-left: auto;
}

/* ===================================
   HERO (homepage)
   =================================== */

.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 90px;
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 25%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 480px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.hero-content {
  position: relative;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  background: var(--white-faint);
  border: 1px solid var(--border-m);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-accent {
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-lt) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--white-dim);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 26px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-dim);
}

.hero-note::before {
  content: "●";
  color: var(--green);
  font-size: 0.6rem;
  margin-right: 8px;
  vertical-align: 2px;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(120deg, var(--gold), var(--gold-lt));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s, filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-rose);
}

.btn-primary.btn-lg { font-size: 1.08rem; padding: 16px 38px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-m);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: var(--white-faint); border-color: rgba(241, 245, 249, 0.3); }

.btn-invest {
  display: inline-flex;
  align-items: center;
  background: var(--white-faint);
  border: 1px solid var(--border-m);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-invest:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ===================================
   SECTIONS
   =================================== */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  width: 100%;
}

.section-header .section-title { width: auto; }

.section-more {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-lt);
  transition: color 0.2s;
}

.section-more:hover { color: var(--white); }

/* ===================================
   INVESTMENT CARDS
   =================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cards-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.inv-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.inv-card:hover {
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.inv-card--featured {
  border-color: rgba(244, 63, 94, 0.25);
  background: linear-gradient(160deg, var(--navy-2) 55%, rgba(244, 63, 94, 0.06) 100%);
}

/* Image header */
.inv-card-img {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  overflow: hidden;
}

.inv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.inv-card:hover .inv-card-img img { transform: scale(1.05); }

.inv-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 45%);
  pointer-events: none;
}

.inv-card-img--fallback {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.5) 0%, var(--navy-3) 100%);
}

.inv-card-img .inv-cat,
.inv-card-img .inv-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.inv-card-img .inv-cat { left: 12px; }
.inv-card-img .inv-badge { right: 12px; }

.inv-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(241, 245, 249, 0.2);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.inv-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(244, 63, 94, 0.9);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.inv-badge--demo { background: rgba(100, 116, 139, 0.85); }

.inv-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.inv-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.inv-desc {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.55;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inv-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white-dim);
  background: var(--white-faint);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* Progress */
.inv-progress-wrap { display: flex; flex-direction: column; gap: 6px; }

.inv-progress-bar {
  height: 6px;
  background: var(--white-faint);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.inv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

.inv-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
}

.inv-raised { color: var(--white-dim); }
.inv-pct { color: var(--gold-lt); font-weight: 700; }

/* Details grid */
.inv-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.inv-detail { display: flex; flex-direction: column; gap: 2px; }
.inv-detail-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--white-dim); }
.inv-detail-val { font-size: 0.9rem; font-weight: 700; }
.inv-urgent { color: var(--gold-lt); }

/* Footer */
.inv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.inv-founder {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.inv-founder-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-location { font-size: 0.7rem; color: var(--white-dim); }

/* ===================================
   LISTING DETAIL (business plan + owner)
   =================================== */

.listing-detail-section { padding-top: 48px; padding-bottom: 0; }

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.listing-detail-main {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.listing-plan-text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--white-dim);
  margin-bottom: 24px;
  white-space: pre-line;
}

.inv-details--detail {
  grid-template-columns: repeat(5, 1fr);
  background: var(--navy);
}

.listing-detail-owner {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.owner-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

.inv-avatar--lg { width: 64px; height: 64px; font-size: 1.6rem; margin-bottom: 4px; }

.owner-name { font-size: 1rem; font-weight: 700; color: var(--white); }

.owner-bio {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-top: 8px;
}

.owner-email {
  font-size: 0.8rem;
  color: var(--gold-lt);
  margin-top: 6px;
}

@media (max-width: 860px) {
  .listing-detail-grid { grid-template-columns: 1fr; }
  .inv-details--detail { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================
   HOW IT WORKS
   =================================== */

.how-section {
  background: linear-gradient(180deg, var(--navy-2) 0%, rgba(30, 41, 59, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: calc(1200px - 48px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (min-width: 769px) {
  .how-section {
    margin-left: auto;
    margin-right: auto;
    padding: 60px 48px;
  }
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.how-track {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.how-step { flex: 1; }

.how-step .how-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--white-faint);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p { font-size: 0.83rem; color: var(--white-dim); line-height: 1.6; }

.how-arrow {
  font-size: 1.1rem;
  color: var(--border-m);
  flex-shrink: 0;
  align-self: center;
  margin-top: -20px;
}

.how-divider-v {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.how-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.how-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.how-label--investor { background: rgba(59, 130, 246, 0.15); color: var(--blue-lt); }
.how-label--founder  { background: rgba(244, 63, 94, 0.15); color: var(--gold-lt); }

/* ===================================
   CTA BAND
   =================================== */

.cta-band {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 90px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 360px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-inner p { color: var(--white-dim); font-size: 1.05rem; margin-bottom: 32px; }

/* ===================================
   PAGE HERO (inner pages)
   =================================== */

.page-hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero--sm { padding: 52px 24px; }

.page-hero-content { position: relative; }

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-hero-content p { color: var(--white-dim); font-size: 1.02rem; }

.page-hero-content .inv-badge { display: inline-block; margin-bottom: 14px; }

/* ===================================
   FILTERS
   =================================== */

.list-section { padding-top: 48px; }

.filters-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--white-faint);
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 17px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover { border-color: var(--gold); color: var(--white); }

.filter-btn--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ===================================
   FORMS (submit / invest)
   =================================== */

.submit-section { max-width: 1000px; padding-top: 48px; }

.submit-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.submit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-block {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-icon { font-size: 1.5rem; margin-bottom: 10px; }

.sidebar-block h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sidebar-block p { font-size: 0.82rem; color: var(--white-dim); line-height: 1.6; }

.submit-form { display: flex; flex-direction: column; gap: 28px; }

.form-section {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-lt);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(241, 245, 249, 0.28); }

.form-group select option { background: var(--navy-2); }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.form-consent { display: flex; gap: 12px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--white-dim);
  cursor: pointer;
}

.checkbox-label input { margin-top: 3px; accent-color: var(--gold); }
.checkbox-label a { color: var(--gold-lt); text-decoration: underline; }

.btn-submit { align-self: flex-start; }

.submit-form-error { margin-bottom: 0; }

/* ===================================
   AUTH PAGES (login / register)
   =================================== */

.auth-section {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 410px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
}

.submit-auth-gate { max-width: none; align-self: start; }

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-icon { font-size: 2rem; margin-bottom: 10px; }

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-header p { font-size: 0.85rem; color: var(--white-dim); }

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.auth-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 20px;
}

.auth-switch a { color: var(--gold-lt); font-weight: 600; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  color: #1f1f1f;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: none;
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn-google:hover { filter: brightness(0.95); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--white-dim);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-m);
}

.account-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-transform: none;
}

.account-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--navy);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.account-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-type-icon { font-size: 1.4rem; }

.account-type-label { font-size: 0.88rem; font-weight: 700; color: var(--white); }

.account-type-desc { font-size: 0.72rem; color: var(--white-dim); line-height: 1.4; }

.account-type-option--active {
  border-color: var(--gold);
  background: rgba(244, 63, 94, 0.08);
}

.account-type-option--active .account-type-label { color: var(--gold-lt); }

/* ===================================
   MY ACCOUNT & ADMIN
   =================================== */

.account-section { padding-top: 48px; }

.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.account-nav-link:hover { background: var(--white-faint); color: var(--white); }

.account-nav-link--active {
  background: rgba(244, 63, 94, 0.1);
  color: var(--gold-lt);
}

.account-nav-icon { font-size: 1rem; }

.account-content {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.account-content--full { max-width: 900px; margin: 0 auto; }

.account-content .auth-form { max-width: 480px; }

.account-section-spacer { margin-top: 36px; }

.account-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--white-dim);
}

.account-empty p { margin-bottom: 16px; }

.account-listings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-card {
  background: var(--navy);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.listing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.listing-card-head h4 { font-size: 1rem; color: var(--white); }

.listing-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.listing-status--pending  { background: rgba(234, 179, 8, 0.15);  color: #fde047; }
.listing-status--approved { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.listing-status--rejected { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }

.listing-card-desc {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-bottom: 12px;
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--white-dim);
}

.account-info-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 480px;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-m);
}

.account-info-label { color: var(--white-dim); font-size: 0.85rem; }
.account-info-value { color: var(--white); font-weight: 600; font-size: 0.9rem; }

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-reject {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-reject:hover { background: rgba(239, 68, 68, 0.25); }

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; overflow-x: auto; }
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.4);
  padding: 48px 24px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand .logo { font-size: 1.5rem; display: inline-block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--white-dim); max-width: 300px; line-height: 1.6; }

.footer-links {
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--white-dim);
}

/* ===================================
   TOAST (submitted notification)
   =================================== */

.toast {
  position: fixed;
  top: calc(var(--header-h) + 20px);
  right: 24px;
  z-index: 999;
  background: linear-gradient(120deg, var(--gold), var(--gold-lt));
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-rose);
  animation: toast-in 0.3s ease;
  max-width: min(360px, calc(100vw - 48px));
}

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px) {
  .hero { padding: 80px 24px 60px; }

  .how-grid { grid-template-columns: 1fr; }
  .how-divider-v { display: none; }
  .how-track { flex-direction: column; }
  .how-arrow { transform: rotate(90deg); margin: 0; }

  .footer-inner { flex-direction: column; }

  .submit-layout { grid-template-columns: 1fr; }
  .submit-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }

  .nav-links--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(18px);
    padding: 14px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.5);
    gap: 4px;
    animation: menu-in 0.18s ease;
  }

  .nav-links--open li { list-style: none; }
  .nav-links--open a,
  .nav-links--open .nav-logout-form button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-mobile-toggle { display: block; }

  .hero-title { font-size: 2.7rem; }
  .section { padding: 50px 16px; }
  .section-title { font-size: 1.8rem; }
  .page-hero-content h1 { font-size: 2rem; }
  .cta-inner h2 { font-size: 1.8rem; }

  .form-row { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 10px; }
  .section-more { margin-left: 0; }
}
