/* Basic site styles (Phase 2). One file, no framework, mobile-friendly. */

:root {
  --bg: #f6f4f7;
  --card: #ffffff;
  --text: #221c26;
  --muted: #7d7488;
  --line: #e7e2ec;
  --accent: #e0396d;
  --accent-dark: #c22a59;
  --accent-soft: #fdeef3;
  --like: #2fae6b;
  --nope: #e05545;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 20, 60, .08);
}

* { box-sizing: border-box; }

/* The hidden attribute must win over class display rules (flex/grid). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand span { color: var(--text); letter-spacing: .5px; }

.mainnav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.mainnav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.mainnav a:hover { color: var(--text); background: var(--bg); }
.mainnav a.active { color: var(--accent); background: var(--accent-soft); }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang-form select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 13px;
}

.linklike {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.linklike:hover { color: var(--accent); }

/* Notification bell + dropdown */
.bell-wrap { position: relative; }
.bell {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  width: 320px;
  max-height: 420px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.dropdown-list .notif {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}
.dropdown-list .notif.unread { background: var(--accent-soft); }
.dropdown-list .notif time { display: block; color: var(--muted); font-size: 12px; }
.dropdown-list .empty { padding: 18px; color: var(--muted); text-align: center; }

/* ---------- Layout ---------- */

.page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.page-title { margin: 4px 0 18px; font-size: 26px; }
.page-sub { color: var(--muted); margin-top: -12px; margin-bottom: 20px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 15px;
}

/* ---------- Buttons, forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-danger:hover { border-color: var(--nope); color: var(--nope); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-error { color: var(--nope); font-size: 13px; margin: 8px 0; min-height: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

/* ---------- Auth (index) ---------- */

.auth-wrap {
  max-width: 420px;
  margin: 40px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.auth-hero { text-align: center; margin-bottom: 20px; }
.auth-hero .logo { font-size: 40px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button {
  flex: 1;
  padding: 9px;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.tabs button.active { background: var(--accent); color: #fff; }

/* ---------- Public landing (SSR home) ---------- */

.landing-hero {
  text-align: center;
  padding: 56px 20px 40px;
  background: linear-gradient(160deg, var(--accent-soft), var(--bg));
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.landing-hero .logo { font-size: 52px; }
.landing-hero h1 { font-size: 34px; margin: 10px 0 8px; }
.landing-lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 22px; }
.landing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.landing-section { margin-bottom: 36px; }
.landing-section h2 { font-size: 22px; margin: 0 0 16px; }
.legal { max-width: 760px; }
.legal h1 { font-size: 28px; }
.legal .panel h2 { font-size: 18px; margin: 0 0 8px; }
.legal .panel p { margin: 0; }
.site-foot { text-align: center; margin: 24px 0; color: var(--muted); font-size: 13px; }
.site-foot a { color: inherit; }

/* ---------- Cards grid (search / nearby / visitors / likes) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.person-card {
  position: relative;
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .15s;
}
.person-card:hover { transform: translateY(-3px); }
.person-card .photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #efe6f4, #fbdce7);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #c9b3d6;
}
.person-card .info { padding: 10px 12px 12px; }
.person-card .name { font-weight: 700; font-size: 15px; }
.person-card .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.person-card .chip-row { margin-top: 6px; }

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--like);
  margin-left: 6px;
  vertical-align: middle;
}

.chip {
  display: inline-block;
  background: var(--bg);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip-select .chip { cursor: pointer; user-select: none; }

.distance-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 12, 26, .55);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Filters bar ---------- */

.filters {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 20px;
}
.filters .form-row { flex-wrap: wrap; }
.filters .field { min-width: 130px; margin-bottom: 8px; }
.filters .actions { display: flex; align-items: end; gap: 10px; padding-bottom: 8px; }
.checkbox-inline { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.checkbox-inline input { width: auto; }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

/* ---------- Swipe deck (discover) ---------- */

.deck-wrap { display: flex; flex-direction: column; align-items: center; }
.deck {
  position: relative;
  width: min(420px, 92vw);
  height: min(600px, 72vh);
}
.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: none;
  user-select: none;
}
.swipe-card .photo {
  flex: 1;
  background: linear-gradient(160deg, #efe6f4, #fbdce7);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #c9b3d6;
  cursor: pointer;
}
.swipe-card .compat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(20, 12, 26, .55);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 14px;
}
.swipe-card .compat b { color: #8ef0b6; }
.swipe-card .dist {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 12, 26, .55);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}
.swipe-card .card-info { padding: 14px 16px 16px; }
.swipe-card .name { font-size: 20px; font-weight: 800; }
.swipe-card .meta { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.swipe-card .bio {
  font-size: 14px;
  color: var(--text);
  max-height: 60px;
  overflow: hidden;
}
.swipe-card.gone-left { transition: transform .35s, opacity .35s; transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.swipe-card.gone-right { transition: transform .35s, opacity .35s; transform: translateX(130%) rotate(18deg) !important; opacity: 0; }

.stamp {
  position: absolute;
  top: 24px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 14px;
  border: 4px solid;
  border-radius: 10px;
  opacity: 0;
  transform: rotate(-14deg);
  pointer-events: none;
}
.stamp.like { left: 18px; color: var(--like); border-color: var(--like); }
.stamp.nope { right: 18px; color: var(--nope); border-color: var(--nope); transform: rotate(14deg); }

.deck-actions { display: flex; gap: 26px; margin-top: 18px; }
.deck-actions .round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .12s;
}
.deck-actions .round:hover { transform: scale(1.1); }
.deck-actions .round.nope { color: var(--nope); }
.deck-actions .round.like { color: var(--like); }

/* ---------- Matches / chat ---------- */

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  min-height: 60vh;
}
.dialog-list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: 75vh;
}
.dialog-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
}
.dialog-item:hover, .dialog-item.active { background: var(--accent-soft); }
.chat-profile-link { color: inherit; text-decoration: none; }
.chat-profile-link:hover { text-decoration: underline; }

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, #efe6f4, #fbdce7);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9b3d6;
  font-size: 20px;
}
.dialog-item .d-body { flex: 1; min-width: 0; }
.dialog-item .d-name { font-weight: 700; font-size: 14px; }
.dialog-item .d-last {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dialog-item .badge { position: static; }

.chat-pane {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head .name { font-weight: 700; }
.chat-scroll { flex: 1; overflow: auto; padding: 16px; }
.msg {
  max-width: 72%;
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  background: var(--bg);
  width: fit-content;
}
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg.mine {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}
.msg.mine time { color: rgba(255, 255, 255, .75); }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }

/* ---------- Profile page ---------- */

.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.panel h3 { margin: 0 0 14px; font-size: 16px; }

.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg) center/cover;
}
.photo-tile .tile-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.photo-tile .tile-actions button {
  border: none;
  background: rgba(255, 255, 255, .9);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}
.photo-tile .main-star {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.rating-bar { background: var(--bg); border-radius: 999px; height: 10px; overflow: hidden; }
.rating-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff8c69); }
.stat-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }

/* ---------- User detail page ---------- */

.user-layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.user-photo-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #efe6f4, #fbdce7) center/cover;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: #c9b3d6;
}
.user-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.user-thumbs .thumb {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  background: var(--bg) center/cover;
  cursor: pointer;
  border: 2px solid transparent;
}
.user-thumbs .thumb.on { border-color: var(--accent); }
.compat-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Toasts & modal ---------- */

.toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}
.toast {
  background: #2c2333;
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in .25s;
}
.toast.error { background: var(--nope); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 25, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal {
  background: var(--card);
  border-radius: 18px;
  padding: 30px;
  width: min(380px, 92vw);
  text-align: center;
}
.modal-emoji { font-size: 54px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- AI assistant (phase 3) ---------- */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.label-row label { margin-bottom: 0; }

.btn-ai {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ai:hover { border-color: var(--accent); }
.btn-ai[disabled] { opacity: .5; cursor: wait; }

.ai-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
}
.ai-tag { font-size: 12px; font-weight: 800; color: var(--accent); }

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 0;
}
.suggest-chip {
  text-align: left;
  border: 1px dashed var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.suggest-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Monetization (phase 5) ---------- */

.nav-premium { color: #b8860b; font-weight: 700; }

/* VIP badge sits next to the name. */
.vip-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  padding: 1px 7px;
  border: 1px solid #d4a017;
  border-radius: 999px;
  background: #fdf6e3;
  color: #9a7209;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Super Like button in deck actions */
.deck-actions .round.super { color: #2e86de; font-size: 24px; }
.deck-actions .round.super:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

/* Star flag on super-liked cards in the "liked you" grid */
.super-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}

/* Premium page */
.premium-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 16px;
  align-items: start;
}
.product-grid { display: grid; gap: 10px; }
.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.product .p-name { font-weight: 600; font-size: 14px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* Gift picker and the received-gifts strip */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.gift-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.gift-option:hover { border-color: var(--accent); }
.gift-option .g-emoji { font-size: 26px; }
.gift-option .g-name { font-size: 12px; }
.gift-option .g-price { font-size: 12px; color: var(--muted); }
.gift-strip { display: flex; flex-wrap: wrap; gap: 6px; font-size: 24px; }
.gift-item { cursor: default; }

/* House ad card in results grids */
.ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  color: inherit;
}
.ad-card:hover { border-color: var(--accent); }
.ad-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eee;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ad-title { font-weight: 700; }
.ad-text { font-size: 13px; color: var(--muted); }

/* ---------- Similar profiles strip (phase 6) ---------- */
.similar-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.similar-grid .person-card .name { font-size: 13px; }
.similar-grid .person-card .meta { font-size: 11px; }

/* ---------- Consent banner (phase 9) ---------- */

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.consent-text { font-size: 13px; color: var(--muted); margin: 0; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- USDT payment details (premium page) ---------- */

.usdt-pay { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.copy-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.copy-line > span { flex: 0 0 128px; font-size: 13px; }
.copy-line input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg, #f7f7f9);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .chat-layout, .profile-grid, .user-layout { grid-template-columns: 1fr; }
  .premium-layout { grid-template-columns: 1fr; }
  .dialog-list { max-height: 300px; }
  .mainnav a { padding: 6px 9px; font-size: 13px; }
}
