/* Mi2gle website — same tokens as the mobile app (lib/theme/app_colors.dart). */
:root {
  --pink: #EC1558;
  --pink-dark: #C81155;
  --pink-soft: #FDEBF1;
  --pink-pale: #FFF6F8;
  --pink-line: #F6DCE4;
  --navy: #1E1B3A;
  --grey: #7A7488;
  --grey-light: #A9A3B5;
  --line: #F0EBEF;
  --surface: #F9F6F7;
  --white: #FFFFFF;
  --green: #2FAE79;
  --amber: #F5A623;
  --amber-soft: #FFF1DA;
  --danger: #D7263D;
  --r-card: 20px;
  --r-card-sm: 16px;
  --r-input: 14px;
  --r-button: 16px;
  --r-sheet: 28px;
  --gutter: 16px;
  --sidebar: 248px;
  --shadow-soft: 0 4px 14px rgba(30, 27, 58, .05);
  --poppins: 'Poppins', system-ui, sans-serif;
  --inter: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 500 14px/1.45 var(--inter);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* — Type — */
.h1 { font: 800 clamp(22px, 2.4vw, 28px)/1.25 var(--poppins); }
.h2 { font: 700 16px/1.3 var(--poppins); }
.h3 { font: 800 15px/1.3 var(--poppins); }
.caption { color: var(--grey-light); font-size: 13px; }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.grey { color: var(--grey); }
.pink { color: var(--pink); }
.pink-dark { color: var(--pink-dark); }
.strong { font-weight: 800; }
.center { text-align: center; }
.link { color: var(--pink); font-weight: 800; }
.label { display: block; color: var(--grey); font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.muted-note { color: var(--grey-light); font-size: 11.5px; line-height: 1.5; text-align: center; }

/* — Shell — */
.shell { min-height: 100dvh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px var(--gutter);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
}
.topbar .logo { height: 34px; width: auto; }
.topbar .spacer { flex: 1; }
.subbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  min-height: 54px; padding: 4px 8px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.subbar .title { flex: 1; min-width: 0; font: 800 16px/1.3 var(--poppins); }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%; font-size: 18px; color: var(--navy);
  transition: background .15s;
}
.icon-btn:hover { background: var(--surface); }
.credit-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; border-radius: 99px;
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  color: var(--pink-dark); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.badge-wrap { position: relative; display: inline-grid; }
.count-badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 15px; padding: 1px 4px; border-radius: 8px;
  background: var(--pink); color: #fff; border: 1.2px solid #fff;
  font-size: 8.5px; font-weight: 800; line-height: 1.3; text-align: center;
}
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font: 800 15px/1 var(--poppins);
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 74px; height: 74px; font-size: 26px; }
.me-avatar { width: 30px; height: 30px; font-size: 12px; background: var(--pink); border: 2px solid #fff; box-shadow: 0 0 6px rgba(30, 27, 58, .12); }

.bottom-nav {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; background: var(--white);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 7px; color: var(--grey-light);
  font-size: 10px; font-weight: 700;
}
.bottom-nav .ico { font-size: 19px; line-height: 1.15; position: relative; }
.bottom-nav a::after { content: ''; width: 0; height: 2.5px; border-radius: 2px; background: var(--pink); transition: width .16s; }
.bottom-nav a.active { color: var(--pink); }
.bottom-nav a.active::after { width: 18px; }
.nav-badge {
  position: absolute; top: -3px; right: -9px;
  padding: 1px 4px; border-radius: 8px; background: var(--pink); color: #fff;
  font-size: 8px; font-weight: 800; line-height: 1.3;
}

.page { flex: 1; width: 100%; padding: 6px var(--gutter) 30px; margin: 0 auto; }
.page.narrow, .page.wide { max-width: 100%; }

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 10px 20px;
  border: 1px solid var(--pink); border-radius: var(--r-button);
  background: var(--pink); color: #fff;
  font: 700 15px/1.2 var(--inter); text-align: center;
  transition: filter .15s, transform .05s, background .15s;
}
.btn:hover { filter: brightness(.95); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 12.5px; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 4px 14px; border-radius: 99px;
  border: 1px solid rgba(236, 21, 88, .4); color: var(--pink);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; flex: none;
  transition: background .15s;
}
.btn-sm-outline:hover { background: var(--pink-pale); }
.btn-sm-outline.grey-outline { color: var(--grey); border-color: rgba(122, 116, 136, .4); }
.btn-outline-pill {
  display: block; width: 100%; padding: 12px; text-align: center;
  border: 1.6px solid var(--pink); border-radius: 99px;
  color: var(--pink-dark); font-size: 13px; font-weight: 800;
}
.btn-outline-pill:hover { background: var(--pink-pale); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 8px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r-button);
  font-weight: 700; font-size: 14px;
}
.social-btn:hover { background: var(--surface); }

/* — Forms — */
.field { margin-bottom: 16px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 13px 14px;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--r-input);
  font: 500 14px/1.4 var(--inter); outline: none;
  transition: border-color .15s, background .15s;
}
textarea.input { resize: vertical; min-height: 120px; }
.input::placeholder { color: var(--grey-light); }
.input:focus { border-color: var(--pink); background: #fff; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .suffix { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-wrap.with-prefix .input { padding-left: 42px; }
.input-wrap .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12.5px; color: var(--grey); }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pink); flex: none; }
.helper { color: var(--grey-light); font-size: 10.5px; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* — Chips and option cards — */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff;
  color: var(--grey); font-size: 13px; font-weight: 700;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--pink-line); }
.chip.on { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-dark); box-shadow: inset 0 0 0 .5px var(--pink); }
.chip.dark.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: none; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px; margin-bottom: 10px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-input);
  font-size: 14px; font-weight: 600;
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--pink-line); }
.option .em { font-size: 20px; }
.option .txt { flex: 1; min-width: 0; }
.option .dot { width: 22px; height: 22px; flex: none; border: 2px solid var(--grey-light); border-radius: 50%; }
.option.multi .dot { border-radius: 6px; }
.option.on { background: var(--pink-pale); border-color: var(--pink); }
.option.on .dot { border-color: var(--pink); background: var(--pink); box-shadow: inset 0 0 0 3px #fff; }
.option.multi.on .dot { background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented button {
  padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r-input);
  background: #fff; color: var(--grey); font-size: 12px; font-weight: 800;
}
.segmented button.on { background: var(--pink-soft); color: var(--pink-dark); border: 1.6px solid var(--pink); }

/* — Cards — */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); padding: 14px; }
.card.pink { background: var(--pink-pale); border-color: var(--pink-line); }
.card.flat { background: var(--surface); border-color: transparent; }
.section-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 14px; }
.section-head > div:first-child { flex: 1; min-width: 0; }
.sub-head { display: flex; align-items: center; gap: 10px; padding: 22px 0 10px; }
.sub-head .h2 { flex: 1; min-width: 0; }
.sub-head a, .sub-head button { color: var(--pink); font-size: 11.5px; font-weight: 700; }
.stat-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.stat-row > :first-child { flex: 1; min-width: 0; }
.stat-row > :last-child { max-width: 55%; text-align: right; color: var(--navy); font-weight: 800; font-size: 12.5px; }
.stat-row.total > :first-child { color: var(--navy); font-weight: 800; }
.stat-row.total > :last-child { font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-tile { padding: 12px; background: var(--surface); border-radius: var(--r-input); }
.info-tile .k { color: var(--grey); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.info-tile .v { font-size: 12.5px; font-weight: 700; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--pink); border-radius: 99px; transition: width .25s; }
.rule { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* — Topic rows and cards — */
.topic-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm);
  transition: box-shadow .15s, border-color .15s;
}
.topic-row:hover { border-color: var(--pink-line); box-shadow: var(--shadow-soft); }
.tile { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; }
.tile.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.tile.xs { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.topic-row .body { flex: 1; min-width: 0; }
.topic-row .name { font-size: 13.5px; font-weight: 800; }
.topic-row .desc { color: var(--grey-light); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.topic-row .last { color: var(--grey); font-size: 11.5px; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topic-row .meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--grey-light); font-size: 10px; }
.unread { padding: 2px 6px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.3; }
.topic-card {
  display: block; width: 150px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-card-sm); background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.topic-card:hover { border-color: var(--pink-line); box-shadow: var(--shadow-soft); }
.topic-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.topic-card .name { font-size: 12.5px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .desc { color: var(--grey-light); font-size: 11px; line-height: 1.35; margin-top: 3px; }

/* — Event cards — */
.event-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft); margin-bottom: 16px;
  transition: box-shadow .15s, transform .15s;
}
.event-card:hover { box-shadow: 0 8px 22px rgba(30, 27, 58, .08); }
.event-banner { position: relative; display: grid; place-items: center; height: 110px; font-size: 42px; flex: none; }
.event-card.mini { width: 150px; margin: 0; border-radius: var(--r-card-sm); box-shadow: none; }
.event-card.mini .event-banner { height: 82px; font-size: 28px; }
.feat-tag { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border-radius: 99px; background: #fff; font-size: 9px; font-weight: 800; }
.save-heart { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 18px; }
.event-card.mini .save-heart { top: 2px; right: 2px; font-size: 14px; }
.date-badge { position: absolute; bottom: 10px; left: 12px; width: 36px; padding: 4px 0; background: #fff; border-radius: 8px; text-align: center; }
.date-badge .m { display: block; color: var(--pink); font-size: 8px; font-weight: 800; line-height: 1.2; }
.date-badge .d { display: block; font: 800 15px/1.1 var(--poppins); }
.event-card.mini .date-badge { top: 8px; left: 8px; bottom: auto; width: 30px; }
.event-card.mini .date-badge .d { font-size: 12px; }
.event-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.event-card.mini .event-body { padding: 9px; }
.event-title { font: 700 15px/1.3 var(--poppins); }
.event-card.mini .event-title { font: 700 11.5px/1.3 var(--inter); }
.event-meta { color: var(--grey-light); font-size: 11px; margin-top: 5px; }
.event-card.mini .event-meta { font-size: 10px; margin-top: 4px; line-height: 1.35; }
.event-desc { color: var(--grey); font-size: 12px; line-height: 1.45; margin-top: 6px; }
.event-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.stack { display: flex; }
.stack span { width: 24px; height: 24px; margin-right: -8px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 800; }
.event-foot .going { flex: 1; min-width: 0; padding-left: 12px; color: var(--grey-light); font-size: 10.5px; }
.events-grid { display: block; }
.row-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.row-scroll > * { flex: none; }

/* — Event detail — */
.event-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 60px 14px 16px; color: #fff; }
.event-hero .title { font: 800 22px/1.2 var(--poppins); margin-top: 8px; }
.cat-pill { align-self: flex-start; padding: 4px 9px; background: rgba(255, 255, 255, .92); border-radius: 99px; font-size: 10.5px; font-weight: 800; }
.host-pill { align-self: flex-start; margin-top: 6px; padding: 3px 8px; background: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; }
.hero-actions { position: absolute; top: 10px; right: 12px; display: flex; gap: 8px; }
.circle-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .22); display: grid; place-items: center; color: #fff; font-size: 15px; }
.circle-btn:hover { background: rgba(0, 0, 0, .34); }
.back-pill {
  position: absolute; top: 10px; left: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px 8px 10px; background: #fff; border-radius: 99px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18); font-size: 12.5px; font-weight: 800; color: var(--navy);
}
.sticky-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); }
.sticky-bar .grow { flex: 1; min-width: 0; position: relative; }
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px var(--poppins); color: var(--pink-dark); }
.bullets { list-style: none; margin: 4px 0 0; padding: 0; color: var(--grey-light); font-size: 11px; line-height: 1.4; }
.bullets li { position: relative; padding-left: 11px; margin-top: 2px; }
.bullets li::before { content: '•'; position: absolute; left: 0; color: var(--pink); }
.update-card { padding: 12px; margin-bottom: 8px; background: var(--surface); border-radius: var(--r-input); }
.host-tag { padding: 2px 6px; border-radius: 5px; background: var(--pink); color: #fff; font-size: 8px; font-weight: 800; }
.menu {
  position: absolute; z-index: 40; min-width: 240px; padding: 6px;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(30, 27, 58, .18);
}
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; }
.menu button:hover { background: var(--surface); }
.menu .ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--pink-soft); border-radius: 10px; font-size: 16px; }
.menu .t { display: block; font-size: 13px; font-weight: 800; }
.menu .d { display: block; color: var(--grey-light); font-size: 10.5px; }
.rsvp-up { bottom: calc(100% + 8px); right: 0; left: 0; }

/* — Match — */
.match-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 18px rgba(30, 27, 58, .05); }
.match-photo { position: relative; height: 170px; display: grid; place-items: center; font-size: 64px; }
.match-badge { position: absolute; top: 12px; padding: 4px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.match-badge.l { left: 12px; background: #fff; color: #5A2340; }
.match-badge.r { right: 12px; background: rgba(0, 0, 0, .3); color: #fff; }
.match-body { padding: 14px 16px 16px; }
.match-name { font: 800 19px/1.3 var(--poppins); }
.match-name small { font: 600 15px var(--poppins); color: var(--grey); margin-left: 6px; }
.match-sec { margin: 16px 0 7px; color: var(--grey); font-size: 12px; font-weight: 700; }
.tag { display: inline-block; padding: 4px 8px; background: var(--surface); border-radius: 99px; color: var(--grey-light); font-size: 11px; }
.tag.pink { background: var(--pink-soft); color: var(--pink-dark); font-weight: 700; padding: 4px 9px; }
.break-row { margin-bottom: 10px; }
.break-row .top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; font-weight: 700; }
.break-row .top .nm { flex: 1; min-width: 0; }
.imp { padding: 1px 6px; border-radius: 99px; font-size: 8.5px; font-weight: 800; }
.imp.high { background: var(--pink-soft); color: var(--pink-dark); }
.imp.low { background: var(--surface); color: var(--grey); }
.break-row.faded { color: var(--grey-light); }
.break-row.faded .progress > i { background: rgba(236, 21, 88, .35); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { height: 8px; width: 8px; border-radius: 99px; background: var(--line); transition: width .2s; }
.dots i.done { background: var(--pink); }
.dots i.cur { width: 20px; background: rgba(236, 21, 88, .5); }
.refresh-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; background: var(--surface); border-radius: var(--r-input); color: var(--grey-light); font-size: 11.5px; }
.actions { display: flex; padding-top: 18px; }
.actions button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--grey); font-size: 11px; font-weight: 700; }
.actions .circ { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fff; border: 1.5px solid; transition: transform .12s; }
.actions button:hover .circ { transform: scale(1.06); }
.interest-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); text-align: left; }
.interest-row:hover { border-color: var(--pink-line); }
.interest-row .avatar { width: 38px; height: 38px; font-size: 13px; }

/* — Chat room — */
.room { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100dvh; background: var(--surface); }
.room-head { display: flex; align-items: center; gap: 10px; padding: 8px 4px; background: #fff; border-bottom: 1px solid var(--line); }
.room-head .info { flex: 1; min-width: 0; }
.room-head .t { font-size: 13.5px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.room-head .s { font-size: 11px; color: var(--grey); line-height: 1.35; }
.room-head .s.typing { color: var(--pink); font-weight: 700; }
.pinned { margin: 10px 14px 0; padding: 8px 12px; background: var(--pink-soft); border-radius: var(--r-input); color: var(--pink-dark); font-size: 11px; font-weight: 700; }
.search-bar { padding: 8px 14px 10px; background: #fff; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.sys-note { text-align: center; color: var(--grey-light); font-size: 11px; padding: 6px 12px 14px; }
.msg { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
.msg.mine { justify-content: flex-end; }
.msg .col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(78%, 420px); }
.msg.mine .col { align-items: flex-end; }
.msg .who { font-size: 10px; font-weight: 800; margin: 0 0 3px 2px; }
.bubble { padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 1.45; text-align: left; cursor: pointer; }
.msg.mine .bubble { background: var(--pink); border-color: var(--pink); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble a { color: var(--pink-dark); font-weight: 700; text-decoration: underline; }
.msg.mine .bubble a { color: #fff; }
.sticker { font-size: 44px; line-height: 1.1; cursor: pointer; }
.msg .time { color: var(--grey-light); font-size: 9.5px; margin-top: 3px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { padding: 2px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 10.5px; }
.react.me { background: var(--pink-soft); border-color: var(--pink-line); }
.file-card { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.file-card .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); font-size: 18px; flex: none; }
.msg.mine .file-card .fi { background: rgba(255, 255, 255, .18); }
.file-card .fn { font-size: 11.5px; font-weight: 700; }
.file-card .fs { font-size: 9.5px; opacity: .75; }
.typing-dots { display: inline-flex; gap: 4px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .16s; }
.typing-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0 14px; background: #fff; }
.reply-bar .ln { width: 2.5px; height: 32px; background: var(--pink); flex: none; }
.reply-bar .x { flex: 1; min-width: 0; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px; background: #fff; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.composer .input { min-height: 46px; padding: 10px 16px; border-radius: 99px; flex: 1; min-width: 0; }
.round-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 19px; }
.round-btn.soft { background: var(--pink-soft); border: 1px solid var(--pink-line); color: var(--pink); }
.round-btn.neutral { background: var(--surface); border: 1px solid var(--line); }
.round-btn.send { background: linear-gradient(135deg, #FF7DA0, var(--pink)); color: #fff; }
.split-list { display: none; }

/* — Overlays — */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .18s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-height: 88dvh; overflow-y: auto;
  background: #fff; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet.show { transform: none; }
.sheet .grab { width: 44px; height: 4px; margin: 2px auto 14px; border-radius: 4px; background: var(--line); }
.dialog {
  position: fixed; left: 50%; top: 50%; z-index: 100;
  width: calc(100% - 44px); max-width: 400px; max-height: 88dvh; overflow-y: auto;
  background: #fff; border-radius: var(--r-card);
  transform: translate(-50%, -48%) scale(.97); opacity: 0;
  transition: transform .18s, opacity .18s;
}
.dialog.show { transform: translate(-50%, -50%); opacity: 1; }
.dialog .pad { padding: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.text-btn { padding: 8px 12px; border-radius: 10px; color: var(--pink-dark); font-size: 13px; font-weight: 800; }
.text-btn:hover { background: var(--pink-pale); }
.text-btn.danger { color: var(--danger); }
.paywall-head { padding: 24px 20px 20px; text-align: center; color: #fff; background: linear-gradient(135deg, #FF1F6B, #7A1757 55%, #221A4A); }
.paywall-head .lock { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 28px; }
.coin-box { padding: 12px; margin: 14px 0 10px; background: var(--pink-soft); border: 1px solid var(--pink-line); border-radius: var(--r-input); text-align: center; color: var(--pink-dark); font: 800 22px var(--poppins); }
.msg-menu { position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 44px); max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.msg-menu.end { align-items: flex-end; }
.react-bar { display: flex; gap: 2px; padding: 6px 8px; background: #fff; border-radius: 99px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.react-bar button { width: 36px; height: 36px; font-size: 22px; border-radius: 50%; transition: transform .1s; }
.react-bar button:hover { transform: scale(1.18); }
.action-list { width: 220px; padding: 6px 0; background: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.action-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 600; text-align: left; }
.action-list button:hover { background: var(--surface); }
.action-list button.danger { color: var(--danger); }
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 200;
  max-width: calc(100% - 48px); padding: 11px 18px;
  background: var(--navy); color: #fff; border-radius: 12px;
  font-size: 13px; font-weight: 600; text-align: center;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* — Range sliders — */
.range-card { padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-card-sm); }
.range-head { display: flex; align-items: center; gap: 10px; }
.range-head .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; }
.range-head .val { font-size: 12px; font-weight: 800; color: var(--pink-dark); white-space: nowrap; }
.dual { position: relative; height: 36px; margin: 6px 4px 0; }
.dual .track, .dual .fill { position: absolute; top: 15px; height: 6px; border-radius: 99px; }
.dual .track { left: 0; right: 0; background: var(--line); }
.dual .fill { background: var(--pink); }
.dual input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 36px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: grab; }
.range-ends { display: flex; justify-content: space-between; color: var(--grey-light); font-size: 10px; }

/* — Toggle — */
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; pointer-events: none; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked + i { background: var(--pink); }
.toggle input:checked + i::after { transform: translateX(18px); }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); text-align: left; }
a.set-row:hover, button.set-row:hover { border-color: var(--pink-line); }
.set-row .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 11px; font-size: 17px; }
.set-row .tx { flex: 1; min-width: 0; }
.set-row .t { display: block; font-size: 13px; font-weight: 800; }
.set-row .d { display: block; color: var(--grey-light); font-size: 11px; line-height: 1.35; }
.set-row .chev { color: var(--grey-light); font-size: 18px; flex: none; }
.set-label { margin: 18px 0 8px; color: var(--grey-light); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* — Dark panels — */
.dark-panel { padding: 18px; border-radius: var(--r-card); color: #fff; background: linear-gradient(135deg, #1B2A4A, #3A2B57); }
.dark-panel .pill { display: inline-block; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .15); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.gradient-hero { padding: 20px var(--gutter); color: #fff; background: linear-gradient(135deg, #1B2A4A, #3A2B57); }
.photo-slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--pink-pale); border: 1.5px solid var(--pink-line); border-radius: var(--r-input); color: var(--grey-light); font-size: 12px; cursor: pointer; }
.photo-slot:hover { border-color: var(--pink); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .plus { font-size: 22px; line-height: 1.1; text-align: center; }
.photo-slot .flag { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 2px 6px; background: rgba(255, 255, 255, .9); border-radius: 6px; color: var(--pink-dark); font-size: 8.5px; font-weight: 800; }
.photo-slot input { display: none; }
.prose p { margin-bottom: 14px; font-size: 14px; line-height: 1.7; }
.prose h3 { margin: 20px 0 8px; }
.prose ul { margin: 0 0 8px; padding-left: 18px; color: var(--grey); font-size: 13.5px; line-height: 1.6; }
.prose li { margin-bottom: 6px; }
.pack { display: flex; flex-direction: column; height: 100%; width: 100%; padding: 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); }
.pack.on { background: var(--pink-pale); border: 1.5px solid var(--pink); }
.pack .top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 14px; }
.pack .bonus { padding: 2px 6px; background: var(--pink); color: #fff; border-radius: 4px; font-size: 8.5px; font-weight: 800; }
.pack .n { font: 800 20px/1.2 var(--poppins); margin-top: auto; }
.pack .p { font-size: 12px; font-weight: 800; color: var(--grey); margin-top: 4px; }
.pack.on .p { color: var(--pink-dark); }
.plan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); }
.plan.on { background: var(--pink-pale); border: 1.5px solid var(--pink); }
.plan .radio { width: 20px; height: 20px; flex: none; border: 2px solid var(--grey-light); border-radius: 50%; }
.plan.on .radio { border-color: var(--pink); box-shadow: inset 0 0 0 3px #fff; background: var(--pink); }
.benefit { display: flex; gap: 12px; margin-bottom: 12px; }
.benefit .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 11px; font-size: 18px; }

/* — Auth — */
.auth { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-hero { position: relative; flex: 1; min-height: 380px; overflow: hidden; color: #fff; border-radius: 0 0 var(--r-sheet) var(--r-sheet); background: linear-gradient(135deg, #2A1330, #150A1A); }
.auth-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2.5px); transform: scale(1.03); }
.auth-hero .wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 22, 64, .72), rgba(46, 26, 74, .55) 50%, rgba(26, 15, 46, .82)); }
.auth-hero .glow { position: absolute; inset: 0; background:
  radial-gradient(60% 45% at 85% 30%, rgba(255, 154, 90, .3), transparent 70%),
  radial-gradient(65% 50% at 10% 70%, rgba(236, 21, 88, .32), transparent 70%); }
.auth-hero .inner { position: relative; height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; padding: 28px 26px; text-align: center; }
.auth-hero .logo { height: 72px; width: auto; }
.grow { flex: 1; }
.auth-panel { padding: 26px 22px 18px; }
.auth-form { width: 100%; max-width: 420px; margin: 0 auto; }
.notes-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1.5px solid var(--pink); color: var(--pink); font-weight: 800; }
.notes-btn.plain { position: static; background: #fff; width: 30px; height: 30px; flex: none; font-size: 13px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; color: var(--grey-light); font-size: 11px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wizard { min-height: 100dvh; display: flex; flex-direction: column; }
.wizard-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; background: #fff; }
.wizard-top .progress { flex: 1; }
.wizard-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 22px 20px; }
.wizard-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 22px 16px; }
.wizard-foot > div { max-width: 516px; margin: 0 auto; }
.step { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* — Sidebar and wide screens — */
.side-logo { height: 44px; width: auto; margin: 4px 8px 20px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 4px; border-radius: 12px; color: var(--grey); font-weight: 700; font-size: 14px; transition: background .12s; }
.side-nav a:hover { background: var(--surface); }
.side-nav a.active { background: var(--pink-soft); color: var(--pink-dark); }
.side-nav .ico { font-size: 18px; width: 24px; text-align: center; }
.side-nav .count { margin-left: auto; padding: 1px 7px; background: var(--pink); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; }
.side-cta { margin-top: auto; padding: 14px; border-radius: var(--r-card-sm); color: #fff; background: linear-gradient(135deg, #1B2A4A, #3A2B57); }
.side-cta b { display: block; font: 800 14px var(--poppins); }
.side-cta span { display: block; font-size: 11px; opacity: .8; margin: 2px 0 10px; }

.layout-rail { display: block; }
.grid-tiles { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.grid-tiles > * { flex: none; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .page { padding: 10px var(--gutter) 40px; }
  .page.narrow { max-width: 640px; }
  .events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .events-grid .event-card { margin: 0; }
  .event-card.mini { width: 180px; }
  .topic-card { width: 190px; }
  .event-hero { min-height: 240px; padding: 70px 24px 22px; }
  .event-hero .title { font-size: 28px; }
  .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; }
  .match-photo { height: 240px; font-size: 84px; }
  .topics-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .topics-list .topic-row { margin: 0; }
  .toast { bottom: 32px; }
}

@media (min-width: 1024px) {
  .shell { padding-left: var(--sidebar); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--sidebar);
    display: flex; flex-direction: column; padding: 18px 14px 16px;
    background: #fff; border-right: 1px solid var(--line); overflow-y: auto;
  }
  .bottom-nav { display: none; }
  .topbar { padding: 12px 24px; }
  .topbar .logo { display: none; }
  .page { max-width: 1120px; padding: 6px 32px 48px; }
  .page.narrow { max-width: 720px; }
  .page.flush { padding: 0; max-width: 100%; }
  .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topics-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-rail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .rail { position: sticky; top: 72px; }
  .grid-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .grid-tiles .topic-card, .grid-tiles .event-card.mini { width: auto; }
  .room { height: calc(100dvh); }
  .split { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100dvh; }
  .split-list { display: block; overflow-y: auto; padding: 14px; border-right: 1px solid var(--line); }
  .split-list .topic-row.active { background: var(--pink-pale); border-color: var(--pink-line); }
  .split .room { height: 100dvh; }
  .room-back { display: none; }
  .feed { padding: 16px 24px; }
  .pinned { margin: 12px 24px 0; }
  .sticky-bar { padding: 12px 32px; }
  .event-hero { min-height: 280px; padding: 80px 32px 26px; }
  .event-wrap { max-width: 1120px; margin: 0 auto; padding: 14px 32px 0; }
  .event-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  /* Sheets are centred dialogs on a desktop. */
  .sheet { bottom: auto; top: 50%; left: 50%; margin: 0; width: 560px; border-radius: var(--r-card); transform: translate(-50%, -46%); opacity: 0; transition: transform .18s, opacity .18s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet { padding-top: 20px; }

  /* Auth: side-by-side instead of stacked. */
  .auth { flex-direction: row; }
  .auth-hero { border-radius: 0 var(--r-sheet) var(--r-sheet) 0; flex: 1.15; min-height: 100dvh; }
  .auth-hero .logo { height: 96px; }
  .auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; max-height: 100dvh; }
}

@media (min-width: 1440px) {
  .events-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .page { max-width: 1280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* — Event page: the back pill and title bar stay while the page scrolls — */
.event-float { position: sticky; top: 0; z-index: 25; height: 0; }
.event-scrolled {
  position: absolute; left: 0; right: 0; top: 0; height: 56px;
  display: flex; align-items: center; padding: 0 16px 0 92px;
  background: #fff; border-bottom: 1px solid var(--line);
  font: 800 14px var(--poppins); white-space: nowrap; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.event-scrolled.show { opacity: 1; }
.event-scrolled span { overflow: hidden; text-overflow: ellipsis; }
.event-left, .event-right { min-width: 0; }
.event-wrap { padding: 14px var(--gutter) 0; }
.event-right { margin-top: 18px; }
.grid-tiles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.edit-grid { display: block; }
.topic-card, .event-card.mini { flex: none; }

@media (min-width: 720px) {
  .edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
}
@media (min-width: 1024px) {
  .event-wrap { padding: 18px 32px 0; }
  .event-right { margin-top: 0; position: sticky; top: 72px; }
  .sticky-bar { justify-content: flex-end; }
  .sticky-bar .grow { flex: 0 1 320px; }
}

/* — Match page: preferences sit above the card on phones, in the rail on desktops — */
@media (max-width: 1023px) {
  .match-layout { display: flex; flex-direction: column; }
  .match-layout .rail { display: contents; }
  .match-layout #openPrefs { order: 1; }
  .match-layout #prefChips { order: 2; }
  .match-layout .match-main { order: 3; margin-top: 8px; }
  .match-layout #progressWrap { order: 4; }
  .match-layout #actionsWrap { order: 5; }
  .match-layout #interestsWrap { order: 6; }
}

/* — Class names shared by two components — */
.card.pink { color: var(--navy); }
.auth-hero { display: flex; }
.auth-hero .inner { flex: 1; width: 100%; height: auto; }

/* — Small laptops: keep tiles and the event facts readable beside the right rail — */
@media (min-width: 1024px) {
  .grid-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .event-left .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* — Tablets and up: six smaller photo slots on one row — */
@media (min-width: 720px) {
  .page.narrow .grid-3:has(.photo-slot) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.sub-head a { padding: 6px 0 6px 8px; }

/* — Welcome and Log In from tablets up: one page, with the video behind everything.
     Phones keep the app's layout: video on top, actions below. — */
@media (min-width: 720px) {
  .auth {
    position: relative; isolation: isolate; overflow: hidden;
    flex-direction: column; align-items: center; justify-content: center; gap: 24px;
    min-height: 100dvh; padding: 64px 24px 76px; background: #150A1A;
  }
  .auth-hero { display: contents; }
  .auth-hero video, .auth-hero .wash, .auth-hero .glow { position: absolute; inset: 0; }
  .auth-hero video { z-index: -2; transform: scale(1.04); }
  .auth-hero .wash, .auth-hero .glow { z-index: -1; }
  .auth-hero .wash { background: linear-gradient(180deg, rgba(26, 15, 46, .62), rgba(46, 26, 74, .52) 50%, rgba(26, 15, 46, .78)); }
  .auth-hero .inner { position: static; flex: none; height: auto; min-height: 0; padding: 0; color: #fff; }
  .auth-hero .logo { height: 104px; }
  .auth-panel { flex: none; display: block; width: 100%; max-width: 400px; max-height: none; padding: 0; overflow: visible; }


  body[data-page="login"] .auth { gap: 18px; padding-bottom: 32px; }
  body[data-page="login"] .auth-panel { max-width: 440px; }
  body[data-page="login"] .auth-form { padding: 24px; background: #fff; border-radius: var(--r-card); box-shadow: 0 18px 50px rgba(10, 5, 20, .35); }
  body[data-page="login"] .field { margin-bottom: 12px; }
  body[data-page="login"] .input { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  body[data-page="login"] .social-btn { min-height: 44px; }
}
@media (min-width: 720px) {
  .auth-hero .logo { height: clamp(88px, 11vh, 132px); }
  body[data-page="login"] .auth { padding-top: 28px; padding-bottom: 24px; }
}

.grid-tiles { scrollbar-width: none; }
.grid-tiles::-webkit-scrollbar { display: none; }


/* — Show/hide password icon — */
[data-toggle-pass] { color: var(--grey); }
[data-toggle-pass]:hover { color: var(--navy); }
[data-toggle-pass] svg { display: block; }
[data-toggle-pass] .eye-off, [data-toggle-pass].showing .eye-on { display: none; }
[data-toggle-pass].showing .eye-off { display: block; }

/* — Match preferences, per the client's slide — */
.pref-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pref-tile { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--pink-soft); font-size: 15px; }
.range-card .segmented button { min-height: 38px; }

/* — Match page: categories are tappable, and the filter can be closed — */
.pref-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.pref-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--grey); }
.pref-close:hover { background: var(--surface); color: var(--navy); }
.pref-focus { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.pref-panel { display: none; }
@media (max-width: 1023px) {
  .match-layout #prefCats { order: 2; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .match-layout #prefCats::-webkit-scrollbar { display: none; }
  .match-layout #prefCats .chip { flex: none; }
}
@media (min-width: 1024px) {
  body.prefs-open .pref-panel { display: block; margin-bottom: 24px; padding: 20px; scroll-margin-top: 72px; background: var(--surface); border-radius: var(--r-card); }
  body.prefs-open #openPrefs, body.prefs-open #prefCats { display: none; }
  .pref-panel .pref-ranges, .pref-panel .pref-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pref-panel .range-card { margin: 0; background: #fff; }
  .pref-panel [data-save] { display: flex; width: 280px; margin: 16px 0 0 auto !important; }
}
/* The close icon stays reachable while the popup scrolls. */
.sheet .pref-title { position: sticky; top: 0; z-index: 3; padding: 6px 0; background: #fff; }

/* Hero banners on Home (admin panel → Home banners). Scroll sideways when there are several. */
.hero-banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px 0 4px; padding-bottom: 4px; }
.hero-banner { flex: 0 0 100%; scroll-snap-align: start; min-height: 132px; border-radius: var(--r-card); padding: 18px 20px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; }
.hero-banners .hero-banner:only-child { flex-basis: 100%; }
.hero-banner .hb-title { font: 800 19px/1.25 var(--poppins); }
.hero-banner .hb-sub { font-size: 13px; opacity: .9; line-height: 1.4; }
.hero-banner .hb-btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--navy, #1B2A4A); font-weight: 800; font-size: 12px; padding: 7px 14px; border-radius: 999px; }
@media (min-width: 900px) { .hero-banner { flex-basis: calc(50% - 6px); min-height: 150px; } }
.file-card.expired { opacity: .75; font-style: italic; }
