/*@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap");
@import url("http://fonts.googleapis.com/css?family=PT+Sans&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&display=swap');*/
.checkbox{display:flex;align-items:center;gap:8px}
input[type=checkbox]{width:16px;height:16px}
.small{font-size:12px;color:var(--muted)}
.loader {
  position: fixed;
  visibility: visible;
  opacity: 1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-color-b);
  transition: opacity 1.75s ease, visibility 1.75s ease;
  z-index: 1000;
}
.loader--hidden {
  opacity: 0;
  visibility: hidden;
}
  .app-update-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 24px), 520px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(96, 165, 250, 0.40);
    border-radius: 14px;
    background: rgba(17, 40, 80, 0.98);
    color: #e2e8f0;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 14px 40px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(10px);
    z-index: 1100;
  }
  .app-update-banner[hidden] {
    display: none;
  }
  .app-update-banner__text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #cbd5e1;
  }
  .app-update-banner__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .app-update-banner__button,
  .app-update-banner__dismiss {
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }
  .app-update-banner__button {
    background: rgba(59, 130, 246, 0.92);
    color: #fff;
    border: 1px solid rgba(96, 165, 250, 0.50);
    transition: background 0.15s ease;
  }
  .app-update-banner__button:hover {
    background: rgba(59, 130, 246, 1);
  }
  .app-update-banner__dismiss {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, color 0.15s ease;
  }
  .app-update-banner__dismiss:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
  }
.loader::after {
  content: "";
  width: 75px;
  height: 75px;
  border: 15px solid #dddddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  -webkit-animation: loading 1.75s linear infinite;
  -moz-animation: loading 1.75s linear infinite;
  -o-animation: loading 1.75s linear infinite;
  animation: loading 1.75s linear infinite;
}

@media (max-width: 650px) {
  .app-update-banner {
    top: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .app-update-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
button:disabled,
button[disabled]{
  cursor: not-allowed;
}

input[type="color"]:disabled,
input[type="color"][disabled] {
  background-color: #cccccc;
  cursor: not-allowed;
}
@media only screen and (max-width:650px){
  .chat-container{height: var(--app-height, 100dvh) !important; margin: 0 !important; max-width: none !important; display: flex !important; flex-direction: column !important; position: relative !important;}
  .chat-messages{max-height:none !important;}
  .chat-header{flex-grow: 0 !important;}
  .chat-main{flex: 1 !important;}
  body{margin: 0 !important; padding: 0 !important; overflow: hidden !important;}

  .chat-container{border-radius: 0 !important;}
  .chat-main{grid-template-columns: 1fr !important;}
  /* Sidebar becomes an off-canvas drawer on mobile */

  /* .chat-sidebar{display:block !important;} */

  /* Tighter mobile layout */
  body{font-size: 15px !important;}

  .chat-header{
    padding: 10px 10px !important;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .sidebar-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(147, 197, 253, 0.90);
    cursor: pointer;
    flex: 0 0 auto;
  }
  body:not(.session-authenticated) .sidebar-toggle {
    display: none !important;
  }
  .sidebar-toggle:active{transform: translateY(1px);}
  .sidebar-toggle i{font-size: 18px;}

  .logo{
    width: 64px;
    height: 26px;
    background-size: contain;
    flex: 0 0 auto;
  }
  body:not(.session-authenticated) .logo{
    display: none;
  }
  /* .audio-player{
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .songs-feed{
    padding-left: 44px;
    padding-top: 10px;
    padding-right: 8px;
    border-radius: 16px;
    font-size: 12px;
  }
  #playPause{
    padding: 10px 12px;
    border-radius: 16px;
  }
  #playPause .icon i{font-size: 1.1em;} */

  .chat-messages{
    padding: 10px 10px !important;
    gap: 8px;
  }
  .message{
    padding: 8px 10px;
    border-radius: 14px;
    max-width: min(92%, 640px);
    font-size: 13px;
  }
  .chat-messages .message .meta{
    font-size: 12px;
    margin-bottom: 3px;
  }
  .chat-messages .metaDate{
    margin: 6px 0;
    grid-gap: 10px;
  }
  .bot_msg,
  .bot_msg_upload{
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
  }

  .msger-inputarea{
    padding: 8px 10px;
    gap: 8px;
  }
  .msger-inputarea *{padding: 8px;}
  .msger-input{
    height: 40px;
    padding: 0 12px;
  }
  .msger-send-btn{
    height: 40px;
    padding: 0 14px;
  }

  .chat-sidebar{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(84vw, 320px);
    transform: translateX(-105%);
    transition: transform 0.50s ease;
    z-index: 20;
    box-shadow: var(--shadow-lg);
    padding-top: calc(16px + env(safe-area-inset-top));
  }
  body.sidebar-open .chat-sidebar{transform: translateX(0);}

  .sidebar-overlay{
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 19;
  }
  .sidebar-overlay[hidden]{display:none;}

  .setuser{
    min-width: calc(100vw - 24px);
    padding: 14px 14px;
  }
  .setuser p.header{
    font-size: 18px;
    margin: 0 0 8px;
  }
  .setuser label.checkbox{
    padding: 8px 10px;
    gap: 8px;
  }
  .setuser input[type=text],
  .setuser input[type=password],
  .setuser input[type=email],
  .setuser input:not([type]){
    height: 40px;
    border-radius: 10px;
  }
 
}
:root {
  --dark-color-a: #cbd5e1;
  --dark-color-b: #0f172a;
  --light-color: #1e3a5f;
  --success-color: #5cb85c;
  --error-color: #d9534f;
  --body-bg: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  --border: 1px solid rgba(255, 255, 255, 0.08);
  --msger-bg: #131c2e;

  /* App theme (derived from existing palette) */
  --text: #e2e8f0;
  --muted: #94a3b8;
  --surface: #1e2d45;
  --surface-2: #162236;
  --ring: rgba(59, 130, 246, 0.45);
  --primary: rgba(59, 130, 246, 0.92);
  --primary-2: rgb(96 165 250);
  --bubble-in: #1e2d45;
  --bubble-out: rgba(59, 130, 246, 0.18);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.30);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background-image: var(--body-bg);
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

ul {
  list-style: none;
}
.users-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#usersList,
#guestsList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#usersList {
  flex: 0 0 auto;
}

#guestsList {
  flex: 0 0 auto;
}
.btn {
  cursor: pointer;
  padding: 3px 12px;
  background: rgb(0 2 196 / 25%);
  color: #fff;
  font-weight: bold;
  border: solid 1px #3b60e1;
}
.logo{
  background: url("/img/roomie-blue.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 85px;
  height: 33px;
}
/* Chat Page */
body:not(.session-authenticated) .chat-container {
  display: none;
}
.chat-container {
  width: 100%;
  max-width: 980px;
  margin: 0;
  height: calc(100vh - 48px);
  border: var(--border);
  border-radius: 14px;
  background: var(--msger-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: rgba(13, 27, 46, 0.95);
  color: #e2e8f0;
  padding: 12px 14px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  /* z-index: 5; */
  backdrop-filter: blur(10px);
}

.chat-top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-bottom: var(--border);
  background: rgba(13, 27, 46, 0.90);
  color: var(--text);
  flex: 0 0 auto;
}

.chat-top-banner[hidden] {
  display: none;
}

.chat-top-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

/* Mobile menu button (enabled in the mobile media query) */
.sidebar-toggle{display:none;}
.chat-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1 1 auto;
  min-height: 0;
}
.chat-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat-status-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-bottom: var(--border);
  background: rgba(13, 27, 46, 0.85);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-left: 3px solid var(--primary);
}
.chat-status-bar[hidden] {
  display: none;
}
#chat-status-bar-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-btn--inline {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 3px 10px 3px 7px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.35);
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.profile-btn--inline[hidden] {
  display: none;
}
.profile-btn--inline:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.profile-btn__label {
  line-height: 1;
}
.chat-sidebar {
	background: linear-gradient(180deg, #0a1628 0%, #0f1e35 100%);
	color: var(--text);
	padding: 16px 8px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Make the user list scroll while keeping logout pinned */
.chat-sidebar .users-panel {
  min-height: 0;
  overflow-y: auto;
}

/* Section labels — small, uppercase, muted (Discord-style) */
.chat-sidebar h3 {
  margin: 18px 0 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
}
.chat-sidebar h3:first-child {
  margin-top: 4px;
}
.chat-sidebar .title-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.22);
  color: rgba(147, 197, 253, 0.95);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-badge:empty {
  display: none;
}

/* Consolidated icon rule for all three section icons */
.chat-sidebar .online-users-icon,
.chat-sidebar .rooms-icon,
.chat-sidebar .dms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(148, 163, 184, 0.8);
}
.chat-sidebar .online-users-icon svg,
.chat-sidebar .rooms-icon svg,
.chat-sidebar .dms-icon svg {
  width: 14px;
  height: 14px;
}

.chat-sidebar .sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09) 20%, rgba(255, 255, 255, 0.09) 80%, transparent);
  margin: 12px 4px 0;
}

/* List items — flat rows, no card border */
.chat-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-sidebar ul li {
  padding: 7px 10px;
  border-radius: 7px;
  color: #c7d4e4;
  font-size: 14px;
  line-height: 1.25;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.chat-sidebar ul li:hover {
  background: rgba(59, 130, 246, 0.13);
  color: #dde6f0;
}

/* Room name list items — lighter tinted color */
#rooms li {
  color: rgba(147, 197, 253, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* User list items — flex row for avatar + nick */
#users li {
  display: flex;
  align-items: center;
  gap: 7px;
}

#rooms li .room-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-unread-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent, #ea580c);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Unread room indicator */
#rooms li.has-unread {
  color: var(--text);
  font-weight: 600;
}

#rooms li.has-unread.is-active {
  font-weight: 400;
}

/* Active room highlight (only affects the Rooms list) */
#rooms li.is-active {
  background: rgba(59, 130, 246, 0.18);
  border-left: 3px solid rgba(96, 165, 250, 0.85);
  padding-left: 7px;
  color: #e2e8f0;
  font-weight: 500;
}

#rooms li.is-active:hover {
  background: rgba(59, 130, 246, 0.24);
}

#users li.user-offline {
  color: #64748b;
  opacity: 0.6;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-list-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

/* Current logged-in user row */
#users li.is-me {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: rgba(147, 197, 253, 0.95);
  font-weight: 600;
  font-size: 14px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 7px;
}
#users li.is-me::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}
#users li.is-me:hover {
  background: rgba(59, 130, 246, 0.20);
}

/* Unread DM indicator */
#dms li.has-unread {
  color: var(--accent, #ea580c);
  font-weight: 600;
}

#dms li.has-unread.is-active {
  color: var(--text);
}

/* Active DM highlight (only affects the Direct Messages list) */
#dms li.is-active {
  background: var(--bubble-out);
  border-color: var(--ring);
  color: var(--text);
}

#dms li.is-active:hover {
  background: rgba(59, 130, 246, 0.22);
}
/* .upload-icon{
	background-image: url("/img/songs.png");
	background-repeat:no-repeat;
	width: 64px;
	height: 64px;
} */
.settings-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 3px 10px 3px 7px;
  margin-top: auto;
  margin-bottom: 0;
  align-self: flex-start;
  background-color: rgba(59, 130, 246, 0.10);
  color: var(--primary);
  cursor: pointer;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.settings-icon:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.settings-icon:hover svg {
  transform: rotate(45deg);
}
.settings-icon svg {
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.settings-icon__label {
  line-height: 1;
}

/* ── Profile modal overlay ────────────────────────────────────── */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 20;
}

/* ── Modal shell ──────────────────────────────────────────────── */
.profile-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.22);
  z-index: 21;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-modal[hidden],
.profile-modal-overlay[hidden] {
  display: none;
}

/* ── Hero header ──────────────────────────────────────────────── */
.profile-modal__hero {
  position: relative;
  padding: 32px 24px 22px;
  background: linear-gradient(140deg, rgba(29, 78, 216, 0.95) 0%, rgba(10, 30, 80, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-modal__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.profile-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-modal__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.profile-modal__close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}

.profile-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.profile-modal__close:active {
  transform: translateY(1px);
}

/* ── Body ─────────────────────────────────────────────────────── */
.profile-modal__body {
  padding: 18px 20px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Details rows ─────────────────────────────────────────────── */
.profile-modal__details {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.profile-modal__line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.profile-modal__line:last-child {
  border-bottom: none;
}

.profile-modal__row-icon {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  color: var(--primary);
  font-size: 12px;
}

.profile-modal__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  flex: 0 0 90px;
}

.profile-modal__value {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

/* ── Action buttons ───────────────────────────────────────────── */
.profile-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-modal__reroll {
  flex: 0 0 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s;
}

.profile-modal__reroll:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.22);
}

.profile-modal__reroll:active {
  transform: translateY(1px);
}

.profile-modal__reroll:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-modal__logout {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s;
}

.profile-modal__logout:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.22);
}

.profile-modal__logout:active {
  transform: translateY(1px);
}

.profile-modal__feedback {
  flex: 0 0 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.profile-modal__feedback:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.40);
}

.profile-modal__feedback:active {
  transform: translateY(1px);
}

.profile-modal__delete {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid rgba(217, 83, 79, 0.25);
  background: rgba(217, 83, 79, 0.06);
  color: var(--error-color);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s;
}

.profile-modal__delete:hover {
  background: rgba(217, 83, 79, 0.12);
  border-color: rgba(217, 83, 79, 0.40);
}

.profile-modal__delete:active {
  transform: translateY(1px);
}

/* ── Delete confirmation ──────────────────────────────────────── */
.profile-modal__confirm[hidden] {
  display: none;
}

.profile-modal__confirm {
  flex: 0 0 100%;
  margin-top: 4px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 28, 46, 0.95);
}

.profile-modal__confirm-text {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.profile-modal__confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.profile-modal__confirm-cancel,
.profile-modal__confirm-delete {
  flex: 1 1 0;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.profile-modal__confirm-cancel {
  background: var(--surface);
  color: var(--text);
}

.profile-modal__confirm-delete {
  background: var(--error-color);
  color: #fff;
  border-color: var(--error-color);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  background: var(--surface-2);
  gap: 10px;
  scroll-behavior: smooth;
}

/* Existing renderer appends <br/> after every message; modern spacing uses gap instead */
.chat-messages br {
  display: none;
}

.message {
  background: var(--bubble-in);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  opacity: 1;
  margin: 0;
  max-width: min(78%, 640px);
  box-shadow: var(--shadow-sm);
}
.right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.right .message {
  background: var(--bubble-out);
  border-color: rgba(59, 130, 246, 0.25);
}

.chat-messages .message .meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.chat-messages .message .text {
  color: var(--text);
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.chat-messages .metaDate {
  color: var(--muted);
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  grid-gap: 12px;
  font-size: 12px;
  margin: 8px 0;
}
.chat-messages .metaDate:before,
.chat-messages .metaDate:after {
  content: "";
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.chat-messages .message .meta span {
  color: var(--muted);
  font-size: 13px;
}
.bot_msg {
  font-size: 13px;
  text-align: center;
  width: auto;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(19, 28, 46, 0.85);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.bot_msg_upload {
  font-size: 13px;
  text-align: center;
  width: auto;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(19, 28, 46, 0.85);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.chat-empty-state {
  font-size: 13px;
  text-align: center;
  width: min(520px, 100%);
  margin: auto;
  padding: 10px 14px;
  border-radius: 20px;
  border: var(--border);
  background: rgba(19, 28, 46, 0.85);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* ── Poll card ────────────────────────────────────────────── */
.poll-card {
  background: var(--bubble-in);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 16px;
  padding: 18px 20px;
  width: min(92%, 680px);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--text);
}
.poll-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.poll-card__badge {
  background: rgba(59,130,246,0.18);
  color: #60a5fa;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.poll-card__question {
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
}
.poll-card__options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.poll-card__option {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: border-color .15s;
}
.poll-card__option:hover:not(:disabled) {
  border-color: rgba(59,130,246,0.5);
}
.poll-card__option--voted {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.1);
}
.poll-card__option:disabled {
  cursor: default;
}
.poll-card__bar {
  position: absolute;
  inset: 0;
  height: 100%;
  background: rgba(59,130,246,0.13);
  border-radius: 8px;
  pointer-events: none;
  transition: width .3s ease;
}
.poll-card__option-label {
  position: relative;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poll-card__option-pct {
  position: relative;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.poll-card__footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.poll-card__meta {
  font-size: 12px;
  color: var(--muted);
}
.poll-card__share {
  font-size: 12px;
  background: none;
  border: 1px solid rgba(59,130,246,0.35);
  color: #60a5fa;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.poll-card__share:hover {
  background: rgba(59,130,246,0.12);
}
.poll-card__closed-label {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1px 7px;
}

.upload_counter{
  border-radius: 10px;
  border: 1px solid #c95151;
  padding: 5px;
  background-color: #1e3a5f;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 0.9em;
}
/* #goBack{
  display: none;
} */
.msger-inputarea {
  display: flex;
  padding: 12px 14px;
  border-top: var(--border);
  background: rgba(10, 22, 40, 0.97);
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.msger-inputwrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.msger-inputwrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 89px;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.msger-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  height: 44px;
  padding: 0 134px 0 14px;
  color: var(--text);
}
.msger-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.msger-input::placeholder {
  color: rgba(100, 116, 139, 0.95);
}
.msger-input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

/* Poll button — sits left of the GIF button */
.poll-trigger {
  position: absolute;
  top: 50%;
  right: 93px;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.poll-trigger[hidden] {
  display: none;
}
.poll-trigger svg {
  display: block;
  width: 18px;
  height: 18px;
  padding: 0;
}
.poll-trigger:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.poll-trigger:active {
  background: rgba(59, 130, 246, 0.22);
}
.poll-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}
.poll-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* GIF trigger button */
.gif-trigger {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.gif-trigger[hidden] {
  display: none;
}
.gif-trigger:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.gif-trigger:active {
  background: rgba(59, 130, 246, 0.22);
}
.gif-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}
.gif-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* GIF picker panel */
.gif-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 300px;
  background: #1a2d45;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.50);
  padding: 10px;
  z-index: 16;
  display: none;
}
.gif-picker:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gif-picker[hidden] {
  display: none !important;
}
.gif-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.85em;
  outline: none;
}
.gif-search-input:focus {
  border-color: rgba(59, 130, 246, 0.55) !important;
}
.gif-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.gif-results-hint {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8em;
  padding: 20px 0;
  margin: 0;
}
.gif-item {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gif-item:hover {
  opacity: 0.85;
}
.gif-attribution {
  text-align: right;
  font-size: 0.7em;
  color: var(--muted);
  margin: 0;
  padding: 0 !important;
}

/* Chat GIF bubbles */
.chat-gif {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  display: block;
  margin-top: 4px;
}

/* Emoji picker (popover modal anchored to the chat input area) */
.emoji-trigger {
  position: absolute;
  top: 50%;
  right:11px;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.emoji-trigger svg {
  display: block;
  width: 18px;
  height: 18px;
  padding: 0;
}
.emoji-trigger:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.emoji-trigger:active {
  background: rgba(59, 130, 246, 0.22);
}
.emoji-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}
.emoji-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.emoji-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  background: #1a2d45;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.50);
  padding: 10px;
  z-index: 16;
  display: none;
}
.emoji-picker:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.emoji-picker[hidden] {
  display: none !important;
}

.emoji-picker button {
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.emoji-picker button:hover {
  background: rgba(59, 130, 246, 0.18);
}

@media (max-width: 650px) {
  .emoji-picker {
    width: min(280px, calc(100vw - 20px));
    max-height: min(260px, 40vh);
  }
}
.msger-send-btn {
  margin-left: 0;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.23s;
  opacity: 1;
  border-radius: 999px;
  height: 44px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
}
.msger-send-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 0;
  flex: none;
}
.msger-send-btn:hover {
  background: rgba(59, 130, 246, 1);
}
.msger-send-btn:active {
  transform: translateY(1px);
}

@media (max-width: 650px) {
  .msger-inputarea {
    padding: 10px 10px;
    gap: 8px;
  }
  .msger-input {
    height: 40px;
    padding-right: 134px;
  }
  .emoji-trigger {
    height: 34px;
    width: 34px;
    min-width: 34px;
    right: 11px;
  }
  .gif-trigger {
    height: 34px;
    width: 34px;
    min-width: 34px;
    right: 52px;
  }
  .msger-inputwrap::after {
    right: 89px;
  }
  .gif-picker {
    width: min(300px, calc(100vw - 20px));
  }
  .msger-send-btn {
    display: none;
  }
}
.login-span{
  text-decoration: none;
  text-shadow: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}
.link-spans{
  text-decoration: none;
  text-shadow: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}
.upload-wrapper{
  display: none;
}
/* Scope label styling to the modal (avoid impacting labels elsewhere) */
.setuser label {
  color: var(--text);
}
.setuser label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.setuser label.checkbox:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}
.setuser label.checkbox input[type=checkbox] {
  accent-color: rgba(59, 130, 246, 0.95);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.setuser label.checkbox .checkbox-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.setuser label.checkbox .checkbox-title {
  font-weight: 600;
  line-height: 1.2;
}
.setuser label.checkbox .checkbox-note {
  color: rgba(17, 24, 39, 0.68);
  font-size: 0.78rem;
  line-height: 1.25;
}
#file-chosen{
  margin-left: 0.3rem;
  font-family: sans-serif;
}
.setuser {
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  isolation: isolate;
  padding: 28px 24px 24px;
  background: linear-gradient(165deg, rgba(28, 54, 100, 0.98) 0%, rgba(14, 28, 60, 0.98) 100%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(147, 197, 253, 0.18);
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-top: 2px solid rgba(96, 165, 250, 0.50);
  width: min(400px, calc(100vw - 48px));
}

body.session-authenticated .setuser{
  display: none;
}

.setuser-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  text-align: center;
}

.setuser-brand-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 90%;
}

.setuser-brand-subtitle {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.85);
  text-align: center;
  letter-spacing: 0.01em;
}


.setuser.is-compact-auth .setuser-brand .setuser-brand-subtitle {
  display: none;
}

.setuser-help-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  opacity: 0.95;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 7px;
  z-index: 6;
}

.setuser-help-icon:hover {
  opacity: 1;
}

.setuser-help-icon:active {
  transform: translateY(1px);
}

.setuser-help-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.setuser-help-icon svg[hidden] {
  display: none;
}

.setuser .now-playing-preview {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 24px 20px 20px;
  border-radius: inherit;
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-top: 2px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(165deg, rgba(20, 42, 82, 1) 0%, rgba(12, 26, 58, 1) 100%);
  box-shadow: none;
  z-index: 5;
  overflow: clip;
  text-align: center;
}

.setuser .now-playing-preview::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 260px;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.42) 0%, rgba(99, 102, 241, 0.18) 45%, transparent 70%);
  z-index: 0;
}

.setuser .now-playing-preview > * {
  position: relative;
  z-index: 1;
}

.setuser.preview-open {
  min-height: 580px;
}

.setuser .now-playing-preview[hidden] {
  display: none;
}

.setuser .now-playing-preview:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.setuser .now-playing-preview .now-playing-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0;
}

.setuser .now-playing-preview .preview-description {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 300px;
  margin: 4px 0 2px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 25%, rgba(147, 197, 253, 0.92) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setuser .now-playing-preview .preview-stats {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 300px;
  position: relative;
  overflow: hidden;
  background: rgba(15, 32, 64, 0.80);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}

.setuser .now-playing-preview .preview-stats::before {
  display: none;
}

.setuser .now-playing-preview .preview-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.setuser .now-playing-preview .preview-stat i {
  font-size: 13px;
  color: rgba(147, 197, 253, 0.80);
}

.setuser .now-playing-preview .preview-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.setuser .now-playing-preview .preview-stat-label {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.setuser .now-playing-preview .preview-stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(147, 197, 253, 0.18);
  flex-shrink: 0;
}

.setuser .now-playing-preview .setuser-disclaimer {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(148, 163, 184, 0.85);
  font-size: 11.5px;
  line-height: 1.4;
  max-width: 340px;
}

.setuser .now-playing-preview .preview-cta-btn {
  width: 100%;
  max-width: 300px;
  margin-top: 4px;
}

.setuser .now-playing-preview .preview-guest-rules {
  width: 100%;
  max-width: 300px;
  background: rgba(15, 32, 64, 0.85);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.setuser .now-playing-preview .preview-guest-rules__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
}

.setuser .now-playing-preview .preview-guest-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setuser .now-playing-preview .preview-guest-rules__list li {
  font-size: 11.5px;
  color: rgba(186, 210, 240, 0.85);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}

.setuser .now-playing-preview .preview-guest-rules__list li .fa-check {
  color: rgba(52, 211, 153, 0.9);
  font-size: 10px;
  flex-shrink: 0;
}

.setuser .now-playing-preview .preview-guest-rules__list li .fa-clock {
  color: rgba(251, 191, 36, 0.85);
  font-size: 10px;
  flex-shrink: 0;
}

.guest-rules-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11.5px;
  color: rgba(147, 197, 253, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.40);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.guest-rules-link:hover {
  color: rgba(186, 210, 240, 1);
  text-decoration-color: rgba(186, 210, 240, 0.70);
}

.setuser .now-playing-preview .preview-guest-rules__list li .fa-times {
  color: rgba(248, 113, 113, 0.85);
  font-size: 10px;
  flex-shrink: 0;
}

.setuser .now-playing-preview .setuser-disclaimer--coming-soon {
  margin-top: 6px;
  font-style: italic;
  color: var(--primary);
  border-color: transparent;
  background: transparent;
  padding: 0 12px;
  opacity: 0.6;
}

.setuser .now-playing-track {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  width: 100%;
  max-width: 340px;
  padding: 12px 12px;
  border-radius: 14px;
  border: var(--border);
  background: rgba(19, 28, 46, 0.90);
  box-shadow: var(--shadow-sm);
}

.setuser form {
  width: 100%;
}

.setuser .header {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.setuser .header .brand-logo-inline {
 display: inline-block;
    height: 1.3em;
  width: auto;
    vertical-align: -0.33em;
    margin: 0;
}
.input-icon-wrapper {
  position: relative;
  width: 100%;
}
.input-icon-wrapper .input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(147, 197, 253, 0.75);
  width: 16px;
  height: 16px;
}
.input-icon-wrapper .input-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.setuser .input-icon-wrapper input[type=text],
.setuser .input-icon-wrapper input[type=password],
.setuser .input-icon-wrapper input[type=email],
.setuser .input-icon-wrapper input:not([type]) {
  padding-left: 34px;
}
.setuser input[type=text],
.setuser input[type=password],
.setuser input[type=email],
.setuser input:not([type]) {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.26);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) inset;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.setuser input::placeholder {
  color: rgba(148, 163, 184, 0.70);
}
.setuser input:focus {
  border-color: rgba(96, 165, 250, 0.80);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28), 0 1px 4px rgba(0, 0, 0, 0.25) inset;
}
/* Override browser autofill highlight (Chrome/Safari inject their own bg + text color) */
.setuser input:-webkit-autofill,
.setuser input:-webkit-autofill:hover {
  -webkit-text-fill-color: #e2e8f0;
  -webkit-box-shadow: 0 0 0 1000px rgba(28, 52, 96, 0.98) inset;
  box-shadow: 0 0 0 1000px rgba(28, 52, 96, 0.98) inset;
  border-color: rgba(147, 197, 253, 0.22) !important;
  outline: none;
  caret-color: #e2e8f0;
  transition: background-color 9999s ease-in-out 0s;
}
.setuser input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e2e8f0;
  -webkit-box-shadow: 0 0 0 1000px rgba(28, 52, 96, 0.98) inset, 0 0 0 3px rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 0 1000px rgba(28, 52, 96, 0.98) inset, 0 0 0 3px rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.65) !important;
  outline: none;
  caret-color: #e2e8f0;
  transition: background-color 9999s ease-in-out 0s;
}
.setBTN{
  cursor: pointer;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(67, 107, 234, 0.95) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.025em;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.30);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.setBTN:hover{
  background: linear-gradient(135deg, rgb(66, 140, 255) 0%, rgb(80, 120, 255) 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}
.setBTN:active{transform: translateY(1px); box-shadow: 0 1px 6px rgba(59, 130, 246, 0.30);}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: rgba(148, 163, 184, 0.85);
  font-size: 13px;
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(147, 197, 253, 0.20);
}
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.google-login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
}
.google-login-btn:active {
  transform: translateY(1px);
}
.google-login-btn svg {
  flex-shrink: 0;
}
.google-login-btn .fa-user-secret {
  color: rgb(96 165 250 / 92%);
}
/* .Uploadbtn{
  cursor: pointer;
  padding: 10px 14px;
  background: var(--primary-2);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(134, 110, 162, 0.35);
  border-radius: 12px;
  transition: transform 0.12s ease, filter 0.15s ease;
  margin-top: 6px;
}
.Uploadbtn:hover{filter: brightness(0.98);}
.Uploadbtn:active{transform: translateY(1px);}
.upload-status{
  font-size: 15px;
  color: var(--error-color);
} */
.forgotten-wrapper {
  display: none;
  flex-direction: column;
}
.register-wrapper{
  display: none;
  flex-direction: column;
  row-gap: 8px;
}
.newPass-wrapper{
  display: none;
  justify-content: space-between;
}
.login-wrapper{
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.guest-wrapper{
   display: none;
  flex-direction: column;
  row-gap: 8px;
}

/* Consistent spacing inside modal forms */
.setuser .login-wrapper,
.setuser .register-wrapper,
.setuser .guest-wrapper,
.setuser .forgotten-wrapper,
.setuser .newPass-wrapper {
  row-gap: 10px;
}

.setuser.is-compact-auth .register-wrapper,
.setuser.is-compact-auth .forgotten-wrapper {
  padding-top: 4px;
}

.setuser p.header {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0 0 10px;
  color: var(--text);
  text-shadow: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.setuser .guest-wrapper p.small {
  margin: -6px 0 4px;
  padding: 0;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  color: rgba(100, 116, 139, 0.95);
  font-style: italic;
}
.setuser p.nickError {
  margin-top: 10px;
  text-shadow: none;
  color: #b91c1c;
  margin-bottom: 0px;
  padding: 0px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-style: italic;
}
.forgot-success-msg {
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(92, 184, 92, 0.12);
  border: 1.5px solid rgba(92, 184, 92, 0.35);
  color: var(--success-color);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
}
.forgot-success-msg[hidden] {
  display: none;
}
.form-error-msg {
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(217, 83, 79, 0.10);
  border: 1.5px solid rgba(217, 83, 79, 0.35);
  color: var(--error-color);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
}
.form-error-msg[hidden] {
  display: none;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
.setuser .login-info-span{
    margin-top: 7px;
    font-size: 14px;
    color: var(--muted);
    text-shadow: none !important;
    padding: 0 0 5px!important;
}
.setuser .forgotten-info-span{
  font-size: 12px;
  color: var(--muted);
  text-shadow: none !important;
  text-align: right;
  margin: -4px 0 2px;
}

.setuser .login-info-span,
.setuser #goBack {
  text-align: center;
}

.setuser .setuser-footer {
  display: grid;
  justify-items: center;
  row-gap: 10px;
  margin-top: 12px;
}

.setuser .login-info-span a {
  color: var(--muted);
  text-decoration: none;
}

.setuser .login-info-span a:hover,
.setuser .login-info-span a:focus-visible {
  color: var(--text);
}

.setuser .link-spans:hover,
.setuser .login-span:hover {
  text-decoration: none;
}
/* .audio-player{
  width: 243px;
  position: relative;
  display: flex;
}
#audioStream{display: none;}
.songs-feed {
  text-align: left;
  border: #c2b3b3 solid 1px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  flex: 1;
  padding-left: 48px;
  padding-top: 12px;
  padding-right: 9px;
  border-radius: 19px;
  min-width: -webkit-fill-available;
  background-color: #d7d8dd;
  color: #30548b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: -webkit-fill-available;
}
#playPause {
  background-color: rgb(171 155 189);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 14px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
#playPause:hover .icon {
  transform: scale(1.2);
}
#playPause .icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease-in-out;
}
#playPause .icon i {
  font-size: 1.2em;
} */
/* #folder-size{
  margin-top: 10px;
  background: rgba(134, 110, 162, 0.10);
  border: 1px solid rgba(134, 110, 162, 0.18);
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
} */

/* ── Report form fields ───────────────────────────────────────── */
.report-form__field {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-form__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.report-form__select,
.report-form__textarea {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 7px 10px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.report-form__select:focus,
.report-form__textarea:focus {
  border-color: var(--primary);
}

.report-form__textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

.report-form__select option {
  background: var(--surface);
}

/* ── Profile preferences panel ─────────────────────────────── */
#profile-preferences {
  padding: 12px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 4px;
}

.profile-modal__prefs-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.prefs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
}

.prefs-row__label {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Theme toggle switch ────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.theme-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-toggle__track {
  position: relative;
  width: 42px;
  height: 22px;
  background: var(--surface-2);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: left 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.theme-toggle input:checked + .theme-toggle__track {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.35);
}

.theme-toggle input:checked + .theme-toggle__track .theme-toggle__thumb {
  left: 22px;
  background: var(--primary-2);
}

.theme-toggle__text {
  font-size: 12px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}