:root {
  --bg: #07070f;
  --bg2: #12121f;
  --card: rgba(21, 21, 37, 0.92);
  --border: #2f2f45;
  --text: #f0f0ff;
  --muted: #9a9ab0;
  --gold: #ffd43b;
  --red: #ff6b6b;
  --green: #69db7c;
  --blue: #74c0fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Figtree, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Fundo premium: fundo.png embassado atras do card */
body.auth-page,
body.hub-page {
  position: relative;
  background: #07070f;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bg::before {
  content: '';
  position: absolute;
  inset: -56px;
  background: url('../img/fundo.png') center center / cover no-repeat;
  filter: blur(18px) saturate(1.25) brightness(0.88);
  transform: scale(1.12);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(110, 55, 190, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(200, 140, 40, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(7, 7, 15, 0.2) 0%, rgba(7, 7, 15, 0.62) 100%);
}

.card.wide.hub-wide {
  max-width: min(1400px, 100%);
  padding: 16px 16px 20px;
  background: rgba(12, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 212, 59, 0.06) inset,
    0 0 60px rgba(90, 40, 160, 0.12);
}

/* News carousel — fundo + logo centro + texto */
.news-rail {
  position: relative;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a14;
  aspect-ratio: 5 / 1;
  width: 100%;
  min-height: 160px;
  max-height: 280px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.news-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.news-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-slide .news-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.news-logo {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(110px, 18vw, 200px);
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.45)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  object-fit: contain;
  pointer-events: none;
}

.news-caption {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  top: auto;
  z-index: 2;
  max-width: min(48%, 380px);
  padding: 10px 16px 12px 20px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(4, 4, 12, 0.55) 45%,
    rgba(4, 4, 12, 0.78) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.news-caption-left {
  left: 0;
  right: auto;
  bottom: 0;
  top: auto;
  transform: none;
  max-width: min(42%, 420px);
  padding: 28px 22px 14px 20px;
  background: linear-gradient(
    90deg,
    rgba(2, 4, 14, 0.92) 0%,
    rgba(2, 4, 14, 0.78) 55%,
    rgba(2, 4, 14, 0.2) 88%,
    transparent 100%
  );
  text-align: left;
  align-items: flex-start;
  gap: 4px;
}

.news-caption strong {
  font-family: Syne, Figtree, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.news-caption-left strong {
  font-size: clamp(0.98rem, 1.6vw, 1.22rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.news-caption span {
  color: #d0d0e4;
  font-size: clamp(0.72rem, 1.05vw, 0.84rem);
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.news-caption-left span {
  color: #e4e8f4;
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  max-width: 22rem;
}

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 20, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.news-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.news-prev { left: 10px; }
.news-next { right: 10px; }

.news-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.news-dot.on { background: var(--gold); }

/* Toast */
.mc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 16, 28, 0.92);
  border: 1px solid rgba(255, 212, 59, 0.45);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.integ-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
  overflow: visible;
}

.integ-head h3 {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
}
.integ-head .badge {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-right: 1px;
}
.tl-frames {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.tl-frame-btn {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #0a0a12;
  padding: 4px;
  cursor: pointer;
}
.tl-frame-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tl-frame-btn.on {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(125,211,252,0.35);
}
.tl-nudge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-nudge input[type="number"] {
  width: 72px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tl-nudge-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 28, 0.9);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}
.tl-nudge-btn:hover {
  border-color: #7dd3fc;
  color: #7dd3fc;
}
.tl-nudge-btn:active {
  transform: scale(0.96);
}
.modal-gift-meta {
  max-width: min(960px, 100%);
  width: min(96vw, 960px);
}
.vt-mult-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,212,59,0.25);
}
.vt-coin {
  font-size: 1.8rem;
  line-height: 1;
}
.vt-mult-card input {
  width: 72px;
}
.vt-mult-label {
  font-weight: 800;
  color: #ffd43b;
  letter-spacing: 0.02em;
}
.gm-pick-search { margin-bottom: 8px; }
.gm-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px !important;
}
.gm-compact-row > label {
  margin: 0;
  min-width: 110px;
}
.gm-orient {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.gm-orient .tl-check {
  margin: 0;
  white-space: nowrap;
}
.gm-compact-row input[type="number"] {
  width: 72px;
  margin: 0;
}
.gm-pick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}
.gm-pick-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: #12121c;
  padding: 6px 4px;
  cursor: pointer;
  text-align: center;
  color: #cfd5e6;
  font-size: 0.68rem;
}
.gm-pick-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}
.gm-pick-item:hover { border-color: #7dd3fc; }
.gm-pick-item.on {
  border-color: #ffd43b;
  box-shadow: 0 0 0 1px rgba(255, 212, 59, 0.35);
}
.gm-selected {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.gm-sel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
}
.gm-sel-row.on {
  border-color: rgba(100, 180, 255, 0.55);
  background: rgba(40, 80, 140, 0.28);
}
.gm-sel-row img { width: 28px; height: 28px; object-fit: contain; }
.gm-sel-row input { width: 64px; }
.gm-sel-row button { margin-left: auto; }

.rl-seg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.rl-seg-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rl-seg-row input[type="color"] {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: #0c0c16;
  cursor: pointer;
}
.rl-seg-row input[type="text"] {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #0c0c16;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.rl-seg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.rl-gift-sel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(12, 12, 22, 0.85);
  border: 1px solid rgba(255,255,255,.1);
}
.rl-gift-sel img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.rl-gift-sel strong { color: #fff; font-size: 0.95rem; }

.integ-card {
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    linear-gradient(165deg, rgba(28, 24, 48, 0.95), rgba(10, 10, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.integ-card .card-actions .btn {
  cursor: pointer;
}

.integ-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  background:
    linear-gradient(165deg, rgba(28, 24, 48, 0.95), rgba(10, 10, 20, 0.98)) padding-box,
    linear-gradient(135deg, #38bdf8, #818cf8, #a855f7, #38bdf8) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(56, 189, 248, 0.18),
    0 0 36px rgba(168, 85, 247, 0.16);
}

.integ-featured {
  border-color: rgba(116, 192, 252, 0.35);
  box-shadow: 0 12px 36px rgba(40, 90, 180, 0.18);
}

.integ-featured:hover {
  border-color: transparent;
}

.integ-card .preview-box {
  margin: 0 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(60, 120, 200, 0.22), transparent 68%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(20, 40, 80, 0.35), transparent 55%),
    #06060e;
  height: 240px;
  overflow: hidden;
  opacity: 1;
  cursor: default;
}

.integ-card .preview-box.show { opacity: 1; }
.integ-card .preview-box.frozen { opacity: 1; }
.integ-card .preview-box.no-frame { height: auto; opacity: 1; }

.integ-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  transform: none;
  margin: 0;
  pointer-events: none;
}

/* Carrossel: um pouco maior no card */
.integ-card[data-id="gift-counter"] iframe {
  transform: scale(0.92);
  transform-origin: center center;
}

.integ-card .card-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1 1 auto;
}

.card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  align-items: stretch;
  justify-content: center;
}

.card-actions .btn {
  flex: 1 1 0;
  margin-top: 0;
  white-space: nowrap;
  padding: 9px 8px;
  font-size: 0.78rem;
}

.card-actions .btn.primary {
  width: auto;
  margin-top: 0;
  flex: 1.15 1 0;
}

.card-actions .btn-gift-rain,
.card-actions .btn-settings {
  border-color: rgba(125, 211, 252, 0.45);
  color: #7dd3fc;
  background: transparent;
  flex: 0.85 1 0;
}

.card-actions .btn-settings:hover,
.card-actions .btn-gift-rain:hover {
  border-color: #7dd3fc;
  color: #bae6fd;
  background: rgba(125, 211, 252, 0.08);
}

.gift-rain-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a14;
}

.gift-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #12121f;
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: center;
}

.gift-pick-btn img,
.gift-pick-ph {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.gift-pick-ph {
  display: grid;
  place-items: center;
  background: #1e1e32;
  font-weight: 800;
}

.gift-pick-btn.on {
  border-color: #74c0fc;
  box-shadow: 0 0 0 1px rgba(116, 192, 252, 0.3);
}

.gift-pick-btn span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-style { max-width: 440px; }
.modal-style.modal-with-preview {
  width: min(920px, 100%);
  max-width: min(920px, 100%);
}
.modal-style.modal-video-alert,
.modal-card.modal-video-alert {
  width: min(1120px, 96vw) !important;
  max-width: min(1120px, 96vw) !important;
}
.modal-video-indicator {
  width: min(520px, 96vw);
  max-width: min(520px, 96vw);
}
.vi-top-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 12px;
}
.vi-top-row .va-ind-box {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.vi-preview-side {
  flex: 0 0 148px;
  width: 148px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080810;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vi-preview-side .settings-live-badge {
  position: static;
  align-self: flex-start;
  font-size: 0.65rem;
}
.vi-preview-stage,
.vi-preview-stage.settings-live-stage {
  align-self: center;
  width: 132px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  aspect-ratio: auto !important;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.vi-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
@media (max-width: 720px) {
  .vi-top-row { flex-wrap: wrap; }
  .vi-preview-side { flex: 0 0 auto; margin-left: auto; }
  .vi-preview-stage,
  .vi-preview-stage.settings-live-stage {
    width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    aspect-ratio: 1 / 1 !important;
  }
}
.vi-gift-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vi-gift-row {
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 18, 0.72);
}
.vi-gift-row .vi-gift {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.modal-video-alert {
  width: min(1120px, 96vw);
  max-width: min(1120px, 96vw);
}
.modal-video-alert .modal-head { margin-bottom: 6px; }
.modal-video-alert .va-help {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.35;
}
.va-layout {
  display: flex;
  align-items: stretch;
  gap: 22px;
}
.va-main {
  flex: 1 1 auto;
  min-width: 420px;
  display: flex;
  flex-direction: column;
}
.va-obs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}
.va-ind-box {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.va-ind-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c5cad8;
}
.va-ind-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.va-ind-modes .tl-check { margin: 0; }
.va-ind-opacity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.va-ind-opacity label { min-width: 48px; color: var(--muted, #8b93a7); }
.va-ind-opacity input[type="range"] { flex: 1; max-width: 220px; }
.va-ind-opacity span { min-width: 40px; color: #a5d8ff; font-weight: 700; }

.va-preview-block {
  flex: 0 0 260px;
  width: 260px;
  margin-top: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080810;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}
.va-preview-block .settings-live-badge {
  position: static;
  align-self: flex-start;
  margin-bottom: 0;
  font-size: 0.65rem;
}
.va-preview-stage,
.va-preview-stage.settings-live-stage {
  align-self: stretch;
  width: 100% !important;
  flex: 1 1 auto;
  min-height: 220px !important;
  max-height: min(420px, 55vh) !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.va-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.video-alert-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  overflow: visible;
}

/* Vídeo alerta — slots limpos (sem overlap) */
.va-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 18, 0.72);
  min-width: 0;
  box-sizing: border-box;
}
.va-n {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(116, 192, 252, 0.12);
  border: 1px solid rgba(116, 192, 252, 0.28);
  color: #a5d8ff;
  font-weight: 800;
  font-size: 0.85rem;
}
.va-row-head {
  display: grid;
  grid-template-columns: 36px 140px minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
}
.va-row[data-trigger="hotkey"] .va-gift-wrap,
.va-row[data-trigger="hotkey"] .va-user,
.va-row[data-trigger="gift"] .va-hotkey,
.va-row[data-trigger="gift"] .va-user,
.va-row[data-trigger="member"] .va-gift-wrap,
.va-row[data-trigger="member"] .va-hotkey {
  display: none !important;
}
.va-row[data-trigger="hotkey"] .va-row-head,
.va-row[data-trigger="member"] .va-row-head {
  grid-template-columns: 36px 140px minmax(220px, 1fr);
}
.va-row-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-left: 48px;
}
.va-row-media .btn.small {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.va-row-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  padding-left: 48px;
}
.va-trigger, .va-gift, .va-hotkey, .va-user, .sna-user, .sna-sfx {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 8px 12px;
  box-sizing: border-box;
}
.va-gift-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.va-gift-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.va-gift-wrap .va-gift {
  flex: 1 1 auto;
  min-width: 140px;
}
.va-gift[readonly] { cursor: pointer; }
.va-file-label {
  font-size: .78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.va-label-wrap, .va-chroma-wrap {
  font-size: .8rem;
  white-space: nowrap;
  margin: 0;
}
.modal-video-alert .modal-actions {
  gap: 10px;
}
.modal-video-alert .modal-actions .btn {
  width: auto !important;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .va-layout {
    flex-direction: column;
  }
  .va-preview-block {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .va-preview-stage,
  .va-preview-stage.settings-live-stage {
    min-height: 180px !important;
    max-height: 280px !important;
  }
}
@media (max-width: 560px) {
  .va-row-head { grid-template-columns: 32px 1fr; }
  .va-row-head .va-trigger { grid-column: 2; }
  .va-row-head .va-gift-wrap,
  .va-row-head .va-hotkey,
  .va-row-head .va-user { grid-column: 1 / -1; }
  .va-row-media, .va-row-opts { padding-left: 0; }
}

/* Sem barras de rolagem visíveis nos modais */
.modal-back,
.modal-card,
.video-alert-rows,
.settings-live-form {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-back::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.video-alert-rows::-webkit-scrollbar,
.settings-live-form::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.modal-top-likers.modal-with-preview { max-width: min(960px, 100%); }

.settings-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
}
.settings-live-form { min-width: 0; }
.settings-live-preview {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(80, 40, 150, 0.2), transparent 70%),
    #080810;
  padding: 10px;
  min-height: 220px;
}
.settings-live-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #74c0fc;
  border: 1px solid rgba(116, 192, 252, 0.35);
  background: rgba(8, 8, 16, 0.75);
  white-space: nowrap;
  box-sizing: border-box;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: max-content;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  white-space: nowrap;
  box-sizing: border-box;
}
.settings-live-stage {
  position: relative;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  max-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(40, 50, 90, 0.35), transparent 70%),
    #050508;
}
.settings-live-stage-top3 {
  aspect-ratio: 16 / 10;
  min-height: 200px;
  max-height: 280px;
}
/* Ranking: a prévia usa o card inteiro (sem letterbox) */
.modalRankFillPreview .settings-live-preview {
  min-height: 0;
  align-self: stretch;
  align-items: flex-start;
}
.modalRankFillPreview .settings-live-stage {
  flex: 1;
  align-self: stretch;
  width: 100%;
  aspect-ratio: auto;
  min-height: 260px;
  max-height: min(48vh, 420px);
  height: auto;
}
.settings-live-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.settings-live-stage::before {
  content: 'A carregar prévia…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: #8b93a7;
  pointer-events: none;
  z-index: 0;
}
.settings-live-stage.is-ready::before { display: none; }
.settings-live-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.tl-section {
  margin: 12px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b93a7;
}
.tl-section:first-child { margin-top: 0; }
.sa-row {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-row + .sa-row { margin-top: 10px; }
.sa-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sa-row-sfx {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sa-color {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.sa-color input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.tm-slots {
  display: grid;
  gap: 8px;
}
.tm-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}
.tl-row .tm-dur-part {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  white-space: nowrap;
}
.tm-dur-part span {
  min-width: 0;
  text-align: left;
  flex: 0 0 auto;
}
.tl-row .tm-dur-part input[type="number"] {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 5px 2px;
  box-sizing: border-box;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.tl-row .tm-dur-part input[type="number"]::-webkit-outer-spin-button,
.tl-row .tm-dur-part input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tm-dur-sep {
  font-weight: 800;
  color: rgba(255,255,255,.35);
  padding: 0;
  flex: 0 0 auto;
}
.tm-bonus-opts .tl-check { margin: 0; }
.tm-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.tm-slot-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf4;
  cursor: pointer;
  text-align: left;
}
.tm-slot-pick img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}
.tm-slot-pick strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-slot-pick > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(125, 211, 252, 0.15);
  color: #7dd3fc;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.tm-slot-sec {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  color: #9aa3b8;
  margin: 0;
}
.tm-slot-sec input {
  width: 72px;
  margin: 0;
}
.btn-settings.is-disabled,
.btn-settings:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.35);
  pointer-events: none;
}
.tl-range {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.tl-range input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #74c0fc;
}
.tl-range-val {
  min-width: 2.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: #e8ecf4;
}
@media (max-width: 720px) {
  .settings-live-layout { grid-template-columns: 1fr; }
  .settings-live-preview { position: static; }
  .settings-live-stage { max-height: 260px; aspect-ratio: 16 / 10; }
}

.pote-carousel {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.pote-arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #12121f;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.pote-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pote-slide {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 50% 40% at 50% 35%, rgba(80, 40, 150, 0.25), transparent 70%),
    #080810;
  padding: 18px 14px 14px;
  text-align: center;
  min-height: 220px;
}

.pote-slide.is-locked img {
  filter: grayscale(0.35) brightness(0.75);
}

.pote-slide img {
  width: min(100%, 180px);
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.pote-slide strong {
  display: block;
  font-family: Syne, Figtree, sans-serif;
  font-size: 1.1rem;
}

.pote-slide small {
  color: var(--muted);
  font-size: 0.8rem;
}

.pote-slide-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(8, 8, 16, 0.82);
}

.pote-slide-badge.active {
  color: var(--green);
  border-color: #2b8a3e;
}

.pote-slide-badge.locked {
  color: #ff8787;
  border-color: #803030;
}

.pote-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #3a3a52;
  cursor: pointer;
}

.pote-dot.on {
  background: #74c0fc;
  box-shadow: 0 0 0 3px rgba(116, 192, 252, 0.2);
}

.modal-overlay-preview {
  width: min(520px, 100%);
  padding-bottom: 16px;
}

.overlay-preview-stage {
  margin: 4px 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(90, 50, 170, 0.28), transparent 70%),
    #06060e;
  height: min(52vh, 420px);
  overflow: hidden;
}

.overlay-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.overlay-preview-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 18, 40, 0.85);
  border: 1px solid rgba(139, 124, 255, 0.22);
}

.overlay-preview-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c5cff, #3d2a8a);
  display: grid;
  place-items: center;
  font-family: Syne, Figtree, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.overlay-preview-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b7cff;
  font-weight: 700;
}

.overlay-preview-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.style-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0d0d18;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.style-card:hover { border-color: var(--gold); }
.style-card.on {
  border-color: #74c0fc;
  box-shadow: 0 0 0 1px rgba(116, 192, 252, 0.35);
}

.style-thumb {
  display: block;
  height: 110px;
  border-radius: 10px;
  background: #080810 center / contain no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.style-meta strong { display: block; font-size: 0.95rem; }
.style-meta small { color: var(--muted); font-size: 0.78rem; }

.pote-size-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pote-size-row label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.pote-size-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pote-size-controls input[type="number"] {
  width: 88px;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.pote-scale-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-top-likers { max-width: 520px; }
.modal-top-likers.modal-with-preview { max-width: min(960px, 100%); }
.tl-form { display: flex; flex-direction: column; gap: 10px; }
.tl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.tl-check input { width: auto; margin: 0; }
.tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 4px;
}
.tl-row label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tl-row input[type="number"],
.tl-row input[type="color"],
.tl-row select {
  width: 100%;
  margin: 0;
}
.tl-row input[type="color"] {
  height: 36px;
  padding: 2px;
  cursor: pointer;
}
@media (max-width: 560px) {
  .tl-grid { grid-template-columns: 1fr; }
}


body.auth-page .wrap,
body.hub-page .wrap {
  position: relative;
  z-index: 1;
}

h1, h2, h3 { font-family: Syne, Figtree, sans-serif; margin: 0 0 0.4rem; font-weight: 700; }

.auth-tagline {
  font-family: Figtree, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 20em;
  margin-left: auto;
  margin-right: auto;
}


a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: rgba(16, 16, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.card.wide { max-width: 920px; }

.hub-wrap {
  align-items: flex-start;
  padding-top: 12px;
}

.mc-topbar {
  position: sticky;
  top: 10px;
  z-index: 100;
  margin: 16px auto 0;
  width: min(1400px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 28, 48, 0.96), rgba(12, 14, 28, 0.94));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.mc-topbar-left,
.mc-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.mc-topbar-left {
  overflow: hidden;
}

.mc-topbar-right {
  justify-self: end;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.mc-topbar-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Chave: Foguete (Turbo) ← → Bateria (Económico) */
.perf-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 28px 44px 28px;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: #0c101c;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.perf-switch:hover {
  border-color: rgba(255,255,255,.28);
}
.perf-switch-track {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}
.perf-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #74c0fc, #228be6);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .28s ease;
}
/* Económico → cinza-azulado */
.perf-switch[data-mode="perf"] .perf-switch-thumb {
  transform: translateX(22px);
  background: linear-gradient(180deg, #8b9bb4, #5c6b82);
}
/* Turbo → ciano / roxo Magic */
.perf-switch[data-mode="quality"] .perf-switch-thumb {
  transform: translateX(0);
  background: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
}
.perf-opt {
  position: relative;
  grid-row: 1;
  display: grid;
  place-items: center;
  z-index: 1;
  transition: color .2s ease, transform .2s ease;
}
.perf-opt-rocket { grid-column: 1; }
.perf-opt-battery { grid-column: 3; }
.perf-switch[data-mode="quality"] .perf-opt-rocket {
  color: #67e8f9;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7)) drop-shadow(0 0 8px rgba(168, 85, 247, 0.45));
  transform: scale(1.1);
}
.perf-switch[data-mode="perf"] .perf-opt-battery {
  color: #94a3b8;
  filter: drop-shadow(0 0 4px rgba(148, 163, 184, 0.4));
  transform: scale(1.08);
}
.perf-opt::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(8, 10, 18, 0.96);
  border: 1px solid rgba(255,255,255,.12);
  color: #e8ecf4;
  font: 700 0.68rem Figtree, system-ui, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 40;
}
.perf-opt:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.hub-perf .mc-topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.static-preview-shot {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(30, 40, 70, 0.55), rgba(10, 12, 22, 0.9)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,.02) 10px,
      rgba(255,255,255,.02) 20px
    );
  border-radius: 10px;
  color: #c5d0e8;
}
.static-preview-shot strong {
  font-size: 0.95rem;
  color: #fff;
}
.static-preview-shot span {
  font-size: 0.75rem;
  color: #8fa0c0;
}
.static-preview-shot em {
  font-size: 0.7rem;
  font-style: normal;
  color: #69db7c;
  opacity: 0.9;
}
.integ-card .preview-box.static-preview {
  opacity: 1;
  height: 160px;
}

.integ-card .preview-box.static-preview.has-cover {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #07070f;
}

.static-preview-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.mc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #121826;
  color: #9ec1ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.mc-pill.mc-version {
  color: #e8ffe8;
  border-color: rgba(105, 219, 124, 0.35);
  background: rgba(12, 28, 18, 0.85);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mc-version-text {
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.mc-version-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51cf66;
  box-shadow: 0 0 0 2px rgba(81, 207, 102, 0.25), 0 0 10px rgba(81, 207, 102, 0.85);
  flex-shrink: 0;
}

.hub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0 0 0 4px;
  border: 0;
  padding: 0;
}

.hub-tabs .btn-connect-tiktok {
  margin-left: 4px;
}

.btn-connect-tiktok {
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-connect-tiktok .connect-short { display: none; }

.btn-connect-tiktok.is-off {
  border-color: rgba(255, 107, 107, 0.75);
  color: #ffc9c9;
  background: rgba(42, 14, 14, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.15);
}

.btn-connect-tiktok.is-off:hover {
  border-color: #ff6b6b;
  color: #ffe3e3;
}

.btn-connect-tiktok.is-on {
  border-color: rgba(81, 207, 102, 0.85);
  color: #d3f9d8;
  background: rgba(12, 36, 18, 0.65);
  box-shadow: 0 0 0 1px rgba(81, 207, 102, 0.2), 0 0 12px rgba(81, 207, 102, 0.25);
}

.btn-connect-tiktok.is-on:hover {
  border-color: #51cf66;
  color: #ebffee;
}

.btn-sair {
  border-color: rgba(255, 135, 135, 0.4);
  color: #ffb4b4;
  background: rgba(42, 16, 16, 0.55);
}

.btn-sair:hover {
  border-color: #ff8787;
  color: #ffd0d0;
}

.hub-tabs-center { justify-self: center; }

.hub-tab {
  border: 1px solid var(--border);
  background: #12121f;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hub-tab.hub-tab-ico {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 12px;
  flex-shrink: 0;
}
.hub-tab.hub-tab-ico svg {
  display: block;
  opacity: 0.85;
  flex-shrink: 0;
}
.hub-tab-label {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hub-tab.hub-tab-ico:hover svg,
.hub-tab.hub-tab-ico.active svg {
  opacity: 1;
}

.hub-tab:hover { color: var(--text); border-color: #555; }
.hub-tab.active {
  color: var(--gold);
  border-color: #806000;
  background: linear-gradient(180deg, #2a2208, #15120a);
}

/* Maximizado: 4 cards + labels nos tabs */
body.hub-layout-wide .game-grid,
body.hub-layout-wide #gridIntegracao,
body.hub-layout-wide #gridAnimacoes,
body.hub-layout-wide #gridGames {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
}
body.hub-layout-wide .hub-tab.hub-tab-ico {
  width: auto;
  height: 40px;
  padding: 0 12px 0 10px;
  gap: 8px;
}
body.hub-layout-wide .hub-tab-label {
  display: inline;
}

/* Fallback por largura (caso a classe JS falhe / cache antigo) */
@media (min-width: 1100px) {
  .game-grid,
  #gridIntegracao,
  #gridAnimacoes,
  #gridGames {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .hub-tab.hub-tab-ico {
    width: auto;
    height: 40px;
    padding: 0 12px 0 10px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
  }
  .hub-tab-label {
    display: inline !important;
  }
}

.hub-panel.hidden { display: none !important; }

.user-menu { position: relative; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #10101c;
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-weight: 600;
}

.user-chip:hover { border-color: #5a5a78; }

.user-av-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
}

.user-av,
.user-av-ph {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  object-fit: cover;
  display: block;
}

.user-av {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.user-av.show {
  opacity: 1;
  pointer-events: auto;
}

.user-av-ph {
  z-index: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #5b4dff, #2a1f6e);
  font-size: 0.95rem;
  color: #fff;
}

.user-av-ph.hide { opacity: 0; }

.user-av-ph.big {
  position: relative;
  inset: auto;
  width: 88px;
  height: 88px;
  font-size: 2rem;
  border-width: 3px;
  opacity: 1;
}

.user-av-badge {
  position: absolute;
  left: -1px;
  bottom: -1px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #10101c;
  box-shadow: inset 0 0 0 2px #fff;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}

.user-name {
  font-size: 0.92rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.user-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #74c0fc;
  margin-left: 2px;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #151525;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  z-index: 50;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.dd-item:hover { background: #1e1e32; }
.dd-item.danger { color: #ff8787; }
.dd-ico {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  font-size: 0.7rem;
  opacity: .85;
}

.game-card-media .game-cover-btn {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(60, 120, 200, 0.22), transparent 68%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(20, 40, 80, 0.35), transparent 55%),
    #06060e;
  height: 240px;
  aspect-ratio: auto;
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.game-cover-btn:hover .game-cover { transform: scale(1.04); }

.game-cover-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 4, 12, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-back.modal-stack-top {
  z-index: 280;
}

.modal-back[hidden] { display: none !important; }

.modal-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #12121f;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  margin: auto;
  flex: 0 0 auto;
}

.modal-card.modal-account { width: min(640px, 100%); }
.modal-card.modal-video-alert {
  width: min(1120px, 96vw) !important;
  max-width: min(1120px, 96vw) !important;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
  color: #74c0fc;
  font-size: 1.25rem;
}

.modal-x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.howto-body { display: grid; gap: 14px; }
.howto-step {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a14;
}
.howto-step img { width: 100%; display: block; max-height: 220px; object-fit: cover; }
.howto-step figcaption { padding: 10px 12px; font-size: 0.9rem; color: var(--muted); }

.avatar-pick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.avatar-pick-btn {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.avatar-pick-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-pick-btn:hover {
  border-color: rgba(120, 160, 255, 0.65);
  transform: scale(1.04);
}
.avatar-pick-btn.selected {
  border-color: #7c9cff;
  box-shadow: 0 0 0 2px rgba(124, 156, 255, 0.35);
}
.avatar-pick-account {
  max-width: 380px;
  margin: 0 auto 14px;
}
@media (max-width: 520px) {
  .avatar-pick { grid-template-columns: repeat(3, 1fr); }
}

.account-av-big {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.account-av-big:hover .acc-av-img,
.account-av-big:hover .user-av-ph.big {
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.45);
}
.account-av-big .acc-av-img,
.account-av-big .user-av-ph.big {
  position: absolute;
  inset: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin: 0;
}
.account-av-big .acc-av-img {
  z-index: 1;
  background: #1a1730;
}
.account-av-big .user-av-ph.big {
  z-index: 0;
  font-size: 2rem;
  opacity: 1;
  inset: 0;
}
.account-av-big .user-av-badge {
  width: 18px;
  height: 18px;
  left: 0;
  bottom: 2px;
  z-index: 2;
}
.account-av-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.account-form input[readonly] {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.35);
}
.account-email-row {
  grid-column: 1 / -1;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text, #e8e8e8);
  cursor: pointer;
  font-weight: 500;
}
.consent-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent, #3d8bfd);
  cursor: pointer;
}
.consent-check span {
  flex: 1;
  min-width: 0;
}
.account-form .account-consent {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.account-form label { margin: 0; }
.account-form .field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.account-form .modal-actions,
.account-form .error,
.account-form .ok {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  /* Mantém TUDO numa linha (antes @860px empilhava e o Conectar ia para baixo) */
  .mc-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 6px;
    padding: 6px 8px;
    width: min(1400px, calc(100% - 16px));
  }
  .mc-topbar-left,
  .mc-topbar-right {
    justify-self: unset;
    gap: 6px;
  }
  .mc-version-text { display: none; }
  .user-role { display: none; }
  .user-name { max-width: 88px; }
  .user-chip { padding-right: 8px; gap: 6px; }
  /* Compactar tabs mesmo se hub-layout-wide estiver ativo */
  body.hub-layout-wide .hub-tab.hub-tab-ico,
  .hub-tab.hub-tab-ico {
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
  }
  body.hub-layout-wide .hub-tab-label,
  .hub-tab-label {
    display: none !important;
  }
  .btn-connect-tiktok {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.78rem;
  }
  .btn-connect-tiktok .connect-full { display: none; }
  .btn-connect-tiktok .connect-short { display: inline; }
  .account-form { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .account-form { grid-template-columns: 1fr; }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#gridIntegracao,
#gridAnimacoes,
#gridGames {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

@media (max-width: 640px) {
  .game-grid,
  #gridIntegracao,
  #gridAnimacoes,
  #gridGames {
    grid-template-columns: 1fr;
  }
}

.brand {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-family: Syne, Figtree, sans-serif;
  font-weight: 700;
  color: #1a1200;
  background: linear-gradient(145deg, #ffe08a, #c9a227);
  box-shadow: 0 0 24px rgba(255, 212, 59, 0.35);
}

.brand.brand-logo {
  width: 92px;
  height: 92px;
  padding: 0;
  background: transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 212, 59, 0.22);
  border-radius: 22px;
  overflow: hidden;
}

.brand.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

input::placeholder {
  color: #6e6e86;
  opacity: 1;
}

.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.92rem; }
.error { color: #ff8787; font-size: 0.9rem; min-height: 1.2em; }
.ok { color: var(--green); font-size: 0.9rem; }
.hidden { display: none !important; }

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0d18;
  color: var(--text);
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 212, 59, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #151525;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

/* display do .btn nao pode anular o atributo HTML hidden */
[hidden],
.btn[hidden],
button[hidden] {
  display: none !important;
}

.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(180deg, #3a2a00, #1f1600);
  border-color: #806000;
  color: var(--gold);
  width: 100%;
  margin-top: 16px;
}
.btn.success,
.btn.btn-resend {
  display: flex;
  width: 100%;
  margin: 12px auto 0;
  background: linear-gradient(180deg, #1e3d28, #0f2416);
  border-color: #2b8a3e;
  color: var(--green);
  text-align: center;
}
.btn.success:hover,
.btn.btn-resend:hover {
  border-color: #51cf66;
  filter: brightness(1.08);
}
.auth-page .error,
.auth-page .ok {
  text-align: center;
}
.btn.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #3a3a55;
  background: #fff;
  color: #1f1f1f;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.btn.google-btn:hover { filter: brightness(0.96); }
.btn.google-btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.auth-or {
  margin: 14px 0 6px;
  font-size: 0.85rem;
}

.btn.danger {
  background: #2a1010;
  border-color: #803030;
  color: #ff8787;
}

.btn.small { padding: 7px 12px; font-size: 0.82rem; }

.links {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.links-sep {
  margin: 0 8px;
  opacity: 0.7;
}
.links-sub {
  margin-top: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: max-content;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  white-space: nowrap;
  box-sizing: border-box;
}

.badge.pending { color: #ffd43b; border-color: #806000; }
.badge.active { color: var(--green); border-color: #2b8a3e; }
.badge.locked { color: #ff8787; border-color: #803030; }

.game-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(26, 24, 44, 0.95), rgba(10, 10, 18, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  position: relative;
}

.game-card h3 { font-size: 1.1rem; }
.game-card p { color: var(--muted); font-size: 0.85rem; margin: 8px 0 14px; }

.game-card.integ-card {
  height: 100%;
}

.game-card-media.is-locked {
  opacity: 0.92;
}

.game-card-media.is-locked .game-cover {
  filter: saturate(0.75) brightness(0.82);
}

.game-card-media .card-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1 1 auto;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.integ-card .preview-box {
  position: relative;
}

.integ-card .preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: #8b93a7;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(60, 120, 200, 0.22), transparent 68%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(20, 40, 80, 0.35), transparent 55%),
    #06060e;
  z-index: 0;
}

.integ-card .preview-box.is-ready .preview-fallback,
.integ-card .preview-box.show .preview-fallback {
  display: none !important;
}

.integ-card .preview-fallback strong {
  display: block;
  color: #e8ecf4;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.integ-card iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th { color: var(--muted); font-weight: 600; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-row input { flex: 1; }

.adm-body {
  background: #0a0a12;
  color: var(--text);
  font-family: Figtree, "Segoe UI", sans-serif;
  margin: 0;
  padding: 20px;
}

.adm-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.adm-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.adm-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-nav-brand strong {
  font-family: Syne, Figtree, sans-serif;
  font-size: 1.05rem;
}
.adm-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.adm-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.adm-page-head h1 {
  margin: 0 0 6px;
  font-family: Syne, Figtree, sans-serif;
  font-size: 1.55rem;
}
.adm-page-head .muted { margin: 0; max-width: 52ch; }
.adm-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-own-pass summary { cursor: pointer; list-style: none; }
.adm-own-pass summary::-webkit-details-marker { display: none; }

.adm-plan-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.adm-plan-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #e8ecf4;
  text-decoration: none;
  min-width: 110px;
}
.adm-plan-tab.on {
  border-color: rgba(120,160,255,.45);
  background: rgba(80,120,255,.14);
}
.adm-plan-editor { max-width: none; padding: 18px 20px; }
.adm-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.adm-plan-meta label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
}
.adm-plan-meta input[type="number"] { width: 100px; }
.adm-plan-group { margin-bottom: 18px; }
.adm-plan-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.adm-plan-group-head h3 { margin: 0; font-size: .95rem; }
.adm-plan-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.adm-check {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
  cursor: pointer;
}
.adm-check.on {
  border-color: rgba(105,219,124,.45);
  background: rgba(16,36,24,.55);
}
.adm-check code { font-size: .72rem; }

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.flash.ok { background: #102418; color: var(--green); }
.flash.err { background: #2a1010; color: #ff8787; }

/* Sons — Presente → Atalho → Áudio */
.sons-layout { display: flex; flex-direction: column; gap: 8px; }
.modal-gift-sounds .modal-card,
.modal-card.modal-gift-sounds {
  max-height: min(90vh, 920px);
}
.gift-sound-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 2px;
}
.gs-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 18, 0.72);
}
.gs-row-top {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}
.gs-n {
  width: 32px;
  height: 32px;
  margin-top: 18px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(116, 192, 252, 0.12);
  border: 1px solid rgba(116, 192, 252, 0.28);
  color: #a5d8ff;
  font-weight: 800;
  font-size: 0.85rem;
}
.gs-fields {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  min-width: 0;
}
.gs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gs-lab {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b93a7;
}
.gs-gift, .gs-sound, .gs-hotkey {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 9px 11px;
  box-sizing: border-box;
}
.gs-gift,
.gs-gift[readonly] {
  cursor: pointer;
}
.gs-gift:hover,
.gs-hotkey:focus {
  border-color: rgba(116, 192, 252, 0.45);
}
.gs-audio {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 42px;
  min-width: 0;
}
.gs-sound-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}
.gs-sound-wrap .gs-sound {
  flex: 1 1 180px;
  min-width: 140px;
}
.gs-sound-wrap .btn.small {
  padding: 7px 12px;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.gs-mi-label {
  font-size: 0.78rem;
  color: #6c7588;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 1.2em;
}
.gs-mi-label.has-src {
  color: #c5cad8;
  font-weight: 600;
}
@media (max-width: 640px) {
  .gs-fields { grid-template-columns: 1fr; }
  .gs-audio { padding-left: 0; }
  .gs-n { margin-top: 0; }
}

/* (slots Vídeo Alerta: ver .va-row acima em .modal-video-alert) */
.sna-user, .sna-sfx {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 8px 10px;
  box-sizing: border-box;
}
.sound-lib-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: #0a0a12;
}
.sound-lib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sound-lib-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-lib-actions { display: flex; gap: 6px; flex-shrink: 0; }
.music-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.music-status {
  font-size: .8rem;
  font-weight: 700;
  color: #ff8787;
}
.music-status.is-on { color: #69db7c; }
.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.music-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.music-grid input {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c16;
  color: #fff;
  padding: 8px 10px;
}
@media (max-width: 900px) {
  .music-grid { grid-template-columns: 1fr; }
}
