:root {
  --bg: #000;
  --chat: #000;
  --gray: #262629;
  --blue: #0b84fe;
  --text: #fff;
  --muted: #8e8e93;
  --green: #34c759;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #111;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
}
.screen { display: none; flex: 1; flex-direction: column; min-height: 100dvh; }
.screen.active { display: flex; }

/* TITLE */
.title {
  background: #000;
  padding: 28px 24px 32px;
  justify-content: flex-start;
  gap: 18px;
}
.title-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.title-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; align-self: center; margin-top: 24px;
  border: 3px solid #1c1c1e;
}
.title h1 { text-align: center; font-size: 28px; letter-spacing: -0.4px; }
.title .sub { text-align: center; color: var(--muted); font-size: 16px; line-height: 1.35; }
.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 600;
  border-radius: 14px; padding: 16px 18px; width: 100%;
}
.btn.ghost { background: #1c1c1e; }
.fine { text-align: center; color: #636366; font-size: 12px; line-height: 1.4; margin-top: auto; }

/* CHAT CHROME */
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid #1c1c1e;
  background: #000;
  position: sticky; top: 0; z-index: 5;
}
.back { color: var(--blue); font-size: 28px; line-height: 1; width: 28px; }
.head-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.head-meta { flex: 1; }
.head-meta .name { font-size: 15px; font-weight: 600; }
.head-meta .status { font-size: 11px; color: var(--muted); }
.meters {
  display: flex; gap: 8px; padding: 6px 12px;
  font-size: 11px; color: var(--muted);
  border-bottom: 1px solid #1c1c1e;
}
.meters span { background: #1c1c1e; border-radius: 99px; padding: 3px 8px; }

.thread {
  flex: 1; overflow-y: auto; padding: 12px 12px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.day {
  align-self: center; color: var(--muted); font-size: 12px;
  margin: 10px 0 6px; text-align: center;
}
.row { display: flex; width: 100%; }
.row.me { justify-content: flex-end; }
.row.skip { justify-content: flex-start; }
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.28;
  word-wrap: break-word;
}
.bubble.skip { background: #262629; color: #fff; border-bottom-left-radius: 5px; }
.bubble.me { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.bubble.system {
  align-self: center; background: #1c1c1e; color: #d1d1d6;
  font-size: 13px; border-radius: 12px; margin: 6px auto;
}
.photo-wrap {
  max-width: 72%;
  background: #262629;
  border-radius: 16px;
  overflow: hidden;
  border-bottom-left-radius: 5px;
}
.photo-wrap img { display: block; width: 100%; height: auto; }
.typing {
  background: #262629; border-radius: 16px; padding: 10px 14px;
  display: inline-flex; gap: 5px; align-items: center;
}
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #8e8e93;
  animation: bounce 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.read { align-self: flex-end; font-size: 11px; color: var(--muted); padding: 0 4px 4px; }

.chips {
  padding: 8px 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: #000;
}
.chip {
  text-align: left;
  background: #1c1c1e;
  color: #fff;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.chip:active { background: #2c2c2e; }
.chip .tag { display: block; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* END */
.end {
  padding: 20px 20px 32px;
  gap: 14px;
  overflow-y: auto;
}
.end h2 { font-size: 26px; letter-spacing: -0.4px; }
.rank { font-size: 22px; color: #ffd60a; }
.quote {
  background: #1c1c1e; border-radius: 14px; padding: 14px;
  color: #d1d1d6; font-size: 16px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #1c1c1e; border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 20px; }
.stat small { color: var(--muted); }
.brand-card {
  background: #0b1f14; border: 1px solid #1f6b3a;
  border-radius: 16px; padding: 16px;
}
.brand-card h3 { font-size: 18px; margin-bottom: 4px; }
.brand-card p { color: #c7c7cc; font-size: 14px; line-height: 1.4; margin: 6px 0; }
form { display: flex; flex-direction: column; gap: 8px; }
input {
  background: #1c1c1e; border: 1px solid #2c2c2e; color: #fff;
  border-radius: 12px; padding: 14px; font-size: 16px;
}
.thanks { display: none; background: #1c1c1e; border-radius: 12px; padding: 14px; }
.thanks.show { display: block; }
