﻿:root {
  --bg: #fbf7f1;
  --panel: #ffffff;
  --ink: #1e1d1b;
  --muted: #746f68;
  --line: #ece3d8;
  --brand: #e9483f;
  --brand-dark: #9e241f;
  --gold: #d99f23;
  --teal: #077a75;
  --soft: #f7efe6;
  --shadow: 0 18px 50px rgba(44, 32, 21, 0.1);
  --night: #171311;
  --night-soft: #241b17;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 246, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  margin-top: 34px;
  display: grid;
  gap: 8px;
}

.nav button,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 750;
}

.nav button.active,
.mobile-nav button.active {
  background: var(--ink);
  color: #fff;
}

.side-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.side-footer a {
  margin-right: 10px;
  white-space: nowrap;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-brand {
  display: none;
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(34, 24, 18, 0.06);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--brand));
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  max-width: 1120px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.btn.secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--brand-dark);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 44px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(233, 72, 63, 0.18), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(217, 159, 35, 0.2), transparent 30%),
    linear-gradient(135deg, #fff8f0 0%, #f6ece0 42%, #211715 42.2%, #120f0d 100%);
}

.auth-wrap {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 34px;
  align-items: stretch;
}

.auth-copy {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 32px;
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 235, 0.62)),
    linear-gradient(135deg, rgba(233, 72, 63, 0.12), transparent);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 30px 90px rgba(32, 20, 13, 0.16);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 66px;
}

.auth-header .brand {
  font-size: 25px;
}

.auth-header .brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(75, 32, 16, 0.24);
}

.auth-links {
  display: flex;
  gap: 10px;
}

.auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(65, 42, 28, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(233, 72, 63, 0.12);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: #5f554c;
  font-size: 18px;
  line-height: 1.6;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(31, 25, 20, 0.16);
}

.preview-stack {
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 284px;
  height: 330px;
  pointer-events: none;
}

.preview-phone {
  position: absolute;
  right: 32px;
  bottom: 0;
  width: 184px;
  height: 318px;
  padding: 14px;
  border: 8px solid #201814;
  border-radius: 32px;
  background: #171210;
  box-shadow: 0 28px 56px rgba(22, 15, 10, 0.3);
}

.preview-top {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.preview-top span {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: #45342c;
}

.preview-story-row {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.preview-story-row i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brand));
  border: 2px solid #fff;
}

.preview-video {
  height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent 60%),
    linear-gradient(135deg, #522b18, #da9d22 48%, #e9483f);
  color: #fff;
}

.preview-card {
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 170px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(30, 20, 15, 0.14);
  font-size: 13px;
}

.preview-card span {
  color: var(--muted);
}

.preview-card-one {
  top: 98px;
}

.preview-card-two {
  bottom: 62px;
}

.auth-panel {
  align-self: center;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.94));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.auth-panel-head {
  margin-bottom: 18px;
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.auth-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: #f1e7db;
}

.auth-tabs button {
  min-height: 46px;
  border-radius: 10px;
  background: transparent;
  color: #5b5148;
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(233, 72, 63, 0.22);
}

.auth-panel .field {
  margin-bottom: 14px;
}

.auth-panel .field input {
  min-height: 50px;
  border-color: #e6d7ca;
  background: rgba(255, 255, 255, 0.88);
}

.auth-panel .field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 72, 63, 0.1);
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  background: var(--night);
}


.helper {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.otp-input {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
}
.auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.story {
  width: 76px;
  flex: 0 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.story .avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 7px;
  border: 3px solid var(--brand);
}

.composer {
  display: grid;
  gap: 12px;
}

.composer-actions {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: end;
}

.feed {
  display: grid;
  gap: 16px;
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.identity strong,
.identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-frame {
  background: #111;
  position: relative;
  overflow: hidden;
}

.media-frame video,
.media-frame img {
  width: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
  background: #111;
}

.post-body {
  padding: 14px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.icon-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.reel-tile {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.reel-tile video,
.reel-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.profile-head .avatar {
  width: 96px;
  height: 96px;
  font-size: 32px;
}

.stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.stat strong,
.stat span {
  display: block;
}

.people-list,
.thread-list,
.message-list {
  display: grid;
  gap: 10px;
}

.person,
.thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.chat-box {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.message-list {
  align-content: start;
  overflow-y: auto;
  padding: 14px;
  max-height: 520px;
}

.bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}

.bubble.mine {
  margin-left: auto;
  background: #1f1e1b;
  color: #fff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.policy-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 22px 70px;
  line-height: 1.7;
}

.policy-page header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.policy-page img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.policy-page h1 {
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.policy-page h2 {
  margin-top: 30px;
}

.mobile-nav {
  display: none;
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px 14px 88px;
  }

  .auth-main {
    display: block;
    padding: 16px;
    background:
      linear-gradient(180deg, #fff8f0 0%, #f6ece0 48%, #181210 48.2%, #120f0d 100%);
  }

  .mobile-brand {
    display: flex;
  }

  .grid,
  .auth-wrap,
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .auth-wrap {
    min-height: 0;
    gap: 16px;
  }

  .auth-copy {
    min-height: auto;
    padding: 24px;
  }

  .auth-header {
    margin-bottom: 42px;
  }

  .auth-copy h1 {
    font-size: 48px;
    max-width: 640px;
  }

  .auth-lede {
    max-width: 620px;
  }

  .preview-stack {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    height: 250px;
    margin-top: 24px;
  }

  .preview-phone {
    right: 28px;
    width: 152px;
    height: 246px;
    border-width: 7px;
  }

  .preview-video {
    height: 148px;
  }

  .preview-card {
    left: 0;
    width: 164px;
  }

  .auth-panel {
    align-self: stretch;
  }

  .composer-actions {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 246, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    justify-content: center;
    min-height: 48px;
    padding: 0;
    font-size: 0;
  }

  .mobile-nav button span {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .session-pill {
    max-width: 170px;
  }

  .profile-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-head .avatar {
    margin: 0 auto;
  }

  .auth-main {
    padding: 10px;
  }

  .auth-copy,
  .auth-panel {
    border-radius: 16px;
    padding: 18px;
  }

  .auth-header {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .auth-links {
    display: none;
  }

  .auth-copy h1 {
    font-size: 38px;
  }

  .auth-lede {
    font-size: 16px;
  }

  .feature-strip span {
    min-height: 34px;
    font-size: 13px;
  }

  .preview-stack {
    display: none;
  }

  .auth-panel-head h2 {
    font-size: 24px;
  }
}
/* Cheerz UI polish patch */
body {
  background: linear-gradient(180deg, #fffaf5 0%, #f6efe7 100%);
}

.shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  padding: 30px 24px;
  background: rgba(255, 250, 246, 0.94);
}

.sidebar .brand {
  font-size: 29px;
}

.nav {
  margin-top: 42px;
  gap: 10px;
}

.nav button,
.mobile-nav button {
  min-height: 54px;
  border-radius: 8px;
  font-size: 16px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav button:hover,
.mobile-nav button:hover {
  background: rgba(27, 24, 22, 0.07);
}

.nav button.active,
.mobile-nav button.active {
  background: #1d1b19;
  color: #fff;
  box-shadow: 0 12px 26px rgba(29, 27, 25, 0.16);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(234, 70, 61, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.nav button.active .nav-icon,
.mobile-nav button.active .nav-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-icon-home::before { content: "H"; }
.nav-icon-reels::before { content: "R"; }
.nav-icon-search::before { content: "S"; }
.nav-icon-messages::before { content: "M"; }
.nav-icon-profile::before { content: "P"; }

.main {
  padding: 26px 36px 40px;
}

.topbar,
.content {
  max-width: 1320px;
}

.topbar {
  margin-bottom: 28px;
}

.session-pill {
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
}

.signout-btn {
  min-width: auto;
  width: auto;
  padding: 0 12px;
  font-size: 13px;
}

.grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.panel,
.card {
  border-radius: 8px;
  border-color: #eaded3;
  box-shadow: 0 16px 42px rgba(50, 35, 20, 0.08);
}

.panel {
  padding: 20px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.composer-actions {
  grid-template-columns: 180px minmax(0, 1fr) auto;
}

.composer .btn {
  min-width: 108px;
}

.field input[type="file"] {
  padding: 8px;
}

.field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f1e8de;
  color: var(--ink);
  font-weight: 800;
}

.stories {
  padding: 6px 2px 14px;
}

.story {
  color: #5f554c;
  font-weight: 700;
}

.story .avatar {
  width: 68px;
  height: 68px;
  border: 3px solid var(--brand);
  box-shadow: 0 8px 18px rgba(233, 72, 63, 0.18);
}

.post-card {
  overflow: hidden;
  background: #fff;
}

.post-card .post-head {
  padding: 16px 18px;
  background: #fff;
}

.content-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3ebe2;
  color: #5f554c;
  font-size: 12px;
  font-weight: 850;
}

.media-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(180deg, #2e2e2e 0%, #111 100%);
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.post-body {
  padding: 16px 18px 18px;
}

.post-body p {
  margin: 0 0 14px;
  color: #312b27;
  line-height: 1.5;
}

.post-actions {
  margin: 0;
  gap: 10px;
}

.action-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4ebe3;
  color: var(--ink);
  font-weight: 850;
}

.action-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand);
  display: inline-block;
}

.action-share {
  background: #1d1b19;
}

.reels-panel {
  padding: 22px;
}

.reel-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.reel-tile {
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(20, 18, 16, 0.18);
  border: 1px solid rgba(255,255,255,0.1);
}

.reel-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  pointer-events: none;
}

.reel-caption {
  z-index: 1;
  display: grid;
  gap: 8px;
}

.reel-caption p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.reel-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fff;
  font-weight: 900;
}

.avatar.tiny {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.helper {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.otp-input {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
}

@media (max-width: 920px) {
  .main {
    padding: 18px 14px 92px;
  }

  .mobile-nav button {
    min-height: 52px;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
  }

  .mobile-nav .nav-label {
    display: block;
  }

  .composer-actions {
    grid-template-columns: 1fr;
  }

  .media-frame {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .session-pill strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
/* End Cheerz UI polish patch */
/* Cheerz mobile parity patch */
.content {
  max-width: 1180px;
}

.grid {
  grid-template-columns: minmax(0, 680px) 300px;
  justify-content: center;
}

.feed {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.composer-panel {
  padding: 18px;
}

.post-card {
  overflow: hidden;
}

.media-frame {
  aspect-ratio: 4 / 5;
  background: #111;
}

.media-frame.video-frame {
  aspect-ratio: 16 / 9;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-btn.active {
  color: #e9483f;
}

.action-btn.active .action-like {
  background: #e9483f;
}

.reel-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.reel-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  font-weight: 750;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .feed {
    max-width: 100%;
  }

  .media-frame,
  .media-frame.video-frame {
    aspect-ratio: 4 / 5;
  }
}
/* End Cheerz mobile parity patch */
/* Cheerz parity v1 patch */
.app-post-card .media-frame video {
  cursor: pointer;
}

.action-dot.action-save {
  background: #d99f23;
}

.action-btn.active {
  color: #e9483f;
}

.phone-reels-page {
  max-width: 430px;
  margin: 0 auto;
  height: calc(100vh - 56px);
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  background: #050505;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  position: relative;
}

.phone-reels-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: #fff;
}

.phone-reels-top h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.phone-reels-top .icon-btn {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.phone-reels-shell {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.phone-reels-shell::-webkit-scrollbar {
  display: none;
}

.phone-reel {
  height: 100%;
  min-height: 640px;
  position: relative;
  scroll-snap-align: start;
  background: #111;
  overflow: hidden;
}

.phone-reel video,
.phone-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 28%, transparent 58%, rgba(0,0,0,0.82));
  pointer-events: none;
}

.phone-reel-info {
  position: absolute;
  left: 16px;
  right: 88px;
  bottom: 26px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.phone-reel-info p {
  margin: 0;
  line-height: 1.38;
}

.phone-reel-info small {
  color: rgba(255,255,255,0.78);
  font-weight: 750;
}

.phone-reel-actions {
  position: absolute;
  right: 12px;
  bottom: 30px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.phone-reel-actions button {
  width: 62px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 18px;
  background: rgba(0,0,0,0.34);
  color: #fff;
  backdrop-filter: blur(10px);
}

.phone-reel-actions button.active {
  background: rgba(233,72,63,0.82);
}

.phone-reel-actions span {
  font-size: 11px;
  font-weight: 850;
}

.phone-reel-actions strong {
  font-size: 12px;
}

@media (max-width: 920px) {
  .phone-reels-page {
    max-width: none;
    height: calc(100vh - 76px);
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-reel {
    min-height: calc(100vh - 76px);
  }
}
/* End Cheerz parity v1 patch */
/* Cheerz parity v2 patch */
.action-btn.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.phone-reel .reel-profile {
  color: #fff;
}

.dark-empty {
  color: #fff;
  min-height: 240px;
}
/* End Cheerz parity v2 patch */
/* Cheerz parity v3 patch */
.notif-button {
  justify-self: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 850;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.notif-button span,
.thread b {
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.story-panel {
  overflow-x: auto;
}

.story {
  min-width: 84px;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
}

.story .avatar {
  outline: 3px solid #e7ded3;
  outline-offset: 3px;
}

.story.unwatched .avatar {
  outline-color: var(--brand);
}

.story.viewed {
  opacity: 0.72;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,0.58);
  display: grid;
  place-items: center;
  padding: 20px;
}

.story-phone {
  width: min(420px, 100%);
  height: min(760px, 92vh);
  background: #050505;
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 28px 80px rgba(0,0,0,0.44);
}

.story-phone header,
.story-phone footer {
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(0,0,0,0.32);
}

.story-phone header {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.story-phone .identity {
  color: #fff;
}

.story-media {
  min-height: 0;
  display: grid;
  place-items: center;
  background: #111;
}

.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reaction-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.reaction-row button {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 8px 12px;
  font-weight: 850;
}

.story-reply-form,
.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.comments-sheet {
  width: min(640px, 100%);
  max-height: 86vh;
  background: var(--paper);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.comments-sheet header,
.notifications-panel .section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.comment-list,
.notification-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.comment-row,
.notification-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}

.notification-item.unread {
  border-color: rgba(233,72,63,0.42);
  background: #fff7f4;
}

.comment-row span,
.notification-item span,
.thread span {
  display: grid;
  gap: 4px;
}

.comment-row small,
.notification-item small,
.bubble small,
.thread small {
  color: var(--muted);
  font-size: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 850;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.profile-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
  font-weight: 850;
}

.profile-tabs button.active {
  background: #1f1e1b;
  color: #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
}

.profile-tile {
  aspect-ratio: 1 / 1;
  border: 0;
  background: #111;
  overflow: hidden;
  border-radius: 4px;
}

.profile-tile img,
.profile-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.bubble {
  display: grid;
  gap: 4px;
}

@media (max-width: 920px) {
  .modal-backdrop {
    padding: 0;
  }

  .story-phone,
  .comments-sheet {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .notif-button {
    padding: 8px 10px;
  }
}
/* End Cheerz parity v3 patch */
/* Cheerz parity v4 patch */
.hashtag-link {
  border: 0;
  background: transparent;
  color: #ef4444;
  font: inherit;
  font-weight: 800;
  padding: 0 1px;
  cursor: pointer;
}

.hashtag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.hashtag-strip button,
.reply-target {
  border: 1px solid #eadfd4;
  background: #fff7f0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
}

.comment-row.reply {
  margin-left: 34px;
  background: #fffaf5;
}

.comment-row em {
  display: block;
  color: #80746a;
  font-style: normal;
  font-size: 12px;
  margin: 2px 0;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.link-button.active {
  color: #ef4444;
  font-weight: 900;
}

.chat-form-plus {
  grid-template-columns: 1fr auto auto;
}

.message-file {
  max-width: 160px;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.message-media {
  display: block;
  max-width: min(260px, 70vw);
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin: 6px 0;
  background: #111;
}

@media (max-width: 720px) {
  .chat-form-plus {
    grid-template-columns: 1fr;
  }

  .message-file {
    max-width: none;
    width: 100%;
  }
}
/* End Cheerz parity v4 patch */
/* Cheerz app theme parity final patch */
:root {
  --bg: #FDF8F7;
  --panel: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --muted-2: #A0A0A0;
  --line: #EDE5E3;
  --line-light: #F5EFEE;
  --divider: #F0EAE8;
  --brand: #6B1A1A;
  --brand-dark: #3D0C0C;
  --brand-nav: #4A1010;
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --soft: #F5EFEE;
  --input: #F0E8E8;
  --like: #E53935;
  --nav-inactive-icon: #8B6565;
  --nav-inactive-text: #5C4040;
  --shadow: 0 6px 18px rgba(107, 26, 26, 0.08);
  --shadow-sm: 0 2px 8px rgba(107, 26, 26, 0.06);
  --night: #050505;
  --night-soft: #14100F;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.shell {
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  backdrop-filter: none;
  padding: 24px 20px;
}

.brand {
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(107, 26, 26, 0.18);
}

.nav {
  gap: 10px;
}

.nav button,
.mobile-nav button {
  color: var(--nav-inactive-text);
  font-weight: 700;
  min-height: 52px;
  border-radius: 16px;
}

.nav button:hover {
  background: var(--soft);
}

.nav button.active {
  background: var(--brand-nav);
  color: #fff;
  box-shadow: 0 8px 18px rgba(74, 16, 16, 0.18);
}

.mobile-nav button.active {
  background: transparent;
  color: var(--brand);
  box-shadow: none;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  background: var(--soft);
  color: var(--nav-inactive-icon);
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.nav button.active .nav-icon,
.mobile-nav button.active .nav-icon {
  background: var(--brand-nav);
  color: #fff;
}

.nav-icon-home::before {
  width: 15px;
  height: 13px;
  left: 10px;
  bottom: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-icon-home::after {
  width: 14px;
  height: 14px;
  left: 11px;
  top: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.nav-icon-reels::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.nav-icon-reels::after {
  width: 2px;
  height: 18px;
  background: currentColor;
  box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor;
  opacity: 0.35;
}

.nav-icon-search::before {
  width: 15px;
  height: 15px;
  left: 8px;
  top: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon-search::after {
  width: 9px;
  height: 2px;
  right: 8px;
  bottom: 10px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 999px;
}

.nav-icon-messages::before {
  width: 20px;
  height: 16px;
  left: 8px;
  top: 8px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.nav-icon-messages::after {
  width: 8px;
  height: 8px;
  left: 13px;
  bottom: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-35deg);
}

.nav-icon-profile::before {
  width: 10px;
  height: 10px;
  top: 8px;
  left: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon-profile::after {
  width: 18px;
  height: 9px;
  left: 9px;
  bottom: 8px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 6px 6px;
  border-bottom-color: transparent;
}

.main {
  padding: 24px 28px 40px;
}

.topbar,
.content {
  max-width: 1180px;
}

.topbar {
  margin-bottom: 20px;
}

.session-pill,
.notif-button,
.panel,
.card {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.panel,
.card {
  border-radius: 14px;
}

.section-title,
.auth-panel-head h2 {
  color: var(--ink);
  font-weight: 850;
}

.muted,
.field span,
.side-footer {
  color: var(--muted);
}

.btn {
  background: var(--brand-nav);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(74, 16, 16, 0.12);
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary,
.link-btn,
.icon-btn {
  background: var(--soft);
  color: var(--brand);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--brand-dark);
}

.field input,
.field textarea,
.field select,
.search-input {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 14px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(107, 26, 26, 0.08);
}

input[type="file"] {
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
  padding: 8px 12px;
  margin-right: 10px;
}

.composer-panel {
  box-shadow: var(--shadow-sm);
}

.story-panel {
  padding: 16px;
}

.story .avatar {
  width: 56px;
  height: 56px;
  outline-color: var(--line);
}

.story.unwatched .avatar {
  outline-color: var(--brand);
}

.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.post-card .post-head {
  padding: 14px 16px;
  background: #fff;
}

.content-chip {
  color: var(--brand);
  background: var(--soft);
  border: 1px solid var(--line);
}

.post-body {
  background: #fff;
}

.action-btn {
  background: var(--soft);
  color: var(--brand);
  border-color: var(--line);
}

.action-btn.active {
  background: rgba(229, 57, 53, 0.1);
  color: var(--like);
  border-color: rgba(229, 57, 53, 0.22);
}

.action-dot {
  background: transparent;
  border: 2px solid currentColor;
}

.action-like {
  border-radius: 8px 8px 2px 8px;
  transform: rotate(-45deg) scale(0.8);
  background: transparent;
}

.action-comment {
  border-radius: 7px;
}

.action-save {
  border-radius: 3px;
  border-bottom-color: transparent;
}

.action-share {
  border-radius: 50%;
}

.hashtag-link,
.link-button,
.link-button.active {
  color: var(--brand);
}

.hashtag-strip button,
.reply-target {
  border-color: var(--line);
  background: var(--soft);
  color: var(--brand);
}

.profile-tabs button {
  border-color: var(--line);
  background: #fff;
  color: var(--brand);
}

.profile-tabs button.active {
  background: var(--brand-nav);
  color: #fff;
}

.thread {
  border-radius: 14px;
  padding: 10px;
}

.thread.active {
  background: var(--soft);
  border-color: var(--brand);
}

.chat-box header {
  border-bottom: 1px solid var(--divider);
}

.bubble {
  background: var(--soft);
  color: var(--ink);
  border-radius: 18px;
}

.bubble.mine {
  background: var(--brand);
  color: #fff;
}

.bubble.mine small,
.bubble.mine .link-button {
  color: rgba(255, 255, 255, 0.78);
}

.message-file,
.message-media {
  border-color: var(--line);
  border-radius: 14px;
}

.notif-button {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  position: relative;
  color: var(--brand);
  font-size: 0;
}

.notif-button::before,
.notif-button::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.notif-button::before {
  width: 17px;
  height: 18px;
  top: 11px;
  left: 13px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 7px 7px;
}

.notif-button::after {
  width: 8px;
  height: 3px;
  left: 18px;
  bottom: 10px;
  background: currentColor;
  border-radius: 999px;
}

.notif-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  min-height: 20px;
  background: var(--like);
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
}

.signout-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  position: relative;
}

.signout-btn::before,
.signout-btn::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.signout-btn::before {
  width: 15px;
  height: 15px;
  left: 9px;
  top: 11px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.signout-btn::after {
  width: 12px;
  height: 2px;
  right: 8px;
  top: 18px;
  background: currentColor;
  box-shadow: 4px -4px 0 -1px currentColor, 4px 4px 0 -1px currentColor;
}

.phone-reels-page {
  background: #050505;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.phone-reels-top {
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}

.phone-reels-top .icon-btn {
  font-size: 0;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: rgba(255,255,255,0.12);
  border: 0;
}

.phone-reels-top .icon-btn::before {
  content: "";
  width: 13px;
  height: 13px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  display: block;
  margin-left: 4px;
}

.phone-reels-top h1 {
  font-weight: 850;
}

.phone-reel-actions {
  right: 10px;
  bottom: 90px;
}

.phone-reel-actions button {
  width: 54px;
  min-height: 54px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.phone-reel-actions button.active {
  background: rgba(107, 26, 26, 0.84);
}

.phone-reel-actions span {
  font-size: 0;
  width: 24px;
  height: 24px;
  position: relative;
  display: grid;
  place-items: center;
}

.phone-reel-actions span::before,
.phone-reel-actions span::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.phone-reel-actions [data-like] span::before {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 7px 7px 2px 7px;
  transform: rotate(-45deg);
}

.phone-reel-actions [data-comment] span::before {
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.phone-reel-actions [data-share] span::before {
  width: 19px;
  height: 19px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(35deg);
}

.phone-reel-actions [data-save] span::before {
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 3px;
}

.phone-reel-actions [data-profile] span::before {
  width: 11px;
  height: 11px;
  top: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.phone-reel-actions [data-profile] span::after {
  width: 20px;
  height: 9px;
  bottom: 1px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 12px 12px 0 0;
}

.auth-main {
  background: radial-gradient(circle at 18% 10%, rgba(201,168,76,0.12), transparent 28%), var(--bg);
}

.auth-copy h1 {
  color: var(--brand-dark);
}

.auth-panel {
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(107, 26, 26, 0.12);
}

.auth-tabs button.active,
.auth-submit {
  background: var(--brand-nav);
}

@media (max-width: 920px) {
  body {
    background: var(--bg);
  }

  .shell {
    display: block;
    padding-bottom: 82px;
  }

  .main {
    padding: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 58px;
    padding: 0 12px;
    margin: 0;
    max-width: none;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 2px 8px rgba(107, 26, 26, 0.05);
  }

  .mobile-brand {
    display: flex;
    grid-column: 2;
    justify-self: center;
    gap: 8px;
    font-size: 24px;
  }

  .mobile-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .notif-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 40px;
    height: 40px;
  }

  .session-pill {
    display: none;
  }

  .content {
    padding: 12px 12px 92px;
  }

  .grid {
    display: block;
  }

  .grid > aside {
    display: none;
  }

  .panel,
  .card {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }

  .composer-panel {
    display: none;
  }

  .story-panel {
    margin-bottom: 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .post-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-left: -12px;
    margin-right: -12px;
    box-shadow: none;
  }

  .mobile-action-row .action-btn {
    min-width: 44px;
    padding: 0 10px;
  }

  .mobile-nav {
    height: auto;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--panel);
    border-top: 1px solid var(--divider);
    box-shadow: 0 -4px 18px rgba(107, 26, 26, 0.08);
  }

  .mobile-nav button {
    min-height: 54px;
    padding: 4px 2px;
    border-radius: 14px;
    gap: 3px;
    color: var(--nav-inactive-text);
  }

  .mobile-nav .nav-icon {
    width: 36px;
    height: 36px;
  }

  .mobile-nav .nav-label {
    font-size: 10px;
    font-weight: 600;
  }

  .messages-layout {
    gap: 12px;
  }

  .messages-phone {
    min-height: calc(100vh - 150px);
  }

  .chat-box {
    min-height: 64vh;
  }

  .phone-reels-page {
    height: calc(100vh - 72px);
    border-radius: 0;
  }

  .phone-reel {
    min-height: calc(100vh - 72px);
  }
}
/* End Cheerz app theme parity final patch */
/* Cheerz feather icon parity patch */
.feather-icon,
.action-svg,
.reel-action-svg,
.topbar-svg {
  display: block;
  flex: 0 0 auto;
}

.nav-icon::before,
.nav-icon::after,
.phone-reel-actions span::before,
.phone-reel-actions span::after {
  display: none !important;
}

.nav-icon {
  line-height: 0;
}

.nav-icon .feather-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mobile-nav .nav-icon .feather-icon {
  width: 19px;
  height: 19px;
}

.action-dot {
  display: none !important;
}

.action-btn {
  gap: 7px;
  min-height: 42px;
}

.action-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.action-btn.active .action-svg {
  color: var(--like);
}

.phone-reel-actions {
  gap: 10px;
}

.phone-reel-actions button {
  width: 48px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.phone-reel-actions button.active {
  background: rgba(107, 26, 26, 0.78);
}

.reel-action-svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.05;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.38));
}

.phone-reel-actions strong {
  min-height: 14px;
  font-size: 12px;
  line-height: 1;
}

.notif-button,
.signout-btn,
.phone-reels-top .icon-btn {
  line-height: 0;
}

.notif-button::before,
.notif-button::after,
.signout-btn::before,
.signout-btn::after,
.phone-reels-top .icon-btn::before {
  display: none !important;
}

.topbar-svg {
  width: 20px;
  height: 20px;
}

.notif-button .topbar-svg {
  width: 21px;
  height: 21px;
}

.signout-btn .topbar-svg,
.phone-reels-top .icon-btn .topbar-svg {
  width: 19px;
  height: 19px;
}
/* End Cheerz feather icon parity patch */

/* Cheerz settings and safety screens */
.settings-screen {
  display: grid;
  gap: 16px;
}

.settings-card {
  border: 1px solid rgba(116, 20, 20, 0.12);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(116, 20, 20, 0.07);
}

.settings-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #171414;
}

.settings-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #6a484d;
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-card-head strong {
  display: block;
  font-size: 20px;
}

.settings-card-head small,
.deletion-state small {
  display: block;
  color: #766465;
  line-height: 1.45;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form .field {
  margin: 0;
}

.settings-form input:not([type="file"]),
.settings-form textarea {
  width: 100%;
  border: 1px solid rgba(116, 20, 20, 0.18);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  color: #1f1b1b;
  outline: none;
}

.settings-form textarea {
  min-height: 92px;
  resize: vertical;
}

.settings-form input:disabled {
  color: #8b7778;
  background: #f7f1f1;
}

.settings-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #5f484b;
  font-weight: 800;
}

.settings-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.settings-section {
  margin-top: 16px;
}

.settings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-chips button,
.profile-secondary-row button {
  min-height: 42px;
  border: 1px solid rgba(116, 20, 20, 0.14);
  border-radius: 999px;
  background: #f7eeee;
  color: #5c2f34;
  padding: 0 14px;
  font-weight: 850;
}

.settings-chips button.active {
  background: var(--app-crimson);
  color: #fff;
  border-color: var(--app-crimson);
}

.settings-primary {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  background: var(--app-crimson);
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-list a,
.settings-list span {
  color: #5a4246;
  font-weight: 750;
}

.danger-card {
  border-color: rgba(170, 25, 31, 0.28);
}

.danger-btn {
  background: #aa191f;
}

.deletion-state {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #fff2f2;
  color: #5c1014;
}

.profile-secondary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.profile-secondary-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
}

.profile-secondary-row .profile-info-svg {
  width: 18px;
  height: 18px;
}

.profile-info-card a {
  color: var(--app-crimson);
  font-weight: 750;
  word-break: break-word;
}

.sound-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.sound-toggle.active {
  background: rgba(116, 20, 20, 0.92);
}

.sound-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.phone-reel .sound-toggle {
  right: 18px;
  top: 78px;
  bottom: auto;
  width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.34);
}

.phone-reel .sound-toggle span {
  display: none;
}

.story-viewer {
  position: relative;
}

.story-viewer .sound-toggle {
  bottom: 92px;
}

.connections-backdrop {
  z-index: 95 !important;
  align-items: center;
}

.connections-modal {
  width: min(470px, calc(100vw - 32px));
  max-height: min(78vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(116, 20, 20, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(45, 10, 12, 0.24);
}

.connections-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(116, 20, 20, 0.09);
}

.connections-modal h2 {
  margin: 0;
  color: #171313;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 850;
}

.connections-modal header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f5eeee;
  color: #711313;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.connections-list {
  display: grid;
  gap: 10px;
  max-height: calc(min(78vh, 680px) - 86px);
  overflow-y: auto;
  padding: 14px;
}

.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(116, 20, 20, 0.12);
  border-radius: 16px;
  background: #fffafa;
  padding: 10px;
}

.connection-row .identity {
  min-width: 0;
}

.connection-actions {
  display: flex;
  gap: 8px;
}

.connection-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1e6e6;
  color: #5c1014;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .connections-backdrop {
    align-items: end;
    padding: 14px 12px calc(env(safe-area-inset-bottom) + 14px);
  }

  .connections-modal {
    width: min(100%, var(--cheerz-phone-max, 430px));
    max-height: min(72vh, 620px);
    border-radius: 28px 28px 18px 18px;
  }

  .connections-list {
    max-height: calc(min(72vh, 620px) - 78px);
    padding: 12px;
  }

  .connection-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .connection-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 921px) {
  .settings-screen {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin: 0 auto;
  }

  .profile-secondary-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .settings-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .settings-card h2 {
    font-size: 20px;
  }

  .settings-chips button {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 13px;
  }

  .profile-secondary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-row {
    grid-template-columns: 1fr;
  }

  .connection-actions {
    justify-content: flex-start;
  }
}
/* End Cheerz settings and safety screens */


/* Cheerz mobile screenshot parity patch */
:root {
  --app-crimson: #741414;
  --app-crimson-dark: #4b0708;
  --app-crimson-soft: #8a5658;
  --app-gold: #d6b94a;
  --app-bg: #fff8f8;
  --app-card: #ffffff;
  --app-line: rgba(116, 20, 20, 0.24);
}

body {
  background: var(--app-bg) !important;
  color: #191716;
}

.phone-shell {
  min-height: 100vh;
  background: var(--app-bg);
}

.app-main {
  min-height: 100vh;
  background: var(--app-bg);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  display: grid;
  grid-template-columns: 64px 1fr 96px;
  align-items: center;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid rgba(116, 20, 20, 0.08);
  box-shadow: none;
}

.app-topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #161313;
}

.topbar-action {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-crimson);
  cursor: pointer;
}

.topbar-action .topbar-svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.3;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notif-dot-wrap {
  position: relative;
}

.notif-dot-wrap span {
  position: absolute;
  top: 4px;
  right: 1px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d8232a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.app-content {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 22px 18px 118px;
}

.drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  background: rgba(48, 0, 0, 0.55);
}

.app-drawer {
  width: min(61vw, 330px);
  background: #fff;
  border-right: 0;
  box-shadow: 22px 0 40px rgba(66, 8, 8, 0.22);
}

.drawer-brand {
  padding: 54px 28px 24px;
}

.drawer-brand h1 {
  margin: 0 0 10px;
  font-size: 38px;
  color: var(--app-crimson);
}

.drawer-brand p {
  margin: 0;
  color: #716162;
  font-size: 18px;
}

.drawer-nav {
  display: grid;
  gap: 12px;
  padding: 0 28px;
}

.drawer-nav button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 26px;
  padding: 0 20px;
  background: transparent;
  color: #5d4044;
  text-align: left;
  font-size: 22px;
  font-weight: 850;
}

.drawer-nav button.active {
  background: var(--app-crimson-dark);
  color: #fff;
}

.drawer-nav .feather-icon {
  width: 31px;
  height: 31px;
  stroke-width: 2;
}

.drawer-nav b {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #df2731;
  color: #fff;
  font-size: 14px;
}

.drawer-user {
  margin-top: auto;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-user strong {
  display: block;
  font-size: 19px;
}

.drawer-user small {
  color: #6e6262;
  font-size: 16px;
}

.drawer-open .drawer-scrim {
  display: block;
}

.drawer-open .app-drawer {
  transform: translateX(0);
}

.app-bottom-nav {
  height: 102px !important;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
  background: #fff !important;
  border-top: 1px solid rgba(116, 20, 20, 0.08) !important;
  box-shadow: 0 -8px 24px rgba(116, 20, 20, 0.06) !important;
}

.app-bottom-nav button {
  min-height: 78px !important;
  color: #5b4347 !important;
  gap: 5px !important;
}

.app-bottom-nav .nav-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px !important;
  background: #f5eeee !important;
}

.app-bottom-nav .nav-icon .feather-icon {
  width: 31px !important;
  height: 31px !important;
  color: #986a70;
}

.app-bottom-nav .nav-label {
  font-size: 14px !important;
  font-weight: 800 !important;
}

.app-bottom-nav button.active {
  color: var(--app-crimson) !important;
}

.app-bottom-nav button.active .nav-icon {
  background: var(--app-crimson) !important;
}

.app-bottom-nav button.active .nav-icon .feather-icon {
  color: #fff !important;
}

.app-auth-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.1), transparent 26%),
    linear-gradient(180deg, #760f10 0%, #9f191d 100%);
  color: #fff;
  padding: 86px 30px 40px;
}

.auth-back {
  position: fixed;
  top: 82px;
  left: 26px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 19px;
  font-weight: 700;
}

.auth-phone-panel {
  max-width: 430px;
  margin: 0 auto;
}

.signin-panel {
  padding-top: 70px;
}

.auth-phone-panel h1 {
  margin: 0 0 42px;
  text-align: center;
  color: #fff;
  font-size: 46px;
  font-weight: 950;
}

.signin-panel h2,
.verify-panel h2 {
  margin: 0 0 14px;
  text-align: center;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
}

.auth-phone-panel > p {
  margin: 0 0 56px;
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: 19px;
}

.auth-phone-panel .field {
  display: block;
  margin: 0 0 26px;
  color: #fff;
}

.auth-phone-panel .field span {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
}

.auth-phone-panel input {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  padding: 0 22px;
  color: #fff;
  font-size: 20px;
  outline: none;
}

.auth-phone-panel input::placeholder {
  color: rgba(255,255,255,.35);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px;
}

.password-field button {
  position: absolute;
  right: 18px;
  bottom: 19px;
  border: 0;
  background: transparent;
  color: #f1d66d;
  font-size: 16px;
  font-weight: 900;
}

.auth-forgot {
  display: block;
  margin: -6px 0 34px auto;
  border: 0;
  background: transparent;
  color: #f1d66d;
  font-size: 18px;
  font-weight: 900;
}

.auth-gold-btn,
.auth-outline-btn {
  width: 100%;
  min-height: 70px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 950;
}

.auth-gold-btn {
  border: 0;
  background: var(--app-gold);
  color: #411112;
}

.auth-outline-btn {
  margin-top: 20px;
  border: 2px solid rgba(255,255,255,.62);
  background: transparent;
  color: #fff;
}

.auth-switch {
  margin-top: 36px !important;
  color: rgba(255,255,255,.58) !important;
}

.auth-switch button,
.auth-link-button,
.auth-terms a {
  border: 0;
  background: transparent;
  color: #f1d66d;
  font-weight: 950;
}

.auth-tagline {
  letter-spacing: 7px;
  color: #f1d66d !important;
  font-size: 18px !important;
  font-weight: 800;
}

.auth-glasses {
  margin: -24px auto 30px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: transparent;
  position: relative;
}

.auth-glasses::before {
  content: "";
  width: 34px;
  height: 52px;
  border: 8px solid #fff;
  border-top-width: 12px;
  border-radius: 10px 10px 24px 24px;
  transform: rotate(-24deg);
  box-shadow: 32px 12px 0 -6px #fff, 14px 30px 0 -12px #f9d848;
}

.auth-terms {
  margin-top: 28px !important;
  font-size: 14px !important;
}

.app-screen {
  min-height: calc(100vh - 194px);
}

.app-search-bar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 26px;
  padding: 0 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(116, 20, 20, 0.08);
  box-shadow: 0 3px 10px rgba(37, 20, 20, 0.14);
}

.app-search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #242020;
  font-size: 22px;
}

.app-search-bar input::placeholder {
  color: #aaa5a5;
}

.search-svg {
  width: 31px;
  height: 31px;
  color: #696262;
}

.app-empty-card,
.app-result-card {
  margin: 0 0 22px;
  padding: 48px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(116, 20, 20, 0.09);
  box-shadow: 0 3px 10px rgba(37, 20, 20, 0.12);
  text-align: center;
}

.app-result-card {
  padding: 22px;
  text-align: left;
}

.empty-svg {
  width: 54px;
  height: 54px;
  color: var(--app-crimson);
  margin: 0 auto 22px;
}

.app-empty-card h2,
.app-result-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 950;
}

.app-empty-card p {
  margin: 0;
  color: #746a6a;
  font-size: 19px;
}

.app-notification-list {
  display: grid;
  gap: 18px;
}

.app-notification-item {
  min-height: 112px;
  display: grid;
  grid-template-columns: 86px 1fr 20px;
  align-items: center;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid rgba(116, 20, 20, 0.34);
  background: #fff;
  box-shadow: 0 3px 10px rgba(37, 20, 20, 0.12);
  padding: 18px;
  color: #171313;
  text-align: left;
}

.app-notification-item.unread {
  background: #fff6f6;
}

.notification-avatar-wrap {
  position: relative;
  width: 74px;
  height: 74px;
}

.notification-avatar-wrap .avatar {
  width: 74px;
  height: 74px;
  font-size: 27px;
  background: var(--app-gold);
  color: var(--app-crimson-dark);
}

.notification-avatar-wrap i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--app-crimson);
  color: #fff;
  border: 3px solid #fff;
}

.notification-badge-svg {
  width: 20px;
  height: 20px;
}

.notification-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

.notification-copy small {
  display: block;
  margin-top: 8px;
  color: #716969;
  font-size: 17px;
}

.unread-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--app-crimson);
}

.profile-hero-mobile {
  padding: 48px 0 34px;
  text-align: center;
}

.avatar.profile-xl,
.profile-xl {
  width: 136px !important;
  height: 136px !important;
  margin: 0 auto 22px;
  font-size: 46px !important;
}

.profile-hero-mobile h1 {
  margin: 0;
  font-size: 37px;
  font-weight: 950;
}

.profile-hero-mobile p {
  margin: 6px 0 0;
  color: #7a7070;
  font-size: 23px;
}

.profile-stats-card,
.profile-info-card,
.mobile-profile-tabs {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(116, 20, 20, 0.08);
  box-shadow: 0 3px 10px rgba(37, 20, 20, 0.14);
}

.profile-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 26px;
  padding: 24px 0;
}

.profile-stats-card button {
  border: 0;
  background: transparent;
  border-right: 1px solid rgba(116, 20, 20, 0.13);
}

.profile-stats-card button:last-child {
  border-right: 0;
}

.profile-stats-card strong {
  display: block;
  font-size: 32px;
  font-weight: 950;
}

.profile-stats-card span {
  color: #746a6a;
  font-size: 19px;
}

.profile-action-row {
  display: grid;
  grid-template-columns: 1fr 78px 78px;
  gap: 14px;
  margin-bottom: 26px;
}

.profile-edit-btn,
.profile-square-btn {
  min-height: 74px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid rgba(116, 20, 20, 0.95);
  color: var(--app-crimson);
  font-size: 22px;
  font-weight: 950;
}

.profile-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.profile-square-btn {
  display: grid;
  place-items: center;
  border-color: rgba(116, 20, 20, 0.09);
  color: #151313;
}

.profile-action-svg {
  width: 31px;
  height: 31px;
}

.profile-info-card {
  padding: 24px;
  margin-bottom: 30px;
}

.profile-info-card p {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  font-size: 22px;
}

.profile-info-card p:last-child {
  margin-bottom: 0;
}

.profile-info-svg {
  width: 28px;
  height: 28px;
  color: #6c6868;
}

.profile-section-heading {
  margin: 0 0 20px;
  font-size: 29px;
  font-weight: 950;
}

.active-story-mini {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.profile-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 4px solid rgba(116, 20, 20, .16);
  border-top-color: var(--app-crimson);
  animation: cheerz-spin .8s linear infinite;
}

@keyframes cheerz-spin {
  to { transform: rotate(360deg); }
}

.mobile-profile-tabs {
  padding: 8px;
}

.mobile-profile-tabs .profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.mobile-profile-tabs .profile-tabs button {
  min-height: 66px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 950;
  color: #6e6666;
  background: transparent;
}

.mobile-profile-tabs .profile-tabs button.active {
  background: var(--app-crimson);
  color: #fff;
}

.profile-tab-svg {
  width: 24px;
  height: 24px;
}

.mobile-profile-tabs .profile-grid {
  padding-top: 12px;
}

.mobile-action-row {
  display: grid !important;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  align-items: center;
  gap: 8px !important;
}

.mobile-action-row .action-btn {
  border-radius: 10px !important;
  background: #f8eeee !important;
  color: var(--app-crimson) !important;
  min-height: 48px !important;
  padding: 0 12px !important;
}

.mobile-action-row .muted {
  grid-column: 1 / -1;
}

.phone-reels-page {
  width: min(100vw, 470px);
  margin: -22px auto -118px;
}

@media (max-width: 820px) {
  .app-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 70 !important;
    transform: translateX(-105%);
    transition: transform .22s ease;
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 821px) {
  .phone-shell {
    display: block !important;
  }

  .app-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    transform: translateX(-105%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
  }

  .drawer-open .app-drawer {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-bottom-nav {
    display: grid !important;
    position: fixed !important;
  }
}

@media (max-width: 520px) {
  .app-topbar {
    grid-template-columns: 54px 1fr 88px;
    height: 74px;
    padding: 0 14px;
  }

  .topbar-action .topbar-svg {
    width: 28px;
    height: 28px;
  }

  .app-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .drawer-nav button {
    font-size: 19px;
  }
}
/* End Cheerz mobile screenshot parity patch */

/* Cheerz phone responsiveness hard override */
html,
body,
#app {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden !important;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.phone-shell.shell,
.phone-shell {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  background: var(--app-bg) !important;
}

.app-main.main,
.app-main {
  display: block !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

.app-content.content,
.app-content {
  width: 100% !important;
  max-width: 470px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 18px 16px 122px !important;
  overflow-x: hidden !important;
}

.app-drawer.sidebar,
.app-drawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 80 !important;
  width: min(78vw, 330px) !important;
  max-width: calc(100vw - 58px) !important;
  height: 100dvh !important;
  transform: translateX(-110%) !important;
  transition: transform .22s ease !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.drawer-open .app-drawer {
  transform: translateX(0) !important;
}

.drawer-scrim {
  position: fixed !important;
  inset: 0 !important;
  z-index: 70 !important;
}

.app-topbar.topbar,
.app-topbar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.app-bottom-nav.mobile-nav,
.app-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 55 !important;
  width: 100% !important;
  max-width: 100vw !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.app-bottom-nav button {
  min-width: 0 !important;
  justify-content: center !important;
  text-align: center !important;
}

.card,
.panel,
.app-empty-card,
.app-result-card,
.app-notification-item,
.profile-stats-card,
.profile-info-card,
.mobile-profile-tabs,
.post-card,
.composer-panel {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.post-head,
.identity,
.person,
.thread,
.notification-copy,
.bubble {
  min-width: 0 !important;
}

.identity span,
.thread span,
.notification-copy,
.bubble span {
  overflow-wrap: anywhere;
}

.media-frame,
.media-frame video,
.media-frame img,
.profile-tile,
.profile-tile video,
.profile-tile img {
  width: 100% !important;
  max-width: 100% !important;
}

.mobile-action-row {
  grid-template-columns: repeat(4, minmax(0, auto)) !important;
  max-width: 100% !important;
}

.mobile-action-row .action-btn {
  min-width: 0 !important;
  white-space: nowrap !important;
}

.messages-layout,
.messages-phone {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 1fr !important;
  overflow-x: hidden !important;
}

.chat-form-plus,
.composer-actions {
  grid-template-columns: 1fr !important;
}

.chat-form-plus input,
.chat-form-plus button,
.composer-actions input,
.composer-actions select,
.composer-actions button,
.app-search-bar input {
  min-width: 0 !important;
  max-width: 100% !important;
}

.phone-reels-page {
  width: 100% !important;
  max-width: 100vw !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden !important;
}

.phone-reel,
.phone-reels-shell {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.app-auth-screen {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.auth-phone-panel {
  width: 100% !important;
  max-width: 430px !important;
}

@media (max-width: 520px) {
  .app-content.content,
  .app-content {
    max-width: none !important;
    padding: 16px 14px 118px !important;
  }

  .app-topbar.topbar,
  .app-topbar {
    height: 68px !important;
    grid-template-columns: 42px minmax(0, 1fr) minmax(42px, auto) !important;
    gap: 4px !important;
    padding: 0 12px !important;
  }

  .app-topbar h1 {
    font-size: clamp(22px, 7vw, 28px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar-action {
    width: 38px !important;
    height: 38px !important;
  }

  .topbar-action .topbar-svg {
    width: 25px !important;
    height: 25px !important;
  }

  .topbar-actions {
    gap: 2px !important;
  }

  .app-bottom-nav.mobile-nav,
  .app-bottom-nav {
    height: 92px !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .app-bottom-nav .nav-icon {
    width: clamp(42px, 12vw, 50px) !important;
    height: clamp(42px, 12vw, 50px) !important;
  }

  .app-bottom-nav .nav-icon .feather-icon {
    width: clamp(24px, 7vw, 29px) !important;
    height: clamp(24px, 7vw, 29px) !important;
  }

  .app-bottom-nav .nav-label {
    font-size: clamp(10px, 3.1vw, 13px) !important;
  }

  .app-drawer.sidebar,
  .app-drawer {
    width: 78vw !important;
    max-width: calc(100vw - 46px) !important;
  }

  .drawer-brand {
    padding: 34px 22px 18px !important;
  }

  .drawer-brand h1 {
    font-size: 34px !important;
  }

  .drawer-nav {
    padding: 0 18px !important;
    gap: 7px !important;
  }

  .drawer-nav button {
    min-height: 52px !important;
    grid-template-columns: 30px 1fr auto !important;
    gap: 13px !important;
    padding: 0 16px !important;
    font-size: clamp(17px, 5vw, 22px) !important;
  }

  .drawer-nav .feather-icon {
    width: 25px !important;
    height: 25px !important;
  }

  .profile-action-row {
    grid-template-columns: 1fr 64px 64px !important;
    gap: 10px !important;
  }

  .profile-edit-btn,
  .profile-square-btn {
    min-height: 62px !important;
    font-size: 18px !important;
  }

  .profile-info-card p {
    font-size: 18px !important;
  }

  .profile-stats-card strong {
    font-size: 28px !important;
  }

  .profile-stats-card span {
    font-size: 15px !important;
  }

  .app-search-bar {
    height: 64px !important;
    border-radius: 20px !important;
    padding: 0 18px !important;
  }

  .app-search-bar input {
    font-size: clamp(17px, 5vw, 22px) !important;
  }

  .app-notification-item {
    grid-template-columns: 72px minmax(0, 1fr) 16px !important;
    min-height: 100px !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .notification-avatar-wrap,
  .notification-avatar-wrap .avatar {
    width: 62px !important;
    height: 62px !important;
  }

  .notification-copy strong {
    font-size: clamp(16px, 4.8vw, 20px) !important;
  }

  .mobile-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-action-row .action-btn {
    justify-content: center !important;
  }

  .app-auth-screen {
    padding: 72px 22px 34px !important;
  }

  .signin-panel {
    padding-top: 54px !important;
  }

  .auth-phone-panel h1 {
    font-size: clamp(42px, 15vw, 64px) !important;
    margin-bottom: 34px !important;
  }

  .signin-panel h2,
  .verify-panel h2 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .auth-phone-panel > p {
    margin-bottom: 40px !important;
    font-size: 17px !important;
  }

  .auth-phone-panel input {
    min-height: 58px !important;
    font-size: 18px !important;
  }

  .auth-gold-btn,
  .auth-outline-btn {
    min-height: 62px !important;
    border-radius: 20px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 360px) {
  .app-content.content,
  .app-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .app-bottom-nav .nav-label {
    font-size: 10px !important;
  }

  .topbar-actions {
    transform: scale(.92);
    transform-origin: right center;
  }
}
/* End Cheerz phone responsiveness hard override */

/* Cheerz drawer overlap fix */
.app-drawer.sidebar {
  padding: 0 !important;
}

.app-drawer .side-footer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.drawer-user {
  margin-top: 12px !important;
  padding: 14px 22px !important;
  flex: 0 0 auto !important;
}

.drawer-nav {
  flex: 0 0 auto !important;
  padding-bottom: 12px !important;
}

@media (max-width: 520px) {
  .drawer-brand {
    padding: 24px 22px 14px !important;
  }

  .drawer-brand h1 {
    font-size: 31px !important;
    margin-bottom: 8px !important;
  }

  .drawer-brand p {
    font-size: 16px !important;
  }

  .drawer-nav {
    gap: 4px !important;
    padding: 0 20px !important;
  }

  .drawer-nav button {
    min-height: 46px !important;
    border-radius: 22px !important;
    font-size: 23px !important;
    padding: 0 18px !important;
  }

  .drawer-nav .feather-icon {
    width: 23px !important;
    height: 23px !important;
  }

  .drawer-user {
    padding: 12px 22px !important;
    gap: 10px !important;
  }

  .drawer-user .avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .drawer-user strong {
    font-size: 17px !important;
  }

  .drawer-user small {
    font-size: 14px !important;
  }

  .app-drawer .side-footer { display: none !important; }
}

@media (max-height: 760px) {
  .drawer-brand {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
  }

  .drawer-brand p {
    font-size: 14px !important;
  }

  .drawer-nav {
    gap: 2px !important;
  }

  .drawer-nav button {
    min-height: 42px !important;
    font-size: 20px !important;
  }

  .drawer-user {
    display: none !important;
  }

  .app-drawer .side-footer { display: none !important; }
}
/* End Cheerz drawer overlap fix */

/* Cheerz drawer final layout lock */
.app-drawer.sidebar,
.app-drawer {
  display: flex !important;
  flex-direction: column !important;
}

.drawer-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 18px !important;
}

.drawer-user {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
}

.app-drawer .side-footer {
  display: none !important;
}

@media (max-width: 520px) {
  .drawer-nav {
    gap: 5px !important;
  }

  .drawer-nav button {
    min-height: 48px !important;
    font-size: clamp(18px, 5.4vw, 22px) !important;
  }
}

@media (max-height: 780px) {
  .drawer-brand {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
  }

  .drawer-user {
    display: none !important;
  }
}
/* End Cheerz drawer final layout lock */

/* Cheerz bottom nav label stack */
.app-bottom-nav.mobile-nav,
.app-bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  height: 96px !important;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
}

.app-bottom-nav button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 76px !important;
  gap: 4px !important;
  padding: 4px 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.app-bottom-nav .nav-icon {
  flex: 0 0 auto !important;
  margin: 0 auto !important;
}

.app-bottom-nav .nav-label {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: clamp(10px, 2.85vw, 12px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 420px) {
  .app-bottom-nav.mobile-nav,
  .app-bottom-nav {
    height: 90px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .app-bottom-nav button {
    min-height: 72px !important;
    gap: 3px !important;
  }

  .app-bottom-nav .nav-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .app-bottom-nav .nav-icon .feather-icon {
    width: 25px !important;
    height: 25px !important;
  }
}
/* End Cheerz bottom nav label stack */

/* Cheerz bottom nav smaller inner icons */
.app-bottom-nav .nav-icon .feather-icon {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

@media (max-width: 420px) {
  .app-bottom-nav .nav-icon .feather-icon {
    width: 20px !important;
    height: 20px !important;
  }
}
/* End Cheerz bottom nav smaller inner icons */

/* Cheerz compact inner controls */
.action-btn {
  min-height: 34px !important;
  padding: 0 9px !important;
  gap: 5px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.action-svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2 !important;
}

.mobile-action-row {
  gap: 6px !important;
  grid-template-columns: repeat(4, minmax(0, auto)) !important;
}

.post-card .post-head,
.post-head {
  padding: 12px 14px !important;
}

.post-body {
  padding: 12px 14px 14px !important;
}

.post-body p {
  margin-bottom: 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.content-chip {
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

.phone-reel-actions {
  gap: 8px !important;
  right: 8px !important;
}

.phone-reel-actions button {
  width: 42px !important;
  min-height: 46px !important;
  padding: 5px 3px !important;
  border-radius: 15px !important;
}

.reel-action-svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

.phone-reel-actions strong {
  font-size: 11px !important;
}

.profile-stats-card {
  padding: 16px 0 !important;
  margin-bottom: 18px !important;
  border-radius: 20px !important;
}

.profile-stats-card strong {
  font-size: 24px !important;
}

.profile-stats-card span {
  font-size: 14px !important;
}

.profile-action-row {
  grid-template-columns: 1fr 56px 56px !important;
  gap: 9px !important;
  margin-bottom: 18px !important;
}

.profile-edit-btn,
.profile-square-btn {
  min-height: 56px !important;
  border-radius: 17px !important;
  font-size: 16px !important;
}

.profile-action-svg {
  width: 22px !important;
  height: 22px !important;
}

.profile-info-card {
  padding: 17px !important;
  margin-bottom: 22px !important;
  border-radius: 20px !important;
}

.profile-info-card p {
  gap: 12px !important;
  margin-bottom: 15px !important;
  font-size: 16px !important;
}

.profile-info-svg {
  width: 22px !important;
  height: 22px !important;
}

.profile-section-heading {
  margin-bottom: 14px !important;
  font-size: 23px !important;
}

.active-story-mini {
  min-height: 68px !important;
  margin-bottom: 14px !important;
}

.mobile-profile-tabs {
  border-radius: 20px !important;
  padding: 6px !important;
}

.mobile-profile-tabs .profile-tabs {
  gap: 6px !important;
}

.mobile-profile-tabs .profile-tabs button {
  min-height: 52px !important;
  border-radius: 15px !important;
  gap: 6px !important;
  font-size: 15px !important;
}

.profile-tab-svg {
  width: 20px !important;
  height: 20px !important;
}

.mobile-profile-tabs .profile-grid {
  padding-top: 8px !important;
}

@media (max-width: 420px) {
  .action-btn {
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .action-svg {
    width: 16px !important;
    height: 16px !important;
  }

  .profile-action-row {
    grid-template-columns: 1fr 52px 52px !important;
  }

  .profile-edit-btn,
  .profile-square-btn {
    min-height: 52px !important;
  }
}
/* End Cheerz compact inner controls */

/* Cheerz consistent mobile type scale */
html {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body,
button,
input,
textarea,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body {
  font-size: 15px !important;
  line-height: 1.38 !important;
}

.app-content.content,
.app-content {
  font-size: 15px !important;
}

.app-topbar.topbar,
.app-topbar {
  height: 62px !important;
  grid-template-columns: 42px minmax(0, 1fr) minmax(42px, auto) !important;
  padding: 0 14px !important;
}

.app-topbar h1 {
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.topbar-action {
  width: 38px !important;
  height: 38px !important;
}

.topbar-action .topbar-svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 2 !important;
}

.section-title,
.app-empty-card h2,
.app-result-card h2,
.profile-section-heading,
.messages-phone h2,
.chat-box h2 {
  font-size: 20px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

.app-empty-card p,
.muted,
.small,
.notification-copy small {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.app-profile-screen {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.profile-hero-mobile {
  padding: 32px 0 24px !important;
}

.avatar.profile-xl,
.profile-xl {
  width: 112px !important;
  height: 112px !important;
  margin-bottom: 16px !important;
  font-size: 34px !important;
}

.profile-hero-mobile h1 {
  font-size: 28px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

.profile-hero-mobile p {
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.profile-stats-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 18px !important;
  padding: 14px 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.profile-stats-card button {
  min-width: 0 !important;
  padding: 0 4px !important;
}

.profile-stats-card strong {
  font-size: 22px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

.profile-stats-card span {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.profile-action-row {
  grid-template-columns: 1fr 52px 52px !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.profile-edit-btn,
.profile-square-btn {
  min-height: 52px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.profile-action-svg {
  width: 20px !important;
  height: 20px !important;
}

.profile-info-card {
  padding: 16px !important;
  margin-bottom: 20px !important;
  border-radius: 18px !important;
}

.profile-info-card p {
  gap: 11px !important;
  margin-bottom: 13px !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.profile-info-svg {
  width: 20px !important;
  height: 20px !important;
}

.mobile-profile-tabs {
  border-radius: 18px !important;
}

.mobile-profile-tabs .profile-tabs button {
  min-height: 48px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.profile-tab-svg {
  width: 18px !important;
  height: 18px !important;
}

.app-search-bar {
  height: 58px !important;
  margin: 14px 0 18px !important;
  padding: 0 16px !important;
  border-radius: 18px !important;
  gap: 12px !important;
}

.app-search-bar input {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.search-svg {
  width: 23px !important;
  height: 23px !important;
}

.app-empty-card,
.app-result-card {
  padding: 26px 18px !important;
  border-radius: 18px !important;
}

.empty-svg {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 14px !important;
}

.app-notification-list {
  gap: 12px !important;
}

.app-notification-item {
  grid-template-columns: 58px minmax(0, 1fr) 12px !important;
  min-height: 82px !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.notification-avatar-wrap,
.notification-avatar-wrap .avatar {
  width: 52px !important;
  height: 52px !important;
  font-size: 19px !important;
}

.notification-avatar-wrap i {
  width: 26px !important;
  height: 26px !important;
}

.notification-badge-svg {
  width: 15px !important;
  height: 15px !important;
}

.notification-copy strong {
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.post-body p,
.person strong,
.thread-row strong,
.bubble strong {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.auth-phone-panel h1 {
  font-size: 40px !important;
  font-weight: 800 !important;
}

.signin-panel h2,
.verify-panel h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
}

.auth-phone-panel > p {
  font-size: 16px !important;
}

.auth-phone-panel .field span {
  font-size: 14px !important;
  font-weight: 800 !important;
}

.auth-phone-panel input {
  min-height: 56px !important;
  font-size: 16px !important;
}

.auth-gold-btn,
.auth-outline-btn {
  min-height: 58px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

@media (max-width: 420px) {
  body {
    font-size: 14px !important;
  }

  .app-content.content,
  .app-content {
    padding: 14px 12px 112px !important;
  }

  .app-topbar h1 {
    font-size: 21px !important;
  }

  .avatar.profile-xl,
  .profile-xl {
    width: 104px !important;
    height: 104px !important;
  }

  .profile-hero-mobile h1 {
    font-size: 26px !important;
  }

  .profile-stats-card strong {
    font-size: 21px !important;
  }

  .profile-stats-card span {
    font-size: 12px !important;
  }
}
/* End Cheerz consistent mobile type scale */

/* Cheerz responsive foundation - desktop, tablet, phone */
:root {
  --cheerz-page-max: 1180px;
  --cheerz-feed-max: 680px;
  --cheerz-phone-max: 520px;
  --cheerz-topbar-h: 64px;
  --cheerz-bottom-h: 92px;
  --cheerz-radius: 18px;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--app-bg, #fff8f8) !important;
}

.phone-shell.shell,
.phone-shell {
  width: 100% !important;
  min-height: 100dvh !important;
  display: block !important;
  background: var(--app-bg, #fff8f8) !important;
  overflow-x: hidden !important;
}

.app-main.main,
.app-main {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

.app-topbar.topbar,
.app-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 45 !important;
  width: 100% !important;
  height: var(--cheerz-topbar-h) !important;
  margin: 0 !important;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right)) !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(44px, auto) !important;
  align-items: center !important;
  gap: 8px !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(116, 20, 20, 0.08) !important;
  box-sizing: border-box !important;
}

.app-topbar h1 {
  min-width: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  color: #171313 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.topbar-action {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 999px !important;
}

.topbar-action .topbar-svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 2 !important;
}

.topbar-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.app-content.content,
.app-content {
  width: 100% !important;
  max-width: var(--cheerz-page-max) !important;
  margin: 0 auto !important;
  padding: 18px 18px calc(var(--cheerz-bottom-h) + 24px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, var(--cheerz-feed-max)) minmax(280px, 340px) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 22px !important;
}

.feed {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 18px !important;
}

.grid > aside {
  position: sticky !important;
  top: calc(var(--cheerz-topbar-h) + 18px) !important;
}

.panel,
.card,
.post-card,
.composer-panel,
.story-panel,
.app-empty-card,
.app-result-card,
.profile-stats-card,
.profile-info-card,
.mobile-profile-tabs,
.app-notification-item,
.chat-box {
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: var(--cheerz-radius) !important;
}

.post-card,
.composer-panel,
.story-panel,
.panel,
.card {
  box-shadow: 0 6px 18px rgba(76, 23, 23, 0.07) !important;
}

.composer-actions {
  display: grid !important;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: end !important;
}

.field input,
.field textarea,
.field select,
.search-input,
.message-file {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.media-frame {
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #211b1b !important;
}

.media-frame video,
.media-frame img {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.media-frame video {
  aspect-ratio: 4 / 5 !important;
  max-height: min(72vh, 720px) !important;
}

.media-frame img {
  aspect-ratio: 4 / 5 !important;
}

.mobile-action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.mobile-action-row .muted {
  flex: 1 1 180px !important;
  min-width: 0 !important;
}

.action-btn {
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  gap: 5px !important;
  white-space: nowrap !important;
}

.action-svg {
  width: 17px !important;
  height: 17px !important;
}

.app-bottom-nav.mobile-nav,
.app-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 55 !important;
  width: 100% !important;
  max-width: var(--cheerz-phone-max) !important;
  height: var(--cheerz-bottom-h) !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(116, 20, 20, 0.08) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -10px 26px rgba(76, 23, 23, 0.08) !important;
  box-sizing: border-box !important;
}

.app-bottom-nav button {
  min-width: 0 !important;
  min-height: 72px !important;
  padding: 4px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: transparent !important;
  color: #5c4040 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.app-bottom-nav .nav-icon {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  border-radius: 999px !important;
  background: #f5eeee !important;
  color: #986a70 !important;
}

.app-bottom-nav .nav-icon .feather-icon {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2 !important;
}

.app-bottom-nav .nav-label {
  display: block !important;
  width: 100% !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 750 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.app-bottom-nav button.active .nav-icon {
  background: var(--app-crimson, #7c1515) !important;
  color: #fff !important;
}

.app-bottom-nav button.active {
  color: var(--app-crimson, #7c1515) !important;
}

.app-drawer.sidebar,
.app-drawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 80 !important;
  width: min(84vw, 340px) !important;
  max-width: calc(100vw - 42px) !important;
  height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: #fff !important;
  transform: translateX(-105%) !important;
  transition: transform .22s ease !important;
  overflow: hidden !important;
}

.drawer-open .app-drawer {
  transform: translateX(0) !important;
}

.drawer-scrim {
  display: none !important;
}

.drawer-open .drawer-scrim {
  display: block !important;
}

.drawer-brand {
  flex: 0 0 auto !important;
  padding: 26px 24px 14px !important;
}

.drawer-brand h1 {
  margin: 0 0 6px !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  color: var(--app-crimson, #7c1515) !important;
}

.drawer-brand p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #6f5e61 !important;
}

.drawer-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 8px 18px 16px !important;
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
}

.drawer-nav button {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 14px !important;
  border-radius: 22px !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

.drawer-nav .feather-icon {
  width: 22px !important;
  height: 22px !important;
}

.drawer-user {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)) !important;
}

.drawer-user .avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}

.avatar,
.avatar img,
.drawer-user .avatar,
.drawer-user .avatar img,
.identity .avatar,
.identity .avatar img {
  aspect-ratio: 1 / 1 !important;
}

.avatar img,
.drawer-user .avatar img,
.identity .avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}

.drawer-user strong {
  font-size: 15px !important;
}

.drawer-user small {
  font-size: 13px !important;
}

.messages-layout.messages-phone,
.messages-layout {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr) !important;
  gap: 18px !important;
}

.messages-layout > .panel,
.chat-box {
  min-width: 0 !important;
}

.message-list {
  max-height: min(62vh, 620px) !important;
}

.chat-form-plus {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) auto !important;
  gap: 10px !important;
}

.profile-hero-mobile {
  padding: 34px 0 24px !important;
}

.avatar.profile-xl,
.profile-xl {
  width: clamp(104px, 18vw, 136px) !important;
  height: clamp(104px, 18vw, 136px) !important;
  margin-bottom: 16px !important;
}

.profile-hero-mobile h1 {
  font-size: clamp(27px, 4.2vw, 36px) !important;
  line-height: 1.08 !important;
}

.profile-hero-mobile p {
  font-size: clamp(16px, 2.6vw, 20px) !important;
}

.profile-stats-card {
  overflow: hidden !important;
}

.profile-action-row {
  grid-template-columns: minmax(0, 1fr) 56px 56px !important;
  gap: 10px !important;
}

.profile-edit-btn,
.profile-square-btn {
  min-width: 0 !important;
  min-height: 54px !important;
  font-size: 15px !important;
}

.profile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.profile-tile {
  width: 100% !important;
  aspect-ratio: 1 !important;
  overflow: hidden !important;
}

.profile-tile img,
.profile-tile video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.phone-reels-page {
  width: 100% !important;
  max-width: var(--cheerz-phone-max) !important;
  margin: -18px auto calc(-1 * (var(--cheerz-bottom-h) + 24px)) !important;
}

.phone-reels-top {
  height: 56px !important;
}

.phone-reels-shell {
  height: calc(100dvh - var(--cheerz-topbar-h) - var(--cheerz-bottom-h)) !important;
  min-height: 560px !important;
  border-radius: 0 !important;
}

.phone-reel {
  height: calc(100dvh - var(--cheerz-topbar-h) - var(--cheerz-bottom-h)) !important;
  min-height: 560px !important;
}

.phone-reel video,
.phone-reel img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1024px) {
  :root {
    --cheerz-page-max: 760px;
  }

  .grid {
    grid-template-columns: minmax(0, var(--cheerz-feed-max)) !important;
  }

  .grid > aside {
    display: none !important;
  }

  .messages-layout.messages-phone,
  .messages-layout {
    grid-template-columns: 1fr !important;
  }

  .chat-box {
    min-height: 520px !important;
  }

  .chat-form-plus {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  :root {
    --cheerz-topbar-h: 62px;
    --cheerz-bottom-h: 88px;
  }

  .app-content.content,
  .app-content {
    max-width: none !important;
    padding: 14px 12px calc(var(--cheerz-bottom-h) + 18px + env(safe-area-inset-bottom)) !important;
  }

  .composer-actions {
    grid-template-columns: 1fr !important;
  }

  .story-panel {
    padding: 12px !important;
  }

  .stories {
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .stories::-webkit-scrollbar {
    display: none;
  }

  .media-frame video,
  .media-frame img {
    aspect-ratio: 4 / 5 !important;
  }

  .messages-layout .panel {
    padding: 16px !important;
  }

  .message-list {
    max-height: 48vh !important;
  }

  .bubble {
    max-width: 86% !important;
  }

  .profile-action-row {
    grid-template-columns: minmax(0, 1fr) 52px 52px !important;
  }

  .profile-info-card p {
    overflow-wrap: anywhere !important;
  }

  .phone-reels-shell,
  .phone-reel {
    min-height: calc(100dvh - var(--cheerz-topbar-h) - var(--cheerz-bottom-h)) !important;
  }
}

@media (max-width: 430px) {
  :root {
    --cheerz-bottom-h: 86px;
  }

  .app-topbar.topbar,
  .app-topbar {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    grid-template-columns: 40px minmax(0, 1fr) minmax(40px, auto) !important;
  }

  .app-topbar h1 {
    font-size: 21px !important;
  }

  .topbar-action {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .topbar-action .topbar-svg {
    width: 21px !important;
    height: 21px !important;
  }

  .topbar-actions {
    gap: 1px !important;
  }

  .app-bottom-nav.mobile-nav,
  .app-bottom-nav {
    max-width: none !important;
    height: var(--cheerz-bottom-h) !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .app-bottom-nav button {
    min-height: 68px !important;
    gap: 3px !important;
  }

  .app-bottom-nav .nav-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .app-bottom-nav .nav-icon .feather-icon {
    width: 19px !important;
    height: 19px !important;
  }

  .app-bottom-nav .nav-label {
    font-size: 10px !important;
  }

  .app-drawer.sidebar,
  .app-drawer {
    width: 86vw !important;
    max-width: calc(100vw - 36px) !important;
  }

  .drawer-brand {
    padding: 22px 20px 12px !important;
  }

  .drawer-nav {
    padding: 6px 16px 12px !important;
  }

  .drawer-nav button {
    min-height: 44px !important;
    font-size: 17px !important;
    border-radius: 20px !important;
  }

  .profile-stats-card strong {
    font-size: 21px !important;
  }

  .profile-stats-card span {
    font-size: 12px !important;
  }

  .mobile-profile-tabs .profile-tabs button {
    font-size: 13px !important;
    gap: 4px !important;
  }

  .mobile-action-row {
    gap: 6px !important;
  }

  .action-btn {
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

@media (max-height: 700px) {
  .drawer-user {
    display: none !important;
  }

  .drawer-brand p {
    display: none !important;
  }

  .drawer-nav button {
    min-height: 40px !important;
  }
}
/* End Cheerz responsive foundation */
