:root {
  --text: #17182f;
  --muted: #62647a;
  --line: #e8e5f2;
  --bg: #fbf8ff;
  --surface: #ffffff;
  --soft: #f4f1fb;
  --sun: #ffb703;
  --coral: #ff5a3d;
  --coral-dark: #d93b25;
  --mint: #2fbfbc;
  --lavender: #7c5cff;
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 6px, rgba(0,0,0,0.10) 0 16px 42px;
  --shadow-soft: rgba(0,0,0,0.04) 0 1px 2px, rgba(0,0,0,0.08) 0 18px 55px;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 6%, rgba(255,183,3,.18), transparent 25rem),
    radial-gradient(circle at 88% 9%, rgba(124,92,255,.16), transparent 28rem),
    radial-gradient(circle at 50% 0%, rgba(255,90,61,.08), transparent 32rem),
    linear-gradient(180deg, #fff8ee 0%, #fbf8ff 40%, #ffffff 100%);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; }
p { text-wrap: pretty; }
.skip-link {
  position: absolute; left: 18px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 999px; background: var(--text); color: white;
}
.skip-link:focus { top: 14px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 15px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(236,232,225,.72);
  background: rgba(255,253,249,.88);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: max-content; text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  box-shadow: 0 14px 30px rgba(255,56,92,.22); font-size: 1.25rem;
}
.brand strong { display: block; font-size: 1.02rem; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); color: var(--muted); font-size: .96rem; font-weight: 800; }
.nav a { text-decoration: none; transition: color .18s ease, transform .18s ease; }
.nav a:hover { color: var(--text); transform: translateY(-1px); }
.nav-cta { padding: 12px 17px; border-radius: 999px; background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: #fff !important; }
.menu-toggle { display: none; align-items: center; gap: 4px; min-height: 42px; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 0 14px; color: var(--text); font: inherit; font-weight: 900; cursor: pointer; }
.menu-toggle span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ── SECTION BASE ── */
.section { width: min(1220px, calc(100% - 36px)); margin: 0 auto; padding: clamp(58px, 8vw, 108px) 0; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.72; }
.centered { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .9; font-weight: 900; }
h2 { font-size: clamp(2.25rem, 5vw, 5.25rem); line-height: .94; font-weight: 900; }
h3 { font-size: 1.25rem; line-height: 1.05; font-weight: 900; }
.lead { max-width: 670px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.72; }
.lead.small { max-width: 610px; }

/* ── BUTTONS ── */
.button {
  min-height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0 24px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: rgba(0,0,0,.08) 0 12px 28px; }
.button.primary { border: 0; color: white; background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.button.secondary { background: white; }
.button-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.button-control { width: 100%; border: 0; cursor: pointer; font: inherit; }

/* ── HOME SECTION ── */
.home-section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0 clamp(42px, 7vw, 82px);
}
.home-inner {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(360px, 1.02fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}
.daily-prompt-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: white; box-shadow: var(--shadow-soft);
  font-size: .88rem; font-weight: 800; color: var(--text);
}
.prompt-dot { font-size: 1.1rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero gallery cards */
.hero-gallery {
  position: relative; min-height: 620px; border-radius: 40px;
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.hero-gallery::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,183,3,.38), transparent 10rem),
    radial-gradient(circle at 82% 10%, rgba(124,92,255,.35), transparent 13rem),
    radial-gradient(circle at 75% 78%, rgba(47,191,188,.22), transparent 15rem),
    linear-gradient(145deg, #fffaf1 0%, #f1edff 54%, #11142d 100%);
}
.gallery-card {
  position: absolute; border-radius: 28px; padding: 24px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(12px);
}
.main-card {
  left: 8%; top: 8%; width: 67%; min-height: 56%;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
  background:
    linear-gradient(180deg, rgba(15,18,48,.05), rgba(15,18,48,.76)),
    radial-gradient(circle at 30% 24%, #ffd166, transparent 19%),
    radial-gradient(circle at 78% 18%, #c4b5fd, transparent 22%),
    linear-gradient(135deg, #ffb703, #fb8500 35%, #7c5cff 72%, #11142d);
}
.main-card .tag { align-self: flex-start; margin-bottom: auto; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: .8rem; font-weight: 900; }
.main-card h2 { max-width: 9ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.main-card p { max-width: 310px; color: rgba(255,255,255,.82); line-height: 1.45; }
.stat-card { right: 7%; top: 18%; width: 28%; min-height: 28%; display: grid; align-content: center; color: var(--text); transform: rotate(4deg); }
.stat-card strong { display: block; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .85; letter-spacing: -.08em; }
.stat-card span, .album-card span, .note-card span { color: var(--muted); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.note-card { right: 8%; bottom: 10%; width: 42%; color: var(--text); }
.note-card p { margin: 12px 0 0; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; }
.album-card { left: 10%; bottom: 9%; width: 31%; min-height: 25%; display: grid; align-content: center; color: white; background: linear-gradient(135deg, #222, #4b2a15); transform: rotate(-3deg); }
.album-card strong { margin-top: 8px; font-size: 1.8rem; }
.album-card span { color: rgba(255,255,255,.68); }

/* ── EXPLORE SECTION ── */
.explore-section .section-heading { margin-bottom: 24px; }

.feed-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 6px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  width: fit-content; box-shadow: rgba(0,0,0,.04) 0 4px 16px;
}
.feed-tab {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.feed-tab:hover { color: var(--text); background: var(--soft); }
.feed-tab.is-active { background: var(--text); color: white; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-card {
  overflow: hidden; border-radius: var(--radius);
  background: white; border: 1px solid var(--line);
  box-shadow: rgba(0,0,0,.04) 0 12px 34px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.photo-card:hover { transform: translateY(-3px); box-shadow: rgba(0,0,0,.1) 0 20px 48px; }
.photo-thumb {
  min-height: 200px; display: grid; place-items: center;
  font-size: 3.2rem; color: white;
}
.photo-thumb-video { width: 100%; min-height: 200px; max-height: 220px; object-fit: cover; display: block; }
.photo-body { padding: 20px; }
.photo-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.photo-date { color: var(--muted); font-size: .8rem; font-weight: 700; }
.photo-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.photo-body p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0 0 14px; }
.photo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.photo-author { color: var(--muted); font-size: .82rem; font-weight: 800; }
.photo-card[data-hidden] { display: none; }

/* Category pills */
.cat-pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.sunrise-pill { background: #fff4da; color: #b36b00; }
.sunset-pill  { background: #ffe8e0; color: #c03010; }
.moon-pill    { background: #eeeaf8; color: #5b3ecc; }
.space-pill   { background: #e8f0ff; color: #1a3ca8; }
.storm-pill   { background: #e8edf8; color: #1e3a6e; }
.clouds-pill  { background: #eef6ff; color: #1a5276; }

/* Photo thumbnail backgrounds */
.sunrise-bg { background: linear-gradient(135deg, #ffd166, #fb8500, #ff5a3d); }
.sunset-bg  { background: linear-gradient(135deg, #ff7a3d, #d946ef, #312e81); }
.moon-bg    { background: radial-gradient(circle at 50% 42%, #fff9c4 0 18%, transparent 19%), linear-gradient(135deg, #11142d, #39416d); }
.stars-bg   { background: radial-gradient(circle at 25% 25%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 35%, #fff 0 1px, transparent 2px), radial-gradient(circle at 50% 70%, #fff 0 1px, transparent 2px), linear-gradient(135deg, #090a1f, #312e81, #0f766e); }
.storm-bg   { background: linear-gradient(135deg, #1a1f3c, #2d3561, #4a5568); }
.clouds-bg  { background: linear-gradient(135deg, #c8d8e8, #e8f0f8, #b0c8e0); }

/* Vote button */
.vote-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  color: white; background: linear-gradient(135deg, var(--lavender), #11142d);
  font: inherit; font-size: .88rem; font-weight: 900; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.vote-button:hover { transform: translateY(-2px); box-shadow: rgba(17,20,45,.22) 0 8px 20px; }
.vote-button.has-voted { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.vote-button strong { min-width: 1.6rem; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .82rem; }

/* ── POST SECTION ── */
.post-section {
  background:
    radial-gradient(circle at 10% 18%, rgba(255,183,3,.18), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(124,92,255,.16), transparent 28rem),
    linear-gradient(180deg, #fff8ee, #fbf8ff);
  width: 100%; padding: clamp(58px, 8vw, 108px) 0;
}
.post-section > .section-heading,
.post-section > .post-layout {
  width: min(1220px, calc(100% - 36px));
  margin-left: auto; margin-right: auto;
}
.post-layout { display: flex; flex-direction: column; gap: 24px; }
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 42px; background: white;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.post-upload-area { display: flex; flex-direction: column; }
.upload-preview {
  min-height: 300px; display: grid; place-items: center;
  align-content: center; gap: 10px; padding: 24px; overflow: hidden;
  border-radius: 30px; text-align: center; color: white;
  background:
    radial-gradient(circle at 40% 22%, rgba(255,209,102,.8), transparent 8rem),
    linear-gradient(160deg, #ff9f1c, #7c5cff 60%, #07091f);
}
.upload-preview.has-image { background-size: cover; background-position: center; }
.upload-preview.has-image span,
.upload-preview.has-image strong,
.upload-preview.has-image small { display: none; }
.upload-preview span { font-size: 4rem; }
.upload-preview strong { font-size: 1.5rem; line-height: 1.05; letter-spacing: -.04em; }
.upload-preview small { color: rgba(255,255,255,.72); font-weight: 800; }
.video-preview { width: 100%; border-radius: 30px; background: #000; display: block; max-height: 300px; object-fit: contain; }
.compress-wrap { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.compress-bar-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.compress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sun), var(--coral)); width: 0%; transition: width .3s ease; }
.compress-note { margin: 8px 0 0; color: var(--muted); font-size: .82rem; font-weight: 800; text-align: center; }
.camera-input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.camera-button {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  margin-top: 16px; border-radius: 999px; color: var(--text);
  background: var(--soft); border: 1px solid var(--line);
  font: inherit; font-weight: 900; font-size: .95rem; cursor: pointer;
  transition: background .18s ease;
}
.camera-button:hover { background: var(--line); }
.camera-note { margin: 12px 4px 0; color: var(--muted); font-size: .88rem; text-align: center; }

.post-fields { display: flex; flex-direction: column; }
.field-label { display: block; margin: 14px 0 7px; color: var(--text); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.text-field {
  width: 100%; min-height: 50px; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: var(--text); font: inherit; font-weight: 700; outline: none;
}
.text-field:focus { border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.caption-field { resize: vertical; min-height: 90px; line-height: 1.55; }
.field-help, .auth-note { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.char-count { text-align: right; }

.cat-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.cat-btn {
  padding: 12px 8px; border: 2px solid var(--line); border-radius: 18px;
  background: var(--soft); color: var(--text); font: inherit; font-size: .88rem;
  font-weight: 900; cursor: pointer; text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cat-btn:hover { border-color: var(--lavender); background: #f0ecff; transform: translateY(-1px); }
.cat-btn.is-selected { border-color: var(--coral); background: #fff0ee; color: var(--coral-dark); }

.post-submit-btn {
  width: 100%; margin-top: 24px; min-height: 56px;
  font-size: 1.05rem; opacity: 1; transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.post-submit-btn:disabled { opacity: .38; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.post-hint { margin: 10px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* ── META PANEL ── */
.meta-panel {
  padding: 22px 26px; border-radius: 24px;
  background: var(--soft); border: 1px solid var(--line);
}
.meta-heading { margin: 0 0 14px; color: var(--muted); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border-bottom: 0; }
.meta-key { color: var(--muted); font-size: .85rem; font-weight: 800; flex-shrink: 0; }
.meta-val { color: var(--text); font-size: .85rem; font-weight: 700; text-align: right; word-break: break-word; }

/* ── CHALLENGES SECTION ── */
.challenges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.challenge-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius); min-height: 280px;
  color: white; box-shadow: var(--shadow-soft);
}
.challenge-sunrise { background: linear-gradient(135deg, #ffb703, #fb8500, #ff5a3d); }
.challenge-moon    { background: linear-gradient(135deg, #11142d, #312e81, #39416d); }
.challenge-storm   { background: linear-gradient(135deg, #1a1f3c, #2d3561, #1e3a6e); }
.challenge-sunset  { background: linear-gradient(135deg, #ff7a3d, #d946ef, #312e81); }
.challenge-icon { font-size: 2.4rem; line-height: 1; }
.challenge-body { display: flex; flex-direction: column; flex: 1; gap: 8px; }
.challenge-label { font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.challenge-body h3 { font-size: 1.18rem; }
.challenge-body p { color: rgba(255,255,255,.8); font-size: .92rem; line-height: 1.55; flex: 1; }
.challenge-body .button.primary { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: white; margin-top: auto; align-self: flex-start; }
.challenge-body .button.primary:hover { background: rgba(255,255,255,.3); }

/* ── WINNERS SECTION ── */
.winners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.winner-card {
  overflow: hidden; border-radius: var(--radius); background: white;
  border: 1px solid var(--line); box-shadow: rgba(0,0,0,.04) 0 12px 34px;
  transition: transform .2s ease;
}
.winner-card:hover { transform: translateY(-3px); }
.winner-featured { grid-column: span 2; }
.winner-thumb { min-height: 200px; display: grid; place-items: center; font-size: 3rem; color: white; }
.winner-featured .winner-thumb { min-height: 280px; font-size: 4rem; }
.winner-body { padding: 20px; }
.winner-body h3 { margin: 10px 0 6px; }
.winner-credit { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 700; }

/* ── PROFILE SECTION ── */
.profile-card {
  max-width: 780px; margin: 0 auto;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 42px; background: white;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  text-align: center;
}
.profile-avatar-big { display: block; font-size: 3.5rem; margin-bottom: 18px; }
.profile-header { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; text-align: left; }
.profile-email { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.profile-stats-row { display: flex; gap: 24px; margin-bottom: 32px; }
.profile-stat { flex: 1; padding: 20px; border-radius: 20px; background: var(--soft); text-align: center; }
.profile-stat strong { display: block; font-size: 2.2rem; letter-spacing: -.06em; font-weight: 900; }
.profile-stat span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.profile-empty-grid { padding: 32px; border-radius: 20px; border: 2px dashed var(--line); color: var(--muted); font-size: .95rem; font-weight: 700; }

/* ── AUTH SECTION ── */
.auth-card {
  display: grid; grid-template-columns: .86fr 1.14fr;
  gap: clamp(28px, 5vw, 66px); align-items: start;
  padding: clamp(26px, 5vw, 56px); border-radius: 40px;
  color: white;
  background:
    radial-gradient(circle at 10% 12%, rgba(255,183,3,.32), transparent 18rem),
    radial-gradient(circle at 90% 10%, rgba(47,191,188,.26), transparent 18rem),
    linear-gradient(135deg, #11142d, #21184e 55%, #4b1e64);
  box-shadow: var(--shadow-soft);
}
.auth-card .lead { color: rgba(255,255,255,.72); }
.auth-status, .signed-in-panel {
  margin-top: 22px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); font-weight: 800;
}
.signed-in-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.signed-in-panel[hidden] { display: none; }
.signed-in-panel p { margin: 0; }
.auth-forms { padding: clamp(20px, 4vw, 30px); border-radius: 30px; background: rgba(255,255,255,.96); color: var(--text); box-shadow: rgba(0,0,0,.18) 0 24px 70px; }
.provider-row { margin: 18px 0; }
.auth-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-form { padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.auth-form h3 { margin-bottom: 10px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.link-button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--coral-dark); font: inherit; font-weight: 900; cursor: pointer; text-decoration: underline; }
.recaptcha-box { min-height: 78px; margin: 12px 0; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 16px; background: #fff; overflow: hidden; }

/* ── Google sign-in button ── */
.signin-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.google-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid #dadce0; background: #fff;
  color: #3c4043; font: inherit; font-size: .97rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .18s ease, background .18s ease;
}
.google-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,.16); background: #f8f9fa; }
.google-btn-full { width: 100%; justify-content: center; }

/* ── FAB ── */
.fab-post {
  display: none;
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: white; text-decoration: none;
  font-size: 2rem; font-weight: 900; line-height: 1;
  align-items: center; justify-content: center;
  box-shadow: rgba(255,90,61,.4) 0 8px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab-post:hover { transform: scale(1.08); box-shadow: rgba(255,90,61,.5) 0 12px 36px; }

/* ── FOOTER ── */
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px clamp(18px, 4vw, 64px); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--coral); font-weight: 900; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .winners-grid { grid-template-columns: repeat(2, 1fr); }
  .winner-featured { grid-column: span 2; }
}
@media (max-width: 980px) {
  .home-inner, .auth-card, .post-card { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .hero-gallery { min-height: 560px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .challenges-grid { grid-template-columns: repeat(2, 1fr); }
  .winners-grid { grid-template-columns: repeat(2, 1fr); }
  .winner-featured { grid-column: span 2; }
  .feed-tabs { border-radius: 20px; }
}
@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .hero-gallery { min-height: 510px; border-radius: 30px; }
  .main-card { width: 78%; min-height: 48%; }
  .stat-card { width: 34%; right: 4%; top: 25%; }
  .note-card { width: 54%; right: 5%; }
  .album-card { width: 42%; }
  .photo-grid { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: 1fr; }
  .winners-grid { grid-template-columns: 1fr; }
  .winner-featured { grid-column: span 1; }
  .feed-tabs { width: 100%; border-radius: 18px; gap: 4px; }
  .feed-tab { flex: 1; min-width: max-content; padding: 0 10px; font-size: .8rem; }
  .cat-picker { grid-template-columns: repeat(2, 1fr); }
  .auth-card { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats-row { gap: 12px; }
  .site-footer, .signed-in-panel { flex-direction: column; align-items: flex-start; }
  .fab-post { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, html { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #edeaff; --muted: #8b8daa; --line: #252744;
    --bg: #0c0e24; --surface: #13152e; --soft: #181a38;
    --shadow: rgba(0,0,0,.5) 0 0 0 1px, rgba(0,0,0,.3) 0 2px 6px, rgba(0,0,0,.5) 0 16px 42px;
    --shadow-soft: rgba(0,0,0,.3) 0 1px 2px, rgba(0,0,0,.4) 0 18px 55px;
  }
  body {
    background:
      radial-gradient(circle at 10% 6%, rgba(255,183,3,.10), transparent 25rem),
      radial-gradient(circle at 88% 9%, rgba(124,92,255,.12), transparent 28rem),
      linear-gradient(180deg, #0e1024 0%, #0c0e20 40%, #080a1a 100%);
  }
  .site-header { border-bottom-color: rgba(255,255,255,.08); background: rgba(10,12,30,.90); }
  .hero-gallery { background: var(--surface); }
  .gallery-card { background: rgba(20,22,52,.78); border-color: rgba(255,255,255,.10); }
  .button.secondary { background: var(--surface); border-color: var(--line); }
  .daily-prompt-chip { background: var(--surface); border-color: var(--line); }
  .feed-tabs { background: var(--surface); border-color: var(--line); }
  .feed-tab.is-active { background: var(--text); color: var(--bg); }
  .photo-card { background: var(--surface); border-color: var(--line); }
  .vote-button { background: linear-gradient(135deg, var(--lavender), #000); }
  .post-card { background: var(--surface); border-color: var(--line); }
  .camera-button { background: var(--soft); border-color: var(--line); color: var(--text); }
  .camera-button:hover { background: var(--line); }
  .cat-btn { background: var(--soft); border-color: var(--line); color: var(--text); }
  .cat-btn:hover { border-color: var(--lavender); background: #1a1538; }
  .cat-btn.is-selected { border-color: var(--coral); background: #2a1010; color: #ff8870; }
  .compress-wrap { background: var(--soft); border-color: var(--line); }
  .compress-bar-track { background: var(--line); }
  .meta-panel { background: var(--soft); border-color: var(--line); }
  .text-field { background: var(--soft); color: var(--text); border-color: var(--line); }
  .auth-forms { background: rgba(24,26,56,.97); color: var(--text); }
  .auth-form { background: var(--bg); border-color: var(--line); }
  .winner-card { background: var(--surface); border-color: var(--line); }
  .profile-card { background: var(--surface); border-color: var(--line); }
  .profile-stat { background: var(--soft); }
  .profile-empty-grid { border-color: var(--line); }
  .site-footer { border-top-color: var(--line); }
}
