:root {
  color-scheme: dark;
  --bg: #020c09;
  --bg-soft: #041b15;
  --panel: rgba(7, 42, 32, .94);
  --panel-strong: #082f24;
  --glass: rgba(8, 47, 36, .78);
  --gold: #f2c14e;
  --gold-bright: #ffe28a;
  --green: #29e57d;
  --green-deep: #079d4c;
  --blue: #27b5d8;
  --danger: #ff6b6b;
  --warning: #ffbd57;
  --text: #f8f7ec;
  --muted: #a9c8bb;
  --line: rgba(87, 172, 135, .38);
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(16, 108, 76, .55), transparent 40%),
    linear-gradient(180deg, #041c15 0, #020c09 62%, #010604 100%);
  color: var(--text);
}
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.25); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 92px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: rgba(2, 16, 12, .93);
  border-bottom: 1px solid rgba(242, 193, 78, .22);
  backdrop-filter: blur(18px);
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.brand > span:last-child { min-width: 0; }
.brand strong, .brand small { display: block; overflow-wrap: anywhere; }
.brand strong { font-size: clamp(15px, 3vw, 19px); }
.brand small { color: var(--green); font-size: 11px; }
.logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, #0b5c40, #06261d);
  box-shadow: 0 0 22px rgba(41, 229, 125, .35);
  font-size: 24px;
}
.icon-btn {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 47, 36, .72);
  color: var(--text);
  cursor: pointer;
}

.hero-public {
  min-height: min(720px, calc(100vh - 66px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(2,12,9,.93) 76%),
    url('/static/assets/hero.png') center / cover no-repeat;
  border-radius: 0 0 34px 34px;
}
.hero-overlay {
  width: min(100%, 760px);
  padding: clamp(34px, 7vw, 76px) clamp(18px, 5vw, 54px);
}
.eyebrow, .step-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 62px); line-height: 1.02; }
h1 span { color: var(--gold); }
h2 { margin: 0; font-size: clamp(22px, 4vw, 34px); }
h3 { margin: 0; }
p { line-height: 1.55; }
.hero-copy { width: min(100%, 590px); color: #e1efe9; font-size: clamp(16px, 2.5vw, 20px); }
.hero-actions { width: min(100%, 560px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 26px; }

.btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #032015;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn.gold { background: linear-gradient(135deg, var(--gold-bright), #d89b12); color: #182016; }
.btn.secondary { color: var(--text); background: linear-gradient(135deg, #0a4937, #063126); border: 1px solid rgba(242,193,78,.38); box-shadow: none; }
.btn.ghost { color: var(--gold-bright); background: rgba(3, 29, 22, .62); border: 1px solid rgba(242,193,78,.45); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #be3944, #7c1f2a); color: #fff; }

.page-section { padding: clamp(18px, 4vw, 42px); display: grid; gap: 18px; }
.compact-section { padding-top: 20px; }
.section-heading, .page-header, .flow-header { display: grid; gap: 7px; }
.page-header p, .flow-header p, .section-heading p { margin: 0; color: var(--muted); max-width: 720px; }
.panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius);
  border: 1px solid rgba(242, 193, 78, .25);
  background: linear-gradient(155deg, rgba(11, 60, 46, .96), rgba(3, 25, 19, .98));
  box-shadow: var(--shadow);
}
.simulation-notice {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: rgba(242, 193, 78, .09);
  color: var(--muted);
  font-size: 13px;
}
.simulation-notice b { color: var(--gold-bright); }

.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.flow-card { min-width: 0; display: flex; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(6, 42, 31, .78); }
.flow-card > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #122017; font-weight: 900; }
.flow-card h3 { font-size: 16px; }
.flow-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.matrix-explainer { text-align: center; }
.public-matrix { width: min(100%, 430px); margin: 24px auto; }
.matrix-owner { width: 150px; margin: auto; padding: 15px; border-radius: 18px; background: var(--gold); color: #162016; font-weight: 900; }
.connector { height: 60px; position: relative; }
.connector::before { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 30px; background: var(--green); transform: translateX(-50%); }
.connector::after { content: ''; position: absolute; left: 20%; right: 20%; top: 28px; height: 4px; background: var(--green); border-radius: 5px; }
.public-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.public-slots div { padding: 18px 10px; border: 2px solid var(--green); border-radius: 18px; background: rgba(6, 58, 42, .82); font-weight: 800; }
.public-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.level-mini { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 47, 36, .8); }
.level-mini span { color: var(--gold); font-weight: 900; }
.level-mini small { color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
details { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(6, 42, 31, .76); }
summary { cursor: pointer; color: var(--gold-bright); font-weight: 800; }
details p { color: var(--muted); }

.auth-layout { width: min(100%, 650px); margin: 0 auto; padding: clamp(18px, 5vw, 48px); display: grid; gap: 16px; }
.auth-card h1 { font-size: clamp(28px, 6vw, 44px); margin-bottom: 22px; }
.back-link { justify-self: start; padding: 9px 0; border: 0; background: transparent; color: var(--gold-bright); font-weight: 800; cursor: pointer; }
.form-grid { min-width: 0; display: grid; gap: 13px; }
.form-grid label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.form-grid input:not([type="checkbox"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #041f18;
  color: var(--text);
  font-size: 16px;
}
.check-row { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; }
.form-message { min-height: 22px; margin: 0; }
.error { color: #ffb0b0; }
.success { color: #8ff5b7; }

.ticket-stage, .success-stage, .error-stage { min-height: calc(100vh - 66px); display: grid; place-content: center; gap: 16px; padding: 22px; text-align: center; }
.ticket-card { width: min(100%, 460px); padding: clamp(24px, 6vw, 42px); border: 2px solid var(--gold); border-radius: 30px; background: radial-gradient(circle at top, rgba(242,193,78,.28), rgba(5,45,34,.98) 58%); box-shadow: 0 0 52px rgba(242,193,78,.22); }
.ticket-icon, .success-burst, .error-symbol { width: 100px; height: 100px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; font-size: 50px; font-weight: 900; }
.ticket-icon { border: 4px solid var(--gold); background: #0b5039; box-shadow: 0 0 30px rgba(41,229,125,.48); }
.ticket-card h1 { color: var(--gold-bright); }
.ticket-card strong { display: block; margin: 10px 0; color: var(--gold); font-size: clamp(30px, 7vw, 44px); }
.success-burst { background: var(--green); color: #082719; box-shadow: 0 0 50px rgba(41,229,125,.55); animation: pop .6s ease both; }
.error-symbol { background: var(--danger); color: #fff; }

.dashboard-hero { padding: clamp(22px, 5vw, 46px); border-radius: 0 0 32px 32px; background: linear-gradient(145deg, rgba(9,77,56,.96), rgba(2,22,16,.98)); border-bottom: 1px solid rgba(242,193,78,.32); }
.profile-line { min-width: 0; display: flex; align-items: center; gap: 15px; padding: 0; border: 0; width: 100%; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.profile-line > div:last-child { min-width: 0; }
.profile-line h1 { font-size: clamp(26px, 5vw, 42px); }
.profile-line small { color: var(--muted); }
.avatar { flex: 0 0 auto; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--gold); background: radial-gradient(circle, #0d6d4d, #05291f); color: var(--gold-bright); font-size: 27px; font-weight: 900; box-shadow: 0 0 24px rgba(41,229,125,.3); }
.wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.wallet-grid article { min-width: 0; padding: 14px; border-radius: 16px; background: rgba(3,27,20,.72); border: 1px solid var(--line); }
.wallet-grid span, .wallet-grid b { display: block; overflow-wrap: anywhere; }
.wallet-grid span { color: var(--muted); font-size: 12px; }
.wallet-grid b { color: var(--gold-bright); font-size: clamp(16px, 3vw, 23px); }
.primary-action-card { text-align: center; border-color: rgba(242,193,78,.56); }
.primary-action-card p { color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.metric-card { min-width: 0; padding: 16px; border-radius: 17px; border: 1px solid var(--line); background: rgba(7,47,36,.78); }
.metric-card span, .metric-card b { display: block; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card b { color: var(--gold); font-size: 28px; }
.route-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr); gap: 18px; align-items: center; }
.route-preview p { color: var(--muted); }
.journey-totals { display: grid; gap: 8px; }
.journey-totals span { min-width: 0; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.journey-totals b { color: var(--gold-bright); font-size: 16px; overflow-wrap: anywhere; }

.level-groups, .level-list { display: grid; gap: 16px; }
.level-group { display: grid; gap: 10px; }
.level-group > h2 { color: var(--gold-bright); font-size: 14px; letter-spacing: .1em; }
.level-card { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr) minmax(120px,.35fr) minmax(180px,.45fr); gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(8,55,41,.92), rgba(3,28,21,.95)); }
.level-card.disabled { opacity: .65; }
.level-card .btn { grid-column: 2 / -1; }
.cycle-level-grid { display: grid; grid-template-columns: repeat(6, minmax(90px, 1fr)); gap: 10px; margin-top: 18px; }
.cycle-level { display: grid; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.cycle-level b { color: var(--gold-bright); font-size: 24px; }
.cycle-level.complete { border-color: rgba(88, 231, 160, .5); background: rgba(21, 108, 75, .18); }
.confirmation-panel { margin-top: 14px; }
.inline-confirmation { display: flex; margin-top: 10px; }
.compact-confirmation { padding: 14px; }
.compact-confirmation .button-row { margin-top: 10px; }
.level-number, .position-level, .request-level { display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #172117; font-weight: 900; }
.level-number { width: 52px; height: 52px; font-size: 22px; }
.level-info, .level-cost { min-width: 0; display: grid; gap: 3px; }
.level-info b { color: var(--gold-bright); }
.level-info small, .level-cost small { color: var(--muted); }
.level-cost b { font-size: 15px; }
.disabled-reason { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 12px; }

.flow-screen { width: min(100%, 760px); margin: auto; }
.flow-progress { height: 9px; overflow: hidden; border-radius: 99px; background: #123c30; }
.flow-progress i, .progress-bar i, .position-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); }
.sponsor-card { text-align: center; }
.sponsor-avatar { width: 94px; height: 94px; margin: auto; font-size: 38px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 15px; }
.contact-btn { min-width: 0; min-height: 46px; display: grid; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: #0a4938; font-weight: 800; overflow-wrap: anywhere; }
.contact-btn.whatsapp { background: #137f49; }
.receipt { min-width: 0; padding: clamp(18px,4vw,26px); border-radius: 20px; }
.preview-receipt { background: rgba(7,47,36,.88); border: 1px solid var(--line); }
.paper-receipt { color: #142118; background: #fff8dd; box-shadow: var(--shadow); }
.receipt-brand { text-align: center; color: #26724e; font-weight: 900; letter-spacing: .09em; }
.paper-receipt h2 { margin: 14px 0; color: #664c0e; text-align: center; }
.receipt-row { min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(169,200,187,.33); }
.receipt-row span, .receipt-row b { min-width: 0; overflow-wrap: anywhere; }
.receipt-row span { color: var(--muted); }
.paper-receipt .receipt-row span { color: #5b695f; }
.receipt-row b { text-align: right; }
.receipt-row.total { border-top: 2px solid currentColor; border-bottom: 0; color: var(--gold-bright); }
.paper-receipt .receipt-row.total { color: #765a0e; }
.instruction-card p { color: var(--muted); }
.status-card { text-align: center; }
.status-card.warning { border-color: var(--warning); }
.status-orb { width: 82px; height: 82px; margin: 0 auto 13px; border-radius: 50%; border: 5px solid var(--gold); border-top-color: var(--green); animation: spin 2.2s linear infinite; }
.clarification { margin: 15px 0; padding: 13px; border-radius: 14px; background: rgba(255,189,87,.12); color: var(--warning); text-align: left; }
.clarification p { margin-bottom: 0; }
.mini-matrix { width: min(100%, 380px); margin: 16px auto; display: grid; justify-items: center; }
.mini-matrix > div { width: 140px; padding: 13px; border-radius: 17px; background: var(--gold); color: #142018; font-weight: 900; }
.mini-matrix > span { width: 4px; height: 38px; background: var(--green); }
.mini-matrix section { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.mini-matrix section::before { content: ''; position: absolute; left: 20%; right: 20%; top: -2px; height: 4px; background: var(--green); }
.mini-matrix section b { margin-top: 14px; padding: 14px; border: 2px solid var(--green); border-radius: 15px; }

.request-list, .position-list, .sponsor-request-list { display: grid; gap: 12px; }
.request-card, .position-card { width: 100%; min-width: 0; display: grid; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,47,36,.82); color: var(--text); text-align: left; cursor: pointer; }
.request-card { grid-template-columns: 48px minmax(0,1fr) auto; }
.position-card { grid-template-columns: 52px minmax(0,1fr) minmax(130px,.35fr); }
.request-level, .position-level { width: 46px; height: 46px; }
.request-card span, .position-card div { min-width: 0; }
.request-card small, .position-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.status-pill { justify-self: end; padding: 7px 10px; border-radius: 999px; background: rgba(41,229,125,.14); color: var(--green); font-size: 11px; font-weight: 900; text-align: center; }
.position-progress { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.position-progress::before { content: ''; grid-column: 1; grid-row: 1; height: 8px; border-radius: 99px; background: #163d32; }
.position-progress i { grid-column: 1; grid-row: 1; height: 8px; z-index: 1; }
.position-progress span { grid-column: 2; grid-row: 1; color: var(--gold); font-weight: 900; }
.empty-state { text-align: center; }

.matrix-page { width: min(100%, 820px); margin: auto; }
.matrix-board { text-align: center; }
.matrix-person { display: grid; justify-items: center; gap: 6px; }
.matrix-person .avatar { margin: auto; }
.matrix-tree-line { height: 70px; position: relative; }
.matrix-tree-line::before { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 36px; background: var(--green); transform: translateX(-50%); }
.matrix-tree-line::after { content: ''; position: absolute; left: 19%; right: 19%; top: 34px; height: 4px; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 6px; }
.matrix-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.matrix-slot { min-width: 0; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 16px; border-radius: 22px; border: 2px solid var(--green); background: rgba(7,54,40,.74); }
.matrix-slot.occupied { border-color: var(--gold); box-shadow: 0 0 25px rgba(242,193,78,.2); }
.matrix-slot > span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.matrix-slot small { color: var(--muted); overflow-wrap: anywhere; }
.small-avatar { width: 52px; height: 52px; font-size: 20px; }
.vacancy-icon { font-size: 44px; color: var(--green); }
.matrix-counter { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.matrix-counter > b { color: var(--gold); font-size: 25px; }
.progress-bar { height: 10px; border-radius: 99px; background: #143c30; overflow: hidden; }
.matrix-counter span { color: var(--muted); font-size: 12px; }
.closure-card { display: grid; gap: 2px; }

.request-top { min-width: 0; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.request-top div:nth-child(2) { min-width: 0; }
.request-top small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.sponsor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.sponsor-actions .approve-request { grid-column: 1 / -1; }
.applicant-contact { margin: 12px 0; }
.reason-dialog { width: min(92vw, 520px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: transparent; color: var(--text); }
.reason-dialog::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(5px); }
.reason-dialog-card { display: grid; gap: 12px; padding: 20px; background: linear-gradient(180deg, #0b3328, #051b15); border-radius: 18px; }
.reason-dialog-card h2 { font-size: 22px; margin: 0; }
.reason-dialog-card p { color: var(--muted); margin: 0; }
.reason-dialog-card textarea { width: 100%; min-width: 0; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 17, 13, .95); color: var(--text); font: inherit; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-card { width: min(100%, 590px); margin: auto; text-align: center; }
.large-avatar { width: 105px; height: 105px; margin: auto; font-size: 42px; }
.profile-data { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.profile-data span { min-width: 0; display: grid; gap: 3px; padding: 12px; border-radius: 14px; background: rgba(4,31,24,.75); color: var(--muted); }
.profile-data b { color: var(--gold-bright); overflow-wrap: anywhere; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(100%, 1120px);
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  background: rgba(2, 17, 13, .97);
  border-top: 1px solid rgba(242,193,78,.28);
  backdrop-filter: blur(18px);
}
.bottom-nav button { min-width: 0; min-height: 58px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); cursor: pointer; }
.bottom-nav button.active { color: var(--gold-bright); background: rgba(242,193,78,.08); }
.bottom-nav span:last-child { font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.nav-icon { font-size: 21px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.35); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 820px) {
  .cycle-level-grid { grid-template-columns: repeat(3, minmax(80px, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .public-levels { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .level-card { grid-template-columns: 54px minmax(0,1fr) minmax(105px,.35fr); }
  .level-card .btn { grid-column: 2 / -1; }
  .route-preview { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cycle-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { padding-bottom: 82px; }
  .hero-public { min-height: 650px; }
  .hero-actions { grid-template-columns: 1fr; }
  .page-section { padding: 15px; }
  .flow-grid, .faq-grid { grid-template-columns: 1fr; }
  .public-levels { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .wallet-grid article:last-child { grid-column: 1 / -1; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-card { padding: 12px 8px; text-align: center; }
  .metric-card b { font-size: 23px; }
  .level-card { grid-template-columns: 48px minmax(0,1fr); }
  .level-cost { grid-column: 2; grid-template-columns: auto auto; gap: 3px 9px; }
  .level-card .btn { grid-column: 1 / -1; }
  .disabled-reason { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .request-card, .position-card { grid-template-columns: 46px minmax(0,1fr); }
  .request-card .status-pill, .position-progress { grid-column: 2; justify-self: stretch; }
  .matrix-slot-grid { gap: 8px; }
  .matrix-slot { min-height: 155px; padding: 10px 7px; }
  .matrix-counter { grid-template-columns: auto 1fr; }
  .matrix-counter span { grid-column: 1 / -1; }
  .request-top { grid-template-columns: 48px minmax(0,1fr); }
  .request-top .status-pill { grid-column: 2; justify-self: start; }
  .sponsor-actions { grid-template-columns: 1fr; }
  .sponsor-actions .approve-request { grid-column: auto; }
  .profile-data { grid-template-columns: 1fr; }
  .bottom-nav button { min-height: 54px; }
  .bottom-nav span:last-child { font-size: 9px; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .topbar { padding-inline: 10px; }
  .hero-overlay { padding-inline: 14px; }
  .page-section { padding-inline: 11px; }
  .panel { padding: 13px; border-radius: 17px; }
  .public-levels { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-grid article:last-child { grid-column: auto; }
  .matrix-slot { min-height: 145px; font-size: 12px; }
  .btn { min-height: 49px; padding-inline: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
