/* DJHOUSE 2026 CYBER GLASS UI
   Presentation only: streaming, auth, Socket.IO and business logic stay untouched. */
:root {
  color-scheme: dark;
  --ui-bg: #03050b;
  --ui-bg-2: #07101d;
  --ui-panel: rgba(7, 13, 26, .82);
  --ui-panel-strong: rgba(5, 10, 22, .94);
  --ui-panel-soft: rgba(14, 23, 42, .62);
  --ui-text: #f4fbff;
  --ui-muted: #a9bdcb;
  --ui-cyan: #4cecff;
  --ui-cyan-2: #7af8ff;
  --ui-purple: #9a6cff;
  --ui-pink: #ff4fa3;
  --ui-green: #55f6b5;
  --ui-yellow: #ffd76a;
  --ui-red: #ff5e7a;
  --ui-line: rgba(119, 236, 255, .22);
  --ui-line-strong: rgba(76, 236, 255, .43);
  --ui-space-1: 6px;
  --ui-space-2: 10px;
  --ui-space-3: 14px;
  --ui-space-4: 18px;
  --ui-space-5: 24px;
  --ui-radius-sm: 10px;
  --ui-radius-md: 15px;
  --ui-radius-lg: 22px;
  --ui-radius-xl: 28px;
  --ui-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --ui-neon: 0 0 34px rgba(76, 236, 255, .14);
  --ui-focus: 0 0 0 3px rgba(76, 236, 255, .3);
  --ui-ease: cubic-bezier(.2, .75, .2, 1);
}

html {
  min-width: 320px;
  max-width: 100%;
  background: var(--ui-bg);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  color: var(--ui-text);
  background:
    radial-gradient(ellipse at 10% 8%, rgba(76, 236, 255, .16), transparent 29%),
    radial-gradient(ellipse at 88% 12%, rgba(255, 79, 163, .14), transparent 31%),
    radial-gradient(ellipse at 48% 110%, rgba(154, 108, 255, .12), transparent 38%),
    linear-gradient(165deg, var(--ui-bg) 0%, var(--ui-bg-2) 48%, #050713 100%) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip !important;
}

body::before {
  z-index: 0 !important;
  background:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

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

button,
a,
label,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  transition: border-color .18s var(--ui-ease), box-shadow .18s var(--ui-ease),
    background-color .18s var(--ui-ease), transform .18s var(--ui-ease), filter .18s var(--ui-ease);
}

button:focus-visible,
a:focus-visible,
label:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ui-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: var(--ui-focus) !important;
}

button:not(:disabled),
a[href],
label[for] {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .68;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

/* Authentication / registration screen */
body > .box {
  position: relative;
  isolation: isolate;
  width: min(560px, calc(100vw - 28px)) !important;
  margin: max(16px, env(safe-area-inset-top)) auto max(24px, env(safe-area-inset-bottom));
  padding: clamp(18px, 4vw, 30px) !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: var(--ui-radius-xl) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(76,236,255,.13), transparent 38%),
    linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    var(--ui-panel-strong) !important;
  box-shadow: var(--ui-shadow), var(--ui-neon), inset 0 1px 0 rgba(255,255,255,.09) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

body > .box .banner {
  height: clamp(88px, 20vw, 118px) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}

body > .box h1 {
  margin: 18px 0 8px !important;
  color: transparent !important;
  background: linear-gradient(100deg, #fff, var(--ui-cyan-2) 48%, #d7c8ff 78%, var(--ui-pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(25px, 6vw, 34px) !important;
  line-height: 1.12;
  text-shadow: none !important;
}

body > .box .slogan {
  margin: 0 0 22px !important;
  padding: 12px 16px !important;
  border-color: var(--ui-line-strong) !important;
  border-radius: var(--ui-radius-md) !important;
  color: var(--ui-text) !important;
  background: linear-gradient(100deg, rgba(76,236,255,.11), rgba(154,108,255,.12), rgba(255,79,163,.1)) !important;
  font-size: clamp(18px, 5vw, 24px) !important;
  text-shadow: 0 0 18px rgba(76,236,255,.22) !important;
}

body > .box h2 {
  margin: 18px 0 6px !important;
  color: var(--ui-text);
  font-size: 17px !important;
  letter-spacing: .01em;
}

body > .box hr {
  margin: 22px 0 !important;
  border-color: var(--ui-line) !important;
}

body > .box input {
  min-height: 48px;
  margin: 6px 0 !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-md) !important;
  color: var(--ui-text) !important;
  background: rgba(1, 7, 16, .72) !important;
}

body > .box input::placeholder {
  color: #91a8b8;
}

body > .box button {
  min-height: 50px;
  margin-top: 10px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: var(--ui-radius-md) !important;
  color: #021116 !important;
  background: linear-gradient(105deg, var(--ui-green), var(--ui-cyan), #9fb8ff) !important;
  box-shadow: 0 13px 32px rgba(34, 205, 232, .2), inset 0 1px 0 rgba(255,255,255,.48);
}

body > .box button:hover {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-1px);
}

body > .box .msg {
  border-color: rgba(255,94,122,.4) !important;
  color: #ffd9e1;
  background: rgba(255,94,122,.12) !important;
}

/* Live application shell */
body.aq-fit-screen100 {
  padding: max(10px, env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom)) !important;
}

body.aq-fit-screen100 .shell,
body.aq-fit-screen100 .wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 28px)) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

body.aq-fit-screen100 .top-banner {
  height: clamp(92px, 9vw, 126px) !important;
  margin-bottom: var(--ui-space-3) !important;
  overflow: hidden;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  background: #030712 !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body.aq-fit-screen100 .top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.aq-fit-screen100 .grid {
  display: grid !important;
  grid-template-columns: minmax(270px, .9fr) minmax(410px, 1.32fr) minmax(270px, .9fr) !important;
  align-items: stretch !important;
  gap: var(--ui-space-3) !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.aq-fit-screen100 .grid > .card,
body.aq-fit-screen100 .panel,
body.aq-fit-screen100 .support-card,
body.aq-fit-screen100 .request,
body.aq-fit-screen100 .guide,
body.aq-fit-screen100 .stage,
body.aq-fit-screen100 .dj-card,
body.aq-fit-screen100 .admin,
body.aq-fit-screen100 .admin-card,
body.aq-fit-screen100 .aq-video-live-card {
  min-width: 0 !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  background:
    linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 55%),
    var(--ui-panel) !important;
  box-shadow: var(--ui-shadow), inset 0 1px 0 rgba(255,255,255,.07) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

body.aq-fit-screen100 .grid > .card {
  height: clamp(610px, calc(100dvh - 176px), 740px) !important;
  min-height: 610px !important;
  max-height: 740px !important;
  padding: clamp(14px, 1.5vw, 20px) !important;
  overflow: hidden !important;
}

/* Player is the primary surface */
body.aq-fit-screen100 .card.center,
body.aq-fit-screen100 .aq-player-card-fit100 {
  position: relative !important;
  isolation: isolate;
  border-color: var(--ui-line-strong) !important;
  background:
    radial-gradient(circle at 50% -4%, rgba(76,236,255,.22), transparent 38%),
    radial-gradient(circle at 4% 90%, rgba(255,79,163,.12), transparent 34%),
    linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.018) 58%),
    var(--ui-panel-strong) !important;
  box-shadow: var(--ui-shadow), 0 0 0 1px rgba(76,236,255,.08), var(--ui-neon), inset 0 1px 0 rgba(255,255,255,.11) !important;
}

body.aq-fit-screen100 .card.center::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto;
  z-index: -1;
  height: 220px;
  border-radius: 50%;
  background: rgba(76,236,255,.13);
  filter: blur(48px);
  pointer-events: none;
}

body.aq-fit-screen100 .card.center h1,
body.aq-fit-screen100 .brand h1 {
  max-width: 100%;
  margin: 3px 0 12px !important;
  color: transparent !important;
  background: linear-gradient(100deg, #fff 6%, var(--ui-cyan-2) 44%, #cebfff 72%, var(--ui-pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(25px, 2.7vw, 37px) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
  text-shadow: none !important;
}

body.aq-fit-screen100 .info-line {
  width: 100% !important;
  max-width: 100%;
  margin: 4px 0 !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-muted) !important;
  background: rgba(255,255,255,.035) !important;
  font-size: 13px !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.aq-fit-screen100 #genreText { color: var(--ui-cyan-2) !important; }
body.aq-fit-screen100 #titleText { color: var(--ui-yellow) !important; }

body.aq-fit-screen100 .status-row {
  display: flex !important;
  justify-content: center;
  gap: 8px !important;
  margin: 10px 0 6px !important;
}

body.aq-fit-screen100 .status-pill,
body.aq-fit-screen100 #liveStatus,
body.aq-fit-screen100 .chip,
body.aq-fit-screen100 .tag,
body.aq-fit-screen100 .status-badge,
body.aq-fit-screen100 .aq-video-live-status,
body.aq-fit-screen100 .aqvp-count,
body.aq-fit-screen100 #listenerCountLineFinal {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px !important;
  border: 1px solid rgba(85,246,181,.28) !important;
  border-radius: 999px !important;
  color: #dffff2 !important;
  background: rgba(85,246,181,.075) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.aq-fit-screen100 .dot {
  flex: 0 0 auto;
  width: 9px !important;
  height: 9px !important;
  background: var(--ui-green) !important;
  box-shadow: 0 0 14px rgba(85,246,181,.76) !important;
  animation: ui-live-pulse 1.8s ease-in-out infinite;
}

body.aq-fit-screen100 .dot.off {
  background: var(--ui-red) !important;
  box-shadow: 0 0 12px rgba(255,94,122,.6) !important;
  animation: none;
}

body.aq-fit-screen100 .equalizer,
body.aq-fit-screen100 .aq-viz-stable,
body.aq-fit-screen100 .aq-viz-moving-lock {
  width: min(100%, 360px) !important;
  height: 70px !important;
  min-height: 70px !important;
  margin: 10px auto !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(76,236,255,.14) !important;
  border-radius: var(--ui-radius-md) !important;
  background: linear-gradient(90deg, rgba(76,236,255,.04), rgba(154,108,255,.07), rgba(255,79,163,.04)) !important;
  box-shadow: inset 0 0 24px rgba(76,236,255,.035) !important;
}

body.aq-fit-screen100 .equalizer span,
body.aq-fit-screen100 .aq-viz-bar-stable,
body.aq-fit-screen100 .aq-viz-moving-bar {
  width: clamp(5px, 1.4vw, 9px) !important;
  max-height: 44px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--ui-cyan-2), var(--ui-purple) 54%, var(--ui-pink)) !important;
  box-shadow: 0 0 13px rgba(76,236,255,.24) !important;
}

body.aq-fit-screen100 .controls {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: min(100%, 350px) !important;
  margin: 2px auto 0 !important;
}

body.aq-fit-screen100 .control-btn {
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: var(--ui-radius-md) !important;
  color: var(--ui-text) !important;
  background: rgba(255,255,255,.065) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.aq-fit-screen100 .control-btn:first-child {
  grid-column: 1 / -1;
  min-height: 62px !important;
  color: #021116 !important;
  background: linear-gradient(105deg, var(--ui-green), var(--ui-cyan) 58%, #aebcff) !important;
  box-shadow: 0 14px 34px rgba(53,218,228,.22), inset 0 1px 0 rgba(255,255,255,.5) !important;
  font-size: 16px !important;
  letter-spacing: .02em !important;
}

body.aq-fit-screen100 .control-btn.pause {
  border-color: rgba(255,79,163,.25) !important;
  background: rgba(255,79,163,.10) !important;
}

body.aq-fit-screen100 .control-btn.mute {
  border-color: rgba(154,108,255,.3) !important;
  background: rgba(154,108,255,.11) !important;
}

body.aq-fit-screen100 button:hover,
body.aq-fit-screen100 a:hover,
body.aq-fit-screen100 label:hover {
  filter: brightness(1.08);
}

body.aq-fit-screen100 button:hover,
body.aq-fit-screen100 .help-btn:hover,
body.aq-fit-screen100 .music-sale-item-btn:hover {
  transform: translateY(-1px);
}

body.aq-fit-screen100 button:active,
body.aq-fit-screen100 .help-btn:active,
body.aq-fit-screen100 .music-sale-item-btn:active {
  transform: scale(.98);
}

body.aq-fit-screen100 .volume {
  width: min(100%, 330px) !important;
  margin: 10px auto 5px !important;
  color: var(--ui-muted);
  font-size: 13px;
}

body.aq-fit-screen100 .big-num,
body.aq-fit-screen100 #vtxt,
body.aq-fit-screen100 .price {
  color: var(--ui-cyan-2) !important;
  font-variant-numeric: tabular-nums;
}

body.aq-fit-screen100 input[type="range"] {
  width: 100% !important;
  min-height: 32px !important;
  accent-color: var(--ui-cyan);
}

body.aq-fit-screen100 .listeners {
  margin-top: 5px !important;
  padding-top: 8px !important;
  color: var(--ui-muted);
  font-size: 13px !important;
}

body.aq-fit-screen100 .help-contact {
  width: 100%;
  margin-top: auto !important;
  padding: 11px !important;
  border: 1px solid rgba(76,236,255,.16) !important;
  border-radius: var(--ui-radius-md) !important;
  background: rgba(255,255,255,.032) !important;
  box-shadow: none !important;
}

body.aq-fit-screen100 .help-contact-title {
  margin-bottom: 8px !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
}

body.aq-fit-screen100 .help-contact-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}

body.aq-fit-screen100 .help-btn,
body.aq-fit-screen100 .live-signup,
body.aq-fit-screen100 .logout,
body.aq-fit-screen100 .image-label,
body.aq-fit-screen100 .music-sale-item-btn,
body.aq-fit-screen100 .btn,
body.aq-fit-screen100 .mini-btn,
body.aq-fit-screen100 .iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  padding: 9px 12px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-md) !important;
  color: var(--ui-text) !important;
  background: rgba(255,255,255,.065) !important;
  font-size: 12px;
  font-weight: 850 !important;
  text-decoration: none;
}

body.aq-fit-screen100 .help-btn-zalo {
  color: #021217 !important;
  background: linear-gradient(100deg, var(--ui-green), var(--ui-cyan)) !important;
}

body.aq-fit-screen100 .help-btn-email {
  color: #0b0717 !important;
  background: linear-gradient(100deg, #bd9cff, #ff91c5) !important;
}

/* Chat */
body.aq-fit-screen100 .chat-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  contain: layout paint;
}

body.aq-fit-screen100 .chat-head {
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.aq-fit-screen100 .chat-head h2,
body.aq-fit-screen100 .qr-main-title {
  margin: 0 !important;
  color: var(--ui-text) !important;
  font-size: 18px !important;
  line-height: 1.2;
}

body.aq-fit-screen100 .online {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(85,246,181,.25);
  border-radius: 999px;
  color: var(--ui-green) !important;
  background: rgba(85,246,181,.07);
  font-size: 10px !important;
  font-weight: 800;
}

body.aq-fit-screen100 .small-btn {
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255,94,122,.2) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: #ffdce3 !important;
  background: rgba(255,94,122,.08) !important;
  font-size: 11px !important;
}

body.aq-fit-screen100 .chat-note {
  margin-bottom: 9px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(76,236,255,.13) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-muted) !important;
  background: rgba(76,236,255,.035) !important;
  font-size: 10px !important;
  line-height: 1.42 !important;
}

body.aq-fit-screen100 #messages,
body.aq-fit-screen100 .chat-box {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 120px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  border: 1px solid rgba(76,236,255,.16) !important;
  border-radius: var(--ui-radius-md) !important;
  background: rgba(1, 6, 15, .62) !important;
  scrollbar-color: rgba(76,236,255,.45) rgba(255,255,255,.04);
  scrollbar-width: thin;
}

body.aq-fit-screen100 .msg,
body.aq-fit-screen100 .req-item,
body.aq-fit-screen100 .aq-ag-row,
body.aq-fit-screen100 .music-sale-item,
body.aq-fit-screen100 .stage-tile {
  max-width: 100%;
  padding: 9px !important;
  border: 1px solid rgba(76,236,255,.11) !important;
  border-radius: var(--ui-radius-sm) !important;
  background: rgba(255,255,255,.04) !important;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}

body.aq-fit-screen100 .msg b { color: var(--ui-cyan-2) !important; }
body.aq-fit-screen100 .msg small { color: #8499a8 !important; }

body.aq-fit-screen100 .locked-name,
body.aq-fit-screen100 .chatrow input,
body.aq-fit-screen100 .admin-grid input,
body.aq-fit-screen100 .admin-grid textarea,
body.aq-fit-screen100 input,
body.aq-fit-screen100 select,
body.aq-fit-screen100 textarea {
  min-width: 0 !important;
  min-height: 44px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
  background: rgba(1, 7, 16, .72) !important;
}

body.aq-fit-screen100 input::placeholder,
body.aq-fit-screen100 textarea::placeholder { color: #8298a8 !important; }

body.aq-fit-screen100 .locked-name { margin-top: 8px !important; }

body.aq-fit-screen100 .chatrow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 8px !important;
  width: 100%;
  margin-top: 8px !important;
}

body.aq-fit-screen100 .chatrow button {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: #031117 !important;
  background: linear-gradient(105deg, var(--ui-green), var(--ui-cyan)) !important;
  font-size: 12px !important;
}

body.aq-fit-screen100 .chat-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 100px !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body.aq-fit-screen100 .icon-picker {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(40px, 1fr));
  gap: 6px !important;
}

body.aq-fit-screen100 .ico {
  width: 100% !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
  background: rgba(255,255,255,.05) !important;
}

body.aq-fit-screen100 .image-label,
body.aq-fit-screen100 .logout {
  width: 100% !important;
  min-width: 0 !important;
}

body.aq-fit-screen100 .chat-logout-row { grid-column: 2; }
body.aq-fit-screen100 .chat-live-row { grid-column: 1 / -1; }

body.aq-fit-screen100 .live-signup {
  width: 100% !important;
  color: #201208 !important;
  background: linear-gradient(100deg, var(--ui-yellow), #ff9d61) !important;
}

/* QR, donation and sale links */
body.aq-fit-screen100 .qr-panel {
  display: flex !important;
  flex-direction: column !important;
  text-align: center;
}

body.aq-fit-screen100 .qr-main-title {
  flex: 0 0 auto;
  margin-bottom: 10px !important;
  color: var(--ui-pink) !important;
  letter-spacing: 3px !important;
  text-shadow: 0 0 18px rgba(255,79,163,.32) !important;
}

body.aq-fit-screen100 .right-card,
body.aq-fit-screen100 #musicSaleBox,
body.aq-fit-screen100 .contact-card,
body.aq-fit-screen100 .aq-qr-scan-box,
body.aq-fit-screen100 #aqViewerPanelPro,
body.aq-fit-screen100 #aqListenerNamesBox,
body.aq-fit-screen100 #listenerNamesBox {
  min-width: 0 !important;
  border: 1px solid rgba(76,236,255,.16) !important;
  border-radius: var(--ui-radius-md) !important;
  background: rgba(1, 7, 16, .48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}

body.aq-fit-screen100 #musicSaleBox {
  min-height: 0 !important;
  height: 100% !important;
  padding: 13px !important;
  overflow: hidden !important;
}

body.aq-fit-screen100 .music-sale-eyebrow {
  color: var(--ui-cyan-2) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

body.aq-fit-screen100 .music-sale-card h3 {
  margin: 5px 0 3px !important;
  color: var(--ui-text) !important;
  font-size: 17px !important;
}

body.aq-fit-screen100 .music-sale-card p {
  margin: 3px 0 10px !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
}

body.aq-fit-screen100 .music-sale-items {
  gap: 7px !important;
  padding-right: 3px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-color: rgba(76,236,255,.45) rgba(255,255,255,.04);
  scrollbar-width: thin;
}

body.aq-fit-screen100 .music-sale-item {
  text-align: left;
}

body.aq-fit-screen100 .music-sale-item-name {
  color: var(--ui-text) !important;
  font-size: 12px;
  line-height: 1.35;
}

body.aq-fit-screen100 .music-sale-item-price {
  margin: 4px 0 7px !important;
  color: var(--ui-yellow) !important;
  font-size: 12px;
}

body.aq-fit-screen100 .music-sale-item-btn {
  width: 100%;
  color: #021217 !important;
  background: linear-gradient(100deg, var(--ui-green), var(--ui-cyan)) !important;
}

body.aq-fit-screen100 img.aq-donate-qr-new,
body.aq-fit-screen100 img.aq-donate-qr-scan-fit,
body.aq-fit-screen100 img.aq-zalo-qr-scan-fit,
body.aq-fit-screen100 .qr-img {
  width: auto !important;
  max-width: min(100%, 190px) !important;
  height: auto !important;
  max-height: 220px !important;
  margin-inline: auto !important;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: var(--ui-radius-md) !important;
  background: #fff !important;
  object-fit: contain !important;
}

/* Admin controls remain separate from the live UI */
body.aq-fit-screen100 #adminPanel,
body.aq-fit-screen100 #salePanel {
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: var(--ui-radius-md) !important;
  background:
    linear-gradient(155deg, rgba(76,236,255,.09), rgba(154,108,255,.045)),
    rgba(3, 8, 18, .96) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
}

body.aq-fit-screen100 #adminPanel {
  /* Keep the default size, but let the existing resize handle set inline values. */
  width: 210px;
  min-width: 180px;
}

body.aq-fit-screen100 #salePanel {
  width: 270px !important;
  min-width: 270px !important;
}

body.aq-fit-screen100 .aq-admin-title {
  color: var(--ui-cyan-2) !important;
  font-size: 11px !important;
  letter-spacing: .05em;
}

body.aq-fit-screen100 .aq-admin-tools button {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  color: var(--ui-text) !important;
  background: rgba(255,255,255,.06) !important;
}

body.aq-fit-screen100 .admin-grid {
  gap: 8px !important;
}

body.aq-fit-screen100 .admin-grid b {
  color: var(--ui-muted);
  font-size: 11px !important;
}

body.aq-fit-screen100 .admin-grid button,
body.aq-fit-screen100 .aq-ag-approve,
body.aq-fit-screen100 .aq-ag-reject,
body.aq-fit-screen100 .aq-ag-kick {
  min-height: 42px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: #021116 !important;
  background: linear-gradient(100deg, var(--ui-green), var(--ui-cyan)) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.aq-fit-screen100 #adminBody,
body.aq-fit-screen100 #saleBody,
body.aq-fit-screen100 .aq-ag-scroll,
body.aq-fit-screen100 .aq-sale-preview-links {
  scrollbar-color: rgba(76,236,255,.45) rgba(255,255,255,.04);
  scrollbar-width: thin;
}

body.aq-fit-screen100 .site-footer {
  min-height: 38px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(76,236,255,.12) !important;
  color: #8ca2b2 !important;
  background: rgba(3, 7, 15, .82) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@keyframes ui-live-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes ui-rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 901px) {
  body.aq-fit-screen100 .grid > .card {
    animation: ui-rise .42s var(--ui-ease) both;
  }

  body.aq-fit-screen100 .grid > .center { animation-delay: .04s; }
  body.aq-fit-screen100 .grid > .qr-panel { animation-delay: .08s; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  body.aq-fit-screen100 .shell,
  body.aq-fit-screen100 .wrap {
    width: min(100% - 20px, 1040px) !important;
  }

  body.aq-fit-screen100 .grid {
    grid-template-columns: minmax(250px, .82fr) minmax(370px, 1.2fr) minmax(250px, .82fr) !important;
    gap: 10px !important;
  }

  body.aq-fit-screen100 .grid > .card { padding: 12px !important; }
}

@media (max-width: 900px) {
  html,
  body { min-height: 100%; }

  body.aq-fit-screen100 {
    padding: max(8px, env(safe-area-inset-top)) 0 env(safe-area-inset-bottom) !important;
  }

  body.aq-fit-screen100 .shell,
  body.aq-fit-screen100 .wrap {
    width: min(100% - 16px, 620px) !important;
  }

  body.aq-fit-screen100 .top-banner {
    height: clamp(82px, 23vw, 112px) !important;
    margin-bottom: 10px !important;
    border-radius: var(--ui-radius-md) !important;
  }

  body.aq-fit-screen100 .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body.aq-fit-screen100 .grid > .center { order: 1 !important; }
  body.aq-fit-screen100 .grid > .chat-card { order: 2 !important; }
  body.aq-fit-screen100 .grid > .qr-panel { order: 3 !important; }
  body.aq-fit-screen100 .grid > :not(.center):not(.chat-card):not(.qr-panel) { order: 4 !important; }

  body.aq-fit-screen100 .grid > .card,
  body.aq-fit-screen100 .chat-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px !important;
    border-radius: var(--ui-radius-lg) !important;
    contain: layout paint;
  }

  body.aq-fit-screen100 .card.center {
    min-height: min(680px, calc(100svh - 24px)) !important;
  }

  body.aq-fit-screen100 .card.center h1 {
    font-size: clamp(24px, 8.5vw, 34px) !important;
  }

  body.aq-fit-screen100 .equalizer,
  body.aq-fit-screen100 .aq-viz-stable,
  body.aq-fit-screen100 .aq-viz-moving-lock {
    width: min(100%, 340px) !important;
  }

  body.aq-fit-screen100 .chat-card #messages {
    flex: 0 0 auto !important;
    height: clamp(230px, 38svh, 360px) !important;
    min-height: 230px !important;
    max-height: 360px !important;
  }

  body.aq-fit-screen100 .chatrow {
    position: sticky;
    bottom: env(safe-area-inset-bottom);
    z-index: 4;
    padding-top: 2px;
    background: linear-gradient(to top, rgba(5,10,22,.98) 72%, transparent);
    scroll-margin-bottom: 30vh;
  }

  body.aq-fit-screen100 #musicSaleBox {
    height: auto !important;
    min-height: 360px !important;
    max-height: 620px !important;
  }

  body.aq-fit-screen100 .music-sale-items {
    max-height: 470px;
  }

  body.aq-fit-screen100 #adminPanel {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: min(calc(100% - 16px), 620px);
    min-width: 0;
    height: auto;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px auto 0 !important;
    touch-action: auto !important;
  }

  body.aq-fit-screen100 #salePanel {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: min(calc(100% - 16px), 620px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px auto 0 !important;
    touch-action: auto !important;
  }

  body.aq-fit-screen100 #adminBody,
  body.aq-fit-screen100 #saleBody {
    height: auto !important;
    max-height: 520px !important;
  }

  body.aq-fit-screen100 .site-footer {
    position: static !important;
    margin-top: 12px;
  }
}

@media (max-width: 430px) {
  body > .box {
    width: calc(100vw - 16px) !important;
    border-radius: var(--ui-radius-lg) !important;
  }

  body.aq-fit-screen100 .shell,
  body.aq-fit-screen100 .wrap {
    width: calc(100% - 12px) !important;
  }

  body.aq-fit-screen100 .grid > .card { padding: 12px !important; }
  body.aq-fit-screen100 .chat-head { grid-template-columns: 1fr auto; }
  body.aq-fit-screen100 .chat-head .online { grid-column: 1 / -1; justify-self: start; }
  body.aq-fit-screen100 .status-pill { min-width: 0 !important; }
  body.aq-fit-screen100 .controls { width: 100% !important; }
  body.aq-fit-screen100 .help-contact-buttons { grid-template-columns: 1fr; }
  body.aq-fit-screen100 .icon-picker { grid-template-columns: repeat(4, minmax(38px, 1fr)); }
}

@media (max-width: 350px) {
  body.aq-fit-screen100 .grid > .card { padding: 10px !important; }
  body.aq-fit-screen100 .chat-tools { grid-template-columns: minmax(0, 1fr) 88px !important; }
  body.aq-fit-screen100 .control-btn { font-size: 11px !important; }
  body.aq-fit-screen100 .status-row { gap: 5px !important; }
  body.aq-fit-screen100 .status-pill { padding-inline: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  button,
  a,
  input,
  textarea,
  select { border: 1px solid CanvasText !important; }
}

/* -------------------------------------------------------------------------
   CYBER NEON 2026 / FINAL SURFACE PASS
   Visual-only layer.  Audio, socket, auth and stream behaviour are untouched.
   ------------------------------------------------------------------------- */
:root {
  --neo-cyan: #62f4ff;
  --neo-purple: #9d7bff;
  --neo-pink: #ff62b1;
  --neo-ink: #050914;
  --neo-glass: rgba(9, 15, 31, .72);
  --neo-glass-strong: rgba(7, 12, 26, .9);
  --neo-border: rgba(137, 225, 255, .2);
  --neo-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

body.aq-fit-screen100 {
  min-width: 320px;
  background:
    radial-gradient(70rem 34rem at -8% -12%, rgba(0, 223, 255, .18), transparent 60%),
    radial-gradient(54rem 30rem at 108% 2%, rgba(255, 55, 164, .16), transparent 58%),
    radial-gradient(40rem 30rem at 50% 115%, rgba(119, 68, 255, .18), transparent 62%),
    #03050d !important;
}

body.aq-fit-screen100 .shell {
  width: min(1400px, calc(100vw - 32px)) !important;
  padding-top: 4px !important;
}

body.aq-fit-screen100 .top-banner {
  height: clamp(82px, 8vw, 124px) !important;
  margin-bottom: 18px !important;
  border-color: rgba(98, 244, 255, .28) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .4), 0 0 42px rgba(98, 244, 255, .08) !important;
}

body.aq-fit-screen100 .grid {
  grid-template-columns: minmax(278px, .78fr) minmax(500px, 1.44fr) minmax(278px, .78fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body.aq-fit-screen100 .grid > .card {
  height: auto !important;
  min-height: 640px !important;
  max-height: none !important;
  padding: 20px !important;
  border-color: var(--neo-border) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.018) 55%),
    var(--neo-glass) !important;
  box-shadow: var(--neo-shadow), inset 0 1px 0 rgba(255,255,255,.09) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
}

body.aq-fit-screen100 .card.center {
  min-height: 680px !important;
  border-color: rgba(98, 244, 255, .42) !important;
  background:
    radial-gradient(32rem 14rem at 50% -4%, rgba(98, 244, 255, .2), transparent 72%),
    radial-gradient(20rem 18rem at 102% 100%, rgba(255, 98, 177, .12), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.018) 58%),
    var(--neo-glass-strong) !important;
  box-shadow: var(--neo-shadow), 0 0 48px rgba(98, 244, 255, .1), inset 0 1px 0 rgba(255,255,255,.13) !important;
}

body.aq-fit-screen100 .card.center h1 {
  margin-top: 2px !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: -.025em;
}

body.aq-fit-screen100 .card.center .info-line {
  border-color: rgba(98, 244, 255, .14) !important;
  background: rgba(2, 8, 20, .5) !important;
}

body.aq-fit-screen100 .card.center #titleText {
  display: block;
  min-height: 1.45em;
  color: #ffe78b !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
  text-wrap: balance;
}

body.aq-fit-screen100 .status-row { margin-block: 14px 8px !important; }
body.aq-fit-screen100 .status-pill,
body.aq-fit-screen100 #liveStatus {
  min-height: 38px !important;
  padding-inline: 15px !important;
  letter-spacing: .04em;
}

body.aq-fit-screen100 .equalizer {
  width: min(100%, 430px) !important;
  height: 92px !important;
  min-height: 92px !important;
  margin: 16px auto 14px !important;
  gap: clamp(5px, 1vw, 10px) !important;
  padding: 17px 24px !important;
  border-radius: 20px !important;
  border-color: rgba(98, 244, 255, .2) !important;
  background: linear-gradient(90deg, rgba(98,244,255,.04), rgba(157,123,255,.13), rgba(255,98,177,.05)) !important;
  box-shadow: inset 0 0 35px rgba(98, 244, 255, .06), 0 0 30px rgba(98, 244, 255, .06) !important;
}

body.aq-fit-screen100 .equalizer span {
  flex: 1 1 0;
  width: auto !important;
  max-width: 11px;
  max-height: 55px !important;
  background: linear-gradient(180deg, #fff, var(--neo-cyan) 25%, var(--neo-purple) 66%, var(--neo-pink)) !important;
  box-shadow: 0 0 16px rgba(98, 244, 255, .3) !important;
}

body.aq-fit-screen100 .controls {
  width: min(100%, 390px) !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

body.aq-fit-screen100 .control-btn {
  min-height: 48px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
}

body.aq-fit-screen100 .control-btn:first-child {
  min-height: 68px !important;
  border-color: rgba(255,255,255,.5) !important;
  background: linear-gradient(110deg, #5bf6cb 0%, var(--neo-cyan) 56%, #b1baff 100%) !important;
  box-shadow: 0 16px 38px rgba(64, 218, 227, .24), inset 0 1px 0 rgba(255,255,255,.62) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.aq-fit-screen100 .volume {
  margin-top: 17px !important;
  padding: 12px 15px 14px !important;
  border: 1px solid rgba(98,244,255,.15) !important;
  border-radius: 16px !important;
  background: rgba(2, 8, 20, .4) !important;
}

body.aq-fit-screen100 .chat-card,
body.aq-fit-screen100 .qr-panel { min-height: 640px !important; }

body.aq-fit-screen100 .chat-head {
  min-height: 48px;
  padding: 8px 10px !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.055) !important;
}

body.aq-fit-screen100 .chat-head h2,
body.aq-fit-screen100 .qr-main-title { font-size: 18px !important; }

body.aq-fit-screen100 .chat-card #messages {
  min-height: 0 !important;
  border-color: rgba(98,244,255,.18) !important;
  border-radius: 17px !important;
  background: rgba(2, 7, 17, .58) !important;
  scrollbar-width: thin;
}

body.aq-fit-screen100 .chatrow {
  grid-template-columns: minmax(0, 1fr) 52px !important;
  gap: 8px !important;
  padding-top: 10px !important;
}

body.aq-fit-screen100 .chatrow input,
body.aq-fit-screen100 .chatrow button,
body.aq-fit-screen100 .locked-name {
  min-height: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
}

body.aq-fit-screen100 .qr-panel { gap: 12px; }
body.aq-fit-screen100 .right-card,
body.aq-fit-screen100 .contact-card {
  border-color: rgba(98,244,255,.18) !important;
  border-radius: 18px !important;
  background: rgba(2, 8, 20, .46) !important;
}

body.aq-fit-screen100 .qr-img,
body.aq-fit-screen100 img.aq-donate-qr-new,
body.aq-fit-screen100 img.aq-donate-qr-scan-fit,
body.aq-fit-screen100 img.aq-zalo-qr-scan-fit {
  max-width: min(100%, 210px) !important;
  max-height: 230px !important;
  padding: 8px !important;
  border-radius: 16px !important;
}

body.aq-fit-screen100 #adminPanel,
body.aq-fit-screen100 #salePanel {
  border-radius: 18px !important;
  border-color: rgba(98,244,255,.35) !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body.aq-fit-screen100 .shell { width: min(100% - 22px, 1080px) !important; }
  body.aq-fit-screen100 .grid {
    grid-template-columns: minmax(240px, .76fr) minmax(430px, 1.3fr) minmax(240px, .76fr) !important;
    gap: 12px !important;
  }
  body.aq-fit-screen100 .grid > .card { padding: 15px !important; }
}

@media (max-width: 900px) {
  body.aq-fit-screen100 .shell { width: min(100% - 20px, 640px) !important; }
  body.aq-fit-screen100 .top-banner { margin-bottom: 12px !important; border-radius: 18px !important; }
  body.aq-fit-screen100 .grid { gap: 12px !important; }
  body.aq-fit-screen100 .grid > .card,
  body.aq-fit-screen100 .chat-card,
  body.aq-fit-screen100 .qr-panel,
  body.aq-fit-screen100 .card.center {
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }
  body.aq-fit-screen100 .card.center { padding-bottom: 22px !important; }
  body.aq-fit-screen100 .equalizer { height: 78px !important; min-height: 78px !important; }
  body.aq-fit-screen100 .control-btn:first-child { min-height: 62px !important; }
  body.aq-fit-screen100 .chat-card #messages { height: clamp(220px, 42svh, 360px) !important; }
  body.aq-fit-screen100 .chatrow { position: sticky; bottom: env(safe-area-inset-bottom); }
  body.aq-fit-screen100 #salePanel { width: 100% !important; margin-inline: auto !important; }

  body.aq-fit-screen100 #adminPanel {
    width: 100%;
    margin-inline: auto !important;
  }
}

@media (max-width: 430px) {
  body.aq-fit-screen100 .shell { width: calc(100% - 12px) !important; }
  body.aq-fit-screen100 .grid > .card,
  body.aq-fit-screen100 .chat-card,
  body.aq-fit-screen100 .qr-panel,
  body.aq-fit-screen100 .card.center { padding: 13px !important; }
  body.aq-fit-screen100 .card.center h1 { font-size: clamp(25px, 8.5vw, 34px) !important; }
  body.aq-fit-screen100 .equalizer { padding-inline: 16px !important; gap: 4px !important; }
  body.aq-fit-screen100 .control-btn:first-child { font-size: 16px !important; }
  body.aq-fit-screen100 .help-contact-buttons { grid-template-columns: 1fr !important; }
}

@media (max-width: 350px) {
  body.aq-fit-screen100 .shell { width: calc(100% - 8px) !important; }
  body.aq-fit-screen100 .grid > .card,
  body.aq-fit-screen100 .chat-card,
  body.aq-fit-screen100 .qr-panel,
  body.aq-fit-screen100 .card.center { padding: 11px !important; }
  body.aq-fit-screen100 .control-btn { font-size: 12px !important; padding-inline: 8px !important; }
}
