/* Production completion layer. Loaded after the V6/V7 styles so one coherent
   set of responsive and accessibility rules wins without forking index.html. */
:root {
  --vyral-safe-bottom: max(12px, env(safe-area-inset-bottom));
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}


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

.page,
.page-content,
.v7-auth-shell,
.v7-dm-shell,
.v7-profile-main,
.v7-account-shell {
  min-width: 0;
  max-width: 100%;
}

.vyral-google-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: #fff;
  color: #15161c;
  font-weight: 950;
  cursor: pointer;
}

.vyral-google-button svg {
  width: 19px;
  height: 19px;
}

.vyral-auth-help {
  margin-top: 16px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(24, 217, 255, .2);
  border-radius: 16px;
  background: rgba(24, 217, 255, .055);
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.vyral-auth-help b {
  display: block;
  color: #fff;
  font-size: 13px;
}

.vyral-auth-floating-help {
  position: fixed;
  z-index: 20;
  left: clamp(18px, 5vw, 76px);
  bottom: 26px;
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(15,16,23,.78);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.vyral-auth-floating-help:hover { border-color: rgba(24,217,255,.45); background: rgba(24,217,255,.09); }

.vyral-guest-banner {
  position: fixed;
  z-index: 1500;
  left: 50%;
  bottom: calc(76px + var(--vyral-safe-bottom));
  width: min(680px, calc(100% - 24px));
  padding: 11px 12px 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(9, 10, 15, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(20px);
}

.vyral-guest-banner span {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.35;
}

.vyral-guest-banner b {
  color: #fff;
}

.vyral-guest-banner button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff2d67, #ff6259);
  color: #fff;
  font-weight: 950;
}

body.vyral-guest .bottom-nav [data-page="upload"],
body.vyral-guest .bottom-nav [data-page="inbox"],
body.vyral-guest .bottom-nav [data-page="profile"],
body.vyral-guest .v7-profile-actions,
body.vyral-guest .profile-grid,
body.vyral-guest [data-action="follow"],
body.vyral-guest [data-action="message"],
body.vyral-guest [data-action="subscribe"] {
  pointer-events: none;
  opacity: .48;
}

.vyral-presence-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border: 3px solid #0b0c11;
  border-radius: 50%;
  background: #79808f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.vyral-presence-dot.online {
  background: #2eea9a;
  box-shadow: 0 0 14px rgba(46, 234, 154, .85);
}

.vyral-presence-dot.quiet {
  background: #ff4665;
}

.vyral-presence-dot.quiet::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(-45deg);
}

.vyral-message-bubble {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.vyral-message-bubble.is-deleted {
  opacity: .55;
  font-style: italic;
}

.vyral-message-body {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.vyral-message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  opacity: .64;
  font-size: 9px;
}

.vyral-message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px -2px -3px;
}

.vyral-message-reaction {
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  color: #fff;
  font-size: 11px;
}

.vyral-message-reaction.mine {
  border-color: #18d9ff;
  background: rgba(24, 217, 255, .14);
}

.vyral-voice-player {
  width: min(280px, 64vw);
  height: 34px;
  accent-color: #ff2d67;
}

.vyral-recording {
  color: #ff95ad !important;
  border-color: rgba(255, 45, 103, .55) !important;
  animation: vyralRecord 1s ease-in-out infinite;
}

@keyframes vyralRecord {
  50% { box-shadow: 0 0 0 7px rgba(255, 45, 103, 0); }
}

.vyral-message-menu {
  display: grid;
  gap: 8px;
}

.vyral-message-menu-reactions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.vyral-message-menu-reactions button {
  min-height: 44px;
  border: 1px solid var(--v7-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
}

.vyral-call-overlay {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 5, 9, .78);
  backdrop-filter: blur(24px);
}

.vyral-adaptive-gate {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 20% 0, rgba(255,45,103,.2), transparent 36%), radial-gradient(circle at 90% 10%, rgba(24,217,255,.18), transparent 38%), rgba(5,6,10,.96);
}

.vyral-adaptive-card {
  width: min(520px, 100%);
  padding: clamp(23px, 5vw, 38px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: #101119;
  box-shadow: 0 34px 110px rgba(0,0,0,.58);
}

.vyral-adaptive-card h2 { margin: 8px 0; font-size: clamp(32px, 6vw, 48px); letter-spacing: -.06em; line-height: 1; }
.vyral-adaptive-card p { color: var(--muted); line-height: 1.58; }
.vyral-adaptive-code { width: 100%; height: 62px; margin: 15px 0; border: 1px solid var(--v7-line); border-radius: 16px; background: rgba(255,255,255,.06); color: #fff; text-align: center; font-size: 28px; font-weight: 1000; letter-spacing: .22em; }

.vyral-call-card {
  width: min(430px, 100%);
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0, rgba(24, 217, 255, .19), transparent 45%), #101119;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}

.vyral-call-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .8);
  border-radius: 32px;
  background: linear-gradient(135deg, #ff2d67, #18d9ff);
  font-size: 36px;
  font-weight: 1000;
}

.vyral-call-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vyral-call-card p { margin-top: 7px; color: var(--muted); }
.vyral-call-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.vyral-call-actions button { min-width: 120px; min-height: 48px; }

.vyral-ban-banner,
.vyral-deleted-banner {
  position: relative;
  z-index: 4;
}

.vyral-remote-profile.is-banned .profile-grid,
.vyral-remote-profile.is-banned .v7-profile-actions,
.vyral-remote-profile.is-deleted .profile-grid,
.vyral-remote-profile.is-deleted .v7-profile-actions,
.vyral-remote-profile.is-deleted .profile-tabs {
  display: none !important;
}

.vyral-deleted-banner { background: linear-gradient(135deg, rgba(182,32,61,.95), rgba(100,16,36,.95)) !important; }

@media (max-width: 900px) {
  .v7-profile-actions { gap: 7px; }
  .v7-profile-actions .v7-btn { flex: 1 1 calc(50% - 7px); min-width: 0; }
  .v7-dm-shell { height: calc(100dvh - 92px); min-height: 0; }
  .v7-chat { min-height: 0; }
  .v7-chat-messages { min-height: 0; }
}

@media (max-width: 620px) {
  .v7-auth-shell { min-height: 100dvh; height: auto; overflow-x: hidden; }
  .v7-auth-main, .v7-auth-form { width: 100%; min-width: 0; padding-inline: 14px; }
  .v7-auth-hero { display: none; }
  .vyral-auth-floating-help { position: static; width: calc(100% - 28px); margin: 8px 14px 18px; justify-content: center; }
  .v7-turnstile { overflow: hidden; }
  .v7-turnstile iframe { max-width: 100% !important; transform-origin: center; }
  .v7-profile-cover { height: 170px; }
  .v7-profile-main { padding-inline: 12px; }
  .v7-profile-top { margin-top: -50px; align-items: flex-end; gap: 12px; }
  .v7-avatar-frame { width: 104px; height: 104px; }
  .v7-profile-identity h1 { font-size: 28px; letter-spacing: -.05em; }
  .v7-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid.v7-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vyral-guest-banner { bottom: calc(68px + var(--vyral-safe-bottom)); }
  .vyral-guest-banner span { font-size: 11px; }
  .vyral-guest-banner button { padding-inline: 12px; }
  .vyral-message-menu-reactions { grid-template-columns: repeat(3, 1fr); }
  .vyral-call-card { padding: 22px 18px; }
}

@media (min-width: 1100px) {
  .v7-profile-main { padding-inline: clamp(24px, 4vw, 64px); }
  .v7-profile-actions {
    display: grid;
    grid-template-columns: 48px minmax(118px, 1.2fr) repeat(4, minmax(0, 1fr));
    align-items: center;
  }
  .v7-profile-actions .v7-btn { width: 100%; min-width: 0; padding-inline: 10px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .vyral-recording,
  .v7-avatar-frame,
  .v7-turnstile-loading i { animation: none !important; }
}

/* Hardening for mobile layouts: no child may force a horizontally draggable viewport. */
img,video,canvas,svg,iframe{max-width:100%;}
.page-content>*,.v7-profile-main>*,.vyral-account-page>*,.v7-auth-main>*{min-width:0;}
@supports not (overflow: clip){html,body{overflow-x:hidden;}}


/* Production marketplace ------------------------------------------------ */
.vyral-marketplace{padding:22px clamp(14px,3vw,30px) 120px;display:grid;gap:18px;max-width:1180px;margin:0 auto;width:100%}
.vyral-market-hero{position:relative;overflow:hidden;min-height:330px;padding:clamp(28px,5vw,58px);border:1px solid rgba(255,255,255,.11);border-radius:34px;background:radial-gradient(circle at 78% 20%,rgba(26,217,255,.18),transparent 30%),radial-gradient(circle at 18% 15%,rgba(255,45,103,.23),transparent 34%),linear-gradient(145deg,#12131c,#090a10 65%);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;box-shadow:0 30px 80px rgba(0,0,0,.26)}
.vyral-market-hero:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);pointer-events:none}
.vyral-market-hero>div:first-child{position:relative;z-index:1;max-width:720px}.vyral-market-hero h1{font-size:clamp(48px,8vw,88px);line-height:.9;letter-spacing:-.075em;margin:10px 0 18px;max-width:760px}.vyral-market-hero p{max-width:620px;color:rgba(255,255,255,.66);font-size:clamp(15px,2vw,19px);line-height:1.55;font-weight:720}.vyral-market-trust{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.vyral-market-trust span,.vyral-market-footer span{display:inline-flex;align-items:center;gap:8px}.vyral-market-trust span{padding:9px 12px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.055);font-size:12px;font-weight:900;color:rgba(255,255,255,.76)}
.vyral-market-orb{position:relative;z-index:1;width:clamp(120px,16vw,190px);aspect-ratio:1;border-radius:38%;display:grid;place-items:center;background:linear-gradient(145deg,#ff2d67,#8b4dff 52%,#1bdcff);box-shadow:0 24px 80px rgba(103,61,255,.35),inset 0 0 0 1px rgba(255,255,255,.28);transform:rotate(8deg)}.vyral-market-orb svg{width:44%;height:44%;transform:rotate(-8deg)}
.vyral-market-toolbar{display:flex;align-items:center;gap:16px;padding:17px 19px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(255,255,255,.035)}.vyral-market-toolbar>div{display:grid;gap:3px;min-width:0}.vyral-market-toolbar b{font-size:17px}.vyral-market-toolbar span{font-size:12px;color:var(--muted)}.vyral-market-toolbar>a{margin-left:auto;text-decoration:none;white-space:nowrap}
.vyral-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.vyral-market-card{position:relative;overflow:hidden;min-height:260px;padding:25px;border:1px solid rgba(255,255,255,.1);border-radius:27px;background:linear-gradient(150deg,rgba(255,255,255,.065),rgba(255,255,255,.026));display:flex;flex-direction:column}.vyral-market-card.featured{background:radial-gradient(circle at 90% 10%,rgba(24,217,255,.15),transparent 35%),linear-gradient(150deg,rgba(255,45,103,.1),rgba(255,255,255,.03));border-color:rgba(255,120,172,.24)}.vyral-market-card h2{font-size:clamp(25px,3vw,38px);letter-spacing:-.045em;margin:20px 0 8px;line-height:1}.vyral-market-card p{color:var(--muted);line-height:1.55;max-width:560px}.vyral-market-card code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#8eeaff}.vyral-market-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.vyral-market-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.09)}.vyral-market-icon svg{width:23px;height:23px}.vyral-market-buy{display:flex;align-items:end;gap:12px;margin-top:auto;padding-top:26px}.vyral-market-buy>b{font-size:clamp(25px,3vw,34px);letter-spacing:-.04em}.vyral-market-buy .v7-btn{margin-left:auto}.vyral-market-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 20px;padding:8px;color:var(--muted);font-size:12px;font-weight:760}.vyral-market-footer svg{width:16px;height:16px}
@media(max-width:760px){.vyral-marketplace{padding-inline:10px}.vyral-market-hero{grid-template-columns:1fr;min-height:auto;border-radius:26px;padding:28px 22px}.vyral-market-orb{width:104px;border-radius:30px}.vyral-market-grid{grid-template-columns:1fr}.vyral-market-toolbar{align-items:flex-start;flex-direction:column}.vyral-market-toolbar>a{margin-left:0}.vyral-market-buy{align-items:stretch;flex-direction:column}.vyral-market-buy .v7-btn{margin-left:0;width:100%}}
