/* =========================================================
   RydZone · main stylesheet
   Brand: logo orange #FE480C + graphite. Light and dark themes.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-app: #F6F6F7;
  --bg-soft: #F2F2F4;
  --surface: #FFFFFF;
  --line: #E6E6E9;
  --fg: #18191C;
  --fg-2: #4A4C52;
  --fg-3: #6B6E76;

  --accent: #FE480C;          /* logo orange, fills only */
  --on-accent: #18191C;       /* text on orange */
  --accent-text: #C2410C;     /* orange for text on light bg */
  --accent-soft: #FFEDE5;

  --ink: #18191C;             /* primary buttons */
  --on-ink: #FFFFFF;
  --block: #18191C;           /* dark feature blocks */
  --on-block: #FFFFFF;
  --on-block-2: #B9BBC1;

  --ok: #0B7A43;   --ok-soft: #E3F4EA;
  --warn: #8A5200; --warn-soft: #FFF1D6;
  --bad: #B42318;  --bad-soft: #FFE4E0;

  --map: #EEEEF0; --sea: #DCE6EB; --road: #FFFFFF;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 44px rgba(24, 25, 28, .14);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

html.dark {
  --bg: #0E0F11;
  --bg-app: #0E0F11;
  --bg-soft: #1D1F23;
  --surface: #16181B;
  --line: #27292E;
  --fg: #F2F3F5;
  --fg-2: #B8BBC1;
  --fg-3: #8E929A;

  --accent-text: #FF7A45;
  --accent-soft: #3A1A0E;

  --ink: #F2F3F5;
  --on-ink: #0E0F11;
  --block: #1B1D21;
  --on-block: #F2F3F5;
  --on-block-2: #A6A9B0;

  --ok: #5BD49A;   --ok-soft: #12291D;
  --warn: #FFC266; --warn-soft: #2E2210;
  --bad: #FF8A84;  --bad-soft: #341414;

  --map: #15171A; --sea: #101C24; --road: #2A2D32;
  --shadow: 0 20px 44px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.app { background: var(--bg-app); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--on-ink); }
svg.i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 16px; height: 16px; }
svg.i-lg { width: 24px; height: 24px; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .h4 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.display { margin: 0; font-size: clamp(44px, 6.2vw, 86px); font-weight: 800; letter-spacing: -.045em; line-height: .97; }
.h1 { font-size: clamp(26px, 2.4vw, 30px); }
.h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.04; }
.h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.h4 { font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; margin: 0 0 8px; }
.muted { color: var(--fg-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; }
.accent { color: var(--accent-text); }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 16rem), 100%), 1fr)); }
.grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 16rem), 100%), 1fr)); }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; background: var(--bg-soft); color: var(--fg);
  transition: transform .12s ease, background-color .15s ease;
}
.btn:hover { color: inherit; filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { color: var(--on-ink); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); filter: brightness(1.05); }
.btn-outline { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-white { background: #FFFFFF; color: #18191C; }
.btn-white:hover { color: #18191C; }
.btn-glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #FFFFFF; }
.btn-glass:hover { color: #FFFFFF; }
.btn-lg { height: 54px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); display: inline-grid; place-items: center; position: relative; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--fg); background: var(--bg-soft); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); border: 2px solid var(--surface); }
.theme-icon-sun { display: none; }
html.dark .theme-icon-sun { display: block; }
html.dark .theme-icon-moon { display: none; }

/* ---------- Chips / tags / tabs ---------- */
.chip {
  height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--fg-3); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; line-height: 1.3; }
.tag-white { background: #FFFFFF; color: #18191C; }
.tag-accent { background: var(--accent); color: var(--on-accent); }
.tag-soft { background: var(--bg-soft); color: var(--fg); font-weight: 600; }
.tag-dark { background: rgba(0,0,0,.6); color: #FFFFFF; font-weight: 600; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); }
.pulse { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); flex: 0 0 auto; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  height: 48px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--fg-3); font-weight: 700; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"], .tab.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.segmented { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.segmented button { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); font-weight: 700; font-size: 12px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--fg); }

/* ---------- Cards / photos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-pad-lg { padding: 28px; }
.card-clip { overflow: hidden; }
.soft { background: var(--bg-soft); border-radius: var(--radius); }
.block { background: var(--block); color: var(--on-block); border-radius: 30px; border: 1px solid var(--line); }
.block .muted { color: var(--on-block-2); }

.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #8A8C92; }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo > a:first-child { position: absolute; inset: 0; display: block; }
.photo > a:first-child > img { width: 100%; height: 100%; object-fit: cover; }
.photo.shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); pointer-events: none; }
.photo .on-photo { position: absolute; z-index: 1; color: #FFFFFF; }
.photo .on-photo.tag-white, .photo .on-photo.date-badge, .photo .on-photo.float, .photo .on-photo.btn-white { color: #18191C; }
.photo .on-photo.btn-accent { color: var(--on-accent); }
html.dark .photo .on-photo.float { color: var(--fg); }
.photo .tl { left: 14px; top: 14px; } .photo .tr { right: 14px; top: 14px; }
.photo .bl { left: 14px; bottom: 14px; } .photo .br { right: 14px; bottom: 14px; }
.photo .bottom { left: 18px; right: 18px; bottom: 16px; }
.thumb { border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: #8A8C92; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.date-badge { background: #FFFFFF; color: #18191C; border-radius: 10px; padding: 6px 10px; text-align: center; line-height: 1; }
.date-badge b { display: block; font-size: 10px; color: #C2410C; }
.date-badge span { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }
.float { background: var(--surface); color: var(--fg); border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- Avatars ---------- */
.av { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex: 0 0 auto; overflow: hidden; font-size: 12px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-24 { width: 24px; height: 24px; font-size: 9px; } .av-30 { width: 30px; height: 30px; font-size: 10px; }
.av-36 { width: 36px; height: 36px; } .av-42 { width: 42px; height: 42px; font-size: 13px; }
.av-48 { width: 48px; height: 48px; font-size: 14px; } .av-64 { width: 64px; height: 64px; font-size: 18px; }
.av-a { background: #FFE3C2; color: #6B3A00; } .av-b { background: #CDEBDD; color: #0E4A33; }
.av-c { background: #DCD8FF; color: #2E2580; } .av-d { background: #18191C; color: #FFFFFF; }
.av-e { background: #FFD6D6; color: #7A1010; } .av-o { background: var(--accent); color: var(--on-accent); }
.av-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.av-stack { display: flex; }
.av-stack .av { border: 2px solid var(--surface); }
.av-stack .av + .av { margin-left: -9px; }
.club-logo { border-radius: 14px; display: inline-grid; place-items: center; font-weight: 800; flex: 0 0 auto; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.input, .select, .textarea {
  width: 100%; height: 46px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 0 14px; font-size: 15px; color: var(--fg);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.search { display: flex; align-items: center; gap: 10px; height: 44px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0 14px; color: var(--fg-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font-size: 15px; height: 100%; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); }
.filter-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--fg-3); letter-spacing: .05em; text-transform: uppercase; }
.filters > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; }
.filters > summary::-webkit-details-marker { display: none; }
@media (min-width: 981px) { .filters > summary { pointer-events: none; } .filters > summary .muted { display: none; } }
@media (max-width: 980px) { .filters { max-width: none !important; flex-basis: 100% !important; } }
.upload { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--fg-3); background: var(--bg-soft); }

/* ---------- Progress / bars / tables ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.progress.ink > span { background: var(--fg); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars span { flex: 1; background: var(--bg-soft); border-radius: 5px; }
.bars span.on { background: var(--accent); }
.bars.ink span { background: var(--fg); } .bars.ink span.on { background: var(--accent); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--fg-3); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--fg-3); }
.spec { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.spec span { display: block; font-size: 12px; color: var(--fg-3); }
.spec b { display: block; font-size: 15px; margin-top: 2px; }

/* =========================================================
   Public site (landing, auth)
   ========================================================= */
.topbar { background: var(--block); color: var(--on-block); font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: var(--on-block); font-weight: 700; text-decoration: underline; }
.topbar .muted { color: var(--on-block-2); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; gap: 12px 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -.04em; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand img { width: 42px; height: 42px; }
.brand em { font-style: normal; color: var(--accent-text); }
.site-nav { display: flex; gap: 28px; flex: 1; }
.site-nav a { font-weight: 600; font-size: 15px; padding: 10px 0; }
.site-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }

.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-art { flex: 1.15 1 520px; min-width: 0; position: relative; }
.hero-collage { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 17rem 17rem; gap: 14px; }
.hero-collage .photo:first-child { grid-row: span 2; border-radius: 26px; }
.hero-collage .photo { border-radius: 26px; }
.hero-card { position: absolute; left: -28px; bottom: 26px; width: 290px; padding: 14px; z-index: 2; }
.hero-live { position: absolute; right: -14px; top: 22px; padding: 10px 14px; z-index: 2; }
.hero-stat { position: absolute; right: 30px; bottom: -18px; padding: 12px 16px; display: flex; gap: 18px; z-index: 2; }

.benefit { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.benefit .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--block); color: var(--on-block); font-weight: 800; font-size: 13px; }
.benefit .ico.orange { background: var(--accent); color: var(--on-accent); }

.logo-strip { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 26px; padding-bottom: 26px; font-size: 19px; }

.live-map { position: relative; height: 27rem; border-radius: var(--radius); overflow: hidden; background: var(--map); border: 1px solid var(--line); }
.live-map svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; width: 40px; height: 40px; border-radius: 20px; border: 3px solid #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px var(--accent); }
.activity-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }

.bento { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.bento .tall { grid-row: span 2; min-height: 30rem; }
.bento .photo { min-height: 14rem; }

.app-showcase { padding: 56px 48px 0; overflow: hidden; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; margin-top: 48px; margin-bottom: -120px; }
.phone { width: 250px; height: 520px; border-radius: 40px; border: 9px solid #0A0A0B; background: #FFFFFF; color: #18191C; overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.35); flex: 0 0 auto; }
.phone.lower { margin-top: 60px; }
.after-phones { padding-top: 200px; }

.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 14px 18px; text-align: center; min-width: 4.5rem; }
.countdown b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.countdown span { font-size: 12px; opacity: .85; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--fg-2); max-width: 40rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; color: var(--fg-2); font-size: 15px; }
.checklist li::before { content: "✓"; color: var(--accent-text); font-weight: 800; }

.site-footer { padding-top: 64px; padding-bottom: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 0 1 9rem; }
.footer-cols nav b { font-size: 13px; color: var(--fg-3); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 13px; color: var(--fg-3); }

/* Auth */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-art { flex: 1 1 460px; position: relative; min-height: 22rem; }
.auth-art .photo { position: absolute; inset: 16px; border-radius: 28px; }
.auth-quote { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 2; color: #FFFFFF; }
.auth-form { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); }
.auth-form form { width: 100%; max-width: 26rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-soft); }
.steps span.on { background: var(--accent); }

/* =========================================================
   App (after login)
   ========================================================= */
.app-top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-top-in { max-width: 90rem; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.app-top .brand { width: 210px; font-size: 22px; }
.app-top .brand img { width: 38px; height: 38px; }
.app-top .search { flex: 1; max-width: 36rem; }
.app-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.me { width: 42px; height: 42px; border-radius: 21px; overflow: hidden; flex: 0 0 auto; }
.me img { width: 100%; height: 100%; object-fit: cover; }

.app-shell { max-width: 90rem; margin: 0 auto; padding: 20px 24px 56px; display: grid; gap: 24px; grid-template-columns: 220px minmax(0, 1fr) 320px; align-items: start; }
.app-shell.no-rail { grid-template-columns: 220px minmax(0, 1fr); }
.app-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-side { position: sticky; top: 88px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--fg-2); }
.side-link:hover { background: var(--surface); color: var(--fg); }
.side-link.is-active { background: var(--surface); color: var(--fg); box-shadow: inset 3px 0 0 var(--accent); }
.side-link.is-active svg.i { stroke-width: 2.4; color: var(--accent-text); }
.side-section { margin-top: 20px; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.side-section h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--fg-3); letter-spacing: .05em; }
.side-club { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; }
.count-badge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 1px 7px; border-radius: 8px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.backdrop { display: none; }

.post-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 11rem 11rem; gap: 3px; }
.post-media > :first-child { grid-row: span 2; }
.post-media .photo { border-radius: 0; }
.actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.like { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; font-weight: 600; font-size: 14px; color: var(--fg); }
.like[aria-pressed="true"] { color: var(--accent-text); }
.like[aria-pressed="true"] svg { fill: currentColor; }
.save-btn { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 18px; border: 0; background: rgba(255,255,255,.92); color: #18191C; display: grid; place-items: center; }
.save-btn[aria-pressed="true"] { color: #C2410C; }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.listing-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.cat-tile { height: 80px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.cat-tile[aria-pressed="true"], .cat-tile[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.bike-tab { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px 0 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; }
.bike-tab[aria-selected="true"] { border-color: var(--accent); }
.empty { padding: 40px 20px; text-align: center; color: var(--fg-3); }

.profile-cover { height: 15rem; border-radius: 0; }
.profile-avatar { width: 128px; height: 128px; border-radius: 64px; padding: 4px; background: var(--accent); margin-top: -64px; position: relative; flex: 0 0 auto; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--surface); object-fit: cover; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
.post-grid .photo { aspect-ratio: 1; border-radius: 6px; }
.badge-ring { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--fg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 13rem 13rem; gap: 8px; }
.gallery > :first-child { grid-row: span 2; grid-column: span 1; }
.gallery .photo { border-radius: 16px; }
.sticky-card { position: sticky; top: 88px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .app-rail { grid-column: 2; }
}
@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  body.menu-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .site-actions .hide-md { display: none; }
  .app-shell, .app-shell.no-rail { grid-template-columns: minmax(0, 1fr); }
  .app-rail { grid-column: auto; }
  .app-side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: 280px; background: var(--bg-app); padding: 20px 16px; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; border-right: 1px solid var(--line); }
  body.menu-open .app-side { transform: none; }
  body.menu-open .backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); }
  .app-top .brand { width: auto; }
  .hero-card { left: 12px; }
  .hero-live { right: 12px; }
  .hero-stat { right: 12px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding-top: 72px; }
  .app-top-in { padding: 10px 16px; gap: 10px; }
  .app-shell { padding: 16px 16px 48px; }
  .app-top .search, .hide-sm { display: none !important; }
  .hero { padding-top: 36px; gap: 40px; }
  .hero-collage { grid-template-rows: 12rem 12rem; }
  .hero-card { position: relative; left: 0; bottom: 0; width: auto; margin-top: -40px; margin-left: 12px; margin-right: 12px; }
  .hero-live, .hero-stat { display: none; }
  .app-showcase { padding: 40px 20px 0; }
  .phones { gap: 20px; }
  .phone.lower { margin-top: 0; }
  .post-media { grid-template-rows: 8rem 8rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 14rem 8rem 8rem; }
  .gallery > :first-child { grid-column: span 2; grid-row: span 1; }
  .auth-quote { left: 32px; right: 32px; bottom: 32px; }
  .card-pad-lg { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Django additions ---------- */
.show-md { display: none; }
@media (max-width: 980px) {
  .show-md { display: block; }
  .app-top-actions .hide-md { display: none; }
}
.flash-wrap { max-width: 90rem; margin: 12px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.app-main > .flash-wrap { padding: 0; margin: 0; }
.flash { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.flash-error { border-color: color-mix(in srgb, #DC2626 45%, transparent); background: color-mix(in srgb, #DC2626 9%, var(--surface)); color: var(--fg); }
.field-error { font-size: 13px; font-weight: 600; color: #DC2626; }
.dark .field-error { color: #F87171; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: #DC2626; }
.field input[type="file"] { font-size: 14px; color: var(--fg-2); }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.field .clearable-file-input, .field a { font-size: 13px; }
.chip-check { position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.comments[open] { padding-top: 4px; border-top: 1px solid var(--line); }
.comments > summary { list-style: none; }
.lang-switch button[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.btn[disabled] { opacity: .6; cursor: default; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }
.av-72 { width: 72px; height: 72px; font-size: 22px; flex: none; }
