/* Auvra web chat. Same colors as the Android app (dark by default). */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #0F1115; --header: #13151B; --card: #171A21; --card2: #1E222B; --border: #2A2F3A; --border2: #3A404D;
  --text: #ECEEF2; --text2: #D5D8DF; --muted: #A0A7B4; --faint: #8F96A3;
  --accent: #7B91FF; --on-accent: #0B0F1A; --tint: #1E2546; --tint-text: #C3CDFF; --sel: #1A2040;
  --danger: #FF8C8C; --danger-tint: #2A1719; --danger-border: #5A2A2E; --online: #5BD69A;
  --bubble-them: #1E222B; --bubble-them-border: #1E222B; --orb: #232733; --orb-stroke: #8F96A3; --logo-gap: #13151B;
  --overlay: rgba(5, 7, 12, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F8FA; --header: #FFFFFF; --card: #FFFFFF; --card2: #F0F2F5; --border: #E2E5EA; --border2: #D0D4DB;
  --text: #14161C; --text2: #3A3F4A; --muted: #5F6672; --faint: #6B7280;
  --accent: #3B5BFD; --on-accent: #FFFFFF; --tint: #E6EBFF; --tint-text: #2E46C8; --sel: #F2F5FF;
  --danger: #C8322F; --danger-tint: #FDECEC; --danger-border: #F5C2C2; --online: #13804B;
  --bubble-them: #FFFFFF; --bubble-them-border: #E2E5EA; --orb: #ECEEF2; --orb-stroke: #8A909C; --logo-gap: #FFFFFF;
  --overlay: rgba(15, 18, 28, .45);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font-family: inherit; color: inherit; }
a { color: var(--tint-text); }
[hidden] { display: none !important; }
.sg { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.error { color: var(--danger); font-size: 14px; font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--border2); background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--card2); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn.pri:hover { filter: brightness(1.05); }
.btn.danger { background: var(--danger-tint); border-color: var(--danger-border); color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); font-size: 18px; }
.icon-btn:hover { background: var(--card2); }
.icon-btn.ring { border: 1px solid var(--border2); width: 36px; height: 36px; font-size: 15px; }
.link { background: none; border: 0; color: var(--tint-text); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
input[type=text], input[type=date], input[type=number], select, textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--card2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
textarea { resize: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

/* Logo */
.wm { display: inline-flex; align-items: center; gap: 8px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -1px; color: var(--text); text-decoration: none; }
.web-tag { font-size: 12px; color: var(--muted); background: var(--card2); padding: 3px 8px; border-radius: 8px; }

/* Full-screen centered pages (sign-in, welcome, banned) */
.center { min-height: 100%; height: 100%; overflow-y: auto; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 50% 10%, var(--tint) 0%, var(--bg) 70%); }
.center .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.card { width: min(440px, calc(100vw - 32px)); margin: 4vh auto 40px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 32px 30px; display: flex; flex-direction: column; gap: 8px; }
.card.center-text { align-items: center; text-align: center; }
.card h2 { font-size: 28px; }
.card .sub { color: var(--muted); font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; line-height: 1.45; color: var(--text2); cursor: pointer; text-align: left; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; cursor: pointer; }
.google { margin-top: 14px; width: 100%; height: 54px; border-radius: 16px; background: #fff; color: #14161C; border: 1px solid #D0D4DB; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 16px; cursor: pointer; }
.google:disabled { opacity: .5; cursor: default; }
.note { color: var(--faint); font-size: 13px; text-align: center; margin-top: 12px; line-height: 1.5; }
.label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--card2); color: var(--text2); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--tint-text); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border2); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 40vh auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Main layout */
.app { height: 100%; display: flex; flex-direction: column; }
.top { height: 64px; flex: none; background: var(--header); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.top .r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .r .txt { color: var(--muted); font-size: 14px; text-decoration: none; padding: 8px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.top .r .txt:hover { color: var(--text); background: var(--card2); }
.me-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; overflow: hidden; }
.body { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px 1fr; }
.side { background: var(--header); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.find { margin: 16px; height: 52px; flex: none; border-radius: 16px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 6px 18px rgba(80, 100, 255, .25); }
.chips { display: flex; gap: 8px; padding: 0 16px 12px; border-bottom: 1px solid var(--border); flex: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; border: 1px solid var(--border); background: var(--card2); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--tint-text); }
.list { flex: 1; overflow-y: auto; padding: 4px 0; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.row:hover { background: var(--card2); }
.row.sel { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.rc { flex: 1; min-width: 0; }
.rt { display: flex; align-items: center; gap: 6px; }
.nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
.tm.u { color: var(--accent); font-weight: 600; }
.pv { display: flex; align-items: center; margin-top: 3px; }
.pv span:not(.badge) { flex: 1; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv span.u { color: var(--text); font-weight: 500; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; padding: 0 6px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.empty h3 { color: var(--text); font-size: 22px; margin: 14px 0 6px; }
.get-app { border-top: 1px solid var(--border); padding: 14px 16px; font-size: 12.5px; color: var(--muted); flex: none; }
.get-app a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Avatars */
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; flex: none; overflow: hidden; background: var(--orb); }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* Conversation */
.main { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.ch { height: 68px; flex: none; background: var(--header); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 14px 0 10px; gap: 10px; }
.ch .who { display: flex; align-items: center; gap: 12px; min-width: 0; background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 12px; text-align: left; }
.ch .who:hover { background: var(--card2); }
.ch .acts { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.ch .acts .txt { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.ch .acts .txt:hover { background: var(--card2); color: var(--text); }
.ch .acts .txt.report { color: var(--danger); }
.back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 22px max(16px, 12%) 10px; display: flex; flex-direction: column; gap: 6px; }
.day { align-self: center; font-size: 12px; color: var(--faint); background: var(--card2); padding: 4px 10px; border-radius: 10px; margin: 8px 0; }
.msg { display: flex; flex-direction: column; max-width: min(560px, 75%); }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.b { padding: 10px 15px; font-size: 15px; line-height: 1.45; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
.mine .b { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.them .b { background: var(--bubble-them); border: 1px solid var(--bubble-them-border); border-bottom-left-radius: 6px; }
.ts { font-size: 11px; color: var(--faint); margin: 3px 4px 0; }
.fail { font-size: 11px; color: var(--danger); margin: 3px 4px 0; background: none; border: 0; cursor: pointer; text-align: right; }
.ph { width: 240px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--card2); position: relative; border: 0; padding: 0; cursor: pointer; display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.blur img { filter: blur(22px); transform: scale(1.1); }
.ph .veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; background: rgba(0, 0, 0, .25); }
.ph.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.voice { width: 240px; padding: 8px 14px 8px 8px; border-radius: 18px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.them .voice { background: var(--bubble-them); border: 1px solid var(--bubble-them-border); border-bottom-left-radius: 6px; }
.mine .voice { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.voice .play { width: 34px; height: 34px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.them .voice .play { background: var(--accent); color: var(--on-accent); }
.mine .voice .play { background: var(--on-accent); color: var(--accent); }
.wave { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .75; }
.ended { text-align: center; color: var(--muted); padding: 14px; font-size: 14px; border-top: 1px solid var(--border); }
.inp { display: flex; gap: 10px; align-items: flex-end; padding: 12px max(16px, 12%) 16px; flex: none; }
.inp .field { flex: 1; min-height: 50px; max-height: 160px; border-radius: 25px; padding: 13px 20px; background: var(--card); border: 1px solid var(--border); line-height: 1.4; }
.circ { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; flex: none; color: var(--text2); }
.circ.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.circ:disabled { opacity: .5; cursor: default; }
.rec { flex: 1; height: 50px; border-radius: 25px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 18px; font-weight: 600; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #FF5A5A; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.welcome-pane { flex: 1; display: flex; align-items: center; justify-content: center; }

/* Modals */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.modal.wide { width: min(620px, 100%); }
.modal h3 { font-size: 20px; }
.modal .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.option { width: 100%; text-align: left; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card2); cursor: pointer; font-size: 15px; }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--tint-text); }
.menu { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--border2); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.menu button { width: 100%; text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.menu button:hover { background: var(--card2); }
.menu button.danger { color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 80; max-width: calc(100vw - 32px); }

/* Matching */
.match { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; padding: 18px 20px 24px; }
.match .mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rings { width: 260px; height: 260px; position: relative; display: flex; align-items: center; justify-content: center; }
.rings b { position: absolute; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2.4s ease-out infinite; opacity: 0; }
.rings b:nth-child(2) { animation-delay: .8s; } .rings b:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { width: 112px; height: 112px; opacity: .6; } to { width: 260px; height: 260px; opacity: 0; } }
.orb { width: 112px; height: 112px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.match h2 { font-size: 30px; margin-top: 32px; }
.match .tip { width: min(560px, 100%); margin: 0 auto 14px; background: var(--tint); color: var(--tint-text); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.match .cancel { width: min(560px, 100%); margin: 0 auto; }

/* Profile gallery */
.gallery { position: fixed; inset: 0; z-index: 58; background: #000; color: #fff; display: flex; flex-direction: column; }
.gallery .gtop { display: flex; align-items: center; height: 56px; padding: 0 8px; }
.gallery .gtop .icon-btn { color: #fff; }
.gallery .bars { display: flex; gap: 4px; padding: 0 18px 8px; width: min(720px, 100%); margin: 0 auto; }
.gallery .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.gallery .bars i.on { background: #fff; }
.gallery .stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.gallery .stage img { height: 100%; width: 100%; object-fit: contain; }
.gallery .nav { position: absolute; top: 0; bottom: 0; width: 30%; border: 0; background: transparent; cursor: pointer; }
.gallery .nav.l { left: 0; } .gallery .nav.r { right: 0; }
.gallery .info { padding: 14px 20px 22px; width: min(720px, 100%); margin: 0 auto; }
.gallery .info h3 { font-size: 22px; }
.gallery .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gallery .tags span { padding: 4px 10px; border-radius: 14px; border: 1px solid #4B5563; color: #D1D5DB; font-size: 12px; }
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.viewer img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* Settings */
.settings h4 { font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.set-row .t { font-size: 15px; font-weight: 500; }
.set-row .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border2); border-radius: 14px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { left: 21px; }
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid .slot { aspect-ratio: 1; border-radius: 14px; background: var(--card2); border: 1px dashed var(--border2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 24px; cursor: pointer; }
.photo-grid .slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .slot .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: 13px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--border); background: var(--card2); color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; }
.pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--tint-text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.send-strip .slot { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; position: relative; }
.send-strip img { width: 100%; height: 100%; object-fit: cover; }
.send-strip .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }

/* Warning (moderator) */
.warning { position: fixed; inset: 0; z-index: 90; background: #2A0E0E; color: #F3C9C8; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.warning .box { width: min(480px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.warning .ic { width: 84px; height: 84px; border-radius: 50%; background: #C8322F; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; }
.warning .lbl { color: #FF8A86; font-size: 13px; letter-spacing: 1.6px; font-weight: 700; }
.warning h2 { color: #fff; font-size: 30px; }
.warning .count { border: 1px solid rgba(255, 138, 134, .4); border-radius: 12px; padding: 10px 14px; color: #FFD3D1; font-size: 14px; }
.warning .btn { width: 100%; background: #C8322F; border-color: #C8322F; color: #fff; }
.warning .btn:disabled { background: #5A2120; border-color: #5A2120; color: #E8B4B2; opacity: 1; }
.warning a { color: #E8B4B2; }

/* Phones: one column at a time */
@media (max-width: 820px) {
  .body { grid-template-columns: 1fr; }
  .app.convo-open .side { display: none; }
  .app:not(.convo-open) .main { display: none; }
  .back { display: inline-flex; }
  .top .r .hide-sm { display: none; }
  .msgs, .inp { padding-left: 12px; padding-right: 12px; }
  .ch .acts .txt.hide-sm { display: none; }
}
