@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #fff;
  --bg2: #f6f6f6;
  --bg3: #eeeeee;
  --dark: #0a0a0a;
  --dark2: #1a1a1a;
  --text: #0a0a0a;
  --text2: #555;
  --muted: #999;
  --inv: #fff;
  --border: #e0e0e0;
  --radius: 14px;
  --font: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, .10);
}

html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden
}

/* ── SCREENS ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transition: opacity .25s, transform .25s;
  background: var(--bg)
}

/* Auth screens need centred content */
#screen-login,
#screen-code-login,
#screen-otp,
#screen-gender {
  align-items: center;
  justify-content: center;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px)
}

#screen-login,
#screen-code-login,
#screen-otp,
#screen-gender {
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Base (Mobile) Layout: Top Art, Bottom Login */
#screen-login::before,
#screen-code-login::before,
#screen-otp::before,
#screen-gender::before {
  content: '';
  flex: 1;
  width: 100%;
  background: url('/static/logo.jpg') center top/cover no-repeat;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 100%;
  padding: 40px 24px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: 30px 30px 0 0;
  transform: translateY(0);
}

@media (min-width: 900px) {

  #screen-login,
  #screen-code-login,
  #screen-otp,
  #screen-gender {
    flex-direction: row;
  }

  /* Desktop Layout: Left Art, Right Login */
  #screen-login::before,
  #screen-code-login::before,
  #screen-otp::before,
  #screen-gender::before {
    flex: 1.4;
    height: 100%;
    background-position: center;
    border-radius: 0;
  }

  .auth-card {
    flex: 1;
    max-width: 450px;
    height: 100%;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    justify-content: center;
    padding: 60px 40px;
  }
}


.logo-mark {
  width: 68px;
  height: 68px;
  background: var(--dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 7px 0 #333, 0 10px 28px rgba(0, 0, 0, .2)
}

.logo-mark svg {
  width: 36px;
  height: 36px;
  color: #fff
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px
}

.auth-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.5
}

/* Phone input with flag */
.phone-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px
}

.country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0
}

.country-code svg {
  width: 16px;
  height: 16px;
  color: var(--text2)
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  transition: border-color .15s
}

.input-field:focus {
  border-color: var(--dark)
}

.input-field::placeholder {
  color: var(--muted)
}

/* ── OTP BOXES ── */
.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0
}

.otp-box {
  width: 46px;
  height: 58px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-family: var(--font);
  background: var(--bg2);
  color: var(--text);
  transition: border-color .15s
}

.otp-box:focus {
  border-color: var(--dark);
  background: var(--bg)
}

.otp-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px
}

/* ── GENDER SCREEN ── */
.gender-grid {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px
}

.gender-btn {
  flex: 1;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  transition: all .15s;
  box-shadow: 0 6px 0 var(--border)
}

.gender-btn:hover {
  border-color: var(--dark);
  box-shadow: 0 8px 0 var(--dark2)
}

.gender-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--dark2)
}

.gender-btn.selected {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  box-shadow: 0 6px 0 #000
}

.gender-btn svg {
  width: 36px;
  height: 36px
}

.gender-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted)
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: all .12s cubic-bezier(.34, 1.56, .64, 1);
  user-select: none;
  border-radius: 12px;
  position: relative
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.btn-primary {
  background: var(--dark);
  color: #fff;
  padding: 15px 28px;
  box-shadow: 0 6px 0 #000, 0 8px 20px rgba(0, 0, 0, .3)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #000, 0 12px 28px rgba(0, 0, 0, .35)
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 15px 28px;
  border: 2px solid var(--dark);
  box-shadow: 0 6px 0 #333, 0 8px 20px rgba(0, 0, 0, .15)
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #333
}

.btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #333
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg2);
  border-radius: 8px
}

.btn-danger {
  background: #e02020;
  color: #fff;
  padding: 10px 20px;
  font-size: 13px;
  box-shadow: 0 5px 0 #900, 0 6px 16px rgba(220, 0, 0, .25)
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #900
}

.btn-danger:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #900
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #000, 0 6px 14px rgba(0, 0, 0, .25)
}

.btn-icon:hover {
  transform: translateY(-2px)
}

.btn-icon:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000
}

.btn-icon svg {
  width: 20px;
  height: 20px
}

.btn-full {
  width: 100%;
  padding: 16px
}

/* ── DIVIDER ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

/* ── APP HEADER (main screen) ── */
.app-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 10
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px
}

.header-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #333
}

.header-logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff
}

.header-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s
}

.user-badge:hover {
  border-color: var(--dark)
}

.user-badge svg {
  width: 14px;
  height: 14px;
  color: var(--muted)
}

.user-badge-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  font-family: 'Courier New', monospace
}

/* ── MAIN SCREEN BODY ── */
#screen-main {
  justify-content: flex-start
}

.main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  gap: 0
}

.main-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-align: center;
  margin-bottom: 8px
}

.main-sub {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 28px
}

/* Chat counter */
.counter-wrap {
  width: 100%;
  margin-bottom: 24px
}

.counter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between
}

.progress-track {
  height: 6px;
  background: var(--bg3);
  border-radius: 6px;
  overflow: hidden
}

.progress-fill {
  height: 100%;
  background: var(--dark);
  border-radius: 6px;
  transition: width .4s
}

/* Gender filter toggle (premium) */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%
}

.filter-row svg {
  width: 16px;
  height: 16px;
  color: var(--text2)
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  flex: 1
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  border-radius: 22px;
  cursor: pointer;
  transition: .2s;
  border: 1.5px solid var(--border)
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 2px;
  background: #999;
  border-radius: 50%;
  transition: .2s
}

.toggle input:checked+.toggle-slider {
  background: var(--dark);
  border-color: var(--dark)
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(18px);
  background: #fff
}

.start-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}

.btn-start {
  width: 100%;
  padding: 18px;
  font-size: 17px
}

.btn-start:disabled,
.btn-start[disabled] {
  opacity: .45;
  pointer-events: none
}

.help-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px
}

.help-link:hover {
  color: var(--text)
}

.limit-msg {
  font-size: 13px;
  color: #c00;
  font-weight: 500;
  text-align: center
}

/* ── SEARCHING SCREEN ── */
#screen-searching {
  background: var(--dark);
  color: #fff
}

.search-content {
  text-align: center;
  padding: 40px 32px
}

.pulse-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  position: relative
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  animation: pout 2s ease-out infinite
}

.pulse-ring::after {
  animation-delay: 1s
}

.pulse-core {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center
}

.pulse-core svg {
  width: 28px;
  height: 28px;
  color: var(--dark)
}

@keyframes pout {
  0% {
    transform: scale(.7);
    opacity: 1
  }

  100% {
    transform: scale(2.2);
    opacity: 0
  }
}

.search-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.02em
}

.search-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 8px
}

.search-timer {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  animation: bdot 1.4s ease-in-out infinite
}

.dots span:nth-child(2) {
  animation-delay: .2s
}

.dots span:nth-child(3) {
  animation-delay: .4s
}

@keyframes bdot {

  0%,
  80%,
  100% {
    transform: scale(.8);
    opacity: .4
  }

  40% {
    transform: scale(1.2);
    opacity: 1
  }
}

/* ── CHAT SCREEN ── */
#screen-chat {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  overflow: hidden;
  /* No explicit height — inset:0 covers the full viewport */
}

.chat-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  z-index: 10
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  color: #fff
}

.chat-info {
  flex: 1
}

.chat-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px
}

.chat-status {
  font-size: 11px;
  color: #22c55e;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.ai-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text2);
  border-radius: 6px;
  padding: 2px 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-left: 6px
}

.msgs-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scroll-behavior: smooth;
  min-height: 0;
}

.msgs-area::-webkit-scrollbar {
  width: 3px
}

.msgs-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

.msg-system {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 7px 14px;
  background: var(--bg2);
  border-radius: 50px;
  align-self: center;
  font-weight: 500;
  margin: 8px 0
}

.msg-wrap {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  animation: min .2s ease
}

@keyframes min {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.msg-wrap.mine {
  align-self: flex-end;
  align-items: flex-end
}

.msg-wrap.theirs {
  align-self: flex-start;
  align-items: flex-start
}

.msg-bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word
}

.mine .msg-bubble {
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 5px
}

.theirs .msg-bubble {
  background: var(--bg2);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-bottom-left-radius: 5px
}

.msg-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  padding: 0 4px;
  font-weight: 500
}

.typing-wrap {
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .25s
}

.typing-wrap.visible {
  opacity: 1
}

.typing-bubble {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  padding: 12px 16px;
  display: flex;
  gap: 4px
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: tp 1.4s ease infinite
}

.typing-bubble span:nth-child(2) {
  animation-delay: .15s
}

.typing-bubble span:nth-child(3) {
  animation-delay: .3s
}

@keyframes tp {

  0%,
  80%,
  100% {
    transform: translateY(0)
  }

  40% {
    transform: translateY(-5px)
  }
}

.chat-input-bar {
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  /* never shrink — always stays at bottom of flex column */
  width: 100%;
}

#msg-input {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 11px 17px;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  outline: none;
  line-height: 1.4;
  transition: border-color .15s
}

#msg-input:focus {
  border-color: var(--dark)
}

#msg-input::placeholder {
  color: var(--muted)
}

/* ── DISCONNECTED OVERLAY ── */
.disc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.disc-overlay.visible {
  opacity: 1;
  pointer-events: all
}

.disc-icon {
  width: 64px;
  height: 64px;
  background: var(--bg2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border)
}

.disc-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text2)
}

.disc-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em
}

.disc-sub {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  max-width: 280px;
  line-height: 1.5
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all
}

.modal-sheet {
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 40px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1)
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0)
}

.pill {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 22px
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px
}

.modal-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.5
}

.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.modal-btns .btn {
  width: 100%;
  padding: 15px
}

/* ── PREMIUM CARD ── */
.premium-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden
}

.premium-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%
}

.premium-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 16px
}

.premium-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 4px
}

.premium-period {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 20px
}

.premium-features {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .85)
}

.pf-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.pf-icon svg {
  width: 12px;
  height: 12px;
  color: #fff
}

.razorpay-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px
}

/* ── HELP CONTENT ── */
.help-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px
}

.help-num {
  width: 30px;
  height: 30px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff
}

.help-step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px
}

.help-step-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5
}

/* ── TOAST ── */
#toasts {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 340px
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: tin .3s cubic-bezier(.34, 1.56, .64, 1), tout .3s ease 2.7s forwards;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .28)
}

.toast.success {
  border-left: 3px solid #22c55e
}

.toast.error {
  border-left: 3px solid #ef4444
}

.toast.info {
  border-left: 3px solid #aaa
}

@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@keyframes tout {
  to {
    opacity: 0;
    transform: translateY(-6px)
  }
}

/* ── UTIL ── */
.back-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  align-self: flex-start
}

.back-link:hover {
  color: var(--text)
}

.back-link svg {
  width: 16px;
  height: 16px
}

@supports(padding-bottom:env(safe-area-inset-bottom)) {
  .chat-input-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom))
  }
}

@media(max-width:360px) {
  .otp-box {
    width: 38px;
    height: 50px;
    font-size: 20px
  }

  .premium-price {
    font-size: 30px
  }
}