/* ============================================================
   EscolhaMais — Design System
   Integrado com projeto Firebase/Next.js
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --rose:    #D4537E;
  --rose-dk: #993556;
  --rose-lt: #FBEAF0;
  --rose-bd: #F4C0D1;

  --ink:   #1C1917;
  --ink2:  #6B6760;
  --ink3:  #9E9B95;

  --bg:    #FAF9F7;
  --bg2:   #F2F0EC;
  --bg3:   #ECEAE4;
  --white: #FFFFFF;

  --bdr:  rgba(28,25,23,.10);
  --bdr2: rgba(28,25,23,.20);

  --grn:       #10B981;
  --grn-hover: #059669;
  --grn-bg:    #D1FAE5;
  --amb:       #D97706;
  --amb-bg:    #FEF3C7;

  --photo-fav: #D4AF37;

  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --topbar-h: 56px;
  --shadow:   0 1px 4px rgba(28,25,23,.08), 0 4px 16px rgba(28,25,23,.06);

  /* ── Global transition ───────────────────────────────────────── */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Radius extras ───────────────────────────────────────────── */
  --radius-sm: 6px;   /* below --radius (10px) */

  /* ── Purple primary (landing & premium UI) ───────────────────── */
  --primary:      #6C63FF;
  --primary-hover:#5A52E0;
  --primary-glow: rgba(108, 99, 255, 0.15);

  /* ── Semantic danger (complements --grn / --amb) ─────────────── */
  --danger: #EF4444;

  /* ── Dark surface layer (client gallery & landing) ───────────── */
  --bg-main:          #08080A;
  --bg-surface:       #121217;
  --bg-surface-hover: #1A1A22;

  /* ── Text hierarchy for dark surfaces ───────────────────────── */
  --text-main:      #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted:     #475569;

  /* ── Borders for dark surfaces ───────────────────────────────── */
  --border-dark:       rgba(255, 255, 255, 0.06);
  --border-dark-hover: rgba(255, 255, 255, 0.12);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; }

a { color: inherit; text-decoration: none; }

button { font-family: var(--font-sans); cursor: pointer; }

input, select, textarea { font-family: var(--font-sans); }

img { max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; border: none;
  transition: all .15s; white-space: nowrap; cursor: pointer;
  font-family: var(--font-sans);
}
.btn-primary  { background: var(--rose); color: #fff; }
.btn-primary:hover  { background: var(--rose-dk); transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--bdr2); }
.btn-secondary:hover { background: var(--bg2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink2); border: none; padding: 8px 12px; }
.btn-ghost:hover { background: var(--bg2); color: var(--ink); }
.btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-full  { width: 100%; }
.btn-lg    { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm    { padding: 6px 13px; font-size: 12px; border-radius: 8px; }
.btn-xs    { padding: 4px 9px; font-size: 11px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Premium purple button (landing page & upsell CTAs) */
.btn-premium {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 600; padding: 12px 24px;
  border-radius: var(--radius-lg); border: none; cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow); text-decoration: none;
  font-family: var(--font-sans); transition: var(--transition);
}
.btn-premium:hover {
  background: var(--primary-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3); color: #fff;
}

/* ── Form fields ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink3);
}
.inp {
  width: 100%; background: var(--bg2); border: 1px solid var(--bdr);
  border-radius: var(--radius); padding: 10px 13px; font-size: 13px;
  color: var(--ink); outline: none; transition: border-color .15s;
}
.inp:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(212,83,126,.1); }
.inp.error { border-color: #E24B4A; }
.inp::placeholder { color: var(--ink3); }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: var(--radius-lg); padding: 20px;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-green { background: var(--grn-bg); color: var(--grn); }
.badge-amber { background: var(--amb-bg); color: var(--amb); }
.badge-rose  { background: var(--rose-lt); color: var(--rose-dk); }
.badge-gray  { background: var(--bg3); color: var(--ink2); }

/* ── Progress bar ───────────────────────────────────────────── */
.progress-track { background: var(--bg3); border-radius: 20px; height: 4px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--rose); border-radius: 20px; transition: width .3s; }

/* ── Stat card ──────────────────────────────────────────────── */
.stat-card { background: var(--bg2); border-radius: 12px; padding: 14px 16px; }
.stat-val  { font-family: var(--font-serif); font-size: 28px; color: var(--rose); line-height: 1; }
.stat-lbl  { font-size: 11px; color: var(--ink3); margin-top: 4px; }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rose-lt); color: var(--rose-dk);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid var(--rose-bd);
  flex-shrink: 0;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-lg); font-size: 13px; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--grn); }
.toast.error   { background: #A32D2D; }

/* ── Drop zone ──────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--bdr2); border-radius: var(--radius-lg);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg2);
}
.drop-zone:hover, .drop-zone.drag {
  border-color: var(--rose); background: var(--rose-lt);
}
.drop-zone p { color: var(--ink2); font-size: 13px; margin: 0; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--rose-lt); border-top-color: var(--rose);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOPBAR / LAYOUT (autenticado)
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,249,247,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--topbar-h);
}
.logo-wrap { display: flex; align-items: center; gap: 9px; }
.logo-icon {
  width: 30px; height: 30px; background: var(--rose); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; color: #fff; font-size: 15px;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.logo-text span { color: var(--rose); }

.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
  font-size: 13px; color: var(--ink2); padding: 7px 12px;
  border-radius: 8px; font-weight: 500; transition: color .15s, background .15s;
}
.topbar-nav a:hover  { color: var(--ink); background: var(--bg2); }
.topbar-nav a.active { color: var(--rose); background: var(--rose-lt); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.plan-pill {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink3);
  background: var(--bg3); padding: 3px 8px; border-radius: 20px;
}

.app-main  { min-height: calc(100vh - var(--topbar-h)); background: var(--bg); }
.app-inner { max-width: 960px; margin: 0 auto; padding: 28px 24px; }

/* Flash alert */
.flash-alert {
  margin-bottom: 20px; padding: 11px 16px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.flash-success { background: var(--grn-bg); color: var(--grn); border: 1px solid #C0DD97; }
.flash-error   { background: #FCEBEB; color: #A32D2D; border: 1px solid #F7C1C1; }
.flash-info    { background: #EFF6FF; color: #1d4ed8; border: 1px solid #BFDBFE; }
.flash-close   {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 16px; color: inherit; opacity: .6; line-height: 1;
}

/* Page title */
.page-title { font-family: var(--font-serif); font-size: 28px; color: var(--ink); }

/* Section title */
.section-hdr {
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-hdr .cnt {
  background: var(--bg3); color: var(--ink2); font-size: 11px;
  padding: 2px 8px; border-radius: 20px;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink3);
  background: var(--white); border: 1px solid var(--bdr); border-radius: var(--radius-lg);
}
.empty-state .empty-icon { font-size: 32px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; line-height: 1.6; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ── Gallery row (dashboard) ────────────────────────────────── */
.gallery-list { display: flex; flex-direction: column; gap: 8px; }
.gallery-row {
  background: var(--white); border: 1px solid var(--bdr); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.gallery-row:hover { border-color: var(--rose-bd); transform: translateX(2px); }
.gallery-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: .85;
}
.gallery-info { flex: 1; min-width: 0; }
.gallery-name  { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-meta  { font-size: 11px; color: var(--ink3); margin-bottom: 4px; }
.gallery-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Link card (dashboard) ──────────────────────────────────── */
.link-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--grn-bg); border: 1px solid #C0DD97;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
}
.link-card-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grn);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.link-card-content { flex: 1; min-width: 0; }
.link-card-title { font-size: 12px; font-weight: 600; color: var(--grn); margin-bottom: 3px; }
.link-url { font-size: 11px; color: var(--grn); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wpp-btn {
  background: #25D366; color: #fff; border: none; padding: 6px 13px;
  border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: var(--font-sans); transition: background .15s;
  display: flex; align-items: center; gap: 5px;
}
.wpp-btn:hover { background: #1aab53; }
.link-close { background: none; border: none; color: var(--grn); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 6px; }

/* ── Upload progress banner ─────────────────────────────────── */
.uploading-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: #fff;
  border-radius: 10px; padding: 12px 16px; margin-top: 16px;
}
.uploading-banner p { font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ── Photo grid (event view) ────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.photo-item {
  position: relative; border-radius: 9px; overflow: hidden;
  aspect-ratio: 2/3; background: var(--bg3); cursor: zoom-in;
  border: 2px solid transparent; transition: border-color .15s;
}
.photo-item:hover { border-color: var(--rose-bd); }
.photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; inset: 0; transition: transform .2s;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-num-badge {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
}
.photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  padding: .5rem .4rem .4rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  opacity: 0; transition: opacity .2s;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-name { font-size: .6rem; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Upload items ───────────────────────────────────────────── */
.upload-item {
  display: flex; align-items: center; gap: .75rem; padding: .5rem;
  background: var(--bg2); border-radius: 8px; margin-bottom: .5rem; font-size: .8rem;
}
.upload-item .progress-track { flex: 1; }

/* ── Dashboard grid ─────────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }

/* ============================================================
   AUTH PAGES (login/register)
   ============================================================ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--bg); padding: 24px;
}
.auth-box {
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 390px; box-shadow: var(--shadow);
}
.auth-logo-wrap { text-align: center; margin-bottom: 32px; }
.auth-logo-icon {
  width: 52px; height: 52px; background: var(--rose); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-serif); font-style: italic; color: #fff; font-size: 26px;
}
.auth-brand { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.auth-brand span { color: var(--rose); }
.auth-tagline { font-size: 12px; color: var(--ink3); margin-top: 4px; }

.auth-error {
  background: #FCEBEB; border: 1px solid #F7C1C1; border-radius: 8px;
  color: #A32D2D; font-size: 12px; padding: 9px 12px; margin-bottom: 14px;
}
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--bdr); }
.auth-divider span { font-size: 11px; color: var(--ink3); }
.auth-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 18px; flex-wrap: wrap;
}
.auth-footer button {
  background: none; border: none; font-size: 12px; color: var(--rose);
  cursor: pointer; font-weight: 500; font-family: var(--font-sans);
}
.auth-footer button:hover { text-decoration: underline; }
.auth-footer span { color: var(--ink3); font-size: 12px; }

.auth-reset-sent { text-align: center; }
.auth-reset-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--rose-lt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 22px;
}
.auth-reset-sent p { font-size: 13px; color: var(--ink2); margin-bottom: 20px; line-height: 1.6; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
}
.landing-nav { display: flex; align-items: center; gap: 10px; }
.landing-nav-link { font-size: 13px; color: var(--ink2); padding: 6px 10px; border-radius: 8px; }
.landing-nav-link:hover { color: var(--ink); }

.hero-section { text-align: center; padding: 80px 24px 60px; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--rose-lt); color: var(--rose-dk);
  font-size: 12px; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; border: 1px solid var(--rose-bd); margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 6vw, 3.3rem);
  line-height: 1.12; color: var(--ink); margin-bottom: 18px;
}
.hero-title em { color: var(--rose); font-style: italic; }
.hero-sub { font-size: 16px; color: var(--ink2); line-height: 1.7; max-width: 520px; margin: 0 auto 28px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-proof { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }

.how-section { padding: 60px 24px; background: var(--white); border-top: 1px solid var(--bdr); }
.feat-section { padding: 60px 24px; }
.cta-section { background: var(--rose); padding: 64px 24px; text-align: center; }
.cta-title { font-family: var(--font-serif); font-size: 32px; color: #fff; margin-bottom: 10px; }
.cta-sub   { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-btn   { background: #fff; color: var(--rose); }
.cta-btn:hover { background: var(--rose-lt); transform: translateY(-1px); color: var(--rose-dk); }

.section-inner { max-width: 900px; margin: 0 auto; }
.section-title { font-family: var(--font-serif); font-size: 32px; color: var(--ink); text-align: center; margin-bottom: 36px; }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how-steps { grid-template-columns: 1fr; } }
.step-card { text-align: center; padding: 20px; }
.step-num {
  width: 28px; height: 28px; background: var(--rose); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin: 0 auto 10px;
}
.step-icon  { font-size: 28px; margin-bottom: 10px; }
.step-title { font-family: var(--font-serif); font-size: 17px; color: var(--ink); margin-bottom: 7px; }
.step-desc  { font-size: 13px; color: var(--ink2); line-height: 1.6; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { background: var(--white); border: 1px solid var(--bdr); border-radius: var(--radius-lg); padding: 20px; }
.feat-icon  { font-size: 24px; margin-bottom: 10px; }
.feat-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.feat-desc  { font-size: 12px; color: var(--ink2); line-height: 1.6; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { padding: 60px 24px; background: var(--white); border-top: 1px solid var(--bdr); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border: 2px solid var(--rose); background: var(--white); }
.plan-card.current  { border: 2px solid var(--grn); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.current-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grn); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
}
.plan-name   { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink2); margin-bottom: 6px; }
.plan-price  { font-family: var(--font-serif); font-size: 34px; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.plan-period { font-size: 14px; font-family: var(--font-sans); color: var(--ink3); }
.plan-desc   { font-size: 12px; color: var(--ink3); margin-bottom: 18px; line-height: 1.5; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; flex: 1; }
.plan-features li { font-size: 12px; display: flex; align-items: flex-start; gap: 7px; }
.feat-ok  { color: var(--ink); }
.feat-off { color: var(--ink3); }
.feat-ok  .f-icon { color: var(--grn); font-weight: 700; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.feat-off .f-icon { color: var(--ink3); font-weight: 700; font-size: 11px; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section { border-top: 1px solid var(--bdr); padding-top: 40px; margin-top: 20px; }
.faq-section h2 { font-family: var(--font-serif); font-size: 24px; color: var(--ink); margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--bdr); padding: 16px 0; }
.faq-q { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.faq-a { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ── Landing footer ─────────────────────────────────────────── */
.landing-footer {
  background: var(--white); border-top: 1px solid var(--bdr);
  padding: 28px 32px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--ink2); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink3); width: 100%; text-align: center; }

/* ============================================================
   PHOTOGRAPHY GRID (client selection — semantic layer)
   ============================================================ */
.photography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; padding: 24px 0;
}
.photo-item-card {
  position: relative; background: var(--bg-surface);
  border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
}
.photo-item-card:hover {
  transform: translateY(-4px); border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.photo-item-card img {
  width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; display: block;
}
.photo-selector-badge {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 14px; font-weight: bold;
  transition: var(--transition);
}
.photo-item-card.is-selected { border-color: var(--grn); }
.photo-item-card.is-selected .photo-selector-badge {
  background: var(--grn); border-color: var(--grn);
  color: #fff; box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   DASHBOARD STAT CARD (photographer panel)
   ============================================================ */
.dashboard-stat-card {
  background: var(--bg-surface); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: var(--transition);
}
.dashboard-stat-card:hover {
  border-color: var(--border-dark-hover); background: var(--bg-surface-hover);
}
.dashboard-stat-card .stat-value {
  font-size: 32px; font-weight: 700; color: var(--text-main);
  font-family: 'Poppins', sans-serif; line-height: 1;
}
.dashboard-stat-card .stat-label {
  font-size: 13px; color: var(--text-secondary);
}

/* ============================================================
   BADGE STATUS (gallery status pills)
   ============================================================ */
.badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.status-completed { background: rgba(16, 185, 129, 0.1); color: var(--grn); }
.status-pending   { background: rgba(245, 158, 11,  0.1); color: var(--amb); }
.status-danger    { background: rgba(239, 68,  68,  0.1); color: var(--danger); }

/* ============================================================
   CLIENT SELECTION PAGE
   ============================================================ */
.client-page { display: flex; flex-direction: column; min-height: 100vh; background: #121212; }

.client-topbar {
  background: #1a1a1a; padding: 0 16px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; position: sticky; top: 0; z-index: 100;
}
.client-title { color: #fff; font-family: var(--font-serif); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-counter {
  background: var(--photo-fav); color: #1a1a1a; font-size: 12px; font-weight: 700;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Gallery */
.client-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 5px; padding: 10px; overflow-y: auto;
  padding-bottom: 70px;
}
.c-photo {
  position: relative; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden;
  cursor: pointer; border: 2.5px solid transparent; transition: border-color .15s, box-shadow .2s;
  background: #1a1a1a;
}
.c-photo:hover { border-color: rgba(212,175,55,.4); }
.c-photo.sel   { border-color: var(--photo-fav) !important; box-shadow: 0 0 0 1px rgba(212,175,55,.25); }
.c-photo.sel::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(212,175,55,.08); pointer-events: none; border-radius: 7px;
}
.c-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; user-select: none; }
.c-photo img:not([src]) { opacity: 0; }
.c-num {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  background: rgba(0,0,0,.65); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 4px;
}
.c-wm {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-30deg);
  font-size: 6px; font-weight: 700; color: rgba(255,255,255,.22);
  white-space: nowrap; pointer-events: none; letter-spacing: .7px; z-index: 2;
}
.c-check {
  position: absolute; bottom: 5px; right: 5px; width: 26px; height: 26px;
  background: transparent; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; opacity: 0.28;
  transition: opacity .2s;
}
.c-check svg {
  width: 20px; height: 20px;
  fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2;
  transition: fill .2s, stroke .2s, filter .2s, transform .2s;
}
.c-photo:hover .c-check { opacity: 0.55; }
.c-photo.sel .c-check { opacity: 1; }
.c-photo.sel .c-check svg {
  fill: var(--photo-fav);
  stroke: var(--photo-fav);
  filter: drop-shadow(0 0 7px rgba(212,175,55,.6));
  transform: scale(1.12);
}
.c-zoom {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.75); border: none; border-radius: 5px;
  width: 22px; height: 22px; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 3;
  opacity: 0; transition: opacity .15s;
}
.c-photo:hover .c-zoom { opacity: 1; }

/* Client footer bar */
.client-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #1a1a1a; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.client-footer-left { display: flex; flex-direction: column; }
.client-footer-count { color: #fff; font-size: 13px; font-weight: 500; }
.client-footer-hint  { color: rgba(255,255,255,.3); font-size: 10px; margin-top: 2px; }
.client-footer-btn {
  background: var(--rose); color: #fff; border: none; padding: 10px 20px;
  border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); flex-shrink: 0; transition: background .15s;
}
.client-footer-btn:hover:not(:disabled) { background: var(--rose-dk); }
.client-footer-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Review step */
.review-page { display: flex; flex-direction: column; min-height: 100vh; background: #121212; }
.review-top {
  background: #1a1a1a; padding: 0 16px; height: 52px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.review-top-title { color: #fff; font-size: 14px; font-weight: 500; }
.review-grid {
  flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px; padding: 12px; overflow-y: auto; padding-bottom: 160px;
}
.rev-photo {
  position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--rose);
}
.rev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.rev-num {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 4px;
}
.rev-remove {
  position: absolute; top: 4px; right: 4px; background: var(--rose);
  color: #fff; border: none; border-radius: 5px; width: 20px; height: 20px;
  font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.review-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0D0D13; padding: 14px 16px;
  display: flex; gap: 10px; border-top: 1px solid rgba(255,255,255,.07); z-index: 100;
}
.review-footer .inp {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15);
  color: #fff; flex: 1;
}
.review-footer .inp::placeholder { color: rgba(255,255,255,.35); }

/* Done page */
.done-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #111118; padding: 24px;
}
.done-box  { max-width: 360px; width: 100%; text-align: center; }
.done-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(61,109,17,.25); border: 2px solid var(--grn);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #97C459; margin: 0 auto 20px;
}
.done-title { font-family: var(--font-serif); font-size: 26px; color: #fff; margin-bottom: 10px; }
.done-sub   { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; line-height: 1.6; }
.done-sub strong { color: rgba(255,255,255,.8); }
.done-nums  {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px; margin-bottom: 20px; text-align: left;
}
.done-nums-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.done-nums-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.done-num {
  background: rgba(212,83,126,.2); color: var(--rose-bd); font-size: 11px;
  font-weight: 600; padding: 3px 8px; border-radius: 6px; font-family: monospace;
}

/* Client error / loading / PIN */
.client-screen {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: #111118; padding: 24px;
}
.client-box {
  background: #1A1A22; border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 36px; width: 100%; max-width: 340px; text-align: center;
}
.client-box h2 { color: #fff; font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.client-box p  { color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 18px; }
.client-box .inp {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15);
  color: #fff; text-align: center; letter-spacing: 4px; font-size: 20px; margin-bottom: 14px;
}
.client-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(212,83,126,.3); border-top-color: var(--rose);
  animation: spin .7s linear infinite; margin: 0 auto 14px;
}
.client-loading-logo { font-family: var(--font-serif); font-size: 24px; color: #fff; margin-bottom: 20px; }
.client-loading-logo span { color: var(--rose); }
.client-loading-sub { color: rgba(255,255,255,.4); font-size: 13px; }

/* Client lightbox */
.client-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.client-lightbox-inner { position: relative; max-width: 800px; width: 100%; }
.client-lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.client-lightbox-img {
  width: 100%; border-radius: 12px; display: block;
  max-height: 80vh; object-fit: contain; user-select: none;
  pointer-events: none;
}
.client-lightbox-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px;
}
.client-lightbox-footer span { color: rgba(255,255,255,.5); font-size: 13px; }
.btn-unsel {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.25); padding: 7px 14px;
  border-radius: 8px; font-size: 12px; cursor: pointer; font-family: var(--font-sans);
}
.btn-sel {
  background: var(--rose); color: #fff; border: none;
  padding: 7px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: var(--font-sans);
}

/* ============================================================
   EVENT VIEW LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.active { display: flex; }
#lightboxImg {
  max-height: 94vh; max-width: 94vw;
  border-radius: 8px; display: block; cursor: default;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-nav {
  position: fixed; z-index: 10000;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.lb-nav:hover { background: rgba(255,255,255,.35); }
.lb-counter {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .04em; pointer-events: none;
}

/* ── Gallery card grid (dashboard) ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.gallery-card {
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.gallery-card:hover {
  box-shadow: 0 6px 28px rgba(28,25,23,.13);
  transform: translateY(-3px);
}
.gallery-card-cover {
  display: block; aspect-ratio: 4/3;
  position: relative; overflow: hidden; background: var(--bg3);
}
.gallery-card-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.gallery-card:hover .gallery-card-cover img { transform: scale(1.07); }
.gallery-card-no-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.gallery-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 10px;
}
.gallery-card-share {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.45); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.gallery-card:hover .gallery-card-share { opacity: 1; }
.gallery-card-info { padding: 10px 12px 13px; }
.gallery-card-name {
  font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-card-meta { font-size: 11px; color: var(--ink3); margin-bottom: 9px; }
.gallery-card-actions { display: flex; gap: 6px; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(28,25,23,.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 28px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(28,25,23,.2);
  transform: translateY(14px); transition: transform .2s;
  position: relative;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg2); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--ink2); line-height: 1; transition: background .15s;
}
.modal-close:hover { background: var(--bg3); }
.modal-title { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-bottom: 20px; }

/* ── User dropdown (pure CSS/JS, no Bootstrap) ─────────────────── */
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: var(--radius-lg); padding: 4px; min-width: 190px;
  box-shadow: 0 4px 24px rgba(28,25,23,.12); z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .15s;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-name {
  font-size: 11px; color: var(--ink3); padding: 6px 10px 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown-divider { height: 1px; background: var(--bdr); margin: 3px 0; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--ink); transition: background .1s;
  text-decoration: none;
}
.user-dropdown-item:hover { background: var(--bg2); color: var(--ink); }
.user-dropdown-item.danger { color: #A32D2D; }
.user-dropdown-item.danger:hover { background: #FCEBEB; }

/* ── Hero split layout ─────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: left;
  align-items: center;
  max-width: 1040px;
  padding: 72px 32px 60px;
  margin: 0 auto;
}
.hero-split .hero-ctas  { justify-content: flex-start; }
.hero-split .hero-proof { justify-content: flex-start; }

/* Browser mockup */
.hero-mock-browser {
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(28,25,23,.14);
  overflow: hidden; flex-shrink: 0;
}
.hmb-bar {
  background: var(--bg2); border-bottom: 1px solid var(--bdr);
  padding: 9px 13px; display: flex; align-items: center; gap: 10px;
}
.hmb-dots { display: flex; gap: 5px; }
.hmb-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.hmb-dots i:nth-child(1) { background: #FF5F57; }
.hmb-dots i:nth-child(2) { background: #FEBC2E; }
.hmb-dots i:nth-child(3) { background: #28C840; }
.hmb-url {
  background: var(--white); border: 1px solid var(--bdr);
  border-radius: 6px; padding: 3px 10px; font-size: 10px; color: var(--ink3);
  flex: 1; text-align: center; font-family: monospace;
}
.hmb-topbar {
  background: #0D0D13; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.hmb-topbar > span { color: rgba(255,255,255,.75); font-size: 12px; }
.hmb-counter {
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 700;
  width: 24px; height: 24px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.hmb-grid {
  background: #111118; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px;
}
.hmb-photo {
  aspect-ratio: 2/3; border-radius: 4px; position: relative;
  border: 2.5px solid transparent;
  background: hsl(var(--h, 220), 20%, 22%);
}
.hmb-photo.sel { border-color: var(--rose); }
.hmb-photo.sel::after {
  content: '✓'; position: absolute; bottom: 3px; right: 3px;
  background: var(--rose); color: #fff;
  width: 14px; height: 14px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}
.hmb-footer {
  background: #0D0D13; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.hmb-footer-txt { color: rgba(255,255,255,.5); font-size: 10px; }
.hmb-footer-btn {
  background: var(--rose); color: #fff; border: none;
  padding: 6px 12px; border-radius: 7px; font-size: 10px; font-weight: 600;
}

/* ── Lightbox prev/next ────────────────────────────────────────── */
.client-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 5;
}
.client-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.client-lightbox-nav.prev { left: -52px; }
.client-lightbox-nav.next { right: -52px; }
@media (max-width: 700px) {
  .client-lightbox-nav.prev { left: 4px; }
  .client-lightbox-nav.next { right: 4px; }
}

/* ── Google button ─────────────────────────────────────────── */
.btn-google {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--bdr2); font-size: 14px; font-weight: 500;
  gap: 10px;
}
.btn-google:hover { background: var(--bg2); }

/* ── Filter tabs (event view) ───────────────────────────────── */
.filter-tabs {
  display: flex; gap: 4px;
}
.ftab {
  background: var(--bg2); color: var(--ink2); border: 1px solid var(--bdr);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--font-sans); transition: all .15s;
}
.ftab:hover  { background: var(--bg3); color: var(--ink); }
.ftab.active { background: var(--rose-lt); color: var(--rose-dk); border-color: var(--rose-bd); }

/* ── Photo selected dot (event view) ────────────────────────── */
.photo-sel-dot {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  background: var(--rose); color: #fff; font-size: 9px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Step indicator (events/new.php) ────────────────────────── */
.new-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
}
.new-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.new-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); color: var(--ink3); border: 2px solid var(--bdr2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; transition: all .2s;
}
.new-step span {
  font-size: 11px; color: var(--ink3); font-weight: 500; white-space: nowrap;
}
.new-step.active .new-step-dot {
  background: var(--rose); color: #fff; border-color: var(--rose);
}
.new-step.active span { color: var(--rose); }
.new-step.done .new-step-dot {
  background: var(--grn); color: #fff; border-color: var(--grn);
}
.new-step.done span { color: var(--grn); }
.new-step-line {
  width: 48px; height: 2px; background: var(--bdr2); margin-bottom: 18px; flex-shrink: 0;
}

/* ── Upload preview grid (events/new.php) ───────────────────── */
.new-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.new-preview-card {
  border-radius: 10px; overflow: hidden;
  background: var(--bg3); position: relative;
}
.new-preview-img {
  aspect-ratio: 2/3; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.new-preview-prog {
  width: calc(100% - 12px); margin-bottom: 8px;
  background: rgba(0,0,0,.4); border-radius: 20px; height: 4px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.new-preview-fill {
  height: 100%; background: var(--rose); border-radius: 20px; transition: width .2s;
}
.new-preview-name {
  font-size: 9px; color: var(--ink3); padding: 4px 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================
   UPLOAD DROPZONE (dark surface — photographer panel)
   ============================================================ */
.upload-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.upload-dropzone {
  border: 2px dashed rgba(108,99,255,.28);
  background: rgba(108,99,255,.02);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(108,99,255,.06);
  transform: scale(1.01);
}
.upload-dropzone h3 { font-size: 17px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.upload-dropzone p  { font-size: 14px; color: var(--text-secondary); }
.upload-browse-btn  { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }
.upload-formats     { display: block; font-size: 11px; color: var(--text-muted); margin-top: 16px; }

.upload-progress {
  margin-top: 20px;
  background: rgba(8,8,10,.8);
  border: 1px solid var(--border-dark);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: none;
}
.upload-progress.show { display: block; }
.upload-progress .progress-header {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 500; margin-bottom: 10px;
  color: var(--text-secondary);
}
.upload-progress .progress-header strong { color: var(--text-main); }
.progress-bar-track {
  width: 100%; height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 100px; overflow: hidden;
}
.progress-bar-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  box-shadow: 0 0 10px var(--primary-glow);
  border-radius: 100px; transition: width .1s linear;
}
.upload-result {
  margin-top: 16px; padding: 12px 16px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  display: none; align-items: center; gap: 10px;
}
.upload-result.show    { display: flex; }
.upload-result.success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); color: #6ee7b7; }
.upload-result.error   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.upload-result a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ============================================================
   GALLERY DASHBOARD GRID (photographer panel — dark)
   ============================================================ */
.galleries-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-dashboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.gallery-dashboard-card:hover {
  border-color: rgba(108,99,255,.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.5), 0 0 20px var(--primary-glow);
}
.gdash-cover {
  width: 100%; height: 150px;
  background: var(--bg-surface-hover);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.gdash-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gdash-cover-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text-muted);
}
.gdash-sel-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px);
  background: rgba(8,8,10,.65);
  border: 1px solid var(--border-dark-hover);
  color: var(--text-secondary);
}
.gdash-sel-badge .n { color: var(--primary); font-weight: 700; }
.gdash-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; flex-grow: 1;
}
.gdash-body h4 {
  font-size: 14px; font-weight: 600; color: var(--text-main);
  margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gdash-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
  font-size: 11px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 12px; margin-bottom: 14px;
}
.gdash-meta .expire { color: #FBBF24; }
.gdash-actions { display: flex; gap: 8px; margin-top: auto; }
.gc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 8px 12px;
  border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  border: none; transition: var(--transition); white-space: nowrap;
}
.gc-btn-manage {
  flex: 1;
  background: rgba(255,255,255,.05); color: var(--text-secondary);
  border: 1px solid var(--border-dark);
}
.gc-btn-manage:hover { background: rgba(255,255,255,.09); color: var(--text-main); }
.gc-btn-upload {
  flex: 1;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.gc-btn-upload:hover { background: var(--primary-hover); transform: translateY(-1px); }
.gc-btn-link {
  width: 36px; padding: 8px 0;
  background: rgba(255,255,255,.05); color: var(--text-secondary);
  border: 1px solid var(--border-dark);
}
.gc-btn-link:hover { color: var(--primary); border-color: rgba(108,99,255,.4); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr; text-align: center;
    padding: 60px 20px 48px; gap: 32px;
  }
  .hero-split .hero-ctas, .hero-split .hero-proof { justify-content: center; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .topbar-nav { display: none; }
  .app-inner  { padding: 16px 14px; }
  .landing-topbar { padding: 0 16px; }
  .landing-footer { flex-direction: column; text-align: center; }
  .landing-footer .footer-links { justify-content: center; }
}
