:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111827;
  --panel-soft: #172033;
  --line: rgba(219, 234, 254, 0.16);
  --text: #f8fbff;
  --muted: #9fb0c6;
  --green: #22c55e;
  --blue: #38bdf8;
  --yellow: #facc15;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 197, 94, 0.26), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(56, 189, 248, 0.22), transparent 28%),
    linear-gradient(135deg, #07111f, #0f253d 48%, #06251a);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 86px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #06130b;
  font-weight: 900;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  filter: brightness(1.06);
}

.chatworld-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.chat-person,
.chat-bubble,
.voice-wave {
  position: absolute;
  opacity: 0.5;
}

.chat-person {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, #facc15 0 18px, transparent 19px),
    radial-gradient(circle at 50% 88%, #38bdf8 0 31px, transparent 32px);
  filter: drop-shadow(0 14px 24px rgba(56, 189, 248, 0.26));
  animation: floatChat 9s ease-in-out infinite;
}

.person-a {
  left: 5%;
  top: 18%;
}

.person-b {
  right: 8%;
  top: 22%;
  animation-delay: 1.8s;
}

.person-c {
  left: 12%;
  bottom: 10%;
  animation-delay: 3.2s;
}

.person-d {
  right: 18%;
  bottom: 14%;
  animation-delay: 4.6s;
}

.chat-bubble {
  min-width: 84px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 18px 18px 18px 5px;
  background: rgba(248, 251, 255, 0.14);
  border: 1px solid rgba(219, 234, 254, 0.22);
  color: #f8fbff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  animation: driftBubble 10s ease-in-out infinite;
}

.bubble-a {
  left: 15%;
  top: 9%;
}

.bubble-b {
  right: 16%;
  top: 46%;
  animation-delay: 2s;
}

.bubble-c {
  left: 36%;
  bottom: 8%;
  animation-delay: 3.6s;
}

.bubble-d {
  right: 34%;
  top: 14%;
  animation-delay: 5s;
}

.voice-wave {
  width: 160px;
  height: 70px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.78) 0 8px, transparent 8px 18px);
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 72%);
  animation: voicePulse 2.6s ease-in-out infinite;
}

.wave-a {
  left: 32%;
  top: 32%;
}

.wave-b {
  right: 6%;
  bottom: 30%;
  animation-delay: 0.9s;
}

.wave-c {
  left: 4%;
  bottom: 36%;
  animation-delay: 1.6s;
}

@keyframes floatChat {
  50% {
    transform: translateY(-22px) scale(1.04);
    opacity: 0.78;
  }
}

@keyframes driftBubble {
  50% {
    transform: translate(18px, -18px);
    opacity: 0.82;
  }
}

@keyframes voicePulse {
  0%, 100% {
    transform: scaleX(0.82);
    opacity: 0.3;
  }

  50% {
    transform: scaleX(1.08);
    opacity: 0.85;
  }
}

.hidden {
  display: none !important;
}

.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 34%, rgba(34, 197, 94, 0.24), transparent 30%),
    linear-gradient(135deg, #06111f, #0f253d 50%, #052e16);
  color: var(--text);
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.launch-screen.launch-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.launch-logo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: url("/icons/chatworld-logo.png") center / cover;
  box-shadow:
    0 0 0 8px rgba(219, 234, 254, 0.08),
    0 22px 70px rgba(34, 197, 94, 0.34);
  animation: launchSpin 2s cubic-bezier(0.22, 0.8, 0.2, 1) infinite;
}

.launch-screen strong {
  font-size: 26px;
}

.launch-screen span {
  color: var(--muted);
  font-weight: 700;
}

@keyframes launchSpin {
  0% {
    transform: rotate(0deg) scale(0.88);
  }

  60% {
    transform: rotate(300deg) scale(1.06);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.28), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.26), transparent 30%),
    linear-gradient(135deg, #07111f, #10243c 52%, #052e16);
}

.app-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 14%, rgba(29, 155, 240, 0.32), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.22), transparent 28%),
    linear-gradient(135deg, #04111f, #0b1f36 54%, #051b12);
}

.app-lock-screen.hidden {
  display: none !important;
}

.app-lock-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.app-lock-card h1 {
  margin: 0;
  font-size: 34px;
}

.app-lock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pin-unlock-row,
.pin-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lock-remove-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-card {
  width: min(520px, 100%);
  margin: auto 0;
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: url("/icons/chatworld-logo.png") center / cover;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.24);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-card .privacy-note {
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  color: #c7f9d8;
  font-size: 13px;
  font-weight: 800;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(219, 234, 254, 0.18);
}

.github-login-button,
.gmail-login-button,
.apple-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.github-login-button {
  background: #f8fbff;
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(248, 251, 255, 0.12);
}

.gmail-login-button {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.14);
}

.apple-login-button {
  background: #05070b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.apple-login-icon {
  font-size: 22px;
  line-height: 1;
}

.github-login-icon,
.gmail-login-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.github-login-icon {
  fill: currentColor;
}

.auth-card label {
  margin-top: 6px;
}

.otp-step {
  display: grid;
  gap: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.66);
  backdrop-filter: blur(14px);
}

.sidebar .verified-panel {
  order: 4;
}

.sidebar .panel:has(.section-header) {
  order: 1;
}

.sidebar .muted-panel {
  order: 5;
}

.sidebar #developerPanel {
  order: 6;
}

.brand {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 10px 2px 12px;
  order: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: url("/icons/chatworld-logo.png") center / cover;
  color: #06130b;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.22);
}

.brand-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.brand .menu-button {
  justify-self: end;
}

.app-info-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(8, 16, 32, 0.72);
  box-shadow: inset 0 0 18px rgba(14, 165, 233, 0.08);
}

.app-info-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  gap: 10px;
  align-items: center;
}

.app-info-head strong {
  font-size: 13px;
  text-transform: uppercase;
  color: #e0f2fe;
}

.app-info-head select {
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  padding: 0 10px;
  font: inherit;
}

.app-info-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-info-tab {
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
  font-weight: 800;
}

.app-info-tab.active {
  border-color: rgba(250, 204, 21, 0.72);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(14, 165, 233, 0.18));
  color: #fef9c3;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.16);
}

.app-info-text {
  min-height: 58px;
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

.verified-marquee {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(250, 204, 21, 0.1), rgba(56, 189, 248, 0.12), rgba(250, 204, 21, 0.1)),
    rgba(15, 23, 42, 0.55);
  color: #fef9c3;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.18);
  animation: verifiedPulse 2.8s ease-in-out infinite;
}

.verified-marquee span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  animation: verifiedMachineMove 8s linear infinite;
}

.verified-marquee.payment-alert-marquee {
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.24), rgba(250, 204, 21, 0.2), rgba(239, 68, 68, 0.24)),
    rgba(69, 10, 10, 0.88);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.26), inset 0 0 18px rgba(250, 204, 21, 0.12);
}

.verified-marquee.payment-alert-marquee::after {
  background: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.86), 0 0 28px rgba(250, 204, 21, 0.36);
}

.verified-marquee::after {
  content: "";
  position: absolute;
  inset: 5px auto 5px 10px;
  width: 28px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.7);
  animation: verifiedScanner 2.6s ease-in-out infinite alternate;
}

.brand .bot-button {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  margin-left: 0;
}

@keyframes verifiedMachineMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-170%);
  }
}

@keyframes verifiedScanner {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(250px);
  }
}

@keyframes verifiedPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.16);
  }

  50% {
    box-shadow: 0 0 34px rgba(250, 204, 21, 0.42);
  }
}

.policy-link,
.report-link {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  margin-top: 6px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.report-link {
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.report-link.report-active {
  border-color: rgba(250, 204, 21, 0.9);
  background: #facc15;
  color: #1f1300;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.76);
  animation: slowYellowButton 2.4s ease-in-out infinite;
}

.policy-link:hover,
.policy-link:focus-visible,
.report-link:hover,
.report-link:focus-visible {
  color: #dbeafe;
  text-decoration: underline;
}

.report-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 14%, rgba(239, 68, 68, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.2), transparent 30%),
    rgba(5, 12, 24, 0.96);
  overflow: hidden;
}

.report-light {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.42);
  filter: blur(10px);
  animation: slowHeartbeat 2.8s ease-in-out infinite;
}

.light-one {
  left: 8%;
  top: 12%;
}

.light-two {
  right: 10%;
  bottom: 12%;
  animation-delay: 1.2s;
}

.report-worker {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 380px;
  height: 400px;
  opacity: 0.9;
  filter: drop-shadow(0 24px 48px rgba(250, 204, 21, 0.18));
}

.worker-head {
  position: absolute;
  left: 138px;
  top: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #facc15;
  animation: slowHeartbeat 3.4s ease-in-out infinite;
}

.worker-body {
  position: absolute;
  left: 104px;
  top: 108px;
  width: 160px;
  height: 174px;
  border-radius: 48px 48px 16px 16px;
  background: #38bdf8;
}

.worker-arm {
  position: absolute;
  top: 198px;
  width: 140px;
  height: 26px;
  border-radius: 999px;
  background: #facc15;
  animation: laptopTyping 1.4s ease-in-out infinite alternate;
}

.arm-one {
  left: 34px;
  transform: rotate(18deg);
}

.arm-two {
  right: 34px;
  transform: rotate(-18deg);
  animation-delay: 0.28s;
}

.worker-laptop {
  position: absolute;
  left: 76px;
  bottom: 42px;
  width: 228px;
  height: 142px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border: 6px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 20%, rgba(34, 197, 94, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.5));
}

.worker-laptop span {
  width: 28px;
  height: 22px;
  border-radius: 5px;
  background: #facc15;
  animation: keyGlow 2.2s ease-in-out infinite;
}

.worker-laptop span:nth-child(2) {
  animation-delay: 0.45s;
}

.worker-laptop span:nth-child(3) {
  animation-delay: 0.9s;
}

.report-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  min-height: min(860px, 92vh);
  max-height: 94vh;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
}

.report-hero-animation {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.22), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92));
}

@keyframes slowHeartbeat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.9;
  }
}

@keyframes laptopTyping {
  to {
    margin-top: 10px;
  }
}

@keyframes keyGlow {
  0%, 100% {
    opacity: 0.32;
    box-shadow: none;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.88);
  }
}

@keyframes slowYellowButton {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.42);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.9);
  }
}

.report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.report-header h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
}

.report-form,
.owner-reply {
  display: grid;
  gap: 12px;
}

.team-ai-form {
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 12%, rgba(56, 189, 248, 0.15), transparent 34%),
    rgba(15, 23, 42, 0.5);
}

.team-ai-form h3 {
  margin: 0;
  color: #dbeafe;
}

.team-ai-form button {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
}

.report-inbox {
  display: grid;
  gap: 10px;
}

.report-inbox h3,
.owner-reply h3 {
  margin: 0;
}

.report-inbox-space {
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(56, 189, 248, 0.18), transparent 32%),
    rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(10px);
  color: #d1fae5;
}

.report-inbox-space p {
  margin: 0;
  color: var(--muted);
}

.report-note {
  padding: 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #d1fae5;
  line-height: 1.45;
}

.report-note strong {
  display: block;
  margin-bottom: 5px;
  color: #9ff8c2;
}

.report-form textarea,
.owner-reply textarea {
  min-height: 170px;
  resize: vertical;
}

.danger-button {
  background: #ef4444;
  color: #fff;
}

.report-screen .report-option-active {
  border-color: rgba(250, 204, 21, 0.95) !important;
  background-color: #facc15 !important;
  color: #1f1300 !important;
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.18),
    0 0 28px rgba(250, 204, 21, 0.78) !important;
  animation: slowYellowButton 2.4s ease-in-out infinite;
}

.report-screen textarea.report-option-active,
.report-screen input.report-option-active {
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(2, 6, 23, 0.92)) !important;
  color: #fef9c3 !important;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.profile-photo-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

#profileCard {
  position: fixed;
  top: 74px;
  left: 18px;
  right: auto;
  z-index: 38;
  width: min(360px, calc(100vw - 36px));
  padding: 14px;
  display: none;
  gap: 10px;
  border-radius: 12px;
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.34);
  transform-origin: top left;
  animation: menuDrop 0.22s ease both;
  transition:
    border-radius 0.2s ease,
    width 0.2s ease,
    padding 0.2s ease,
    transform 0.2s ease;
}

#profileCard.profile-open {
  display: grid;
}

#profileCard .profile-photo-row {
  grid-template-columns: 58px minmax(0, 1fr);
  margin: 0;
}

#profileCard .profile-preview {
  width: 58px;
  height: 58px;
}

#profileCard .profile-name-line {
  margin: 0;
  font-size: 15px;
}

#profileCard.profile-open label,
#profileCard.profile-open input,
#profileCard.profile-open .input-row,
#profileCard.profile-open .message {
  display: grid;
}

#profileCard.profile-open input {
  display: block;
}

#profileCard.profile-open .input-row {
  grid-template-columns: minmax(0, 1fr) 74px;
}

.profile-menu-actions {
  display: grid;
  gap: 8px;
}

.profile-menu-actions button {
  min-height: 40px;
  background: rgba(56, 189, 248, 0.16);
  color: #dbeafe;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.account-switch-panel {
  display: grid;
  gap: 12px;
}

.round-plus-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  background: #f8fbff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(248, 251, 255, 0.14);
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  color: var(--text);
}

.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #06111f;
  font-weight: 900;
}

.account-details {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-details strong,
.account-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-details small {
  color: var(--muted);
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.36);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.chat-history-panel {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(219, 234, 254, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.36);
}

.chat-history-item {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

.chat-history-item strong,
.chat-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

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

.profile-preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(56, 189, 248, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.34)),
    #0f172a;
  background-position: center;
  background-size: cover;
  color: var(--text);
  font-weight: 900;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.inline-verified {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.inline-verified.verified {
  background: #1d9bf0;
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(186, 230, 253, 0.66),
    0 0 16px rgba(29, 155, 240, 0.5);
}

.inline-verified.developer {
  background: #0b3d91;
  color: #dbeafe;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
}

.inline-verified.owner-system {
  background: linear-gradient(135deg, #0b3d91, #1d9bf0);
  color: #fff;
  font-size: 13px;
  box-shadow:
    0 0 0 2px rgba(147, 197, 253, 0.72),
    0 0 18px rgba(29, 155, 240, 0.62);
}

.official-chatworld-mark {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(29, 155, 240, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.34)),
    rgba(14, 116, 144, 0.18);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(29, 155, 240, 0.22);
}

.official-chatworld-logo {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 12px rgba(56, 189, 248, 0.42);
}

.muted-panel p,
.message,
.chat-button small {
  color: var(--muted);
}

.verified-panel {
  display: grid;
  gap: 12px;
}

.verified-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.gpt-plus-panel {
  border-color: rgba(168, 85, 247, 0.58);
  background:
    radial-gradient(circle at 16% 12%, rgba(168, 85, 247, 0.3), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(236, 72, 153, 0.16), transparent 30%),
    rgba(15, 23, 42, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(216, 180, 254, 0.1),
    0 18px 48px rgba(88, 28, 135, 0.18);
}

.gpt-plus-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-lock-panel {
  border-color: rgba(29, 155, 240, 0.4);
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 155, 240, 0.18), transparent 32%),
    rgba(17, 24, 39, 0.86);
}

body.app-locked .app-view,
body.app-locked .bottom-nav,
body.app-locked .bot-space,
body.app-locked .report-screen,
body.app-locked .payment-screen {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.gpt-plus-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #581c87, #8b5cf6 48%, #ec4899),
    #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.44);
  animation: plusBadgePulse 2.4s ease-in-out infinite;
}

.pay-button.plus {
  background: linear-gradient(135deg, #581c87, #7c3aed, #ec4899);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.28);
}

.pay-button.apple-pay {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

@keyframes plusBadgePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.2);
  }
}

.verified-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.verified-heading h2,
.verified-heading p {
  margin: 0;
}

.verified-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.payment-actions {
  display: grid;
  gap: 8px;
}

.pay-button,
.wise-pay-button,
.owner-button {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #06130b;
  font-weight: 900;
  text-decoration: none;
}

.wise-pay-button {
  background: #9fe870;
  color: #163300;
}

.top-pay-link {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.top-pay-link.wise {
  background: #9fe870;
  color: #163300;
}

.payment-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.36), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(29, 155, 240, 0.34), transparent 30%),
    linear-gradient(135deg, #06111f, #10243c 48%, #052e16);
}

.payment-stage {
  position: relative;
  width: min(980px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 33, 0.82);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.payment-back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef7ff;
  font-weight: 900;
}

.payment-disabled,
.payment-maintenance-button {
  opacity: 0.62;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.payment-disabled::after,
.payment-maintenance-button::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  display: inline-block;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #facc15;
  border-radius: 50%;
  animation: spinWait 0.9s linear infinite;
}

.payment-illustration {
  position: relative;
  min-height: 440px;
}

.desk {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 26px;
  height: 130px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  box-shadow: 0 24px 70px rgba(34, 197, 94, 0.28);
}

.person {
  position: absolute;
  left: 18%;
  bottom: 72px;
  width: 210px;
  height: 260px;
}

.head {
  position: absolute;
  left: 68px;
  top: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: inset -10px -8px 0 rgba(0, 0, 0, 0.1);
}

.body {
  position: absolute;
  left: 36px;
  top: 70px;
  width: 138px;
  height: 150px;
  border-radius: 52px 52px 18px 18px;
  background: #1d9bf0;
}

.arm {
  position: absolute;
  top: 126px;
  width: 98px;
  height: 24px;
  border-radius: 999px;
  background: #facc15;
  animation: workHands 0.9s ease-in-out infinite alternate;
}

.left-arm {
  left: 0;
  transform: rotate(18deg);
}

.right-arm {
  right: 0;
  transform: rotate(-18deg);
  animation-delay: 0.22s;
}

.laptop {
  position: absolute;
  right: 10%;
  bottom: 102px;
  width: 250px;
  height: 170px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 18%, rgba(34, 197, 94, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.62));
  border: 8px solid #94a3b8;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
}

.screen-glow {
  position: absolute;
  inset: 16px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(56, 189, 248, 0.4)),
    repeating-linear-gradient(180deg, #22c55e 0 8px, transparent 8px 18px);
  opacity: 0.72;
  animation: screenPulse 1.2s ease-in-out infinite alternate;
}

.keyboard {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -34px;
  height: 22px;
  border-radius: 0 0 8px 8px;
  background: #cbd5e1;
}

.money {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #052e16;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(34, 197, 94, 0.38);
  animation: floatMoney 2.4s ease-in-out infinite;
}

.money-one {
  top: 42px;
  left: 10%;
}

.money-two {
  top: 120px;
  right: 12%;
  animation-delay: 0.45s;
}

.money-three {
  top: 230px;
  left: 48%;
  animation-delay: 0.8s;
}

.payment-copy {
  display: grid;
  gap: 14px;
}

.payment-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.payment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.secure-payment-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 12%, rgba(56, 189, 248, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.paypal-button-container {
  min-height: 54px;
  border-radius: 8px;
  overflow: hidden;
}

.paypal-button-container:empty {
  display: none;
}

.card-preview {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.84)),
    #0f172a;
  color: #f8fafc;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.36);
}

.card-chip {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #facc15, #f97316),
    #facc15;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.card-preview strong {
  font-size: 15px;
}

.card-preview span:not(.card-chip) {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.card-preview small,
.secure-payment-note {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.pay-button.add-card-pay {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #04111f;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.28);
}

.waiting-loader {
  width: 76px;
  height: 76px;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-top-color: #22c55e;
  border-right-color: #38bdf8;
  border-radius: 50%;
  animation: spinWait 0.9s linear infinite;
}

@keyframes spinWait {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatMoney {
  50% {
    transform: translateY(-22px) rotate(8deg);
  }
}

@keyframes workHands {
  to {
    margin-top: 12px;
  }
}

@keyframes screenPulse {
  to {
    opacity: 1;
    filter: brightness(1.3);
  }
}

.owner-button {
  width: 100%;
  background: var(--blue);
  color: #031522;
}

.owner-button.remove {
  background: #ef4444;
  color: #fff;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.search-input {
  margin-bottom: 10px;
}

.group-row button {
  min-height: 42px;
  padding: 0 14px;
  background: var(--blue);
  color: #031522;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  color: var(--text);
  outline: none;
}

textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  color: var(--text);
  outline: none;
  resize: vertical;
}

input[type="file"] {
  min-height: auto;
  padding: 9px;
  font-size: 13px;
}

input:focus {
  border-color: var(--blue);
}

.message {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 14px;
}

.message.payment-rejected {
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-weight: 900;
}

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

.section-header button,
#installButton {
  min-height: 40px;
  padding: 0 14px;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.empty-search {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.directory-title {
  margin: 10px 0 6px;
  padding: 8px 10px;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-result {
  border-color: rgba(34, 197, 94, 0.42);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(56, 189, 248, 0.11)),
    #0f172a;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.12);
}

.user-result:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.14)),
    #0f172a;
}

.user-result .avatar {
  background: linear-gradient(135deg, #1d9bf0, #22c55e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 155, 240, 0.22);
}

.developer-panel {
  display: grid;
  gap: 12px;
}

.developer-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.count-pill,
.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.developer {
  background: #0b3d91;
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.34);
}

.status-pill.owner-system {
  background: linear-gradient(135deg, #0b3d91, #1d9bf0);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(219, 234, 254, 0.42),
    0 8px 20px rgba(29, 155, 240, 0.22);
}

.developer-users {
  display: grid;
  gap: 8px;
}

.developer-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
}

.developer-user strong,
.developer-user small {
  display: block;
}

.developer-user small {
  margin-top: 3px;
  color: var(--muted);
}

.chat-button {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.chat-button.active,
.chat-button:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--green));
  color: #06130b;
  font-weight: 900;
}

.chat-button strong,
.chat-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-button strong {
  font-size: 15px;
}

.chat-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chat-name-line,
#chatTitle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.chat-name-line span:first-child,
#chatTitle span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 80% 18%, rgba(34, 197, 94, 0.12), transparent 28%),
    rgba(16, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.58);
  backdrop-filter: blur(10px);
}

.call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.menu-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.18);
  font-size: 28px;
  line-height: 1;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(56, 189, 248, 0.16);
}

.connection-status {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.connection-status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.chat-topbar h2 {
  font-size: 24px;
}

.icon-button,
.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  background: #ffffff;
  color: #111827;
}

.icon-button {
  min-width: 76px;
  background: var(--blue);
  color: #031522;
}

.bot-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  margin-left: auto;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.bot-logo {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: url("/icons/bot-logo.png") center / cover;
  color: #06130b;
  font-size: 13px;
  font-weight: 900;
}

.bot-logo.big {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 22px;
}

.bubble {
  max-width: min(640px, 82%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
}

.bubble.me {
  align-self: flex-end;
  background: #dcfce7;
  color: #052e16;
}

.bubble.other {
  align-self: flex-start;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
}

.bubble audio {
  display: block;
  width: min(280px, 100%);
  margin-top: 8px;
}

.delete-voice {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  background: #ef4444;
  color: #fff;
}

.composer {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 82px;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.58);
  backdrop-filter: blur(10px);
}

.composer button,
.voice-button {
  min-height: 48px;
}

.voice-button {
  width: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #2a1d03;
  font-size: 22px;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.3);
}

.call-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 22% 18%, rgba(34, 197, 94, 0.22), transparent 34%),
    rgba(4, 8, 15, 0.48);
  backdrop-filter: blur(8px);
}

.bot-space {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(56, 189, 248, 0.2), transparent 36%),
    rgba(4, 8, 15, 0.46);
  backdrop-filter: blur(8px);
}

body.bot-open {
  overflow: hidden;
}

body.bot-open .app-view,
body.bot-open .bottom-nav {
  display: none !important;
}

.bot-card {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(34, 197, 94, 0.14), transparent 32%),
    rgba(9, 17, 31, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 76px;
  padding: max(16px, env(safe-area-inset-top)) 22px 16px;
  border-bottom: 1px solid var(--line);
}

.bot-plus-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(216, 180, 254, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.92), rgba(124, 58, 237, 0.94), rgba(236, 72, 153, 0.9));
  color: #fff;
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 14px 36px rgba(124, 58, 237, 0.34);
  animation: botPlusGlow 2.6s ease-in-out infinite;
}

.bot-plus-button span {
  display: block;
  white-space: nowrap;
}

@keyframes botPlusGlow {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-1px);
    filter: brightness(1.18);
  }
}

.bot-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}

.bot-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.bot-verified {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #1d9bf0;
  background: #dff4ff;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  overflow: visible;
}

.bot-verified::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: url("/icons/bot-logo.png") center / cover;
}

.bot-verified::after {
  content: "✓";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 2px solid #09111f;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.bot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 22px min(22px, 4vw);
  overscroll-behavior: contain;
}

.bot-bubble {
  max-width: min(760px, 92%);
  overflow-wrap: anywhere;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  line-height: 1.45;
}

.bot-bubble.me {
  align-self: flex-end;
  background: #dcfce7;
  color: #052e16;
}

.bot-bubble.bot {
  align-self: flex-start;
}

.bot-image-bubble {
  display: grid;
  gap: 8px;
}

.bot-image-bubble img {
  width: min(320px, 76vw);
  max-height: 320px;
  object-fit: cover;
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 8px;
}

.bot-searching {
  position: relative;
  color: #dbeafe;
}

.bot-searching::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  text-align: left;
  animation: botSearchingDots 1.1s steps(4, end) infinite;
}

@keyframes botSearchingDots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

.bot-bubble small {
  display: block;
  margin-top: 8px;
  opacity: 0.72;
  font-size: 12px;
}

.bot-composer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 18px 22px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.bot-composer input[type="text"] {
  min-width: 0;
}

.bot-tool-button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #ede9fe;
  font-weight: 800;
}

.bot-voice-reply-toggle {
  width: 52px;
  height: 52px;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(14, 165, 233, 0.86));
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.28);
}

.bot-voice-reply-toggle.active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.16),
    0 16px 42px rgba(14, 165, 233, 0.34);
}

.bot-voice-reply-toggle.listening {
  animation: voicePulse 1.1s ease-in-out infinite;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.94), rgba(14, 165, 233, 0.9));
}

.bot-voice-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.bot-voice-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 8px;
  height: 10px;
  border-radius: 3px 0 0 3px;
  background: #ffffff;
  box-shadow: 7px -4px 0 2px #ffffff;
  clip-path: polygon(0 20%, 48% 20%, 100% 0, 100% 100%, 48% 80%, 0 80%);
}

.bot-voice-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 4px;
  width: 14px;
  height: 16px;
  border: 2px solid #ffffff;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

@media (max-width: 640px) {
  .bot-header {
    align-items: stretch;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  .bot-title {
    flex: 1 1 100%;
  }

  .bot-plus-button,
  .bot-header .secondary-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }

  .bot-plus-button span {
    white-space: normal;
  }

  .bot-composer {
    grid-template-columns: 1fr 1fr;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .bot-composer input[type="text"] {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .bot-composer button[type="submit"] {
    grid-column: 1 / -1;
  }

  .bot-tool-button {
    width: 100%;
  }

  .bot-voice-reply-toggle {
    width: 100%;
  }
}

.call-card {
  width: min(460px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.14), transparent 34%),
    rgba(9, 17, 31, 0.68);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.call-effects {
  display: grid;
  gap: 7px;
  margin: 10px 0 4px;
  text-align: left;
}

.call-effects label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.call-effects select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 800;
}

.call-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(29, 155, 240, 0.18), transparent 44%),
    rgba(2, 6, 23, 0.58);
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.camera-effect-clean {
  filter: saturate(1.04) contrast(1.04) brightness(1.03);
}

.camera-effect-bright {
  filter: brightness(1.16) contrast(1.05) saturate(1.08);
}

.camera-effect-soft {
  filter: brightness(1.1) contrast(0.96) saturate(1.1);
}

.camera-effect-cinema {
  filter: contrast(1.12) saturate(1.18) sepia(0.08);
}

.camera-effect-mono {
  filter: grayscale(1) contrast(1.12) brightness(1.04);
}

.incoming-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.incoming-actions button:first-child {
  background: var(--green);
  color: #06130b;
}

.incoming-actions button:last-child,
.call-card > button {
  background: #ef4444;
  color: #fff;
}

.call-card button {
  min-height: 46px;
  padding: 0 18px;
}

.call-screen {
  z-index: 70;
  padding: 12px;
  place-items: stretch;
}

.call-card {
  width: min(1080px, 100%);
  min-height: min(780px, calc(100vh - 24px));
  margin: auto;
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto auto;
  gap: 10px;
}

.call-video-stage {
  position: relative;
  min-height: min(62vh, 580px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(29, 155, 240, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.96));
}

.call-card video {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.main-call-video {
  width: 100%;
  height: 100%;
  min-height: min(62vh, 580px);
  object-fit: contain;
  object-position: center center;
}

.local-call-video {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(180px, 34vw);
  height: min(240px, 32vh);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border: 2px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  background: #020617 !important;
}

.call-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 22px;
  color: #e5eefb;
  text-align: center;
}

.call-empty-state strong {
  font-size: clamp(20px, 3vw, 34px);
}

.call-empty-state span {
  color: var(--muted);
  font-weight: 700;
}

.call-bottom-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.end-call-button,
.incoming-actions button:last-child {
  width: 68px;
  min-width: 68px;
  height: 68px;
  min-height: 68px;
  border-radius: 999px;
  padding: 0;
  background: #ef4444 !important;
  color: #fff !important;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.36);
}

.incoming-actions {
  width: min(360px, 100%);
  margin: 0 auto 6px;
  align-items: center;
}

.incoming-actions button:first-child {
  min-height: 58px;
  border-radius: 999px;
}

.x-post-stage .video-frame {
  display: none;
}

.x-post-stage {
  width: min(760px, 100%);
  padding: 0;
  overflow: hidden;
  gap: 0;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.78);
}

.x-compose-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.x-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #001019;
  font-weight: 950;
}

.x-compose-body {
  display: grid;
  gap: 10px;
}

.x-compose-body h2 {
  margin: 0;
  font-size: 18px;
}

.x-compose-body textarea {
  min-height: 118px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.x-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.x-compose-actions input[type="file"] {
  display: none;
}

.x-video-upload {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(29, 155, 240, 0.35);
  border-radius: 999px;
  color: #7dd3fc;
  font-weight: 900;
  cursor: pointer;
}

.selected-video-info {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.x-compose-actions button {
  width: auto;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1d9bf0;
  color: #fff;
}

.x-feed {
  gap: 0;
}

.x-status-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0;
  background: transparent;
}

.x-status-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 950;
}

.x-status-body {
  display: grid;
  gap: 6px;
}

.x-status-body p {
  margin: 0;
  color: #e5eefb;
}

.x-status-body small {
  color: var(--muted);
}

@media (max-width: 720px) {
  .call-screen {
    padding: 0;
  }

  .call-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    grid-template-rows: auto auto minmax(360px, 1fr) auto auto;
  }

  .call-video-stage,
  .main-call-video {
    min-height: 58vh;
  }

  .local-call-video {
    width: 116px;
    height: 154px;
    right: 10px;
    bottom: 10px;
  }

  .x-compose-card,
  .x-status-card {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .x-avatar,
  .x-status-avatar {
    width: 40px;
    height: 40px;
  }
}

.hidden {
  display: none !important;
}

.update-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.68);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.update-notice span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.update-notice button {
  min-height: 38px;
}

.consent-prompt {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.consent-prompt strong {
  color: #f8fafc;
  font-size: 18px;
}

.consent-prompt span {
  color: #cbd5e1;
  line-height: 1.45;
}

.consent-prompt div,
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-prompt button,
.consent-actions button {
  min-height: 42px;
}

.consent-panel {
  border-color: rgba(56, 189, 248, 0.28);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.interest-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.34);
  color: #e2e8f0;
  font-weight: 800;
}

.interest-grid input {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.36);
  color: #fecaca;
}

.post-view,
.settings-view {
  min-height: calc(100vh - 86px);
  padding: 22px;
}

.mobile-page-header {
  width: min(980px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.62);
  backdrop-filter: blur(12px);
}

.mobile-page-header h1 {
  margin: 0;
}

.post-stage,
.settings-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.post-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.16), transparent 34%),
    rgba(9, 17, 31, 0.58);
  backdrop-filter: blur(12px);
}

.video-frame {
  min-height: 260px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 155, 240, 0.24), rgba(34, 197, 94, 0.16)),
    rgba(2, 6, 23, 0.46);
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #1f1300;
  font-size: 32px;
  box-shadow: 0 0 38px rgba(250, 204, 21, 0.54);
}

.status-ring {
  position: absolute;
  inset: 22px;
  border: 2px dashed rgba(219, 234, 254, 0.28);
  border-radius: 8px;
  animation: voicePulse 2.2s ease-in-out infinite;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
}

.status-card strong {
  color: #dbeafe;
}

.status-card small {
  color: var(--muted);
}

.watch-status-button {
  min-height: 40px;
  width: max-content;
  padding: 0 14px;
  background: var(--blue);
  color: #031522;
}

.status-video-viewer {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(12px);
}

.status-video-card {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.18), transparent 34%),
    rgba(9, 17, 31, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.status-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#statusPlayer {
  width: 100%;
  max-height: min(72vh, 720px);
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.62);
  object-fit: contain;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  width: min(560px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 17, 31, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.bottom-nav-button {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
}

.bottom-nav-button span {
  font-size: 20px;
}

.bottom-nav-button strong {
  font-size: 12px;
}

.bottom-nav-button.active {
  background: rgba(56, 189, 248, 0.18);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

@media (max-width: 780px) {
  .auth-gate {
    place-items: start center;
    padding: 14px 14px 104px;
  }

  .auth-card {
    margin: 0;
    padding: 18px;
    gap: 10px;
  }

  .auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .auth-card h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .payment-screen {
    place-items: start center;
    padding: 14px 12px 34px;
  }

  .payment-stage {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 74px 16px 24px;
    margin: 0 auto;
    overflow: visible;
  }

  .payment-illustration {
    min-height: 220px;
  }

  .person {
    left: 4%;
    transform: scale(0.82);
    transform-origin: bottom left;
  }

  .laptop {
    right: 3%;
    width: 210px;
  }

  .report-card {
    background: rgba(9, 17, 31, 0.64);
  }

  .report-hero-animation {
    min-height: 280px;
  }

  .report-worker {
    right: -94px;
    bottom: -20px;
    transform: scale(0.72);
    transform-origin: bottom right;
    opacity: 0.72;
  }

  .report-light {
    width: 190px;
    height: 190px;
  }

  .chat-panel {
    min-height: 72vh;
  }

  #profileCard {
    top: 70px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  #profileCard.profile-open {
    display: grid;
  }

  .chat-topbar,
  .call-actions {
    align-items: stretch;
  }

  .chat-topbar {
    flex-direction: column;
    padding: 14px;
  }

  .call-actions {
    justify-content: flex-start;
  }

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