/* LCAM Member App */
:root {
	--navy: #0b1b3f; --navy-2: #13295c; --ink: #0f172a; --muted: #5b6478; --line: #e3e7f0;
	--bg: #f3f5fa; --card: #fff; --red: #ff4d3d; --gold: #ffb703; --green: #18b26b; --blue: #3a86ff;
	--grad: linear-gradient(135deg, #ff4d3d 0%, #ff7a2f 55%, #ffb703 100%);
	--r: 18px; --shadow: 0 1px 2px rgba(11,27,63,.06), 0 8px 24px rgba(11,27,63,.06);
	--display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
@media (min-width: 640px) { body.is-member { background: radial-gradient(1200px 600px at 50% -200px, #1d3a7a, var(--navy)) fixed; } #app { max-width: 560px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 80px rgba(0,0,0,.35); } }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Boot */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 18px; justify-items: center; background: var(--navy); }
.boot__logo, .logo, .gate__logo { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; font: 800 26px var(--display); letter-spacing: -.04em; box-shadow: 0 10px 30px rgba(255,77,61,.4); }
.boot__bar { width: 120px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.boot__bar span { display: block; width: 40%; height: 100%; background: var(--gold); animation: boot 1s infinite ease-in-out; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(11,27,63,.96); backdrop-filter: blur(10px); color: #fff; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px var(--display); }
.top .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.top__pts { text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.top__pts b { color: var(--gold); }

.view { padding: 16px 16px calc(100px + var(--safe-b)); }
.view.enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; margin: -16px -16px 16px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,183,3,.35), transparent 65%); pointer-events: none; }
.hero h1 { font-size: 28px; line-height: 1.1; margin: 4px 0; }
.hero__sub { margin: 0 0 12px; color: #c8d3f0; font-size: 14px; }
.hero__sub b { color: var(--gold); }
.kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.hero .kicker { color: #ffd166; text-transform: none; letter-spacing: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips--center { justify-content: center; margin: 8px 0; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); }
.profile .chip { background: #fff; border-color: var(--line); }

.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: rgba(255,255,255,.12); }
.ring__fg { stroke: url(#rg); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring__inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__inner b { font: 800 30px var(--display); line-height: 1; }
.ring__inner small { color: #c8d3f0; font-size: 12px; }

/* Banners & alerts */
.banner { background: #fff4d6; border: 1px solid #ffe29a; color: #7a5300; padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.alert { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px; border-radius: var(--r); background: var(--grad); color: #fff; margin-bottom: 12px; box-shadow: 0 10px 24px rgba(255,77,61,.3); animation: pulse 2.4s infinite; }
.alert > span:first-child { font-size: 26px; }
.alert div { flex: 1; } .alert b { display: block; } .alert small { opacity: .9; }
.alert--soft { background: #fff; color: var(--ink); box-shadow: var(--shadow); animation: none; border: 1px solid var(--line); }
.alert--soft small { color: var(--muted); }
.alert--soft .bar { margin-top: 8px; }
@keyframes pulse { 50% { box-shadow: 0 10px 34px rgba(255,77,61,.55); } }

/* Actions */
.h { font-size: 18px; margin: 20px 2px 10px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.actions--3 { margin: 4px 0 14px; }
.action { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 6px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s; }
.action:active { transform: scale(.96); }
.action span { font-size: 28px; line-height: 1.1; }
.action b { font-size: 13px; line-height: 1.2; }
.action small { font-size: 11px; color: var(--green); font-weight: 700; }
.action--hot { background: var(--navy); color: #fff; border-color: var(--navy); }
.action--hot small { color: var(--gold); }
.action.is-done { opacity: .7; }
.action:disabled { cursor: default; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card h2 { font-size: 17px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.card__head a { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.card--meet { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #fff, #fff7ec); }
.card--meet h3 { font-size: 17px; margin: 2px 0; }
.card--meet p { margin: 0; font-size: 13px; color: var(--muted); }
.countdown { display: flex; gap: 6px; }
.countdown div { display: grid; text-align: center; min-width: 44px; padding: 6px 4px; border-radius: 12px; background: var(--navy); color: #fff; }
.countdown b { font: 800 20px var(--display); line-height: 1; }
.countdown small { font-size: 10px; color: #c8d3f0; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.tri b { display: block; font: 800 30px var(--display); }
.tri small { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 10px 4px; margin: 0; }
.empty--big { padding: 60px 20px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); }
.prose { margin: 6px 0 0; color: #334155; }

/* Bars & goals */
.bar { position: relative; height: 12px; border-radius: 99px; background: #edf0f7; overflow: visible; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--navy); opacity: .5; }
.goal { padding: 10px 0; border-top: 1px solid var(--line); }
.goal:first-of-type { border-top: 0; padding-top: 0; }
.goal__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.goal__nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f7; color: var(--muted); white-space: nowrap; }
.pill--on, .pill--st-closed { background: #e1f7ec; color: #0b7a47; }
.pill--push { background: #ffe9e6; color: #c2261a; }
.pill--win { background: #fff1c7; color: #8a5a00; }
.pill--gold { background: #fff1c7; color: #8a5a00; margin-top: 6px; }
.pill--hot { background: #ffe9e6; color: #c2261a; }
.pill--warm { background: #fff1c7; color: #8a5a00; }
.pill--st-new { background: #e6efff; color: #1d4fbf; }
.pill--st-contacted { background: #eef1f7; }
.link { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; font-size: inherit; text-decoration: underline; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #f3f5fa; font-size: 18px; }
.feed p { margin: 0; font-size: 14px; }
.feed small { color: var(--muted); font-size: 12px; }
.feed small b { color: var(--green); }

/* Page heads & segmented control */
.pagehead { margin: 4px 2px 14px; }
.pagehead h1 { font-size: 32px; }
.subhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.subhead h1 { font-size: 22px; }
.back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.seg { display: flex; gap: 4px; padding: 4px; background: #e7ebf3; border-radius: 14px; margin-bottom: 14px; overflow-x: auto; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Leaderboard */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.tiles div { background: var(--navy); color: #fff; border-radius: var(--r); padding: 14px; }
.tiles b { display: block; font: 800 24px var(--display); color: var(--gold); }
.tiles small { color: #c8d3f0; font-size: 12px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 22px 0 6px; }
.pod { display: flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; }
.pod b { font-size: 14px; margin-top: 4px; }
.pod small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pod__medal { position: absolute; top: 44px; font-size: 22px; }
.pod--1 .ava { width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--gold); }
.pod--1 .pod__medal { top: 64px; }
.pod__block { width: 100%; margin-top: 6px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #dfe5f2, #eef1f7); display: grid; place-items: center; font: 800 22px var(--display); color: #9aa5bd; }
.pod--1 .pod__block { height: 88px; background: var(--grad); color: #fff; }
.pod--2 .pod__block { height: 64px; }
.pod--3 .pod__block { height: 48px; }
.board { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.board li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; border-top: 1px solid var(--line); }
.board li:first-child a { border-top: 0; }
.board li.is-me { background: #fff7e6; }
.board__rank { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.board__name { flex: 1; min-width: 0; }
.board__name b, .board__name small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__name small { color: var(--muted); font-size: 12px; }
.board__pts { font: 800 18px var(--display); }
.leader { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.leader:first-of-type { border-top: 0; }
.leader div { flex: 1; } .leader small { display: block; color: var(--muted); font-size: 12px; }
.leader > span { font-weight: 800; }

/* Avatars */
.ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #dde3ef; display: inline-grid; place-items: center; }
.ava--ini { background: hsl(var(--h), 70%, 92%); color: hsl(var(--h), 55%, 32%); font-weight: 800; font-size: 15px; }
.ava--xs { width: 22px; height: 22px; font-size: 9px; vertical-align: middle; }
.ava--sm { width: 36px; height: 36px; font-size: 13px; }
.ava--md { width: 48px; height: 48px; }
.ava--lg { width: 64px; height: 64px; font-size: 20px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(11,27,63,.15); }
.ava--xl { width: 104px; height: 104px; font-size: 34px; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(11,27,63,.18); }

/* Forms */
.form { display: grid; gap: 14px; }
.form label, .label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin: 0; min-width: 0; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea { font: 16px Inter, system-ui, sans-serif; width: 100%; min-width: 0; max-width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(58,134,255,.15); }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.row2 input[type=datetime-local] { font-size: 14px; padding: 12px 8px; }
@media (max-width: 420px) { .row2:has(input[type=datetime-local]) { grid-template-columns: 1fr; } }
.view { overflow-x: hidden; }
.formhead { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--navy); color: #fff; margin-bottom: 16px; }
.formhead span { font-size: 32px; } .formhead p { margin: 0; font-weight: 700; color: var(--gold); }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; }
.temp { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.temp legend { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.temp label { display: block; }
.temp input { position: absolute; opacity: 0; width: 1px; }
.temp span { display: block; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; }
.temp small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.temp input:checked + span { border-color: var(--red); background: #fff4f2; }
.switch { display: flex !important; align-items: center; gap: 12px; font-weight: 600 !important; }
.switch input { position: absolute; opacity: 0; width: 1px; }
.switch span { width: 48px; height: 28px; border-radius: 99px; background: #cfd6e4; position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { border: 1.5px dashed var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

.picker__chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--green); background: #effaf4; border-radius: 14px; }
.picker__chosen span { flex: 1; } .picker__chosen b, .picker__chosen small { display: block; } .picker__chosen small { color: var(--muted); font-weight: 500; }
.picker__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.picker__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; border-top: 1px solid var(--line); }
.picker__list li:first-child button { border-top: 0; }
.picker__list button:active { background: #f3f5fa; }
.picker__list b, .picker__list small { display: block; font-size: 14px; } .picker__list small { color: var(--muted); font-size: 12px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(255,77,61,.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; }
.btn--big { padding: 16px 22px; font-size: 17px; border-radius: 16px; }
.btn--block { display: flex; margin-bottom: 14px; }
.btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--ghost .spin { border-color: #d0d6e2; border-top-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Referrals */
.ref { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.ref--closed { border-left-color: var(--green); }
.ref--not_a_fit { border-left-color: #cbd2e0; opacity: .8; }
.ref--contacted { border-left-color: var(--gold); }
.ref__top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ref__top small { margin-left: auto; color: var(--muted); font-size: 12px; }
.ref h3 { font-size: 19px; margin: 8px 0 2px; }
.ref p { margin: 4px 0; font-size: 14px; }
.ref__who { color: var(--muted); }
.ref__contact a { font-weight: 700; color: var(--blue); text-decoration: none; }
.ref__details { background: #f6f8fc; padding: 8px 10px; border-radius: 10px; }
.ref__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Events */
.event { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.event__date { flex: none; width: 56px; height: 62px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-content: center; text-align: center; }
.event__date small { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 11px; }
.event__date b { font: 800 24px var(--display); line-height: 1; }
.event__body { flex: 1; min-width: 0; }
.event h3 { font-size: 17px; margin: 4px 0 2px; }
.event p { margin: 4px 0; font-size: 14px; color: #334155; }
.event__meta { color: var(--muted) !important; font-size: 13px !important; }
.event__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.event__foot small { color: var(--muted); }
.tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }

/* Profile */
.profile { text-align: center; padding: 8px 0 4px; }
.profile h1 { font-size: 26px; margin-top: 10px; }
.profile p { margin: 4px 0; color: var(--muted); }
.profile__photo { position: relative; display: inline-block; cursor: pointer; }
.profile__cam { position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; }
.profile__btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.levels { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0; margin: 12px 0 0; text-align: center; }
.levels li { opacity: .35; filter: grayscale(1); }
.levels li.is-on { opacity: 1; filter: none; }
.levels span { font-size: 22px; display: block; } .levels small { font-size: 10px; font-weight: 700; line-height: 1.1; display: block; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: #f6f8fc; text-align: center; filter: grayscale(1); opacity: .45; }
.badge span { font-size: 28px; line-height: 1; }
.badge small { font-size: 11px; font-weight: 700; line-height: 1.15; }
.badge.is-earned { filter: none; opacity: 1; background: linear-gradient(160deg, #fff, #fff4dc); border-color: #ffe29a; }
.list a, .list button { display: flex; justify-content: space-between; width: 100%; padding: 13px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-decoration: none; font-weight: 600; text-align: left; font-size: 15px; }
.list > :first-child { border-top: 0; }
.list span { color: var(--muted); }
.callout { background: var(--navy); color: #fff; border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.callout small { color: var(--gold); font-weight: 700; }
.callout p { margin: 4px 0 0; font-size: 16px; }
.quote { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.quote:first-of-type { border-top: 0; }
.quote blockquote { margin: 0 0 6px; font-size: 15px; }
.quote figcaption { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Members */
.searchbar { position: sticky; top: 62px; z-index: 5; padding: 4px 0 10px; background: var(--bg); }
.mlist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mlist a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; border-top: 1px solid var(--line); }
.mlist li:first-child a { border-top: 0; }
.mlist span { flex: 1; min-width: 0; } .mlist b, .mlist small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mlist small { color: var(--muted); font-size: 13px; }
.mlist em { font-style: normal; font-size: 20px; }

/* Bottom nav */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px calc(8px + var(--safe-b)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .nav { max-width: 560px; margin: 0 auto; } }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.nav a span { font-size: 22px; filter: grayscale(1); opacity: .6; position: relative; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active span { filter: none; opacity: 1; }
.dot { position: absolute; top: -2px; right: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.nav__plus { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border: 4px solid var(--bg); border-radius: 50%; background: var(--grad); color: #fff; font-size: 32px; font-weight: 400; line-height: 1; box-shadow: 0 10px 24px rgba(255,77,61,.45); }
.nav__plus:active { transform: scale(.94); }

/* Sheet, modal, toast */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(11,27,63,0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet.open { background: rgba(11,27,63,.5); }
.sheet__panel { width: 100%; max-width: 560px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet.open .sheet__panel { transform: none; }
.sheet__grip { width: 44px; height: 5px; border-radius: 9px; background: #cfd6e4; margin: 0 auto 12px; }
.sheet h2 { font-size: 20px; margin-bottom: 12px; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(11,27,63,.7); animation: fade .2s; }
.modal__card { width: 100%; max-width: 360px; background: #fff; border-radius: 24px; padding: 28px 22px 22px; text-align: center; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.modal__card h2 { font-size: 26px; margin: 4px 0 8px; }
.modal__card p { color: var(--muted); margin: 0 0 12px; }
.modal__card .btn { width: 100%; margin-top: 8px; }
.modal__burst { font-size: 72px; line-height: 1; margin-bottom: 8px; animation: wiggle 1s ease-in-out; }
.modal__burst.is-locked { filter: grayscale(1); opacity: .5; animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes wiggle { 20% { transform: rotate(-12deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.15); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: all .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: #b42318; }
.toast__pts { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 800; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }
.skeleton { display: grid; gap: 12px; }
.skeleton div { height: 110px; border-radius: var(--r); background: linear-gradient(90deg, #e9edf5 0%, #f6f8fc 50%, #e9edf5 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Login gate */
body.is-guest { background: radial-gradient(900px 500px at 80% -100px, rgba(255,183,3,.25), transparent), radial-gradient(900px 600px at 0% 120%, rgba(255,77,61,.25), transparent), var(--navy); min-height: 100vh; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate__card { width: 100%; max-width: 420px; color: #fff; }
.gate__logo { margin-bottom: 18px; }
.gate__kicker { color: #ffd166; font-weight: 700; margin: 0 0 6px; }
.gate h1 { font-size: 38px; line-height: 1.02; margin-bottom: 22px; }
.gate h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate__form { display: grid; gap: 12px; background: #fff; color: var(--ink); padding: 20px; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.gate__form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.gate__remember { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.gate__remember input { width: auto; }
.gate__links { font-size: 14px; color: #c8d3f0; text-align: center; }
.gate__links a { color: #fff; }
.gate__tip { font-size: 13px; color: #c8d3f0; background: rgba(255,255,255,.07); border-radius: 14px; padding: 10px 12px; }
.gate__err { background: #b42318; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.gate .btn { width: 100%; }

@media (max-width: 360px) { .actions { grid-template-columns: repeat(2, 1fr); } .badges { grid-template-columns: repeat(3, 1fr); } .hero h1 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
