:root {
  --page: #e9ebf0;
  --surface: #ffffff;
  --text: #000000;
  --text-secondary: #4b5565;
  --text-tertiary: #9aa4b2;
  --divider: #cdd5df;
  --line: #e3e8ef;
  --bubble: #eef2f6;
  --gem-top: #36bffa;
  --gem-bottom: #0087c9;
  --gem-card: #49c2fd;
  --gem-button: #32b1f6;
  --claim: #4ac2fc;
  --boost-top: #e378fa;
  --boost-bottom: #ba24d6;
  --super-top: #8099fa;
  --super-bottom: #454de8;
  --cta-top: #fa9652;
  --cta-bottom: #e65466;
  --accent: #ff6688;
  --subscription: #fc6883;
  --online: #17b26a;
  --font: "Avenir Next", "Avenir", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }

/* App shell */

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 24px rgba(18, 25, 38, 0.12);
  overflow: hidden;
}

.app-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 10px 16px 6px;
  flex-shrink: 0;
  background: var(--surface);
}
.app-bar.centered { justify-content: center; }
.app-bar .back { position: absolute; left: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.app-bar .back svg { width: 24px; height: 24px; }
.app-bar .center-title { font-size: 18px; font-weight: 700; }
.app-bar .trailing { position: absolute; right: 12px; display: flex; align-items: center; gap: 4px; }

.app-title { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.app-actions { display: flex; align-items: center; gap: 8px; }

.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.icon-button svg { width: 22px; height: 22px; }

.boost-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--boost-top), var(--boost-bottom));
  box-shadow: inset 0 0 0 2px #fff;
}
.boost-button img { width: 24px; height: 24px; }

.gem-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--gem-top), var(--gem-bottom));
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.gem-pill img { width: 25px; height: 25px; }
.gem-pill .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d92d20;
  box-shadow: 0 0 0 2px #fff;
}

.app-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; }
.app-body.fixed { overflow: hidden; }

/* Tab bar */

.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tab { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
.tab img { width: 26px; height: 26px; }

/* Shared list rows */

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.row + .row { border-top: 1px solid var(--line); }
.avatar { position: relative; display: inline-block; flex-shrink: 0; width: 52px; height: 52px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bubble); }
.avatar.online::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 2px #fff;
}
.row .text { flex: 1; min-width: 0; }
.row .title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .title .age { font-weight: 400; }
.row .subtitle { color: var(--text-secondary); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { color: var(--text-tertiary); font-size: 12px; align-self: flex-start; padding-top: 4px; }
.unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-button.primary { background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); color: #fff; }
.pill-button.secondary { background: var(--bubble); color: var(--text); }
.pill-button.snap { background: #fffc00; color: #000; }

.gradient-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.gradient-button[disabled] { background: linear-gradient(180deg, #edf2f5, #e3e8f0); color: var(--text-tertiary); cursor: default; }

.section-title { padding: 16px 16px 6px; font-size: 18px; font-weight: 700; }
.empty-note { padding: 24px 16px; color: var(--text-secondary); text-align: center; }

/* Toast */

.toast {
  position: absolute;
  left: 50%;
  top: 72px;
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Gem reward overlay */

.reward-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.reward-overlay.visible { opacity: 1; pointer-events: auto; }
.reward-overlay .sunburst { position: absolute; width: 400px; height: 400px; max-width: none; animation: spin 12s linear infinite; opacity: 0.9; }
.reward-overlay .sunburst.reverse { animation-direction: reverse; animation-duration: 18s; }
.reward-overlay .gem { position: relative; font-size: 54px; line-height: 1.1; }
.reward-overlay .amount { position: relative; font-size: 34px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .reward-overlay .sunburst { animation: none; }
}

/* Discover */

.card-stack { position: absolute; inset: 2px 14px 8px; }
.card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.card.top { cursor: grab; }
.card.gone { display: none; }
.card img.photo { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.shade-top { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 10%, rgba(0,0,0,0.33) 30%, transparent 50%); pointer-events: none; }
.shade-bottom { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,0.3) 26%, transparent 55%); pointer-events: none; }
.dim { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.card[data-page="bio"] .dim, .card[data-page="interests"] .dim { opacity: 1; }

.top-overlay { position: absolute; top: 8px; left: 16px; right: 16px; z-index: 3; }
.bars { display: flex; gap: 2px; }
.bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.5); }
.bars span.active { background: #fff; }
.report { position: absolute; right: -6px; top: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.report img { width: 20px; height: 20px; }

.card-info { position: absolute; left: 16px; right: 80px; bottom: 16px; z-index: 2; color: #fff; pointer-events: none; display: none; }
.card[data-page="photo"] .info-photo,
.card[data-page="bio"] .info-bio,
.card[data-page="interests"] .info-interests { display: block; }
.online-pill { display: inline-block; margin-bottom: 6px; padding: 3px 6px; border-radius: 12px; background: var(--online); font-size: 12px; font-weight: 600; line-height: 1.2; }
.card .name { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.card .name .age { font-weight: 400; }
.card .country { margin-top: 2px; font-size: 17px; }
.card .bio {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 22px 22px 22px 6px;
  background: var(--bubble);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 5px 12px; border-radius: 999px; background: rgba(112,112,112,0.7); color: #fff; font-size: 14px; font-weight: 600; }
.chip.shared { background: #fdead7; color: #b93815; box-shadow: inset 0 0 0 1px #f7b27a; }

.swipe-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.swipe-overlay.add { background: linear-gradient(180deg, rgba(250,150,82,0.75), rgba(230,84,102,0.75)); }
.swipe-overlay.skip { background: linear-gradient(180deg, rgba(153,163,179,0.75), rgba(74,84,102,0.75)); }
.swipe-overlay img { width: 180px; }
.swipe-overlay.add img { transform: rotate(-15deg); }
.swipe-overlay.skip img { width: 150px; transform: rotate(15deg); }

.side-buttons { position: absolute; right: 30px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 12px; }
.side-buttons button { width: 48px; height: 48px; border-radius: 50%; transition: transform 0.12s ease; }
.side-buttons button:active { transform: scale(0.9); }
.side-buttons img { width: 48px; height: 48px; }
.discover .app-body:has(.empty.visible) .side-buttons { display: none; }

.spent { position: absolute; top: 14px; right: 34px; z-index: 210; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; }
.spent.visible { animation: spent 1.2s ease forwards; }
@keyframes spent { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }

.empty { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; }
.empty.visible { display: flex; }
.empty h2 { font-size: 24px; font-weight: 700; }
.empty p { color: var(--text-secondary); font-size: 15px; }
.empty .gradient-button { margin-top: 8px; }

.sheet-backdrop { position: absolute; inset: 0; z-index: 300; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 301; padding: 12px 20px 28px; border-radius: 24px 24px 0 0; background: #f7f7f8; transform: translateY(100%); transition: transform 0.25s ease; }
.sheet .handle { width: 40px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--divider); }
.sheet .sheet-icon { width: 64px; height: 64px; margin-bottom: 12px; }
.sheet h2 { font-size: 32px; font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.sheet p { color: var(--text-secondary); margin-bottom: 20px; }
.super-gradient { background: linear-gradient(180deg, var(--super-top), var(--super-bottom)); }
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: translateY(0); }

/* Daily reward */

.reward-panel { position: absolute; inset: 2px 14px 8px; display: flex; flex-direction: column; padding: 22px 16px 18px; border-radius: 20px; background: linear-gradient(180deg, #fff4ec 0%, #ffe3ea 55%, #ffd6e0 100%); overflow-y: auto; }
.reward-panel .intro { text-align: center; margin-bottom: 18px; }
.reward-panel .gift { font-size: 56px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(255,102,136,0.35)); }
.reward-panel h1 { font-size: 28px; font-weight: 700; margin-top: 6px; }
.reward-panel .intro p { color: var(--text-secondary); font-size: 15px; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.day img { width: 36px; height: 36px; }
.day .secret { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 28px; }
.day .name { font-size: 13px; font-weight: 700; color: var(--text); }
.day.claimed { opacity: 0.55; }
.day.claimed::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: var(--online); font-weight: 700; }
.day.today { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 8px 18px rgba(255,102,136,0.25); color: var(--accent); }
.day.week-end { grid-column: span 3; flex-direction: row; justify-content: center; gap: 10px; padding: 12px; }
.day .video-tag { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 8px; background: #1c4257; color: #fff; font-size: 10px; white-space: nowrap; }
.claim-area { margin-top: auto; padding-top: 18px; }

/* Gems store */

.store .store-header { position: absolute; inset: 0 0 auto; height: 200px; background: linear-gradient(180deg, var(--gem-bottom), rgba(54,191,250,0)); pointer-events: none; }
.gems-nav { position: relative; z-index: 2; display: flex; align-items: center; height: 56px; padding: 8px 16px 0; flex-shrink: 0; }
.gems-nav .back { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.gems-nav .back svg { width: 24px; height: 24px; }
.gems-nav .balance { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 32px; font-weight: 700; }
.gems-nav .balance img { width: 32px; height: 32px; }
.toolkit { position: relative; z-index: 2; display: flex; gap: 14px; align-self: center; height: 32px; margin: 6px 0 10px; padding: 0 12px; border-radius: 40px; background: linear-gradient(180deg, rgba(255,255,255,0.17), rgba(255,255,255,0.14)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); flex-shrink: 0; }
.tool { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.tool .dot { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }
.tool .dot img { width: 13px; height: 13px; }
.dot.boost { background: linear-gradient(180deg, var(--boost-top), var(--boost-bottom)); }
.dot.flare { background: linear-gradient(180deg, #ffb35c, #f0612b); }
.dot.super { background: linear-gradient(180deg, var(--super-top), var(--super-bottom)); }
.dot.flash { background: linear-gradient(180deg, #fac414, #c98505); }
.store .app-body { z-index: 1; }
.store-body { display: grid; gap: 27px; padding: 4px 16px 24px; }
.store-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.gem-card { border-radius: 12px; background: rgba(73,194,253,0.2); box-shadow: inset 0 0 0 1px var(--gem-card); }
.video-card { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 12px 14px; }
.video-card .tv { font-size: 38px; line-height: 1; }
.video-card .text { flex: 1; min-width: 0; }
.video-card .text span { display: block; font-size: 15px; }
.video-card .text strong { font-size: 13px; }
.watch-pill { padding: 8px 14px; border-radius: 20px; background: var(--gem-button); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.subscription { padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--subscription); text-align: center; }
.subscription h2 { font-size: 25px; font-weight: 700; line-height: 1.15; }
.subscription .subtitle { font-weight: 600; margin: 4px 0 10px; }
.subscription ul { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
.subscription button { width: 190px; max-width: 100%; height: 30px; border-radius: 15px; background: var(--subscription); color: #fff; font-size: 14px; font-weight: 700; }
.subscription small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 200px; padding: 22px 6px 10px; overflow: hidden; }
.pack .strip { position: absolute; inset: 0 0 auto; padding: 2px 4px; background: var(--gem-card); color: #fff; font-size: 10px; font-weight: 600; text-align: center; }
.pack img { width: 80px; height: 80px; }
.pack .price { font-size: 15px; margin-top: 6px; }
.pack .before { font-size: 12px; font-weight: 600; color: #3bc5ff; text-decoration: line-through; }
.pack hr { width: 70%; border: none; border-top: 1px solid var(--gem-card); margin: auto 0 8px; }
.pack .amount { font-size: 14px; font-weight: 700; }
.boosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.boost-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 14px 6px; border-radius: 12px; background: rgba(148,53,202,0.1); box-shadow: inset 0 0 0 1px #902ec8; }
.boost-item .dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--boost-top), var(--boost-bottom)); box-shadow: inset 0 0 0 2px #fff; }
.boost-item .dot img { width: 24px; height: 24px; }
.boost-item strong { font-size: 14px; }
.boost-item span { font-size: 13px; color: var(--text-secondary); }
.free-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.free-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 140px; padding: 12px; text-align: center; }
.free-tile .emoji { font-size: 38px; line-height: 1; }
.free-tile strong { font-size: 15px; }
.free-tile span { font-size: 13px; font-weight: 700; }
.share, .achievements { padding: 14px; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.achievements .share-row { font-weight: 600; }
.progress-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 13px; font-weight: 600; }
.progress { flex: 1; max-width: 169px; height: 15px; border-radius: 8px; background: rgba(73,194,253,0.25); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 8px; background: var(--gem-card); }
.small-button { height: 30px; padding: 0 16px; border-radius: 15px; background: var(--gem-card); color: #fff; font-size: 13px; font-weight: 700; }
.achievements hr { border: none; border-top: 1px solid var(--divider); margin: 14px 0; }
.claim-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 10px; border-radius: 24px; background: var(--claim); color: #fff; font-size: 16px; font-weight: 700; }

/* Shared bits for tab screens */

.flash-button { width: 36px; height: 36px; background: linear-gradient(180deg, #fac414, #c98505); box-shadow: inset 0 0 0 2px #fff; }
.flash-button img { width: 20px; height: 20px; }
.avatar.sm { width: 36px; height: 36px; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.xl { width: 88px; height: 88px; }
.avatar.xxl { width: 80px; height: 80px; }
.avatar.xxxl { width: 90px; height: 90px; }
.avatar.sm.online::after { width: 10px; height: 10px; }
.pill { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 6px; background: #fdead7; color: #b93815; box-shadow: inset 0 0 0 1px #f7b27a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.lg { padding: 10px 12px; border-radius: 12px; background: var(--bubble); color: var(--text); box-shadow: none; font-size: 14px; }
.pill.lg.shared { background: #fdead7; color: #b93815; box-shadow: inset 0 0 0 1px #f7b27a; }
.list-heading { padding: 12px 16px 8px; font-size: 20px; font-weight: 600; }
.gradient-button.compact { width: auto; height: 48px; padding: 0 20px; gap: 8px; border-radius: 12px; }
.gradient-button.compact img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.back-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.back-icon img { width: 24px; height: 24px; }
.app-bar.centered .back-icon { position: absolute; left: 12px; }

/* Requests */

.flare-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px 16px; }
.flare-avatar { position: relative; flex-shrink: 0; width: 64px; height: 64px; }
.flare-avatar > img:first-child { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.flare-avatar .flare-badge { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; }
.flare-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flare-label { font-size: 14px; color: var(--text-secondary); }
.flare-bubble { padding: 10px 14px; border-radius: 22px 22px 22px 6px; background: var(--bubble); font-size: 14px; text-align: left; }
.request-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px 96px; }
.request-card { position: relative; height: 230px; border-radius: 16px; overflow: hidden; background: #ddd; }
.request-card.super { box-shadow: 0 0 0 2px #7f99fa, 0 6px 16px rgba(69,77,232,0.35); }
.request-card .photo { width: 100%; height: 100%; object-fit: cover; }
.request-card .photo-link { position: absolute; inset: 0; }
.request-top { position: absolute; top: 8px; left: 12px; right: 12px; pointer-events: none; }
.request-name { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 20px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.request-name .age { font-weight: 400; }
.request-name .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2px #fff; }
.request-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.super-chip { background: linear-gradient(180deg, #7f99fa, #454de8); color: #fff; box-shadow: none; }
.request-actions { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 16px; }
.request-actions[hidden] { display: none; }
.round { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.round img { width: 18px; height: 18px; }
.round.decline { background: linear-gradient(180deg, #99a3b3, #4a5466); }
.round.accept { background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); }
.request-actions.disabled .round { filter: grayscale(1); opacity: 0.6; }
.chat-after { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--divider); font-size: 14px; font-weight: 500; }
.chat-after[hidden] { display: none; }
.request-card.blurred .photo { filter: blur(16px); transform: scale(1.1); }
.hidden-name { display: block; width: 64px; height: 16px; border-radius: 8px; background: rgba(0,0,0,0.3); }
.common { margin-top: 8px; color: #fff; font-size: 12px; }
.unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; }
.unlock img { width: 18px; height: 18px; }
.floating-cta { position: sticky; bottom: 12px; display: flex; justify-content: center; margin-top: -84px; padding-bottom: 12px; }

/* Chat */

.carousel { display: flex; gap: 16px; padding: 0 16px 12px; overflow-x: auto; }
.carousel a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.dm-row { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); height: 48px; margin: 4px 16px 8px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--divider), 0 1px 1px rgba(0,0,0,0.1); }
.dm-stack { display: flex; }
.dm-stack span { width: 32px; height: 32px; margin-left: -12px; border-radius: 50%; background: var(--bubble); box-shadow: 0 0 0 2px #fff; }
.dm-stack span:first-child { margin-left: 0; }
.dm-label { margin-left: auto; font-size: 14px; font-weight: 600; }
.count-badge { display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: #e04f16; color: #fff; font-size: 12px; font-weight: 600; }
.dm-row img { width: 16px; height: 16px; }
.rows .row + .row, .rows li + li .row { border-top: 1px solid var(--divider); }
.chat-row .subtitle { color: var(--text-secondary); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #df4d2c; flex-shrink: 0; }

.chat-header { justify-content: flex-start; gap: 6px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.chat-name { font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .icon-button img { width: 24px; height: 24px; }
.chat-body { padding: 12px 12px 8px; }
.messages { display: flex; flex-direction: column; gap: 10px; }
.message { display: flex; flex-direction: column; max-width: 78%; }
.message.me { align-self: flex-end; align-items: flex-end; }
.message.them { align-self: flex-start; align-items: flex-start; }
.message .bubble { padding: 12px 16px; border-radius: 20px; font-size: 16px; color: var(--text); }
.message.me .bubble { background: #fdead7; border-bottom-right-radius: 6px; }
.message.them .bubble { background: var(--bubble); border-bottom-left-radius: 6px; }
.message .author { margin-top: 2px; color: var(--text-tertiary); font-size: 14px; }
.message.group { flex-direction: row; align-items: flex-end; gap: 8px; max-width: 86%; }
.message.group.me { flex-direction: row-reverse; }
.message.group > div { display: flex; flex-direction: column; }
.message.group.me > div { align-items: flex-end; }
.message .sender { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.chat-empty h1 { font-size: 32px; font-weight: 700; }
.chat-empty h1 .age { font-weight: 400; }
.composer { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fefeff; }
.composer input { flex: 1; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--divider); font: inherit; font-size: 16px; background: #fff; }
.composer button img { width: 36px; height: 36px; }

/* Friends */

.notify-banner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; background: #3bc5ff; text-align: left; }
.notify-banner strong { display: block; color: #fff; font-size: 18px; }
.notify-banner span span { color: #000; font-size: 16px; font-weight: 600; }
.notify-banner img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.friend-row { display: flex; align-items: center; padding-right: 16px; }
.friend-row .row { flex: 1; min-width: 0; }
.friends li { position: relative; }
.friends li + li .row { border-top: none; }
.friends li + li::before { content: ""; position: absolute; top: 0; left: 92px; right: 16px; border-top: 1px solid var(--divider); }
.new-chip { margin-left: 6px; padding: 2px 8px; border-radius: 12px; }
.chat-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--divider), 0 1px 1px rgba(0,0,0,0.1); }
.chat-button img { width: 24px; height: 24px; }

/* Chillout spots */

.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 4px 16px 24px; }
.room-card { position: relative; display: flex; flex-direction: column; height: 220px; padding: 12px; border-radius: 16px; overflow: hidden; color: #fff; }
.room-label { font-size: 16px; font-weight: 700; color: #000; }
.room-emoji { margin: auto; font-size: 56px; line-height: 1.1; text-align: center; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }
.room-count { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.room-count .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2px #fff; }
.room-count img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.room-count.dark img { filter: none; }
.room-card .room-count { position: absolute; left: 12px; bottom: 16px; }
.room-cta { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 70px; height: 32px; border-radius: 16px; background: #fff; color: #000; font-size: 14px; font-weight: 700; }
.room-header { border-bottom: 1px solid var(--line); }
.room-exit { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.room-exit img { width: 24px; height: 24px; }
.room-intro { margin: 0 auto 12px; padding: 8px 12px; max-width: 90%; border-radius: 12px; background: rgba(255,255,255,0.7); font-size: 14px; text-align: center; color: var(--text-secondary); }

/* Own profile and settings */

.settings-button img { width: 30px; height: 30px; }
.profile-body { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 24px; text-align: center; }
.me-name { margin-top: 10px; font-size: 20px; font-weight: 700; }
.me-country { margin-bottom: 12px; }
.level { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0 16px; }
.level img { width: 40px; height: 40px; }
.caps-heading { align-self: flex-start; margin: 12px 0 10px; font-size: 17px; font-weight: 700; }
.settings-body { background: #f2f2f6; padding-bottom: 24px; }
.settings-section h2 { padding: 18px 20px 6px; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.settings-section ul { margin: 0 16px; border-radius: 12px; background: #fff; }
.settings-section li { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; font-size: 16px; }
.settings-section li + li { border-top: 1px solid var(--line); }
.settings-section .value { margin-left: auto; color: var(--text-secondary); font-size: 15px; }
.settings-section li img { width: 14px; height: 14px; opacity: 0.5; }
.settings-section li:not(:has(.value:not(:empty))) img { margin-left: auto; }

/* Other user's profile */

.friend-profile { padding-bottom: 24px; }
.profile-photo { position: relative; aspect-ratio: 4 / 5; background: #000; }
.profile-photo > img { width: 100%; height: 100%; object-fit: cover; }
.bars.single { position: absolute; top: 8px; left: 16px; right: 16px; }
.photo-back, .photo-more { position: absolute; top: 22px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.photo-back { left: 8px; }
.photo-more { right: 8px; }
.photo-back img { width: 30px; height: 30px; filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.photo-more img { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 4px; }
.profile-name { font-size: 32px; font-weight: 700; line-height: 1.1; }
.profile-name .age { font-weight: 400; }
.profile-country { margin-top: 4px; }
.profile-heading { padding: 18px 16px 8px; font-size: 20px; font-weight: 700; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.about-bubble { margin: 0 16px; padding: 12px 16px; border-radius: 6px 22px 22px 22px; background: var(--bubble); font-size: 16px; font-weight: 500; }
.friend-profile .level { align-items: flex-start; padding: 0 16px; margin-top: 18px; }
.socials { display: flex; gap: 10px; padding: 4px 16px; }
.social { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--divider); }
.social.tiktok { background: #000; }
.social.snap { background: #fff; }
.social img { width: 26px; height: 26px; }
.bottom-bar { display: flex; gap: 12px; flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 0.5px solid var(--divider); background: #fff; }
.bottom-bar .gradient-button { height: 48px; border-radius: 12px; font-weight: 600; }
.outline-button { display: flex; align-items: center; justify-content: center; flex: 0 0 42%; height: 48px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--divider), 0 1px 1px rgba(0,0,0,0.1); font-size: 15px; font-weight: 700; }

/* Row text layout */

.row .text { display: flex; flex-direction: column; gap: 2px; }
.row .title, .row .subtitle { display: block; }

.flag { margin-right: 6px; }

/* Profile: verify, daily reward widget, decorations, tab dots */

.tab { position: relative; }
.tab-dot { position: absolute; top: 9px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #e04f16; }

.verify { display: flex; flex-direction: column; align-items: center; }
.verify-button { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 48px; border-radius: 12px; background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); color: #fff; font-size: 16px; font-weight: 600; }
.verify-badge { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; }
.verify p { margin-top: 8px; color: var(--text-secondary); font-size: 12px; }

.daily-widget { position: relative; display: flex; align-items: center; gap: 4px; width: 100%; margin: 28px 0 22px; padding: 12px 10px 12px 104px; border-radius: 16px; background: linear-gradient(180deg, #9369e0, #7f59d2); box-shadow: 0 6px 16px rgba(110, 72, 200, 0.3); }
.dw-logo { position: absolute; left: 6px; top: -14px; bottom: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 96px; transform: rotate(-8deg); }
.dw-title { color: #fff; font-family: "Avenir Next Condensed", "Avenir Next", var(--font); font-size: 22px; font-weight: 900; font-style: italic; line-height: 0.95; letter-spacing: -0.02em; text-align: center; -webkit-text-stroke: 1px #4a148c; text-shadow: 0 2px 0 #5b1fa8, 0 3px 0 #4a148c; }
.dw-claim { padding: 3px 14px; border-radius: 14px; background: linear-gradient(180deg, #f79a55, #e8615f); box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(0,0,0,0.2); color: #fff; font-size: 13px; font-weight: 700; }
.dw-days { display: flex; justify-content: space-between; flex: 1; }
.dw-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; }
.dw-day.today { background: rgba(255,255,255,0.18); }
.dw-check { position: relative; display: block; width: 24px; height: 24px; border-radius: 50%; background: #6f50ab; }
.dw-check::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border: solid #9c84cf; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dw-gift { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #f79a55, #e8615f); box-shadow: 0 0 0 2px #fff; }
.dw-gift svg { width: 15px; height: 15px; }
.dw-label { color: #fff; font-size: 11px; font-weight: 800; text-shadow: 0 1px 0 #4a148c, 0 0 2px #4a148c; }

.deco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.decoration { position: relative; aspect-ratio: 640 / 1024; border-radius: 14px; overflow: hidden; background: #f4f5f7; }
.decoration button { position: relative; display: block; width: 100%; height: 100%; }
.decoration img { width: 100%; height: 100%; object-fit: cover; }
.decoration button::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.deco-lock { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); }
.deco-lock img { width: 28px; height: 28px; }
.deco-price { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
