:root {
  --accent: #ffb7c5;
  --accent-deep: #e879a9;
  --text: #f8fafc;
  --muted: #94a3b8;
  --bg: #0b0a0f;
  --surface: rgba(12, 10, 16, 0.55);
  --line: rgba(255, 183, 197, 0.18);
  --font: "Outfit", sans-serif;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 121, 169, 0.55) rgba(7, 6, 10, 0.85);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #07060a;
  position: relative;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(7, 6, 10, 0.85);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 183, 197, 0.55), rgba(232, 121, 169, 0.7));
  border-radius: 999px;
  border: 2px solid rgba(7, 6, 10, 0.85);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 183, 197, 0.85), rgba(232, 121, 169, 0.95));
  border: 2px solid rgba(7, 6, 10, 0.85);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 10, 0.35) 0%, rgba(7, 6, 10, 0.62) 40%, rgba(7, 6, 10, 0.88) 100%),
    url("/assets/hero-sakura.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: siteBgDrift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -12%;
  width: 12px;
  height: 10px;
  border-radius: 70% 10% 70% 10%;
  background: linear-gradient(135deg, #ffd6e0 0%, #ffb7c5 45%, #e879a9 100%);
  opacity: 0.85;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 2px 4px rgba(232, 121, 169, 0.25));
  will-change: transform, opacity;
}

.petal.soft {
  background: linear-gradient(135deg, #fff0f5 0%, #ffc4d0 60%, #f0a0b8 100%);
  opacity: 0.65;
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift), 115vh, 0) rotate(720deg);
    opacity: 0.15;
  }
}

@keyframes siteBgDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1%); }
}

.topbar,
main,
.hero,
.site-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  z-index: 40;
}

.modal {
  z-index: 60;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 4vw;
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.88), rgba(8, 6, 10, 0.25));
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topnav {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.user-menu {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius);
}

.user-chip:hover,
.user-menu.open .user-chip {
  color: var(--accent);
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.user-chip-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 0.1rem;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 180px;
  background: rgba(14, 12, 18, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 0.35rem;
  display: none;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.user-menu.open .user-dropdown {
  display: grid;
  gap: 0.15rem;
  animation: fadeUp 0.2s ease both;
}

.user-dropdown button,
.user-dropdown a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  box-sizing: border-box;
}

.user-dropdown button:hover,
.user-dropdown a:hover {
  background: rgba(255, 183, 197, 0.12);
  color: var(--accent);
}

.user-dropdown .sep {
  height: 1px;
  background: var(--line);
  margin: 0.2rem 0.35rem;
}

body.is-logged .topnav a.is-active {
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}

.topnav a.is-active {
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}

.tabs-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 5.5rem 4vw 3rem;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.35s ease both;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel.hero.is-active {
  display: grid;
  min-height: calc(100vh - 5.5rem);
  place-items: center;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a0f14;
}

.auth-banner {
  position: relative;
  z-index: 5;
  margin: 0.75rem 1.25rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(12, 10, 16, 0.85);
  font-size: 0.9rem;
}

.auth-banner.is-ok {
  border-color: #3d8f5c;
  color: #b8f0c8;
}

.auth-banner.is-err {
  border-color: #c45c5c;
  color: #ffc9c9;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

.hero-content {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 42rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 183, 197, 0.25));
}

.hero-brand {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1rem auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

main {
  padding: 0 4vw 4rem;
}

.panel,
.shop {
  max-width: 1120px;
  margin: 0 auto 3rem;
}

.panel-inner,
.shop-head {
  margin-bottom: 1.5rem;
}

.panel h2,
.shop-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.profile-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.discord-option {
  display: flex;
}

.discord-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  min-width: 260px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.discord-card:hover,
.discord-card.active {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
}

.discord-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #5865f2;
}

.discord-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.discord-card-meta strong {
  font-size: 1.05rem;
  color: var(--text);
}

.discord-card-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.discord-card-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  border: 1px solid rgba(88, 101, 242, 0.5);
  padding: 0.2rem 0.45rem;
}

.discord-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.discord-profile-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.discord-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(88, 101, 242, 0.55);
}

.char-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.char-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem 1rem;
  min-width: 240px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.char-card:hover,
.char-card.active {
  border-color: var(--accent-deep);
  background: rgba(232, 121, 169, 0.12);
}

.char-esc {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.char-esc-face {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 0.8;
  -webkit-mask: url("/assets/vectorInt.svg") no-repeat center / contain;
  mask: url("/assets/vectorInt.svg") no-repeat center / contain;
}

.char-esc-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  scale: 0.9;
  z-index: -1;
  pointer-events: none;
}

.char-esc-frame-inner {
  scale: 0.8;
  z-index: 1;
}

.char-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.char-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.char-card .char-meta > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-card {
  width: min(460px, 100%);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.profile-esc {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-esc-face {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 0.8;
  -webkit-mask: url("/assets/vectorInt.svg") no-repeat center / contain;
  mask: url("/assets/vectorInt.svg") no-repeat center / contain;
  filter: saturate(1.05) contrast(1.05);
}

.profile-esc-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  scale: 0.9;
  z-index: -1;
  pointer-events: none;
}

.profile-esc-frame-inner {
  scale: 0.8;
  z-index: 1;
}

.profile-avatar {
  display: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.profile-stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.8rem;
}

.profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  color: var(--text);
}

.profile-vips {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
}

.profile-vips h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-vips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.filter-btn.active,
.filter-btn:hover {
  color: #1a0f14;
  background: var(--accent);
  border-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-grid.product-grid-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vehicle-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vehicle-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vehicle-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.vehicle-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-deep), transparent 90%);
  opacity: 0.7;
}

.product {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 240px;
  transition: border-color 0.2s ease, transform 0.25s ease;
  animation: fadeUp 0.6s ease both;
  cursor: pointer;
}

.product:hover {
  border-color: var(--accent-deep);
  transform: translateY(-3px);
}

.product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  align-self: stretch;
  margin-bottom: 0.5rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  opacity: 1;
  display: block;
}

.product h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0;
}

.orders {
  display: grid;
  gap: 0.75rem;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  background: var(--surface);
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
}

.badge.delivered { color: #86efac; border-color: #86efac55; }
.badge.paid { color: var(--accent); border-color: var(--accent); }
.badge.pending { color: #fde68a; border-color: #fde68a55; }
.badge.failed { color: #fca5a5; border-color: #fca5a555; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: #141018;
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.product-detail-card {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
}

.product-detail-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}

.product-detail-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  padding: 0;
  display: block;
}

.product-detail-meta {
  min-width: 0;
}

.product-detail-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.product-detail-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.product-detail-body {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.product-detail-body h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-detail-desc {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.field[hidden] {
  display: none !important;
}

/* Remove setas do input de quantidade de gemas */
#gems-custom-amount,
input.no-spinner {
  -moz-appearance: textfield;
  appearance: textfield;
}

#gems-custom-amount::-webkit-outer-spin-button,
#gems-custom-amount::-webkit-inner-spin-button,
input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field select,
.field input {
  font-family: inherit;
  padding: 0.65rem;
  background: #0b0a0f;
  color: var(--text);
  border: 1px solid var(--line);
}

.error {
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2rem 4vw 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.success-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 6, 12, 0.7), var(--bg)),
    url("/assets/shibuya-bg-shop.png") center / cover no-repeat;
}

.success-wrap {
  text-align: center;
  padding: 2rem;
  max-width: 28rem;
}

.success-logo {
  width: 80px;
  margin: 0 auto 1rem;
}

.success-wrap h1 {
  margin: 0 0 0.75rem;
  font-size: 2.5rem;
}

.screen-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.screen-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.screen-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.screen-hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.screen-features {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.screen-features li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.screen-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.screen-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(12, 10, 16, 0.72);
  backdrop-filter: blur(8px);
}

.screen-card h3 {
  margin: 0 0 0.35rem;
}

.screen-field span em {
  float: right;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.screen-create-btn {
  margin-top: 0.5rem;
}

.screen-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.screen-divider::before,
.screen-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.screen-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.screen-code-row input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-shell.is-hidden,
.screen-room.is-hidden,
#screen-lobby[hidden],
#screen-room[hidden] {
  display: none !important;
}

#screen-nick {
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
}

/* —— Sala ocupa a aba inteira —— */
html.screen-in-room,
body.screen-in-room {
  overflow: hidden;
}

html.screen-sharing,
body.screen-sharing {
  overflow: hidden !important;
}

body.screen-in-room .site-bg {
  display: none !important;
}

body.screen-in-room .topbar,
body.screen-in-room .auth-banner,
body.screen-in-room .site-footer,
body.screen-in-room .site-petals {
  display: none !important;
}

body.screen-in-room .tabs-wrap {
  padding: 0;
  max-width: none;
  width: 100%;
}

body.screen-in-room .tab-panel.screen-panel.is-active {
  padding: 0;
  max-width: none;
  width: 100%;
  min-height: 100vh;
}

body.screen-in-room .screen-inner {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0;
}

body.screen-in-room #screen-lobby {
  display: none !important;
}

body.screen-in-room .screen-room {
  display: block;
  width: 100%;
  min-height: 100vh;
}

body.screen-in-room .screen-room-shell {
  min-height: 100vh;
  height: 100vh;
  border-radius: 0;
  border: 0;
  width: 100%;
  max-width: none;
}

body.is-room-open #tela .screen-inner,
body.is-room-open .screen-room.is-open {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.is-room-open .screen-room.is-open .screen-room-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: 0 !important;
}

body.screen-sharing .screen-room-stage,
body.screen-sharing .screen-room-stage.has-streams {
  overflow: hidden;
}

body.screen-sharing .screen-room-stage.has-streams .screen-video-card {
  position: absolute;
  inset: 0;
}

body.screen-sharing .screen-room-stage.has-streams .screen-video-card video {
  object-fit: cover;
}

body.screen-in-room .site-footer {
  display: none;
}

.screen-room-shell {
  border: 1px solid rgba(255, 183, 197, 0.14);
  border-radius: 14px;
  background: rgba(8, 6, 12, 0.88);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  min-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
}

.screen-room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 183, 197, 0.1);
  background: rgba(10, 8, 14, 0.72);
}

.screen-room-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.screen-room-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.screen-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 197, 0.28);
  background: rgba(255, 183, 197, 0.08);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.screen-room-pill:hover {
  background: rgba(255, 183, 197, 0.14);
}

.screen-room-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.screen-room-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.screen-room-online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.65);
}

.screen-room-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  min-height: 0;
}

.screen-room-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-right: 1px solid rgba(255, 183, 197, 0.1);
  background: rgba(6, 5, 9, 0.55);
  min-width: 0;
}

.screen-room-block {
  display: grid;
  gap: 0.65rem;
}

.screen-room-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen-room-codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 183, 197, 0.16);
  background: rgba(12, 10, 16, 0.72);
}

.screen-room-codebox strong {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.screen-icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 183, 197, 0.1);
  color: var(--accent);
  cursor: pointer;
}

.screen-icon-btn:hover {
  background: rgba(255, 183, 197, 0.18);
}

.screen-link-btn {
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.screen-room-peers-block {
  flex: 0 0 auto;
  overflow: hidden;
}

.screen-peer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  overflow: hidden;
  align-content: start;
}

.screen-peer-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: rgba(12, 10, 16, 0.55);
  border: 1px solid transparent;
  align-self: start;
}

.screen-peer-item.is-you {
  border-color: rgba(255, 183, 197, 0.22);
  background: rgba(255, 183, 197, 0.06);
}

.screen-peer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 183, 197, 0.35), rgba(232, 121, 169, 0.45));
  color: #fff;
  flex-shrink: 0;
}

.screen-peer-meta {
  flex: 1;
  min-width: 0;
}

.screen-peer-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.screen-peer-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
}

.screen-peer-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: rgba(255, 183, 197, 0.18);
  color: var(--accent);
  flex-shrink: 0;
}

.screen-peer-name svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.screen-peer-live {
  font-size: 0.68rem;
  color: #4ade80;
}

.screen-peer-item.is-sharing {
  cursor: pointer;
}

.screen-peer-item.is-sharing:hover {
  border-color: rgba(255, 183, 197, 0.35);
  background: rgba(255, 183, 197, 0.08);
}

.screen-peer-item.is-selected {
  border-color: rgba(255, 183, 197, 0.5);
  background: rgba(255, 183, 197, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 183, 197, 0.12);
}

.screen-peer-pick {
  font-size: 0.68rem;
  color: rgba(255, 183, 197, 0.72);
  margin-top: 0.08rem;
}

.screen-peer-item.is-selected .screen-peer-pick {
  color: var(--accent);
  font-weight: 600;
}

.screen-room-self {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 183, 197, 0.12);
  background: rgba(12, 10, 16, 0.72);
  font-size: 0.74rem;
  color: var(--muted);
  flex-shrink: 0;
}

.screen-self-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a0f14;
  flex-shrink: 0;
}

.screen-self-text {
  font-size: 0.74rem;
  line-height: 1.3;
}

.screen-self-text strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
}

.screen-room-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  background: #07060a;
}

.screen-stage-empty[hidden],
.screen-stage-empty.is-hidden {
  display: none !important;
}

.screen-stage-empty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem 1.5rem 5rem;
  gap: 0.65rem;
}

.screen-stage-empty h3 {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
}

.screen-stage-empty p {
  margin: 0;
  max-width: 26rem;
}

.screen-stage-icon {
  color: rgba(255, 183, 197, 0.35);
}

.screen-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.screen-videos[hidden],
.screen-videos.is-hidden {
  display: none !important;
}

.screen-videos {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
}

.screen-room-stage.has-streams .screen-videos {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.screen-room-stage.has-streams .screen-video-card {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  border-radius: 0;
  border: 0;
}

.screen-room-stage.has-streams .screen-video-card:not(.is-active) {
  display: none !important;
}

.screen-room-stage.has-streams .screen-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.screen-room-stage.has-streams .screen-room-dock {
  z-index: 4;
}

.screen-room-stage.has-streams .screen-room-status,
.screen-room-stage.has-streams .screen-room-error {
  z-index: 3;
}

.screen-video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 183, 197, 0.12);
}

.screen-video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.screen-video-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.78rem;
}

.screen-room-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 4.5rem;
  margin: 0;
  text-align: center;
}

.screen-room-status {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.8rem;
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
}

.screen-room-dock {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 197, 0.18);
  background: rgba(10, 8, 14, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.screen-dock-share {
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  box-shadow: 0 0 24px rgba(232, 121, 169, 0.35);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 183, 197, 0.16);
  background: rgba(255, 183, 197, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
}

.btn-icon:hover {
  background: rgba(255, 183, 197, 0.14);
  color: var(--accent);
}

.screen-dock-leave:hover {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

@media (max-width: 900px) {
  .screen-shell {
    grid-template-columns: 1fr;
  }

  .screen-room-layout {
    grid-template-columns: 1fr;
  }

  .screen-room-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 183, 197, 0.1);
  }

  .screen-room-peers-block {
    flex: 0;
  }

  .screen-peer-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .topnav { display: none; }
  .order-row {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding-top: 7rem;
  }
}
