:root {
  --ink: #0b1220;
  --muted: #64748b;
  --line: rgba(148, 163, 184, .24);
  --paper: rgba(255, 255, 255, .9);
  --soft: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 28px 80px rgba(15, 23, 42, .14);
  --soft-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(6,182,212,.16), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 54%, #fdfdff 100%);
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.boot-card { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 20px; margin: 0 auto 14px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  box-shadow: 0 18px 36px rgba(37,99,235,.20);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.logo-row { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 26px; letter-spacing: -.04em; }
.logo-row .brand-mark { width: 44px; height: 44px; border-radius: 16px; margin: 0; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.help { color: var(--muted); font-size: 13px; line-height: 1.5; }
.help.large { font-size: 15px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); gap: 30px; padding: 34px; align-items: stretch; }
.auth-hero, .auth-card, .card, .modal-card, .photo-preview { background: var(--paper); border: 1px solid rgba(255,255,255,.76); box-shadow: var(--shadow); border-radius: 36px; backdrop-filter: blur(18px); }
.auth-hero { position: relative; overflow: hidden; min-height: 650px; display: grid; grid-template-columns: 1fr .72fr; align-items: center; padding: 46px; isolation: isolate; }
.auth-hero:before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08)); z-index: -1; }
.auth-hero h1 { font-size: clamp(48px, 6vw, 84px); letter-spacing: -.07em; line-height: .9; margin: 18px 0; max-width: 780px; }
.auth-hero p { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.auth-actions-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.auth-actions-preview span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 900; color: #334155; box-shadow: var(--soft-shadow); }
.memory-stack { min-height: 500px; position: relative; }
.memory-card { position: absolute; width: 230px; height: 290px; border-radius: 34px; box-shadow: 0 32px 70px rgba(15,23,42,.2); border: 8px solid white; overflow: hidden; display: flex; align-items: end; padding: 18px; color: white; font-weight: 900; letter-spacing: -.02em; transform: rotate(8deg); right: 10px; top: 120px; background: #dbeafe; }
.memory-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.memory-card span { position: relative; z-index: 1; background: rgba(15,23,42,.32); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 12px; backdrop-filter: blur(10px); text-shadow: 0 1px 10px rgba(15,23,42,.35); }
.memory-card.big { width: 300px; height: 390px; right: 88px; top: 28px; transform: rotate(-7deg); }
.memory-card:nth-child(2) { right: 0; top: 286px; transform: rotate(12deg); }
.memory-card:nth-child(3) { right: 250px; top: 270px; transform: rotate(-15deg); }
.auth-card { align-self: center; padding: 32px; width: min(100%, 520px); justify-self: center; }
.auth-card h2 { font-size: 34px; letter-spacing: -.04em; margin: 0 0 8px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef2ff; border-radius: 19px; padding: 5px; margin: 22px 0; }
.tab { border: 0; background: transparent; padding: 12px; border-radius: 15px; font-weight: 900; color: var(--muted); }
.tab.active { background: white; color: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.join-strip { margin-top: 18px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid var(--line); }

/* Fields and buttons */
.field { display: grid; gap: 7px; margin: 12px 0; }
.field label { font-size: 13px; font-weight: 900; color: #334155; }
.field input, .field textarea, .field select, .filters select {
  border: 1px solid rgba(148,163,184,.35); background: #fff; border-radius: 17px; padding: 13px 14px; outline: none; color: var(--ink); width: 100%;
}
.field textarea { min-height: 102px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.btn { border: 0; border-radius: 17px; padding: 12px 16px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: white; box-shadow: 0 16px 30px rgba(37,99,235,.22); }
.btn.secondary { background: #eef2ff; color: var(--blue); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.light { background: rgba(255,255,255,.92); color: #1e293b; }
.btn.ghost-light { background: rgba(255,255,255,.18); color: white; border: 1px solid rgba(255,255,255,.3); }
.btn.full { width: 100%; }
.btn.small { padding: 9px 12px; border-radius: 14px; font-size: 13px; }
.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 17px; padding: 12px; font-size: 14px; }
.success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #047857; border-radius: 17px; padding: 12px; font-size: 14px; }

/* Layout */
.layout { min-height: 100vh; display: grid; grid-template-columns: 286px 1fr; }
.sidebar { background: rgba(255,255,255,.78); border-right: 1px solid rgba(226,232,240,.86); padding: 24px; position: sticky; top: 0; height: 100vh; backdrop-filter: blur(20px); }
.side-logo { margin-bottom: 20px; }
.mobile-menu { display: none; }
.nav { display: grid; gap: 8px; margin-top: 26px; }
.nav button { border: 0; background: transparent; color: #475569; padding: 13px 14px; border-radius: 18px; font-weight: 900; text-align: left; display: flex; align-items: center; gap: 12px; }
.nav button span { width: 26px; height: 26px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; color: var(--blue); }
.nav button.active, .nav button:hover { background: #eef2ff; color: var(--blue); }
.nav button.active span { background: white; box-shadow: 0 8px 18px rgba(37,99,235,.14); }
.sidebar-card { position: absolute; left: 24px; right: 24px; bottom: 24px; background: linear-gradient(135deg, var(--blue), var(--indigo)); color: white; border-radius: 28px; padding: 20px; box-shadow: 0 24px 45px rgba(37,99,235,.22); }
.sidebar-card .eyebrow { color: rgba(255,255,255,.7); }
.sidebar-card strong { display: block; font-size: 42px; letter-spacing: -.05em; }
.sidebar-card span { color: rgba(255,255,255,.76); font-size: 13px; }
.main { padding: 24px 32px 46px; min-width: 0; }
.topbar { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; margin-bottom: 26px; }
.search-wrap { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(148,163,184,.26); border-radius: 20px; padding: 0 15px; background: rgba(255,255,255,.9); box-shadow: var(--soft-shadow); }
.search-wrap span { color: var(--muted); font-weight: 900; }
.search { border: 0; background: transparent; min-width: 220px; width: 100%; padding: 15px 0; outline: none; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--indigo)); color: white; display: grid; place-items: center; font-weight: 900; box-shadow: 0 14px 28px rgba(37,99,235,.24); }
.grid { display: grid; gap: 18px; }
.card { padding: 24px; }
.card h2, .card h3 { margin: 0 0 12px; letter-spacing: -.04em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Dashboard */
.home-view { display: grid; gap: 18px; }
.hero-dashboard, .gallery-hero, .manage-hero { position: relative; overflow: hidden; border-radius: 38px; padding: 34px; min-height: 306px; color: white; box-shadow: var(--shadow); isolation: isolate; }
.hero-dashboard:before, .gallery-hero:before, .manage-hero:before, .album-cover:before, .memory-card:before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,.14), rgba(15,23,42,.48)); z-index: -1; }
.hero-dashboard-content { max-width: 760px; position: relative; z-index: 1; }
.hero-dashboard .eyebrow, .gallery-hero .eyebrow, .manage-hero .eyebrow { color: rgba(255,255,255,.72); }
.hero-dashboard h1, .gallery-hero h1, .manage-hero h1 { font-size: clamp(42px, 5vw, 70px); line-height: .92; letter-spacing: -.07em; margin: 8px 0 12px; }
.hero-dashboard p, .gallery-hero p, .manage-hero p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.55; }
.hero-actions, .gallery-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.floating-album-card { position: absolute; right: 28px; bottom: 28px; width: min(330px, calc(100% - 56px)); background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.28); border-radius: 28px; padding: 20px; backdrop-filter: blur(16px); }
.floating-album-card span, .floating-album-card small { color: rgba(255,255,255,.74); display: block; }
.floating-album-card strong { display: block; font-size: 26px; letter-spacing: -.04em; margin: 8px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.76); box-shadow: var(--soft-shadow); border-radius: 26px; padding: 20px; }
.stat-card strong { display: block; font-size: 38px; letter-spacing: -.06em; }
.stat-card span { font-weight: 900; display: block; }
.stat-card small { color: var(--muted); }
.dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(310px, .72fr); align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.quick-panel { display: grid; gap: 12px; }
.quick-action { text-align: left; border: 1px solid var(--line); background: white; border-radius: 24px; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; box-shadow: var(--soft-shadow); }
.quick-action span { grid-row: span 2; width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: #eef2ff; color: var(--blue); font-weight: 900; }
.quick-action strong { font-weight: 900; }
.quick-action small { color: var(--muted); }

/* Events */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.06em; line-height: .95; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 760px; }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-list.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.event-card { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.78); border-radius: 30px; overflow: hidden; box-shadow: var(--soft-shadow); display: grid; transition: transform .18s ease, box-shadow .18s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 24px 55px rgba(15,23,42,.12); }
.album-cover { min-height: 155px; position: relative; padding: 16px; color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.album-cover strong { align-self: flex-start; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(12px); }
.cover-badges { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 900; }
.cover-badges span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 7px 10px; border-radius: 999px; backdrop-filter: blur(12px); }
.event-body { padding: 18px; display: grid; gap: 9px; }
.event-body h3 { font-size: 23px; margin: 0; letter-spacing: -.04em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.event-meta span { background: #f8fafc; border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: #eef2ff; color: var(--blue); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.badge.green { background: #ecfdf5; color: #047857; }
.badge.amber { background: #fffbeb; color: #b45309; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions.vertical { flex-direction: column; align-items: stretch; }

/* Create */
.wizard-card { overflow: hidden; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.wizard-steps span { background: #f8fafc; border: 1px solid var(--line); color: var(--muted); border-radius: 16px; padding: 12px; font-weight: 900; text-align: center; }
.wizard-steps .active { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: white; }
.wizard-form fieldset { border: 1px solid var(--line); border-radius: 26px; padding: 18px; margin: 0 0 16px; }
.wizard-form legend { padding: 0 10px; font-weight: 900; color: #1e293b; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.span-2 { grid-column: span 2; }
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Gallery */
.gallery-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.gallery-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.gallery-meta span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 9px 12px; border-radius: 999px; font-weight: 900; backdrop-filter: blur(12px); }
.gallery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select { width: auto; min-width: 150px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-flow: dense; gap: 12px; }
.photo-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 24px; background: #e2e8f0; border: 1px solid var(--line); box-shadow: var(--soft-shadow); margin: 0; cursor: zoom-in; }
.photo-tile.size-2, .photo-tile.size-5 { grid-row: span 2; aspect-ratio: .72; }
.photo-tile.size-3 { grid-column: span 2; aspect-ratio: 1.75; }
.photo-tile img, .photo-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.photo-tile:hover img, .photo-tile:hover video { transform: scale(1.04); }
.photo-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(15,23,42,.72); color: white; border-radius: 16px; padding: 9px 10px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; backdrop-filter: blur(12px); }
.video-pill { position: absolute; top: 10px; right: 10px; background: rgba(15,23,42,.72); color: white; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.side-panel { display: grid; gap: 18px; }
.upload-card { text-align: center; border: 1px dashed rgba(37,99,235,.32); }
.upload-card input { width: 1px; height: 1px; opacity: 0; position: absolute; }
.upload-card.drag { border-color: var(--blue); background: #eef2ff; transform: translateY(-2px); }
.upload-card.disabled { opacity: .84; }

/* Manage */
.manage-hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.manage-status { background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.25); border-radius: 24px; padding: 18px; min-width: 220px; backdrop-filter: blur(12px); }
.manage-status strong, .manage-status span { display: block; }
.manage-status span { color: rgba(255,255,255,.78); margin-top: 6px; }
.manage-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 18px; align-items: start; }
.manage-layout .host-controls { grid-row: span 2; }
.people-list, .invite-list { display: grid; gap: 10px; }
.person-row, .invite-list article { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: #fff; }
.person-avatar { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: #eef2ff; color: var(--blue); font-weight: 900; }
.person-row small, .invite-list small { display: block; color: var(--muted); }
.person-row select { border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; }
.invite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.invite-grid .field:nth-child(3), .invite-grid button, .invite-grid #inviteResult { grid-column: span 2; }
.invite-list { margin-top: 16px; }
.invite-list code { background: #0f172a; color: white; border-radius: 12px; padding: 9px 11px; font-weight: 900; }

/* Profile / empty / modal */
.profile-card { max-width: 560px; text-align: center; margin: 0 auto; }
.profile-avatar, .empty-icon { width: 72px; height: 72px; border-radius: 26px; display: grid; place-items: center; margin: 0 auto 14px; background: linear-gradient(135deg, #eef2ff, #e0f2fe); color: var(--blue); font-weight: 900; font-size: 28px; }
.profile-avatar { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: white; }
.empty { border: 1px dashed #cbd5e1; border-radius: 28px; padding: 30px; text-align: center; color: var(--muted); background: rgba(255,255,255,.65); grid-column: 1 / -1; }
.empty h3 { color: var(--ink); margin: 8px 0; }
.empty-card { max-width: 720px; text-align: center; margin: 0 auto; padding: 44px; }
.config-warning { position: fixed; inset: 16px; display: grid; place-items: center; }
.config-warning .card { max-width: 760px; }
.code-block { background: #0f172a; color: #e2e8f0; border-radius: 22px; padding: 20px; overflow: auto; text-align: left; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.52); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 20; backdrop-filter: blur(10px); }
.modal.show { display: flex; }
.modal-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 14px; font-size: 24px; line-height: 1; }
.join-modal { text-align: center; }
.photo-modal { padding: 18px; }
.photo-preview { width: min(1180px, 100%); max-height: 92vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 300px; padding: 0; position: relative; }
.photo-stage { background: #020617; display: grid; place-items: center; min-height: 68vh; }
.photo-stage img, .photo-stage video { max-width: 100%; max-height: 88vh; object-fit: contain; }
.photo-info { padding: 24px; }
.modal-close.floating { z-index: 2; background: rgba(255,255,255,.9); }

/* Gradient covers */
.cover-1 { background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 22%), linear-gradient(135deg, #2563eb, #7c3aed 55%, #06b6d4); }
.cover-2 { background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.28), transparent 24%), linear-gradient(135deg, #0ea5e9, #4f46e5 55%, #9333ea); }
.cover-3 { background: radial-gradient(circle at 15% 80%, rgba(255,255,255,.3), transparent 25%), linear-gradient(135deg, #f97316, #ec4899 55%, #6366f1); }
.cover-4 { background: radial-gradient(circle at 75% 70%, rgba(255,255,255,.26), transparent 25%), linear-gradient(135deg, #14b8a6, #2563eb 55%, #4f46e5); }
.cover-5 { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.24), transparent 24%), linear-gradient(135deg, #1d4ed8, #312e81 50%, #0f172a); }
.cover-6 { background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.25), transparent 22%), linear-gradient(135deg, #8b5cf6, #2563eb 55%, #0891b2); }

@media (max-width: 1120px) {
  .auth-page, .layout, .dashboard-grid, .gallery-layout, .manage-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-card { display: none; }
  .nav { grid-template-columns: repeat(3, 1fr); }
  .auth-hero { grid-template-columns: 1fr; min-height: auto; }
  .memory-stack { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-hero, .manage-hero, .page-head { align-items: start; flex-direction: column; }
  .photo-preview { grid-template-columns: 1fr; }
  .photo-stage { min-height: 54vh; }
}
@media (max-width: 720px) {
  .auth-page { padding: 16px; }
  .auth-hero { padding: 26px; border-radius: 28px; }
  .auth-hero h1, .hero-dashboard h1, .gallery-hero h1, .manage-hero h1 { font-size: 42px; }
  .main { padding: 16px; }
  .topbar { grid-template-columns: 1fr; }
  .nav { display: none; grid-template-columns: 1fr; }
  .nav.show { display: grid; }
  .mobile-menu { display: block; border: 0; background: #eef2ff; color: var(--blue); border-radius: 16px; padding: 11px 14px; font-weight: 900; margin-top: 16px; }
  .stats-row, .wizard-steps, .form-grid, .invite-grid { grid-template-columns: 1fr; }
  .span-2, .invite-grid .field:nth-child(3), .invite-grid button, .invite-grid #inviteResult { grid-column: auto; }
  .event-list, .event-list.wide { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-tile.size-3 { grid-column: span 2; }
  .person-row, .invite-list article { grid-template-columns: auto 1fr; }
  .person-row select, .person-row button { grid-column: span 2; width: 100%; }
  .floating-album-card { position: static; margin-top: 22px; width: 100%; }
}
@media (max-width: 460px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-tile.size-2, .photo-tile.size-3, .photo-tile.size-5 { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
}

/* Homepage description sections */
.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-section {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.landing-section-head {
  max-width: 760px;
  margin-bottom: 20px;
}
.landing-section h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .96;
  letter-spacing: -.065em;
}
.landing-section-head p,
.landing-card p,
.landing-step p,
.landing-host-card p {
  color: var(--muted);
  line-height: 1.62;
}
.landing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.landing-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--soft-shadow);
  border-radius: 30px;
  padding: 26px;
}
.landing-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 24px;
  margin-bottom: 18px;
}
.landing-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.04em;
}
.landing-card p { margin: 0; }
.landing-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 18px;
  align-items: stretch;
}
.landing-steps,
.landing-host-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--soft-shadow);
  border-radius: 34px;
  padding: 30px;
}
.landing-step {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.landing-step:last-child { border-bottom: 0; padding-bottom: 0; }
.landing-step span {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.landing-step strong {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
}
.landing-step p { margin: 0; }
.landing-host-card {
  background: linear-gradient(135deg, #172554, #312e81 58%, #1d4ed8);
  color: white;
  overflow: hidden;
  position: relative;
}
.landing-host-card:after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.landing-host-card .eyebrow,
.landing-host-card p { color: rgba(255,255,255,.78); }
.landing-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.landing-pill-row span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  color: white;
}
@media (max-width: 980px) {
  .landing-card-grid,
  .landing-how { grid-template-columns: 1fr; }
}

/* Progressive onboarding and legal links */
.policy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.policy-check input { width: auto; margin-top: 3px; accent-color: var(--blue); }
.policy-check a, .legal-links a { color: var(--blue); font-weight: 900; text-decoration: none; }
.policy-check a:hover, .legal-links a:hover { text-decoration: underline; }
.progressive-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid rgba(37,99,235,.18);
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.setup-password-page .compact-hero { min-height: 560px; }
.legal-page {
  min-height: 100vh;
  padding: 34px;
}
.legal-shell {
  max-width: 920px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  border-radius: 36px;
  padding: 34px;
}
.legal-shell h1 { margin: 18px 0 8px; font-size: clamp(38px, 5vw, 62px); line-height: .95; letter-spacing: -.06em; }
.legal-shell h2 { margin-top: 28px; letter-spacing: -.035em; }
.legal-shell p, .legal-shell li { color: #475569; line-height: 1.7; }
.legal-shell ul { padding-left: 22px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 900; margin-top: 22px; }
@media (max-width: 680px) {
  .legal-page { padding: 16px; }
  .legal-shell { border-radius: 28px; padding: 24px; }
  .legal-links { flex-wrap: wrap; }
}


/* Homepage readability and footer legal links */
.auth-hero-copy {
  position: relative;
  z-index: 6;
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.66));
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 24px 70px rgba(15,23,42,.10);
  backdrop-filter: blur(14px);
}
.auth-hero-copy .logo-row { margin-bottom: 18px; }
.memory-stack { z-index: 1; pointer-events: none; }
.auth-hero .text-gradient { position: relative; z-index: 7; }
.site-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--soft-shadow);
}
.site-footer-brand { display: grid; gap: 6px; }
.site-footer-brand .logo-row { font-size: 22px; }
.site-footer-brand p { margin: 0; color: var(--muted); font-weight: 700; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.site-footer-links a {
  color: var(--blue);
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 13px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.14);
}
.site-footer-links a:hover { background: #dbeafe; transform: translateY(-1px); }
@media (max-width: 980px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer-links { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .auth-hero-copy { padding: 20px; border-radius: 26px; }
  .site-footer { padding: 22px; border-radius: 24px; }
}

/* Trust & Safety update */
.report-list { display: grid; gap: 14px; }
.report-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.78); }
.report-row strong { display: block; margin-bottom: 4px; color: var(--ink); text-transform: capitalize; }
.report-row small { display: block; color: var(--muted); font-weight: 700; }
.report-row .actions { flex-wrap: wrap; justify-content: flex-end; }
.profile-links { justify-content: center; margin: 18px 0; }
.profile-card .btn { margin-top: 10px; }
@media (max-width: 760px) { .report-row { flex-direction: column; } .report-row .actions { justify-content: flex-start; } }

/* Pricing demo update */
.auth-actions-preview a {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}
.landing-pricing {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 36px;
  padding: 30px;
  box-shadow: var(--soft-shadow);
}
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pricing-preview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 250px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 18px 54px rgba(15,23,42,.07);
}
.pricing-preview-card.featured {
  background: linear-gradient(135deg, #172554, #312e81 58%, #2563eb);
  color: #fff;
  transform: translateY(-6px);
}
.pricing-preview-card.featured p { color: rgba(255,255,255,.8); }
.pricing-preview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pricing-preview-top span { font-weight: 900; color: var(--blue); }
.pricing-preview-card.featured .pricing-preview-top span { color: rgba(255,255,255,.8); }
.pricing-preview-top strong { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.06em; line-height: .9; }
.pricing-chip {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.pricing-preview-card.featured .pricing-chip { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.pricing-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; color: var(--muted); font-weight: 800; }
.pricing-page .legal-shell { max-width: 1180px; }
.pricing-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.pricing-hero h1 { margin-bottom: 14px; }
.price-toggle {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid var(--line);
}
.price-toggle button { border: 0; border-radius: 999px; padding: 11px 14px; background: transparent; color: var(--muted); font-weight: 900; }
.price-toggle button.active { background: #fff; color: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 30px; }
.plan-card { display: grid; gap: 14px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 30px; padding: 22px; box-shadow: var(--soft-shadow); }
.plan-card.featured { background: linear-gradient(135deg, #172554, #312e81 58%, #2563eb); color: #fff; transform: translateY(-6px); }
.plan-card .badge { justify-self: start; }
.plan-card h2 { margin: 0; }
.plan-price { font-size: 40px; font-weight: 900; letter-spacing: -.06em; }
.plan-card p, .plan-card li { color: var(--muted); }
.plan-card.featured p, .plan-card.featured li { color: rgba(255,255,255,.78); }
.plan-card ul { padding-left: 18px; margin: 0; display: grid; gap: 8px; }
.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--soft-shadow); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.pricing-table th, .pricing-table td { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.pricing-table th { background: #f8fafc; color: #334155; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pricing-table tr:last-child td { border-bottom: 0; }
.check { color: #047857; font-weight: 900; }
.no { color: #94a3b8; font-weight: 900; }
.custom-package-demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; margin-top: 28px; }
.custom-card { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: var(--soft-shadow); }
.package-form { display: grid; gap: 12px; }
.package-form label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 17px; color: #334155; font-weight: 900; }
.package-form input { accent-color: var(--blue); }
.entitlement-list { display: grid; gap: 10px; margin-top: 14px; }
.entitlement-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 17px; background: #f8fafc; border: 1px solid var(--line); }
.entitlement-row strong { color: var(--ink); }
.entitlement-row span { color: var(--muted); font-weight: 800; }
@media (max-width: 980px) {
  .pricing-preview-grid, .pricing-grid, .custom-package-demo, .pricing-hero { grid-template-columns: 1fr; }
  .pricing-preview-card.featured, .plan-card.featured { transform: none; }
}


/* Coming soon privacy landing page */
.coming-soon-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 15%, rgba(16,185,129,.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(37,99,235,.18), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef7ff 48%, #f7fee7 100%);
  color: var(--ink);
  overflow: hidden;
}
.coming-nav {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.coming-nav .logo-row { color: var(--ink); text-decoration: none; }
.btn.small { padding: 10px 14px; font-size: 13px; }
.coming-hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 42px;
  align-items: center;
  padding: 34px 0 72px;
}
.coming-copy h1 {
  max-width: 780px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .88;
  letter-spacing: -.075em;
  margin: 10px 0 22px;
}
.coming-lede {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
  margin-bottom: 30px;
}
.coming-form {
  max-width: 680px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 28px 80px rgba(15,23,42,.10);
  backdrop-filter: blur(18px);
}
.coming-form label { font-weight: 900; color: var(--ink); }
.coming-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.coming-input-row input {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
  background: #fff;
}
.coming-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.coming-preview-card {
  justify-self: center;
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 44px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 40px 110px rgba(15,23,42,.16);
}
.preview-phone-shell {
  border-radius: 38px;
  background: #0f172a;
  padding: 16px;
  color: #fff;
  min-height: 580px;
  position: relative;
  overflow: hidden;
}
.preview-phone-top { width: 88px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.35); margin: 0 auto 22px; }
.preview-event-card {
  display: grid;
  gap: 12px;
  border-radius: 30px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.16);
}
.preview-event-card h2 { margin: 0; letter-spacing: -.03em; }
.preview-event-card p { color: rgba(255,255,255,.72); margin: 0; }
.preview-photo-grid { display: grid; gap: 10px; margin-top: 10px; }
.preview-photo-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255,255,255,.16); }
.coming-feature-strip {
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.coming-feature-strip article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
}
.coming-feature-strip strong { color: var(--ink); font-size: 17px; }
.coming-feature-strip span { color: var(--muted); line-height: 1.45; }
.access-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(10px);
}
.access-panel[hidden] { display: none; }
.access-card {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  border-radius: 34px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 40px 130px rgba(2,6,23,.30);
}
.access-card h2 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.access-form { display: grid; gap: 14px; }
.access-close { position: absolute; right: 18px; top: 16px; }
.help.tiny { font-size: 12px; line-height: 1.45; }
.error { color: #b91c1c; font-weight: 800; margin: 8px 0 0; }
@media (max-width: 900px) {
  .coming-hero { grid-template-columns: 1fr; min-height: auto; }
  .coming-preview-card { order: -1; width: min(360px, 100%); }
  .preview-phone-shell { min-height: auto; }
  .coming-feature-strip { grid-template-columns: 1fr; margin-top: -18px; }
  .coming-input-row { grid-template-columns: 1fr; }
}

/* Black coming-soon page update */
.black-launch-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(16,185,129,.22), transparent 26%),
    radial-gradient(circle at 88% 4%, rgba(37,99,235,.20), transparent 30%),
    radial-gradient(circle at 55% 90%, rgba(124,58,237,.18), transparent 30%),
    linear-gradient(145deg, #020617 0%, #050816 52%, #000 100%);
  color: #f8fafc;
}
.black-launch-page .coming-nav .logo-row,
.black-launch-page .coming-copy h1,
.black-launch-page .coming-form label,
.black-launch-page .access-inline-card h2,
.black-launch-page .coming-feature-strip strong { color: #f8fafc; }
.black-launch-page .brand-mark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.42); }
.black-launch-page .eyebrow { color: #34d399; }
.black-launch-page .coming-lede,
.black-launch-page .help,
.black-launch-page .coming-feature-strip span { color: rgba(226,232,240,.76); }
.black-action-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); gap: 16px; align-items: stretch; max-width: 900px; }
.dark-form,
.access-inline-card,
.dark-feature-strip article,
.dark-preview-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}
.access-inline-card { display: grid; gap: 10px; padding: 20px; border-radius: 30px; }
.access-inline-card h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.access-inline-card .field label { color: rgba(248,250,252,.92); }
.access-inline-card .field input,
.black-launch-page .coming-input-row input { background: rgba(2,6,23,.78); color: #f8fafc; border-color: rgba(148,163,184,.34); }
.access-inline-card .field input::placeholder,
.black-launch-page .coming-input-row input::placeholder { color: rgba(203,213,225,.58); }
.black-launch-page .btn.primary { background: linear-gradient(135deg, #10b981, #2563eb); box-shadow: 0 18px 36px rgba(16,185,129,.18); }
.black-launch-page .btn.light { background: #f8fafc; color: #020617; }
.black-launch-page .success { background: rgba(16,185,129,.12); border-color: rgba(52,211,153,.36); color: #bbf7d0; }
.black-launch-page .error { background: rgba(239,68,68,.12); border-color: rgba(248,113,113,.34); color: #fecaca; }
.dark-preview-card { border-radius: 44px; }
.dark-feature-strip article { background: rgba(15, 23, 42, .72); }
@media (max-width: 980px) {
  .black-action-grid { grid-template-columns: 1fr; }
}
