/* ==========================================================================
   UnrealChat UI — Refined Aurora Glass & Cyber-Dark Aesthetic
   Comprehensive, world-class UI styling system for chat, voice, modals,
   settings panels, friends desk, nitro suite, bot studio & audio stage.
   ========================================================================== */

:root {
  /* Surfaces (Deep Navy & Ambient Glass) */
  --bg-deep: #080c14;
  --bg-rail: rgba(12, 17, 28, 0.78);
  --bg-col: rgba(14, 20, 34, 0.78);
  --bg-chat: rgba(16, 23, 38, 0.78);
  --bg-panel: rgba(14, 20, 34, 0.85);
  --bg-card: rgba(22, 31, 50, 0.65);
  --bg-modal: rgba(16, 22, 38, 0.96);
  --bg-input: rgba(10, 15, 26, 0.75);
  --bg-hover: rgba(122, 175, 255, 0.08);
  --bg-active: rgba(122, 175, 255, 0.14);
  --bg-selected: rgba(59, 130, 246, 0.16);
  --bg-embed: rgba(18, 25, 42, 0.8);

  /* Lines & Glass Borders */
  --line: rgba(122, 175, 255, 0.14);
  --line-soft: rgba(122, 175, 255, 0.08);
  --line-strong: rgba(122, 175, 255, 0.28);
  --card-brd: rgba(122, 175, 255, 0.18);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 16%);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 36px rgba(2, 6, 18, 0.55), 0 0 24px rgba(59, 130, 246, 0.06);

  /* Typography */
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;

  /* Accent family (Electric Aurora Blue) */
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-grad: linear-gradient(135deg, #60a5fa, #3b82f6 55%, #1d4ed8);
  --glow: 0 0 18px rgba(59, 130, 246, 0.35);

  /* Semantic status colors */
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --link: #60a5fa;

  /* Dimensions & Geometry */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --rail-w: 74px;
  --col-w: 246px;
  --members-w: 246px;
  --head-h: 52px;
  --font: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------ Base Reset */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1100px 550px at 85% -10%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(850px 480px at 10% 110%, rgba(34, 211, 238, 0.08), transparent 70%),
    radial-gradient(600px 400px at 50% 50%, rgba(59, 130, 246, 0.04), transparent 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(59, 130, 246, 0.45);
  color: #fff;
}

/* Sleek Scrollbars */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(122, 175, 255, 0.2);
  border-radius: 99px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(122, 175, 255, 0.38);
}

.thin-scroll::-webkit-scrollbar {
  width: 4px;
}

.hidden {
  display: none !important;
}

/* Icons */
.ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
}

.ic-lg { width: 20px; height: 20px; }
.ic-xl { width: 32px; height: 32px; stroke-width: 1.5; }
.icon-btn .ic { width: 17px; height: 17px; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ Shell Layout */
.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ------------------------------------------------------------ Floating Top Navbar */
.navbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 12px 0;
  padding: 8px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-rail);
  background-image: var(--glass-sheen);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow), var(--inset-hi);
  z-index: 30;
}

.navbar .burger {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 16px rgba(59, 130, 246, 0.4);
}

.brand .mark img {
  width: 20px;
  height: 20px;
  display: block;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-strong);
}

.brand .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 99px;
  padding: 1px 7px;
}

.navbar .acts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar .searchbox {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.navbar .searchbox input {
  height: 32px;
  width: 190px;
  padding: 0 10px 0 30px;
  border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 12.5px;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.navbar .searchbox input:focus {
  width: 250px;
  border-color: var(--accent-2);
  outline: none;
}

.navbar .searchbox .glass {
  position: absolute;
  left: 9px;
  color: var(--muted);
  pointer-events: none;
}

.btn-nav {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s;
}

.btn-nav:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
  border-color: var(--line-strong);
}

.btn-nav.primary {
  background: var(--accent-grad);
  border: 0;
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  transition: 0.15s;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.16);
  color: var(--red);
}

/* ------------------------------------------------------------ Main Floating App Grid */
.app {
  flex: 1;
  display: grid;
  grid-template-columns: var(--rail-w) var(--col-w) 1fr var(--members-w);
  gap: 10px;
  padding: 10px 12px 12px;
  min-height: 0;
  overflow: hidden;
}

.app.no-members {
  grid-template-columns: var(--rail-w) var(--col-w) 1fr 0px;
}

.app.no-members .members {
  display: none;
}

/* ------------------------------------------------- Server Rail */
.rail {
  background: var(--bg-rail);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 20;
}

.rail-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  flex: none;
}

.rail-btn img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.rail-btn:hover {
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.rail-btn.active {
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.rail-pill {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #fff;
  border-radius: 0 4px 4px 0;
  transition: height 0.18s ease;
}

.rail-btn:hover .rail-pill {
  height: 18px;
}

.rail-btn.active .rail-pill {
  height: 36px;
}

.rail-btn .badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border: 2px solid var(--bg-deep);
}

.rail-sep {
  width: 32px;
  height: 2px;
  background: var(--line-soft);
  border-radius: 99px;
  margin: 4px 0;
}

/* ------------------------------------------------- Channels Sidebar Column */
.col {
  background: var(--bg-col);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  z-index: 15;
}

.col-head {
  height: var(--head-h);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
  flex: 0 0 var(--head-h);
}

.col-head:hover {
  background: var(--bg-hover);
}

.col-head .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-scroller {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  user-select: none;
  cursor: pointer;
}

.cat-head:hover {
  color: var(--muted);
}

.cat-head .act {
  opacity: 0;
  transition: opacity 0.15s;
}

.cat-head:hover .act {
  opacity: 1;
}

.chan-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: 0.12s;
  cursor: pointer;
  user-select: none;
}

.chan-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.chan-btn.active {
  background: var(--bg-selected);
  color: var(--accent-2);
  font-weight: 600;
}

.chan-btn .prefix {
  font-size: 16px;
  color: var(--muted-2);
  line-height: 1;
}

.chan-btn.active .prefix {
  color: var(--accent-2);
}

.chan-btn .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chan-btn .badge {
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 5px;
}

.chan-btn .acts {
  display: none;
  align-items: center;
  gap: 2px;
}

.chan-btn:hover .acts {
  display: flex;
}

/* User Dock at bottom of Column */
.user-dock {
  flex: 0 0 auto;
  height: 54px;
  background: rgba(10, 14, 24, 0.85);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.user-dock .me {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: 0.12s;
}

.user-dock .me:hover {
  background: var(--bg-hover);
}

.user-dock .info {
  min-width: 0;
}

.user-dock .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dock .status {
  font-size: 11px;
  color: var(--muted);
}

.user-dock .dock-acts {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Avatars & Presence */
.av {
  position: relative;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #1c2538;
  color: #fff;
  font-weight: 700;
  flex: none;
}

.av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.m40 { width: 36px; height: 36px; font-size: 14px; }
.av.lg { width: 44px; height: 44px; font-size: 17px; }
.av.xl { width: 68px; height: 68px; font-size: 24px; }

.av .dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  background: var(--muted-2);
}

.av .dot.online { background: var(--green); }
.av .dot.idle { background: var(--yellow); }
.av .dot.dnd { background: var(--red); }
.av .dot.offline { background: var(--muted-2); }

/* ------------------------------------------------------ Main Chat View */
.chat-main {
  background: var(--bg-chat);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.chat-head {
  height: var(--head-h);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex: 0 0 var(--head-h);
  gap: 12px;
}

.chat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-head-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head-sub {
  font-size: 12.5px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-scroller {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Message Rows */
.msg {
  display: flex;
  gap: 14px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  transition: background 0.1s ease;
  position: relative;
}

.msg:hover {
  background: rgba(122, 175, 255, 0.04);
}

.msg.msg-pending {
  opacity: 0.65;
  filter: grayscale(0.2);
}

.msg-confirmed {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.msg .mc {
  flex: 1;
  min-width: 0;
}

.msg .mhead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.msg .author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
  cursor: pointer;
}

.msg .author:hover {
  text-decoration: underline;
}

.msg .stamp {
  font-size: 11px;
  color: var(--muted-2);
}

.msg .body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

/* Reactions */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.12s;
  user-select: none;
}

.reaction-pill:hover {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.reaction-pill.on {
  background: var(--bg-selected);
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--accent-2);
}

/* Composer / Input Area */
.composer-wrap {
  padding: 0 16px 14px;
  position: relative;
}

.composer-box {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer-box:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.composer-box textarea {
  width: 100%;
  max-height: 140px;
  min-height: 24px;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.45;
}

.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

/* ------------------------------------------------------ Member List */
.members {
  background: var(--bg-col);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  z-index: 10;
}

.members-scroller {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-group-title {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
  transition: 0.12s;
}

.member-row:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.member-row .name {
  font-size: 13.5px;
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row .status {
  font-size: 11.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1;
}


/* ==========================================================================
   CENTRAL VOICE STAGE & CALL POPUPS
   ========================================================================== */
.vstage.voicebox {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, 94vw);
  max-height: 86vh;
  background: var(--bg-modal);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(59, 130, 246, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 90;
  animation: popIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.vstage.voicebox.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  transform: none;
}

.vstage.voicebox.minimized {
  height: 52px;
  overflow: hidden;
}

.vstage-hd {
  height: 50px;
  background: rgba(10, 14, 24, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  flex: 0 0 50px;
}

.vstage-hd-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vstage-hd-drag {
  color: var(--muted-2);
  cursor: grab;
  display: flex;
  align-items: center;
}

.vstage-hd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.vstage-hd-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}

.vstage-connected-pill {
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.vstage-hd-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vstage-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.vcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.vcard:hover {
  background: rgba(122, 175, 255, 0.08);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.vcard.speaking {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 0 16px rgba(34, 197, 94, 0.4);
}

.vc-av {
  position: relative;
  display: inline-block;
}

.vc-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}

.vc-bot-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-modal);
}

.vcard .vc-nm {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-strong);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vcard .vc-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.vcard .vc-sub.conn-good { color: var(--green); }
.vcard .vc-sub.conn-connecting { color: var(--accent-2); }
.vcard .vc-sub.conn-reconnecting { color: var(--red); }

.vc-icons {
  display: flex;
  gap: 4px;
}

.vc-ic {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
}

.vc-vol {
  font-size: 11px;
  color: var(--accent-2);
  background: rgba(59, 130, 246, 0.15);
  padding: 1px 6px;
  border-radius: 99px;
}

/* Video screens grid */
.vscreens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.vscreen {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.vscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vscreen-head {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
}

.vlive {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.vctr {
  height: 64px;
  background: rgba(10, 14, 24, 0.9);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  flex: 0 0 64px;
}

.cbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c2538;
  border: 1px solid var(--line);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.cbtn:hover {
  background: #27344e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cbtn.on {
  background: var(--red);
  border-color: transparent;
}

.cbtn.end {
  background: var(--red);
  border-color: transparent;
}

.cbtn.end:hover {
  background: #dc2626;
}

/* Soundboard Hud & Bar */
.sb-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  gap: 12px;
}

.sb-stage-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sb-stage-icon {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.sb-stage-title {
  font-weight: 700;
  color: #fff;
}

.sb-stage-author {
  color: var(--muted);
  font-size: 12px;
}

.sb-stage-time {
  color: var(--muted-2);
  font-size: 11px;
}

.sb-stage-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 8px;
}

.sb-stage-progress-fill {
  height: 100%;
  background: var(--accent-grad);
}

.sb-stage-ctrls {
  display: flex;
  gap: 4px;
}

/* Music Bot Now Playing Bar */
.np-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
}

.np-meta {
  flex: 1;
  min-width: 0;
}

.np-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-sub {
  font-size: 12px;
  color: var(--muted);
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.np-vol-slider {
  width: 80px;
}

/* Direct 1:1 Call Box */
.callbox {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 92vw);
  background: var(--bg-modal);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(59, 130, 246, 0.15);
  z-index: 95;
  overflow: hidden;
}

.callbox.minimized {
  height: 46px;
}

.call-drag-bar {
  height: 46px;
  background: rgba(10, 14, 24, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: grab;
}

.call-drag-title {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 14px;
}

.callbox-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.callbox-content .nm {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
}

.callbox-content .st {
  font-size: 13px;
  color: var(--muted);
}

.callbox-content .st.live {
  color: var(--green);
}

.callbox-content .row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.call-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.call-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.call-video-tile {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid var(--line);
}

.call-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-hd {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
}

.cv-fs {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
}


/* ==========================================================================
   MODALS CORE CONTAINER & HEADERS
   ========================================================================== */
#modal-root, .modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modal-root.on, .modal-root.on {
  display: flex;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: hidden;
  background: var(--bg-modal);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
  z-index: 2;
  animation: popIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal.wide {
  width: min(940px, 95vw);
}

.modal.settings {
  width: min(960px, 95vw);
  height: min(740px, 88vh);
}

/* Header */
.modal header, .modal .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.75);
  flex: 0 0 auto;
}

.modal header h3, .modal .mh h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.modal .mh-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal .mh-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.modal .content {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(10, 14, 24, 0.92);
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.modal .lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.bare-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   SETTINGS 2-COLUMN ARCHITECTURE (DISCORD / LINEAR STYLE)
   ========================================================================== */
.set-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.set-nav {
  width: 220px;
  flex: 0 0 220px;
  background: rgba(10, 14, 24, 0.75);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.set-nav .nh {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  padding: 8px 10px 4px;
  margin-top: 6px;
}

.set-nav button, .set-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.set-nav button:hover, .set-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
  transform: translateX(2px);
}

.set-nav button.on, .set-nav-item.on {
  background: var(--bg-selected);
  color: var(--accent-2);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  border-radius: 4px 8px 8px 4px;
}

.set-nav button.danger {
  color: #f87171;
}

.set-nav button.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.set-content, .set-panel {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.set-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.set-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sec {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.sec .end {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: normal;
}

.statrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat b {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.swline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.12s;
}

.swline:hover {
  border-color: var(--line-strong);
}

.sw {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
}

.sw input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sw i {
  position: absolute;
  inset: 0;
  background: #222c3e;
  border-radius: 99px;
  transition: 0.2s;
}

.sw i:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.sw input:checked + i {
  background: var(--accent);
}

.sw input:checked + i:before {
  transform: translateX(20px);
}

.field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

.pe-frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}

.pe-hex {
  font-family: monospace;
  font-size: 13px;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-strong);
}

.pe-colpick {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: none;
  padding: 0;
}

.pe-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}

.acct-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.acct-card .bnr {
  height: 90px;
  background: var(--accent-grad);
}

.acct-card .row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 20px 20px;
  margin-top: -34px;
}

.acct-card .nm {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
}

.acct-card .un {
  font-size: 13.5px;
  color: var(--muted);
}

.danger-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.nitro-locked-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 12px;
  margin-bottom: 14px;
}

.quota-bar {
  width: 100%;
  height: 8px;
  background: #1e2638;
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 10px;
}

.quota-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.list, .friend-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item, .friend-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all 0.12s ease;
}

.list-item:hover, .friend-picker-item:hover {
  background: rgba(122, 175, 255, 0.08);
  border-color: var(--line-strong);
}

.list-item .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-item .grow b {
  font-size: 14px;
  color: var(--text-strong);
}

.list-item .grow span, .list-item .grow .sub {
  font-size: 12px;
  color: var(--muted);
}

.srv-profile-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   FRIENDS DESK & PAGE
   ========================================================================== */
.friends-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fp-head {
  height: var(--head-h);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
  flex: 0 0 var(--head-h);
}

.fp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}

.fp-vsep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.fp-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-tab:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.fp-tab.on {
  background: var(--bg-selected);
  color: var(--accent-2);
}

.fp-tab.add {
  background: #15803d;
  color: #fff;
}

.fp-tab.add:hover {
  background: #16a34a;
}

.fp-tab .pill {
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 10px;
}

.fp-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-sec {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  padding: 12px 4px 6px;
}

.fp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all 0.12s ease;
}

.fp-row:hover {
  background: rgba(122, 175, 255, 0.08);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.fp-row .who {
  flex: 1;
  min-width: 0;
}

.fp-row .who b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-strong);
}

.fp-row .who span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.fp-acts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-act {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c2538;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.fp-act:hover {
  background: #27344e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fp-act.ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
}

.fp-act.no {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.35);
}

.fp-addcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.fp-addrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.fp-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
  font-size: 14px;
}


/* ==========================================================================
   NITRO SHOP, DIGITAL WALLET & MATRIX
   ========================================================================== */
.nitro-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.nitro-hero.on {
  border-color: rgba(244, 114, 182, 0.5);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.nitro-gem {
  font-size: 11px;
  font-weight: 800;
  background: var(--accent-grad);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
}

.nitro-tag {
  font-size: 11px;
  font-weight: 800;
  background: #ec4899;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}

.wallet-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wallet-balance-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #93c5fd;
  letter-spacing: 0.06em;
}

.wallet-amount {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.nitro-card-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.nitro-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 14px 0;
}

.nitro-plan-card {
  background: #111726;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.15s ease;
}

.nitro-plan-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.nitro-plan-card.plus {
  border-color: rgba(244, 114, 182, 0.4);
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.08), rgba(17, 23, 38, 0.95));
}

.npc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.npc-gem {
  font-size: 10.5px;
  font-weight: 800;
  background: var(--accent-grad);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.npc-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  background: #ec4899;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.npc-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.npc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.npc-list li:before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.nitro-buy-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 0;
  text-align: center;
}

.nitro-buy-btn.classic {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nitro-buy-btn.boost {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.nitro-buy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Nitro Matrix Table */
.nitro-matrix-table {
  background: #0d121e;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
}

.nitro-matrix-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: rgba(10, 14, 24, 0.85);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
}

.nm-tier-head.nitro { color: var(--accent-2); }
.nm-tier-head.plus { color: #f472b6; }

.nitro-matrix-body {
  display: flex;
  flex-direction: column;
}

.nitro-matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  align-items: center;
}

.nitro-matrix-row:last-child {
  border-bottom: 0;
}

.nm-col.highlight {
  color: var(--accent-2);
  font-weight: 600;
}

.nm-col.check {
  color: var(--green);
  font-weight: 600;
}

.nm-col.cross {
  color: var(--muted-2);
}

.nitro-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.nitro-perk {
  background: #101624;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nitro-perk b {
  font-size: 13.5px;
  color: var(--text-strong);
}

/* Selectors Grid */
.thm-selector-grid, .dec-selector-grid, .amb-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.thm-choice, .dec-choice, .amb-choice {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.thm-choice:hover, .dec-choice:hover, .amb-choice:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.thm-choice.active, .dec-choice.active, .amb-choice.active {
  border-color: var(--accent);
  background: var(--bg-selected);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.thm-preview {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.dec-preview-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.thm-lbl, .dec-lbl, .amb-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   VOICE SETTINGS & DSP STUDIO
   ========================================================================== */
.vset-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vset-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 10px 0;
}

.vset-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vset-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.vset-vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.vset-slider {
  flex: 1;
}

.vset-vol-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  min-width: 44px;
  text-align: right;
}

.vset-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}

.vset-mode-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.vset-mode-btn:hover {
  background: rgba(122, 175, 255, 0.08);
  border-color: var(--line-strong);
}

.vset-mode-btn.active {
  background: var(--bg-selected);
  border-color: var(--accent);
}

.vset-mode-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.vset-mode-desc {
  font-size: 12px;
  color: var(--muted);
}

.vset-keybind-btn {
  padding: 8px 16px;
  background: #1c2638;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-2);
  cursor: pointer;
}

.vset-keybind-btn.recording {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red);
  color: var(--red);
}

.vset-ptt-recorder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.vset-dsp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

.vset-dsp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.vset-dsp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.vset-usage-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.vset-usage-note {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fbbf24;
  line-height: 1.5;
}

.vset-meter-container {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
}

.vset-meter-bar-track {
  width: 100%;
  height: 10px;
  background: #141b2a;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.vset-meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
  width: 0%;
  transition: width 0.05s ease;
}


/* ==========================================================================
   SOUNDBOARD & MUSIC PLAYLISTS
   ========================================================================== */
.sb-modal-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  gap: 12px;
}

.sb-vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.sb-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.sb-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.sb-card.playing {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.sb-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}

.sb-playing-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

.sb-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 11px;
}

/* Soundboard Active HUD */
.sb-active-hud {
  background: #111827;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-hud-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-hud-emoji {
  background: var(--accent-grad);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}

.sb-hud-meta {
  display: flex;
  flex-direction: column;
}

.sb-hud-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.sb-hud-sender {
  font-size: 12px;
  color: var(--muted);
}

.sb-hud-time {
  font-size: 12px;
  color: var(--muted-2);
  font-family: monospace;
}

.sb-seekbar {
  width: 100%;
}

.sb-hud-ctrls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Music Playlists Hub */
.pl-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pl-import-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pl-import-input {
  width: 220px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.pl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pl-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pl-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}

.pl-card-info {
  flex: 1;
  min-width: 0;
  margin: 0 12px;
}

.pl-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.pl-track-badge {
  font-size: 11px;
  background: #1e293b;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 99px;
}

.pl-card-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.pl-card-code {
  font-size: 11px;
  color: var(--accent-2);
  margin-top: 4px;
  cursor: pointer;
}

.pl-card-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pl-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0f1422;
  border-radius: 10px;
  padding: 8px;
}

.pl-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.pl-track-num {
  font-size: 12px;
  color: var(--muted-2);
  min-width: 20px;
}

.pl-track-meta {
  flex: 1;
  min-width: 0;
  margin: 0 10px;
}

.pl-track-title {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
}

.pl-track-url {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-add-track-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ==========================================================================
   DISCORD ROLES & PERMISSIONS STUDIO
   ========================================================================== */
.discord-roles-layout {
  display: flex;
  gap: 18px;
  min-height: 440px;
}

.discord-role-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #0d121e;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
}

.discord-role-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.discord-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.discord-role-item:hover, .discord-role-item.active {
  background: var(--bg-selected);
  color: var(--accent-2);
  font-weight: 600;
}

.discord-role-editor {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discord-role-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.discord-role-tab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}

.discord-role-tab.active {
  background: var(--bg-selected);
  color: var(--accent-2);
}

.discord-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.discord-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

.discord-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.discord-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-toggle-info b {
  font-size: 14px;
  color: var(--text-strong);
}

.discord-toggle-info span {
  font-size: 12px;
  color: var(--muted);
}

.discord-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
}

.discord-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.discord-slider {
  position: absolute;
  inset: 0;
  background: #222c3e;
  border-radius: 99px;
  transition: 0.2s;
  cursor: pointer;
}

.discord-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.discord-switch input:checked + .discord-slider {
  background: var(--accent);
}

.discord-switch input:checked + .discord-slider:before {
  transform: translateX(20px);
}

.discord-perms-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discord-perm-category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  margin-top: 14px;
}

/* ==========================================================================
   SUPPORT DESK & TICKETS
   ========================================================================== */
.ticket-desk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ticket-desk-filter {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}

.ticket-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ticket-nav-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.ticket-nav-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.12s ease;
}

.ticket-card:hover {
  border-color: var(--accent-2);
  background: rgba(122, 175, 255, 0.08);
  transform: translateY(-1px);
}

.ticket-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 14.5px;
}

.ticket-cat-badge {
  font-size: 11px;
  font-weight: 700;
  background: #1c2638;
  color: #93c5fd;
  padding: 2px 7px;
  border-radius: 4px;
}

.ticket-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.ticket-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #1f2937;
  color: #9ca3af;
}

.ticket-badge.open { background: rgba(34, 197, 94, 0.2); color: var(--green); }
.ticket-badge.closed { background: rgba(239, 68, 68, 0.2); color: var(--red); }

.ticket-thread-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ticket-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ticket-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-msg-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.ticket-msg-bubble.mine {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

.ticket-msg-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

/* ==========================================================================
   USER PROFILE MODAL & POPOUT
   ========================================================================== */
.user-popout {
  position: fixed;
  z-index: 400;
  width: 330px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-modal);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.po-banner, .pop-banner {
  height: 80px;
  background: var(--accent-grad);
}

.po-banner img, .pop-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.po-body {
  padding: 0 16px 16px;
}

.po-id, .up-id {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -32px;
}

.po-id .av.lg, .up-id .av.lg {
  border: 4px solid #141824;
}

.po-id .nm, .up-id .nm {
  font-weight: 700;
  font-size: 16.5px;
  color: #fff;
}

.po-id .un, .up-id .un {
  font-size: 12.5px;
  color: var(--muted);
}

.po-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.po-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.po-dot.on {
  background: var(--green);
}

.po-dot-sm {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.po-bio {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.po-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.po-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.2);
}

.po-sec {
  margin-top: 14px;
}

.po-sec-t {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.po-sec-v {
  font-size: 13px;
  color: var(--text);
}

.po-foot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ==========================================================================
   SERVER WIZARD & DISCOVERY
   ========================================================================== */
.wiz {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wiz-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  text-align: center;
  margin: 0;
}

.wiz-sub {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.5;
}

.wiz-tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wiz-tpl {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wiz-tpl:hover {
  background: var(--bg-hover);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.wiz-tpl b {
  font-size: 14px;
  color: var(--text-strong);
}

.wiz-tpl .d {
  font-size: 12px;
  color: var(--muted);
}

.wiz-ic-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wiz-ic-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
}

.disc-search {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.disc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.12s ease;
}

.disc-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.disc-card .top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.disc-card .nm {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-strong);
}

.disc-card .ds {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.disc-card .meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

/* ==========================================================================
   THREADS, POLLS & RULES SCREENING
   ========================================================================== */
.thread-panel {
  width: 330px;
  flex: 0 0 330px;
  background: var(--bg-col);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  min-height: 0;
}

.thread-panel.open {
  display: flex;
}

.thread-panel-head {
  height: var(--head-h);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.thread-head-info {
  display: flex;
  flex-direction: column;
}

.thread-root-preview {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line-soft);
}

.thread-msgs-scroller {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.thread-composer-wrap {
  padding: 0 16px 14px;
}

.thread-input-row {
  display: flex;
  gap: 8px;
}

.thread-spine-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent-2);
}

.poll-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  max-width: 480px;
  margin-top: 8px;
}

.poll-question-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.poll-opt-card {
  background: #111726;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poll-opt-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.25);
  z-index: 1;
  transition: width 0.3s ease;
}

.poll-opt-info {
  position: relative;
  z-index: 2;
  font-size: 13.5px;
  color: var(--text-strong);
}

.poll-opt-pct {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2);
}

.rules-modal-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-welcome-hero {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.rules-body-text {
  background: #0f1422;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.rules-agree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-strong);
  margin-top: 4px;
}

.rules-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #fde047;
}

.rules-complete-btn {
  background: #eab308;
  color: #000;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   FORWARDING, GROUP DMS & EMOJI PICKER
   ========================================================================== */
.fwd-preview-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.fwd-preview-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.fwd-dest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.fwd-group-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  padding: 6px 2px 2px;
}

.group-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.group-pill {
  font-size: 11px;
  background: #1e293b;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 99px;
}

/* Emoji & Sticker Picker */
.picker, .emoji-picker {
  background: var(--bg-modal);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.picker-tabs, .pk-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.75);
}

.picker-tab, .pk-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.picker-tab.active, .pk-tab.on {
  color: var(--accent-2);
  border-bottom: 2px solid var(--accent);
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  padding: 12px;
}

.sticker-item {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease;
  object-fit: contain;
}

.sticker-item:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   FORMS, BUTTONS, CONTEXT MENUS & CODE BLOCKS
   ========================================================================== */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field input[type="search"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-strong);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  background: #1e283c;
  color: var(--text);
}

.btn:hover {
  background: #27344e;
  color: #fff;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}

.btn.primary:hover {
  opacity: 0.94;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.btn.secondary {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(122, 175, 255, 0.12);
  border-color: var(--line-strong);
}

.btn.danger {
  background: var(--red);
  color: #fff;
}

.btn.danger:hover {
  background: #dc2626;
}

.btn.sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn.lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn.full {
  width: 100%;
}

/* Context Menu */
.ctx-menu {
  position: fixed;
  z-index: 500;
  min-width: 190px;
  background: var(--bg-modal);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: 0.1s;
}

.ctx-item:hover {
  background: var(--accent-grad);
  color: #fff;
}

.ctx-item.danger:hover {
  background: var(--red);
  color: #fff;
}

.ctx-sec {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* Code Blocks */
.code-block {
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted);
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.5;
}

.alert.info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.alert.err, .alert.danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert.ok, .alert.success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* ------------------------------------------------ Auth Pages */
body.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--bg-deep);
  background-image:
    radial-gradient(900px 500px at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(800px 450px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.auth-card {
  width: min(440px, 92vw);
  background: var(--bg-modal);
  background-image: var(--glass-sheen);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(59, 130, 246, 0.12);
}

.brandline {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.brandline .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  box-shadow: var(--glow);
}

.auth-card .sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-card form button#go {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 14.5px;
}

.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.remember-row {
  display: flex;
  align-items: center;
  margin: 10px 0 16px;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-transform: none;
  font-weight: normal;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 99px;
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 8px;
}

.resend-link {
  font-size: 13px;
  color: var(--accent-2);
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}

.gmail-tag {
  font-size: 10.5px;
  font-weight: normal;
  color: var(--accent-2);
  margin-left: 6px;
}

/* ------------------------------------------------ Toasts */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: #141c2c;
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.ok { border-color: var(--green); }
.toast.err { border-color: var(--red); }

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ------------------------------------------------ Jump to latest button */
.jump {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s;
  box-shadow: var(--glow);
}

.jump.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.jump:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.55);
}

/* ------------------------------------------------ RTL (Persian) support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .navbar .acts {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .navbar .searchbox input {
  padding: 0 30px 0 10px;
}

[dir="rtl"] .navbar .searchbox .glass {
  left: auto;
  right: 10px;
}

[dir="rtl"] .rail-tip {
  left: auto;
  right: 74px;
}

/* ------------------------------------------------ Responsive Mobile */
@media (max-width: 768px) {
  .navbar .burger {
    display: grid;
  }
  .app {
    gap: 0;
    padding: 0;
  }
  .rail {
    position: fixed;
    left: 0;
    top: var(--head-h);
    bottom: 0;
    z-index: 50;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .rail.open {
    transform: none;
  }
  .col {
    position: fixed;
    left: var(--rail-w);
    top: var(--head-h);
    bottom: 0;
    z-index: 45;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .col.open {
    transform: none;
  }
  .members {
    display: none;
  }
  .members.open {
    display: block;
    position: fixed;
    right: 0;
    top: var(--head-h);
    bottom: 0;
    z-index: 45;
    border-radius: 0;
  }
}





/* ==========================================================================
   EXTENDED RICH COMPONENTS & DISCORD-ACCURATE ACCENTS
   ========================================================================== */

/* ------------------------------------------------ Rich Embeds & Media */
.discord-embed {
  background: var(--bg-embed);
  border-left: 4px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
  padding: 14px 16px;
  max-width: 540px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.emb-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.emb-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}

.emb-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
}

.emb-author-icon, .emb-footer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.emb-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.emb-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emb-field-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
}

.emb-field-value {
  font-size: 13px;
  color: var(--text);
}

.emb-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.emb-img {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 6px;
}

.emb-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  float: right;
  margin-left: 10px;
}

.attach {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-width: 440px;
}

.attach img, .attach video {
  max-width: 100%;
  max-height: 340px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.attach-cap {
  font-size: 12px;
  color: var(--muted);
}

.f-ic {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------------ Quick Switcher & Mentions */
.qs {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
  background: var(--bg-modal);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  z-index: 200;
}

.qs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  overflow-y: auto;
  margin-top: 10px;
}

.qs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 13.5px;
  transition: all 0.1s ease;
}

.qs-row:hover, .qs-row.sel {
  background: var(--bg-selected);
  color: var(--accent-2);
}

.qs-hash {
  font-size: 16px;
  color: var(--muted-2);
  font-weight: 700;
}

.qs-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 13.5px;
}

.mention {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}

.mention:hover {
  background: rgba(59, 130, 246, 0.35);
  text-decoration: underline;
}

.mention-chan {
  background: rgba(122, 175, 255, 0.15);
  color: #60a5fa;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}

.pin-flag {
  font-size: 12px;
  color: #eab308;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.slow-chip {
  font-size: 11px;
  background: #1f2937;
  color: #eab308;
  padding: 2px 6px;
  border-radius: 4px;
}

.role-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-selected);
  color: var(--accent-2);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

/* ------------------------------------------------ Rich Text Markdown FX */
.rt-cyber {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  font-weight: 700;
}

.rt-fire {
  color: #f97316;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
  font-weight: 700;
}

.rt-glow {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
  font-weight: 700;
}

.rt-rainbow {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.rt-sparkle {
  color: #facc15;
  font-weight: 700;
}

.spoiler {
  background: #1e293b;
  color: transparent;
  border-radius: 4px;
  padding: 0 4px;
  cursor: pointer;
  user-select: none;
}

.spoiler:hover, .spoiler.revealed {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.mcode {
  background: #0f1422;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 6px 0;
}

.mcode-i {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12.5px;
}

.mquote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin: 6px 0;
  color: var(--muted);
  font-style: italic;
}

/* ------------------------------------------------ Reply Bar & Sending */
.reply-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  color: #93c5fd;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.rb-txt {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-snippet {
  color: var(--muted);
  font-style: italic;
}

.rb-close {
  color: var(--muted);
  cursor: pointer;
}

.rb-close:hover {
  color: #fff;
}

.send-icon {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
}

.send-icon:hover {
  transform: scale(1.08);
}

/* ------------------------------------------------ Super Reactions & Bursts */
.super-badge {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

.super-react-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f59e0b;
  cursor: pointer;
}

/* ------------------------------------------------ Voice Messages & Waveforms */
.voice-msg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 360px;
}

.voice-msg-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: grid;
  place-items: center;
}

.voice-waveform-wrap {
  flex: 1;
  height: 32px;
}

.voice-waveform-canvas {
  width: 100%;
  height: 100%;
}

.voice-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-2);
}

.voice-rec-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.voice-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ------------------------------------------------ Admin, Invites & Boost Perks */
.adm-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.adm-nm {
  color: #fca5a5 !important;
}

.adm-banner {
  border-bottom: 2px solid var(--red);
}

.boost-hero {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.boost-chip {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

.inv-embed {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inv-link {
  font-family: monospace;
  font-size: 12.5px;
  color: var(--accent-2);
}

/* ------------------------------------------------ Language & 2FA */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.lang-row:hover, .lang-row.active {
  background: var(--bg-selected);
  border-color: var(--accent);
}

.twofa-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

/* ------------------------------------------------ Image Cropper & Avatars */
.crop-canvas {
  width: 100%;
  max-height: 360px;
  background: #000;
  border-radius: 10px;
}

.crop-zoom {
  width: 100%;
  margin-top: 10px;
}



/* ==========================================================================
   FINE-GRAINED SUBCOMPONENT & INTERACTIVE STYLES
   ========================================================================== */

/* ------------------------------------------------ Voice Stage Slots & Buttons */
.vstage-np-slot, .vstage-sb-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vstage-btn-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: var(--red) !important;
}

.vstage-btn-fs, .vstage-btn-min, .vstage-btn-pl, .vstage-btn-sb, .vstage-btn-set {
  transition: all 0.12s ease;
}

.vstage-btn-fs:hover, .vstage-btn-min:hover, .vstage-btn-pl:hover, .vstage-btn-sb:hover, .vstage-btn-set:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.vscreen-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
  background: #080c14;
}

.vc-muted {
  color: var(--red) !important;
}

.vc-deaf {
  color: #f59e0b !important;
}

.vchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
}

.vchips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ------------------------------------------------ Voice Settings Form Rows */
.vset-row, .vset-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

.vset-lbl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vset-lbl b {
  font-size: 14px;
  color: var(--text-strong);
}

.vset-lbl span {
  font-size: 12px;
  color: var(--muted);
}

.vset-select {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-strong);
  font-size: 13.5px;
}

.vset-test {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ------------------------------------------------ User Popout Ambient & Roles */
.po-ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.po-load {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.po-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent-2);
  margin-top: 8px;
}

.po-plan.plus {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(244, 114, 182, 0.35);
  color: #f472b6;
}

.po-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.po-role-del {
  margin-left: 4px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.po-role-del:hover {
  color: var(--red);
}

.po-role-add-btn {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--accent-2);
  cursor: pointer;
}

.pop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------ Polls Elements */
.poll-options-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.poll-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.poll-opt-emoji {
  font-size: 16px;
  margin-right: 6px;
}

.poll-opt-label {
  font-weight: 600;
  color: var(--text-strong);
}

.poll-opt-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 6px;
}

.poll-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.poll-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

/* ------------------------------------------------ Playlist & Soundboard Extra */
.pl-tracks-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.pl-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pl-play-btn, .pl-share-btn, .pl-del-btn, .pl-create-btn {
  transition: all 0.12s ease;
}

.sb-emoji {
  color: var(--accent-2);
}

.sb-tag-float {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
}

/* ------------------------------------------------ Tickets Desk & Thread */
.ticket-modal {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.ticket-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-desk-search {
  flex: 1;
}

/* ------------------------------------------------ Threads Spines */
.thread-spine-title {
  font-weight: 700;
}

.thread-spine-meta {
  color: var(--muted);
  font-size: 11.5px;
}

/* ------------------------------------------------ Server Wizard Extra */
.wiz-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.wiz-done-ic {
  font-size: 32px;
  color: var(--green);
}

.wiz-ic-img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

/* ------------------------------------------------ Personalize & Presets */
.pe-ax, .pe-axis {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pe-bar {
  height: 6px;
  background: #1c2638;
  border-radius: 99px;
  overflow: hidden;
}

.pe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pe-flab {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
}

.pe-gizmo {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.pe-heye, .pe-hier, .pe-hlab, .pe-hrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pe-insp, .pe-insp-tab {
  font-size: 13px;
}

.pe-launch {
  font-weight: 700;
}

.pe-logo {
  font-weight: 800;
}

.pe-note {
  font-size: 12px;
  color: var(--muted);
}

.pe-preset, .pe-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pe-sec {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ------------------------------------------------ Syntax Highlighting */
.syn-com { color: #64748b; font-style: italic; }
.syn-fn { color: #60a5fa; font-weight: 600; }
.syn-kwd { color: #f472b6; font-weight: 700; }
.syn-num { color: #34d399; }
.syn-prop { color: #38bdf8; }
.syn-str { color: #fde047; }

/* ------------------------------------------------ Super Reactions & Particles */
.super-burst-emoji {
  position: absolute;
  pointer-events: none;
  font-size: 28px;
  animation: burstUp 0.8s ease-out forwards;
}

.super-burst-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
}

.super-burst-shockwave {
  position: absolute;
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  pointer-events: none;
  animation: shockwave 0.6s ease-out forwards;
}

@keyframes burstUp {
  0% { transform: scale(0.5) translateY(0); opacity: 1; }
  100% { transform: scale(1.4) translateY(-40px); opacity: 0; }
}

@keyframes shockwave {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ------------------------------------------------ Boost & Gift Rows */
.boost-gem {
  color: #ec4899;
}

.boost-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.gift-btn {
  background: var(--accent-grad);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
}

.gift-ic-sm {
  font-size: 14px;
}

/* ------------------------------------------------ Invites & Channels */
.inv-ds {
  font-size: 12px;
  color: var(--muted);
}

.inv-ic {
  color: var(--accent-2);
}

.inv-joined {
  color: var(--green);
  font-size: 12px;
}

.inv-ld {
  color: var(--muted);
}

.inv-meta {
  font-size: 12px;
  color: var(--muted-2);
}

.inv-nm {
  font-weight: 700;
  color: #fff;
}

.group-count-badge {
  font-size: 11px;
  background: #1e293b;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 99px;
}

.group-create-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-plus {
  cursor: pointer;
  color: var(--muted);
}

.group-plus:hover {
  color: var(--text-strong);
}

.cat-drop {
  cursor: pointer;
}

.cat-empty {
  padding: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.cat-flip {
  transform: rotate(90deg);
}

.cat-lock {
  color: #f59e0b;
}

.cat-nm {
  font-weight: 700;
}

/* Discord-grade Advanced Channel & Category Permissions Modal */
.d-perm-modal {
  display: flex;
  gap: 16px;
  min-height: 480px;
  max-height: 75vh;
  overflow: hidden;
}
.d-perm-sidebar {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
  overflow-y: auto;
}
.d-perm-sidebar-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d-perm-role-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-normal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}
.d-perm-role-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.d-perm-role-item.active {
  background: rgba(88, 101, 242, 0.25);
  color: #fff;
  font-weight: 700;
}
.d-perm-role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.d-perm-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 6px;
}
.d-perm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.d-perm-title-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.d-perm-group-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 16px 0 8px;
}
.d-perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.d-perm-meta {
  flex: 1;
  min-width: 0;
}
.d-perm-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.d-perm-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
  line-height: 1.4;
}
.d-perm-tri {
  display: inline-flex;
  align-items: center;
  background: #1e1f22;
  border-radius: 6px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.d-perm-btn {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #80848e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.12s ease;
}
.d-perm-btn:hover {
  color: #dbdee1;
  background: rgba(255, 255, 255, 0.06);
}
.d-perm-btn.deny.active {
  background: #ed4245;
  color: #fff;
}
.d-perm-btn.neutral.active {
  background: #4e5058;
  color: #dbdee1;
}
.d-perm-btn.allow.active {
  background: #57f287;
  color: #111214;
}

.chan-perm-roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chan-prev {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chev {
  transition: transform 0.15s ease;
}

.to-banner {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fde047;
}

.to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.to-ic {
  color: #eab308;
  font-size: 13px;
}

.to-left {
  font-size: 11.5px;
  color: var(--muted);
}

/* ------------------------------------------------ Head & Tool Buttons */
.dm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.dm-row:hover, .dm-row.active {
  background: var(--bg-hover);
}

.head-btn {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
}

.head-btn:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.tool-btn:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.msg-actions {
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--bg-modal);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.msg-counter {
  font-size: 11px;
  color: var(--muted-2);
}

.msg-sticker {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
}

.nb {
  font-size: 9.5px;
  font-weight: 800;
  background: var(--accent-grad);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.np-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.np-eq i {
  width: 3px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: eqBounce 0.6s infinite alternate;
}

.np-eq.off i {
  animation: none;
  height: 3px !important;
  background: var(--muted-2);
}

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

.np-pl-btn {
  font-size: 12px;
}

.np-vol-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 32px;
}

.np-vol-mute-btn {
  width: 26px;
  height: 26px;
}

.np-warn {
  color: #ef4444;
}

.padj-canvas, .banner-prev {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.srv-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.srv-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.srv-prev {
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  border-radius: 10px;
  color: #fff;
}

.blocked-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fca5a5;
  margin-bottom: 12px;
}

.load-more {
  text-align: center;
  padding: 8px;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 13px;
}



/* ==========================================================================
   UTILITY, CONTEXT & MATRIX COMPONENT REFINEMENTS
   ========================================================================== */

.audit-row, .adm-row, .chk-row, .ci-label, .ci-ico, .ci-dot, .ci-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-row {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.audit-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-selected);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}

.adm-row {
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
}

.chk-row {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
}

.chk-row:hover {
  background: var(--bg-hover);
}

.ci-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.ci-end {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.code-lang-tag {
  font-family: monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(59, 130, 246, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.ctx-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.ctx-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-strong);
}

.ctx-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}

.ctx-vol-pct {
  font-size: 11.5px;
  color: var(--accent-2);
  min-width: 36px;
  text-align: right;
}

.cv-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.dec-icon, .amb-icon {
  font-size: 20px;
}

.fwd-item, .fwd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.fwd-item:hover, .fwd-row:hover {
  background: rgba(122, 175, 255, 0.08);
  border-color: var(--line-strong);
}

.lang-flag {
  font-size: 18px;
  margin-right: 8px;
}

.lang-check {
  color: var(--green);
  font-weight: 800;
}

.lock-ic, .lock-indicator {
  color: #f59e0b;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.mention-pop {
  position: absolute;
  z-index: 100;
  background: var(--bg-modal);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.mention-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.mention-row:hover, .mention-row.selected {
  background: var(--bg-selected);
  color: var(--accent-2);
}

.nitro-embed {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 12px;
  padding: 16px;
  max-width: 480px;
}

.nitro-ic {
  color: #ec4899;
}

.nitro-mine {
  border-color: rgba(244, 114, 182, 0.5);
}

.nitro-name {
  font-weight: 800;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nm-feat {
  font-weight: 600;
  color: var(--text-strong);
}

.nm-feature-head {
  color: var(--text-strong);
}

.pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

.pk-sec {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  padding: 8px 4px 4px;
}

.pl-track-title-in, .pl-track-url-in {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-strong);
  font-size: 13px;
}

.pl-track-url-in {
  flex: 1;
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pthumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.rail-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border: 2px solid var(--bg-deep);
}

.rail-item, .rail-slot {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.rb-arrow {
  color: var(--accent-2);
  font-size: 14px;
}

.react, .react-add, .react-em {
  cursor: pointer;
  transition: all 0.12s ease;
}

.react-add:hover {
  transform: scale(1.15);
}

.rt-arrow {
  color: var(--accent-2);
  margin-right: 4px;
}

.rt-snip {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.sb-hud-seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.set-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-title {
  font-size: 13px;
  color: var(--muted);
}

.tip {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
}

.welcome {
  text-align: center;
  padding: 30px 20px;
}



/* ==========================================================================
   MICRO-INTERACTIONS & SYSTEM STATUS MODIFIERS
   ========================================================================== */

.accept { background: var(--green) !important; color: #fff !important; }
.attach-video { max-width: 100%; border-radius: 8px; }
.av-decoration { position: absolute; inset: -4px; pointer-events: none; }
.big { font-size: 16px; font-weight: 700; }
.cat { font-weight: 700; text-transform: uppercase; }
.cem { font-size: 18px; }
.chan { display: flex; align-items: center; gap: 8px; }
.cnt { font-size: 11px; color: var(--muted-2); }
.copied { color: var(--green) !important; }
.ctx { box-shadow: 0 10px 30px rgba(0,0,0,0.7); }
.daybreak, .newbreak { display: flex; align-items: center; justify-content: center; margin: 16px 0; font-size: 11px; font-weight: 700; color: var(--muted-2); position: relative; }
.daybreak:before, .newbreak:before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); z-index: 1; }
.daybreak span, .newbreak span { background: var(--bg-chat); padding: 0 12px; position: relative; z-index: 2; border-radius: 99px; border: 1px solid var(--line-soft); }
.dead { opacity: 0.5; filter: grayscale(1); }
.deaf { color: #f59e0b; }
.def { color: var(--muted); }
.dim { opacity: 0.6; }
.disc-count { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: block; }
.dots { letter-spacing: 2px; }
.drop-above { border-top: 2px solid var(--accent) !important; }
.edited { font-size: 10px; color: var(--muted-2); margin-left: 4px; }
.editing { background: var(--bg-selected) !important; }
.empty { text-align: center; color: var(--muted); padding: 30px 14px; }
.flash { animation: flashHighlight 1s ease-out; }
.fresh { animation: fadeIn 0.2s ease-out; }
.gear { color: var(--muted); cursor: pointer; }
.gear:hover { color: var(--text-strong); }
.gutter { width: 44px; flex: none; text-align: right; color: var(--muted-2); font-size: 11px; }
.hash { font-weight: 700; color: var(--muted-2); }
.hoverable:hover { background: var(--bg-hover); }
.is-group { border-left: 3px solid #a855f7; }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.muted { opacity: 0.5; }
.over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.6); }
.shown { display: block !important; }
.vm { vertical-align: middle; }
.vn { font-variant-numeric: tabular-nums; }
.xs { font-size: 11px; }

@keyframes flashHighlight {
  0% { background: rgba(59, 130, 246, 0.4); }
  100% { background: transparent; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}


/* ------------------------------------------------ 14 Nitro Animated Avatar Rings */
.dec-ring-neon-glow { border-color: #00f3ff !important; box-shadow: 0 0 10px #00f3ff; }
.dec-ring-cyber-circuit { border-color: #38ef7d !important; box-shadow: 0 0 10px #38ef7d; }
.dec-ring-fire-aura { border-color: #f97316 !important; box-shadow: 0 0 10px #f97316; }
.dec-ring-cosmic-star { border-color: #a855f7 !important; box-shadow: 0 0 10px #a855f7; }
.dec-ring-golden-glory { border-color: #fbbf24 !important; box-shadow: 0 0 10px #fbbf24; }
.dec-ring-sakura-blossom { border-color: #f472b6 !important; box-shadow: 0 0 10px #f472b6; }
.dec-ring-void-pulse { border-color: #6366f1 !important; box-shadow: 0 0 10px #6366f1; }
.dec-ring-crystal-ice { border-color: #93c5fd !important; box-shadow: 0 0 10px #93c5fd; }
.dec-ring-toxic-slime { border-color: #84cc16 !important; box-shadow: 0 0 10px #84cc16; }
.dec-ring-steampunk-gear { border-color: #d97706 !important; box-shadow: 0 0 10px #d97706; }
.dec-ring-electric-storm { border-color: #38bdf8 !important; box-shadow: 0 0 10px #38bdf8; }
.dec-ring-dragon-flame { border-color: #ef4444 !important; box-shadow: 0 0 10px #ef4444; }
.dec-ring-hologram-prism { border-color: #ec4899 !important; box-shadow: 0 0 10px #ec4899; }
.dec-ring-angelic-halo { border-color: #fef08a !important; box-shadow: 0 0 10px #fef08a; }


/* ==========================================================================
   UnrealChat Extended Comprehensive UI & Micro-Interactions Fixes
   ========================================================================== */

/* ------------------------------------------------------------ Mute / Deafen Active State */
.user-dock .icon-btn.muted-on,
#btn-mute.muted-on,
#btn-deafen.muted-on {
  color: #f23f43 !important;
  background: rgba(242, 63, 67, 0.18) !important;
  border-color: rgba(242, 63, 67, 0.45) !important;
  box-shadow: 0 0 12px rgba(242, 63, 67, 0.28) !important;
}
.user-dock .icon-btn.muted-on:hover,
#btn-mute.muted-on:hover,
#btn-deafen.muted-on:hover {
  background: rgba(242, 63, 67, 0.3) !important;
  color: #ff6b6e !important;
  border-color: rgba(242, 63, 67, 0.6) !important;
}

/* ------------------------------------------------------------ Voice Speaking & Rings */
.vcard.talking .vc-ring,
.vcard.speaking .vc-ring,
.vc-av.talking .vc-ring,
.vc-av.speaking .vc-ring,
.chip.talking,
.chip.speaking,
.talking,
.speaking {
  border-color: #23a55a !important;
  box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.5), 0 0 16px rgba(35, 165, 90, 0.6) !important;
  animation: speakingPulse 1.4s infinite ease-in-out;
}
@keyframes speakingPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.5), 0 0 12px rgba(35, 165, 90, 0.5);
    border-color: #23a55a;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(35, 165, 90, 0.8), 0 0 22px rgba(35, 165, 90, 0.85);
    border-color: #38ef7d;
  }
}

/* ------------------------------------------------------------ 1:1 Direct Call Box */
.callbox.incoming {
  border-color: #23a55a !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(35, 165, 90, 0.45) !important;
  animation: callIncomingRing 1.6s infinite ease-in-out;
}
@keyframes callIncomingRing {
  0%, 100% {
    border-color: rgba(35, 165, 90, 0.6);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 16px rgba(35, 165, 90, 0.35);
  }
  50% {
    border-color: rgba(35, 165, 90, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 36px rgba(35, 165, 90, 0.7);
  }
}
.callbox.has-video {
  width: min(760px, 95vw) !important;
  max-width: 760px !important;
}
.call-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.call-video-tile {
  position: relative;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.call-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cv-hd {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: auto;
}
.cv-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cv-fs {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #dbdee1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.12s ease;
}
.cv-fs:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.vlive {
  background: #f23f43;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ Warnings & Badges */
.warn,
.counter.warn {
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* ------------------------------------------------------------ Quick Switcher Dialog */
.qs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: qsFadeIn 0.14s ease-out;
}
@keyframes qsFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.qs-dialog {
  width: min(580px, 94vw);
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qs-input-wrap {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18191c;
}
.qs-input-wrap .ic {
  width: 20px;
  height: 20px;
  color: #949ba4;
  flex-shrink: 0;
}
.qs-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
}
.qs-input::placeholder {
  color: #80848e;
}
.qs-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #dbdee1;
  transition: all 0.12s ease;
  user-select: none;
}
.qs-item:hover,
.qs-item.active {
  background: rgba(88, 101, 242, 0.22);
  color: #ffffff;
}
.qs-item.active {
  border-left: 3px solid #5865f2;
}
.qs-item .qs-icon {
  width: 20px;
  height: 20px;
  color: #949ba4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qs-item .qs-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-item .qs-desc {
  font-size: 12px;
  color: #949ba4;
  margin-left: 8px;
}
.qs-empty {
  padding: 32px 16px;
  text-align: center;
  color: #949ba4;
  font-size: 14px;
}

/* ------------------------------------------------------------ Personalization Visual Scene Editor */
.pe-zen .pe-tools,
.pe-preview .pe-tools,
.pe-preview .pe-gizmo,
.pe-preview .pe-axis {
  display: none !important;
}
.pe-sel {
  outline: 2px dashed #5865f2 !important;
  outline-offset: 4px;
}
.pe-noinsp .pe-inspector {
  display: none !important;
}
.pe-hidden {
  display: none !important;
}
.pe-axis {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pe-axis .al {
  font-size: 12px;
  font-weight: 600;
  color: #949ba4;
  width: 50px;
  flex-shrink: 0;
}
.pe-axis .al.wide {
  width: 70px;
}
.attach-cap .sz,
.sz {
  font-size: 11px;
  color: #949ba4;
  font-weight: 500;
}

/* ------------------------------------------------------------ Code Highlighting & Pre Blocks */
pre code[class*="lang-"],
code[class*="lang-"] {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
}

/* ------------------------------------------------------------ Mobile Drawer */
.drawer,
.col.drawer-open {
  transform: translateX(0) !important;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.7);
  z-index: 100;
}


/* ==========================================================================
   UNREALCHAT ULTIMATE HIGH-FIDELITY PANEL STYLING & INTERIOR SYSTEM
   Complete overhaul for all modals, drawers, floating stages, popouts & desks.
   ========================================================================== */

/* ------------------------------------------------------------ 1. Modal Root & Base Dialogs */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-root.on {
  display: flex;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  z-index: 1;
  animation: modalBackdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  z-index: 2;
  width: min(540px, 94vw);
  max-height: calc(100vh - 48px);
  background: linear-gradient(150deg, rgba(26, 30, 44, 0.98), rgba(15, 18, 28, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 48px -12px rgba(88, 101, 242, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal.wide {
  width: min(780px, 96vw);
}
.modal.settings {
  width: min(1040px, 96vw);
  height: min(720px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
}

/* Modal Header */
.mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.mh-t {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.mh-t h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.mh-sub {
  font-size: 12.5px;
  color: #949ba4;
  font-weight: 500;
}
.modal header .icon-btn,
.mh .icon-btn,
.bare-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #949ba4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}
.modal header .icon-btn:hover,
.mh .icon-btn:hover,
.bare-x:hover {
  background: rgba(242, 63, 67, 0.18);
  border-color: rgba(242, 63, 67, 0.35);
  color: #f23f43;
  transform: rotate(90deg);
}

/* Modal Content & Footer */
.modal .content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}
.modal footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* ------------------------------------------------------------ 2. Settings Desk (2-Column Discord Layout) */
.set-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

/* Sidebar Nav */
.set-nav {
  width: 240px;
  flex-shrink: 0;
  background: rgba(10, 13, 20, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.set-nav .nh {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #949ba4;
  padding: 10px 12px 6px;
  user-select: none;
}
.set-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #b5bac1;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
  position: relative;
}
.set-nav button .ic,
.set-nav button svg {
  width: 18px;
  height: 18px;
  color: inherit;
  flex-shrink: 0;
  opacity: 0.85;
}
.set-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f3f5;
  transform: translateX(2px);
}
.set-nav button.on {
  background: rgba(88, 101, 242, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #5865f2;
}
.set-nav button.on .ic,
.set-nav button.on svg {
  color: #5865f2;
  opacity: 1;
}
.set-nav button.danger {
  color: #f23f43;
}
.set-nav button.danger:hover {
  background: rgba(242, 63, 67, 0.14);
  color: #ff6b6e;
}
.set-nav button.danger.on {
  background: rgba(242, 63, 67, 0.22) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #f23f43;
}

/* Content Area */
.set-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.01);
}
.set-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.set-sub {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: #949ba4;
  line-height: 1.5;
}

/* Sections & Form Fields */
.sec {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #949ba4;
  margin-top: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b5bac1;
}
.field input,
.field textarea,
.field select,
.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"],
.modal input[type="number"],
.modal textarea,
.modal select {
  width: 100%;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 10px 14px;
  color: #f2f3f5;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.14s ease;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: #5865f2;
  background: rgba(14, 18, 27, 1);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}
.field input::placeholder,
.modal input::placeholder,
.modal textarea::placeholder {
  color: #6d737d;
}

/* Toggle Switches */
.swline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #dbdee1;
  transition: all 0.14s ease;
  user-select: none;
}
.swline:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}
.sw {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sw i {
  position: absolute;
  inset: 0;
  background: #4e5058;
  border-radius: 24px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sw i::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sw input:checked + i {
  background: #23a55a;
}
.sw input:checked + i::before {
  transform: translateX(20px);
}

/* ------------------------------------------------------------ 3. User Account Profile Card */
.acct-card {
  position: relative;
  border-radius: 14px;
  background: rgba(14, 18, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}
.acct-card .bnr {
  height: 100px;
  width: 100%;
  background: linear-gradient(135deg, #1f293d, #374151);
  position: relative;
}
.acct-card .row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 20px 18px 20px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.acct-card .row .av {
  border: 4px solid #141721;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.acct-card .nm {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.acct-card .un {
  font-size: 13px;
  color: #949ba4;
  font-weight: 500;
}

/* Nitro Locked Perk Box */
.nitro-locked-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.08), rgba(235, 69, 158, 0.08));
  border: 1px dashed rgba(235, 69, 158, 0.35);
  border-radius: 12px;
}
.nitro-locked-box .lock-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(235, 69, 158, 0.15);
  color: #eb459e;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ 4. Digital Wallet & Transactions */
.wallet-balance-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2744, #163a66 85%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.wallet-balance-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.wallet-balance-lbl {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
}
.wallet-balance-num {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wallet-balance-num span {
  font-size: 15px;
  font-weight: 600;
  color: #bae6fd;
}
.wallet-topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.wallet-topup-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
}
.wallet-topup-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Transaction Ledger Table */
.wallet-tx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.wallet-tx-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #949ba4;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wallet-tx-table td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: #dbdee1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wallet-tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.wallet-tx-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.wallet-tx-pill.topup { background: rgba(35, 165, 90, 0.18); color: #23a55a; border: 1px solid rgba(35, 165, 90, 0.3); }
.wallet-tx-pill.nitro { background: rgba(235, 69, 158, 0.18); color: #eb459e; border: 1px solid rgba(235, 69, 158, 0.3); }

/* ------------------------------------------------------------ 5. Nitro & Boosts Shop */
.nitro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.nitro-card {
  position: relative;
  background: linear-gradient(145deg, rgba(26, 30, 46, 0.95), rgba(15, 18, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.nitro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 69, 158, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(235, 69, 158, 0.2);
}
.nitro-card.boost {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(145deg, rgba(38, 20, 36, 0.95), rgba(18, 12, 22, 0.98));
}
.nitro-card.boost:hover {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(244, 63, 94, 0.28);
}
.nitro-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.nitro-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.nitro-price-num {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}
.nitro-price-period {
  font-size: 13px;
  color: #949ba4;
}
.nitro-perk-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nitro-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #dbdee1;
}
.nitro-perk-item svg {
  color: #23a55a;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ 6. Voice & Stage Floating Window */
.vstage.voicebox,
#voicebox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, 94vw);
  max-height: calc(100vh - 40px);
  background: linear-gradient(150deg, rgba(22, 26, 38, 0.97), rgba(12, 15, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 54px -10px rgba(35, 165, 90, 0.2);
  z-index: 9500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: stagePopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stagePopIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.vstage.voicebox.fullscreen {
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
}
.vstage.voicebox.minimized {
  max-height: 56px !important;
  overflow: hidden !important;
}
.vstage-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  cursor: grab;
}
.vstage-hd:active {
  cursor: grabbing;
}
.vstage-hd-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vstage-hd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 10px rgba(35, 165, 90, 0.8);
}
.vstage-hd-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
.vstage-connected-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(35, 165, 90, 0.16);
  border: 1px solid rgba(35, 165, 90, 0.35);
  color: #23a55a;
}
.vstage-hd-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vstage-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}
.vcard {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.vcard:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.vcard .vc-av {
  position: relative;
}
.vcard .vc-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  transition: all 0.14s ease;
}
.vcard.speaking .vc-ring,
.vcard.talking .vc-ring {
  border-color: #23a55a;
  box-shadow: 0 0 16px rgba(35, 165, 90, 0.7);
  animation: speakingPulse 1.4s infinite ease-in-out;
}
.vcard .vc-nm {
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vcard .vc-sub {
  font-size: 11px;
  font-weight: 600;
}
.vcard .vc-sub.conn-good {
  color: #23a55a;
}
.vcard .vc-sub.conn-connecting {
  color: #f59e0b;
}
.vcard .vc-sub.conn-reconnecting {
  color: #ef4444;
}

/* Screen Share Tiles */
.vscreens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  width: 100%;
}
.vscreen {
  position: relative;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.vscreen-head {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.vscreen-head b {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  backdrop-filter: blur(4px);
}
.vscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stage Bottom Controls Bar */
.vctr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vctr .cbtn,
.callbox .row .cbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.vctr .cbtn:hover,
.callbox .row .cbtn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}
.vctr .cbtn.on,
.callbox .row .cbtn.on {
  background: rgba(242, 63, 67, 0.22);
  border-color: rgba(242, 63, 67, 0.5);
  color: #f23f43;
}
.vctr .cbtn.end,
.callbox .row .cbtn.end {
  background: #da373c;
  border-color: #da373c;
  color: #ffffff;
}
.vctr .cbtn.end:hover,
.callbox .row .cbtn.end:hover {
  background: #c02e34;
  transform: scale(1.1);
}
.callbox .row .cbtn.accept {
  background: #23a55a;
  border-color: #23a55a;
  color: #ffffff;
}
.callbox .row .cbtn.accept:hover {
  background: #1f9450;
  transform: scale(1.1);
}

/* ------------------------------------------------------------ 7. User Popout Card */
.user-popout,
.member-modal {
  position: absolute;
  width: 320px;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 10000;
  animation: modalSlideIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.po-banner {
  height: 90px;
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  position: relative;
}
.po-body {
  padding: 0 16px 16px;
  position: relative;
  background: #111214;
}
.po-av-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -40px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.po-av-row .av {
  border: 5px solid #111214;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.po-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.po-un {
  font-size: 13px;
  color: #949ba4;
  margin-bottom: 12px;
}
.po-bio-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.45;
  margin-bottom: 14px;
}
.po-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

/* ------------------------------------------------------------ 8. Soundboard & Playlists */
.sb-modal-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sb-vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #949ba4;
}
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
}
.sb-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.sb-card:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}
.sb-card.playing {
  background: rgba(35, 165, 90, 0.22);
  border-color: #23a55a;
  box-shadow: 0 0 16px rgba(35, 165, 90, 0.4);
}
.sb-card .sb-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f2f3f5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.sb-del-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #949ba4;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sb-card:hover .sb-del-btn {
  display: flex;
}
.sb-del-btn:hover {
  background: #da373c;
  color: #ffffff;
}

/* Playlists Modal */
.pl-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pl-import-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}
.pl-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.14s ease;
}
.pl-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.pl-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pl-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.pl-track-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
}

/* ------------------------------------------------------------ 9. Support & Ticket Desk */
.ticket-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ticket-msg-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbdee1;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.ticket-msg-bubble.mine {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.3);
  margin-left: 24px;
}
.ticket-msg-bubble.staff {
  background: rgba(35, 165, 90, 0.14);
  border-color: rgba(35, 165, 90, 0.3);
  margin-right: 24px;
}
.ticket-msg-bubble.note {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.35);
  color: #fef08a;
}
.ticket-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}


/* ==========================================================================
   UNREALCHAT CORE INTERFACE & MAIN SCREEN TAB SYSTEM
   ========================================================================== */

/* ------------------------------------------------------------ App Grid & Shell */
.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-deep, #0b0f19);
}

.navbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  margin: 10px 12px 0;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.app {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 12px 12px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ------------------------------------------------------------ Server Rail */
.rail {
  width: 72px;
  flex: 0 0 72px;
  background: rgba(15, 20, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 20;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail {
  scrollbar-width: none;
}

.rail-slot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.rail-slot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
  transition: height 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.rail-slot:hover::before {
  height: 20px;
}
.rail-slot.on::before {
  height: 38px;
  background: #5865f2;
}
.rail-slot.seen::before {
  height: 8px;
}

.rail-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(30, 36, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbdee1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  padding: 0;
}
.rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.rail-item:hover,
.rail-slot:hover .rail-item {
  border-radius: 14px;
  background: #5865f2;
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}
.rail-slot.on .rail-item,
.rail-item.active {
  border-radius: 14px;
  background: #5865f2 !important;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.6);
}
.rail-item.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #23a55a;
  border: 1px dashed rgba(35, 165, 90, 0.4);
}
.rail-item.ghost:hover {
  background: #23a55a;
  color: #ffffff;
  border-style: solid;
}
.rail-sep {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: 2px 0;
  flex-shrink: 0;
}
.rail-badge {
  position: absolute;
  bottom: -2px;
  right: 10px;
  background: #f23f43;
  color: #ffffff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border: 2px solid #0b0f19;
  z-index: 2;
}
.rail-tip {
  position: absolute;
  left: 78px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #111214;
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.rail-slot:hover .rail-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ------------------------------------------------------------ Channels & DMs Sidebar Column */
.col {
  width: 240px;
  flex: 0 0 240px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  z-index: 15;
}

.col-head {
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
  flex: 0 0 52px;
}
.col-head:hover {
  background: rgba(255, 255, 255, 0.04);
}
.col-head .t {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.col-head .caret {
  color: #949ba4;
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* Friends Nav Button in Sidebar */
.friends-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 10px 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
  width: calc(100% - 20px);
}
.friends-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #dbdee1;
}
.friends-nav.on,
.friends-nav.active {
  background: rgba(88, 101, 242, 0.2) !important;
  color: #ffffff !important;
}
.friends-nav .fi {
  display: flex;
  align-items: center;
}
.friends-nav .fi svg,
.friends-nav .fi .ic {
  width: 20px;
  height: 20px;
}

/* Find / Start Conversation button */
.col-search {
  padding: 4px 10px 8px;
}
.col-search button,
#btn-find-dm {
  width: 100%;
  padding: 8px 12px;
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #949ba4;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
.col-search button:hover,
#btn-find-dm:hover {
  background: rgba(10, 14, 24, 0.9);
  color: #dbdee1;
  border-color: rgba(255, 255, 255, 0.12);
}

.col-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

/* Channel Categories & Channel Rows */
.cat {
  margin-top: 8px;
  margin-bottom: 2px;
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #949ba4;
  cursor: pointer;
  user-select: none;
  transition: color 0.14s ease;
}
.cat-head:hover {
  color: #dbdee1;
}
.cat-head .act,
.cat-head .plus {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.14s ease;
}
.cat-head:hover .act,
.cat-head:hover .plus {
  opacity: 1;
}

.chan-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.14s ease;
  user-select: none;
}
.chan-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dbdee1;
}
.chan-btn.on,
.chan-btn.active {
  background: rgba(88, 101, 242, 0.18) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.chan-btn .ch-ic,
.chan-btn svg,
.chan-btn .ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}
.chan-btn.on .ch-ic,
.chan-btn.on svg,
.chan-btn.on .ic {
  opacity: 1;
  color: #5865f2;
}
.chan-btn .name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chan-btn .cnt {
  background: #f23f43;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

/* User Dock at bottom of column */
.user-dock {
  height: 56px;
  background: rgba(10, 14, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  flex: 0 0 56px;
}
.user-dock .who {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: background 0.14s ease;
}
.user-dock .who:hover {
  background: rgba(255, 255, 255, 0.06);
}
.user-dock .who b {
  font-size: 13px;
  font-weight: 800;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.user-dock .who span {
  font-size: 11px;
  color: #949ba4;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.user-dock .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #b5bac1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}
.user-dock .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ------------------------------------------------------------ Main Chat Window */
main.chat,
.chat {
  flex: 1 1 0%;
  min-width: 0;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.chat-head {
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex: 0 0 52px;
  gap: 12px;
}
.chat-head h2,
#chat-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head .hash {
  font-size: 18px;
  font-weight: 800;
  color: #949ba4;
}
.chat-head .vsep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}
.chat-head .topic {
  font-size: 13px;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Message Feed Scroller */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* Message Rows */
.msg {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.12s ease;
}
.msg:hover {
  background: rgba(255, 255, 255, 0.035);
}
.msg.fresh {
  margin-top: 6px;
}
.msg .gutter {
  display: none;
  font-size: 10px;
  color: #6d737d;
  width: 40px;
  text-align: right;
  line-height: 22px;
  user-select: none;
}
.msg:not(.fresh) .gutter {
  display: block;
}
.msg:not(.fresh) .av {
  display: none;
}
.msg .mc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg .mhead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.msg .mhead .author {
  font-size: 14.5px;
  font-weight: 700;
  color: #f2f3f5;
  cursor: pointer;
}
.msg .mhead .author:hover {
  text-decoration: underline;
}
.msg .mhead .stamp {
  font-size: 11px;
  color: #949ba4;
  font-weight: 500;
}
.msg .body {
  font-size: 14px;
  line-height: 1.5;
  color: #dbdee1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Floating Actions Bar on Message Hover */
.msg-actions {
  position: absolute;
  top: -14px;
  right: 14px;
  display: none;
  align-items: center;
  gap: 2px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.msg:hover .msg-actions {
  display: flex;
}
.msg-actions button,
.msg-actions .icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #b5bac1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.msg-actions button:hover,
.msg-actions .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Typing indicator */
.typing {
  height: 22px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  color: #949ba4;
  flex: 0 0 22px;
}

/* Chat Composer */
.composer-wrap {
  padding: 0 16px 14px;
  position: relative;
  flex: 0 0 auto;
}
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.composer:focus-within {
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}
.composer textarea,
#input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f2f3f5;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 180px;
  padding: 4px 6px;
}
.composer textarea::placeholder,
#input::placeholder {
  color: #6d737d;
}
.composer .round-btn,
.composer .tool-btn,
.composer .send-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #949ba4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}
.composer .round-btn:hover,
.composer .tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f3f5;
}
.composer .send-icon {
  background: #5865f2;
  color: #ffffff;
}
.composer .send-icon:hover {
  background: #4752c4;
  transform: scale(1.05);
}

/* ------------------------------------------------------------ Member List Sidebar */
aside.members,
.members {
  width: 240px;
  flex: 0 0 240px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 3px;
  overflow-y: auto;
  min-height: 0;
  z-index: 15;
}
.members.hidden,
.app.no-members .members {
  display: none !important;
}

.members h4 {
  margin: 12px 8px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #949ba4;
  user-select: none;
}
.members .member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #dbdee1;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.14s ease;
}
.members .member:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.members .member.off {
  opacity: 0.65;
}
.members .member .nm {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ------------------------------------------------------------ Thread Panel */
.thread-panel {
  width: 360px;
  flex: 0 0 360px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.thread-panel.open {
  display: flex !important;
}


/* ==========================================================================
   UNREALCHAT CHANNELS, CATEGORIES, VOICE CHIPS & LIVELY AESTHETICS OVERHAUL
   ========================================================================== */

/* ------------------------------------------------------------ Channel Categories */
.group-head.cat,
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #949ba4;
  cursor: pointer;
  user-select: none;
  transition: color 0.16s ease;
  position: relative;
}
.group-head.cat:hover,
.group-head:hover {
  color: #dbdee1;
}
.group-head .cat-flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 4px;
  cursor: pointer;
  color: inherit;
}
.group-head .cat-flip .chev {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.group-head.cat.closed .cat-flip .chev {
  transform: rotate(-90deg);
}
.group-head .cat-nm {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-head .cat-lock {
  color: #949ba4;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
}
.group-head .plus {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #949ba4;
  cursor: pointer;
  transition: all 0.14s ease;
  opacity: 0.7;
}
.group-head:hover .plus {
  opacity: 1;
  color: #ffffff;
}
.group-head .plus:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.15);
}
.cat-empty {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6d737d;
  font-style: italic;
}

/* ------------------------------------------------------------ Text & Voice Channels */
.chan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 1px 0;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
  text-decoration: none;
}
.chan:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dbdee1;
  transform: translateX(2px);
}
.chan.on,
.chan.active {
  background: rgba(88, 101, 242, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #5865f2;
}
.chan.unread {
  color: #f2f3f5 !important;
  font-weight: 700;
}
.chan.unread::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
}
.chan .hash {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #80848e;
  flex-shrink: 0;
  transition: color 0.14s ease;
}
.chan .hash svg,
.chan .hash .ic {
  width: 18px;
  height: 18px;
}
.chan:hover .hash,
.chan.on .hash {
  color: #dbdee1;
}
.chan.on .hash {
  color: #5865f2;
}
.chan .nm {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.2;
}
.chan.vch {
  color: #949ba4;
}
.chan.vch .hash {
  color: #23a55a;
}
.chan.vch:hover {
  background: rgba(35, 165, 90, 0.08);
  color: #dbdee1;
}
.chan.vch.on {
  background: rgba(35, 165, 90, 0.2) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #23a55a !important;
}
.chan.vch.on .hash {
  color: #23a55a;
}
.chan .gear {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #949ba4;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
  margin-left: 4px;
}
.chan:hover .gear {
  display: flex;
}
.chan .gear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(45deg);
}
.chan .cnt {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f23f43;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(242, 63, 67, 0.4);
}
.chan .cnt.mention {
  background: #f23f43;
  color: #ffffff;
}

/* ------------------------------------------------------------ Voice Member Chips Under Voice Channel */
.vchips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 6px 28px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.vchip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #dbdee1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.vchip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.vchip.live,
.vchip.speaking {
  color: #38ef7d;
  background: rgba(35, 165, 90, 0.12);
}
.vchip .vn {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
}
.vchip .vm {
  color: #f23f43;
  display: flex;
  align-items: center;
}
.vchip .vm svg,
.vchip .vm .ic {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------ Lively UI Micro-Interactions */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

button:active,
.btn:active,
.icon-btn:active {
  transform: scale(0.96) !important;
}

.col,
.chat,
.members,
.rail {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.col:hover,
.chat:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.msg {
  transition: background-color 0.14s cubic-bezier(0.16, 1, 0.3, 1), transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}
.msg:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
.msg.msg-pending {
  opacity: 0.6;
  filter: saturate(0.8);
  animation: pendingPulse 1.8s infinite ease-in-out;
}
@keyframes pendingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.85; }
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.rx-chip,
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b5bac1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.rx-chip:hover,
.reaction:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}
.rx-chip.active,
.reaction.active,
.reaction.reacted {
  background: rgba(88, 101, 242, 0.22) !important;
  border-color: #5865f2 !important;
  color: #ffffff !important;
}


/* ==========================================================================
   UNREALCHAT FROSTED GLASS COLUMNS & 100% CIRCULAR AVATAR RINGS SYSTEM
   ========================================================================== */

/* ------------------------------------------------------------ 1. Frosted Glass Columns */
body {
  background: radial-gradient(circle at 15% 15%, #111a2e 0%, #070a12 55%, #04060a 100%) !important;
  background-attachment: fixed !important;
}

.navbar {
  background: rgba(13, 17, 28, 0.68) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
}

.rail {
  background: rgba(10, 14, 24, 0.65) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

.col {
  background: rgba(13, 18, 30, 0.68) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

main.chat,
.chat {
  background: rgba(15, 20, 34, 0.7) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

aside.members,
.members {
  background: rgba(13, 18, 30, 0.68) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

.thread-panel {
  background: rgba(15, 20, 34, 0.72) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

/* ------------------------------------------------------------ 2. 100% Circular Avatar & Frames System */
.av,
.av-wrap,
.p-av,
.me-av,
#me-av,
.po-av,
.acct-card .av,
.member .av,
.dm-row .av,
.vcard .av,
.vc-av {
  position: relative !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.av img,
.p-av img,
.me-av img,
.po-av img,
.member .av img,
.dm-row .av img,
.vcard .av img {
  border-radius: 50% !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
}

/* Avatar Sizing */
.av.xs { width: 20px !important; height: 20px !important; font-size: 9px !important; }
.av.sm { width: 28px !important; height: 28px !important; font-size: 12px !important; }
.av.m32 { width: 32px !important; height: 32px !important; font-size: 13px !important; }
.av.m40 { width: 40px !important; height: 40px !important; font-size: 15px !important; }
.av.md { width: 48px !important; height: 48px !important; font-size: 18px !important; }
.av.lg { width: 64px !important; height: 64px !important; font-size: 22px !important; }
.av.xl { width: 80px !important; height: 80px !important; font-size: 28px !important; }
.av.hero { width: 96px !important; height: 96px !important; font-size: 34px !important; }

/* 100% Circular Nitro Decoration Rings */
.av-decoration,
[class*="dec-ring-"] {
  position: absolute !important;
  inset: -4px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  border: 2px solid transparent !important;
  z-index: 2 !important;
}

.av.xs .av-decoration, .av.xs [class*="dec-ring-"] { inset: -2px !important; border-width: 1.5px !important; }
.av.sm .av-decoration, .av.sm [class*="dec-ring-"] { inset: -3px !important; border-width: 2px !important; }
.av.m40 .av-decoration, .av.m40 [class*="dec-ring-"] { inset: -4px !important; border-width: 2.2px !important; }
.av.lg .av-decoration, .av.lg [class*="dec-ring-"] { inset: -5px !important; border-width: 2.8px !important; }
.av.xl .av-decoration, .av.xl [class*="dec-ring-"] { inset: -6px !important; border-width: 3.2px !important; }
.av.hero .av-decoration, .av.hero [class*="dec-ring-"] { inset: -8px !important; border-width: 4px !important; }

/* 14 High-Fidelity Animated Avatar Decoration Rings */
.dec-ring-neon-glow {
  border-color: #00f3ff !important;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.85), inset 0 0 6px rgba(0, 243, 255, 0.4) !important;
  animation: ringPulseNeon 2s infinite ease-in-out !important;
}
@keyframes ringPulseNeon {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 243, 255, 0.7), inset 0 0 4px rgba(0, 243, 255, 0.3); border-color: #00f3ff; }
  50% { box-shadow: 0 0 20px rgba(0, 243, 255, 1), inset 0 0 8px rgba(0, 243, 255, 0.6); border-color: #70f8ff; }
}

.dec-ring-cyber-circuit {
  border-color: #38ef7d !important;
  box-shadow: 0 0 14px rgba(56, 239, 125, 0.85), inset 0 0 6px rgba(56, 239, 125, 0.4) !important;
  animation: ringPulseEmerald 2s infinite ease-in-out !important;
}
@keyframes ringPulseEmerald {
  0%, 100% { box-shadow: 0 0 12px rgba(56, 239, 125, 0.7); }
  50% { box-shadow: 0 0 20px rgba(56, 239, 125, 1), inset 0 0 8px rgba(56, 239, 125, 0.6); }
}

.dec-ring-fire-aura {
  border-color: #f97316 !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5) !important;
  animation: ringFlickerFire 1.6s infinite ease-in-out !important;
}
@keyframes ringFlickerFire {
  0%, 100% { box-shadow: 0 0 14px rgba(249, 115, 22, 0.8); border-color: #f97316; }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 1), inset 0 0 10px rgba(249, 115, 22, 0.7); border-color: #ef4444; }
}

.dec-ring-cosmic-star {
  border-color: #a855f7 !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.85), inset 0 0 6px rgba(168, 85, 247, 0.4) !important;
  animation: ringPulsePurple 2.2s infinite ease-in-out !important;
}
@keyframes ringPulsePurple {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.7); }
  50% { box-shadow: 0 0 22px rgba(168, 85, 247, 1), inset 0 0 8px rgba(168, 85, 247, 0.6); }
}

.dec-ring-golden-glory {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.85), inset 0 0 6px rgba(245, 158, 11, 0.4) !important;
  animation: ringShimmerGold 2.4s infinite ease-in-out !important;
}
@keyframes ringShimmerGold {
  0%, 100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }
  50% { box-shadow: 0 0 22px rgba(251, 191, 36, 1), inset 0 0 8px rgba(245, 158, 11, 0.6); }
}

.dec-ring-sakura-blossom {
  border-color: #f472b6 !important;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.85), inset 0 0 6px rgba(244, 114, 182, 0.4) !important;
  animation: ringPulsePink 2s infinite ease-in-out !important;
}
@keyframes ringPulsePink {
  0%, 100% { box-shadow: 0 0 12px rgba(244, 114, 182, 0.7); }
  50% { box-shadow: 0 0 20px rgba(244, 114, 182, 1); }
}

.dec-ring-void-pulse {
  border-color: #6366f1 !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.85), inset 0 0 6px rgba(99, 102, 241, 0.4) !important;
  animation: ringPulseIndigo 2s infinite ease-in-out !important;
}
@keyframes ringPulseIndigo {
  0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.7); }
  50% { box-shadow: 0 0 22px rgba(99, 102, 241, 1); }
}

.dec-ring-crystal-ice {
  border-color: #93c5fd !important;
  box-shadow: 0 0 14px rgba(147, 197, 253, 0.85), inset 0 0 6px rgba(147, 197, 253, 0.4) !important;
  animation: ringGlimmerIce 2s infinite ease-in-out !important;
}
@keyframes ringGlimmerIce {
  0%, 100% { box-shadow: 0 0 12px rgba(147, 197, 253, 0.7); }
  50% { box-shadow: 0 0 20px rgba(147, 197, 253, 1); }
}

.dec-ring-toxic-slime {
  border-color: #84cc16 !important;
  box-shadow: 0 0 16px rgba(132, 204, 22, 0.85), inset 0 0 6px rgba(132, 204, 22, 0.4) !important;
  animation: ringPulseLime 1.8s infinite ease-in-out !important;
}
@keyframes ringPulseLime {
  0%, 100% { box-shadow: 0 0 12px rgba(132, 204, 22, 0.7); }
  50% { box-shadow: 0 0 22px rgba(132, 204, 22, 1); }
}

.dec-ring-steampunk-gear {
  border-color: #d97706 !important;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.85), inset 0 0 6px rgba(217, 119, 6, 0.4) !important;
  animation: ringPulseBronze 2.2s infinite ease-in-out !important;
}
@keyframes ringPulseBronze {
  0%, 100% { box-shadow: 0 0 12px rgba(217, 119, 6, 0.7); }
  50% { box-shadow: 0 0 20px rgba(217, 119, 6, 1); }
}

.dec-ring-electric-storm {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9), inset 0 0 8px rgba(56, 189, 248, 0.5) !important;
  animation: ringFlickerStorm 1.4s infinite ease-in-out !important;
}
@keyframes ringFlickerStorm {
  0%, 100% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.8); }
  50% { box-shadow: 0 0 24px rgba(56, 189, 248, 1); }
}

.dec-ring-dragon-flame {
  border-color: #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5) !important;
  animation: ringFlickerFire 1.5s infinite ease-in-out !important;
}

.dec-ring-hologram-prism {
  border-color: #ec4899 !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.85), inset 0 0 6px rgba(168, 85, 247, 0.4) !important;
  animation: ringHoloPrism 2.5s infinite linear !important;
}
@keyframes ringHoloPrism {
  0% { border-color: #ec4899; box-shadow: 0 0 14px rgba(236, 72, 153, 0.8); }
  33% { border-color: #8b5cf6; box-shadow: 0 0 14px rgba(139, 92, 246, 0.8); }
  66% { border-color: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.8); }
  100% { border-color: #ec4899; box-shadow: 0 0 14px rgba(236, 72, 153, 0.8); }
}

.dec-ring-angelic-halo {
  border-color: #fef08a !important;
  box-shadow: 0 0 18px rgba(254, 240, 138, 0.9), inset 0 0 8px rgba(254, 240, 138, 0.5) !important;
  animation: ringPulseHalo 2s infinite ease-in-out !important;
}
@keyframes ringPulseHalo {
  0%, 100% { box-shadow: 0 0 14px rgba(254, 240, 138, 0.7); }
  50% { box-shadow: 0 0 24px rgba(254, 240, 138, 1); }
}

/* Presence Status Dots */
.presence {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  border: 2px solid #0b0f19 !important;
  z-index: 4 !important;
  background: #80848e;
  box-sizing: border-box !important;
}
.av.lg .presence {
  width: 14px !important;
  height: 14px !important;
  border-width: 3px !important;
  bottom: -1px !important;
  right: -1px !important;
}
.av.xl .presence,
.av.hero .presence {
  width: 18px !important;
  height: 18px !important;
  border-width: 3.5px !important;
  bottom: 0 !important;
  right: 0 !important;
}
.presence.on { background: #23a55a !important; box-shadow: 0 0 6px rgba(35, 165, 90, 0.6); }
.presence.idle { background: #f0b232 !important; box-shadow: 0 0 6px rgba(240, 178, 50, 0.6); }
.presence.dnd { background: #f23f43 !important; box-shadow: 0 0 6px rgba(242, 63, 67, 0.6); }

/* ------------------------------------------------------------ 3. User Popout & Profile Modal Polish */
.user-popout {
  position: fixed !important;
  width: 340px !important;
  background: linear-gradient(155deg, rgba(24, 29, 44, 0.98), rgba(13, 17, 28, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 40px rgba(88, 101, 242, 0.2) !important;
  overflow: hidden !important;
  z-index: 10000 !important;
  backdrop-filter: blur(20px) !important;
}

.po-banner {
  height: 100px !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}
.po-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.po-body {
  padding: 0 18px 18px !important;
  position: relative !important;
}

.po-id {
  display: flex !important;
  align-items: flex-end !important;
  gap: 14px !important;
  margin-top: -38px !important;
  margin-bottom: 14px !important;
  position: relative !important;
  z-index: 3 !important;
}
.po-id .av {
  border: 4px solid #141824 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
}

.po-sec {
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.po-sec-t {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #949ba4 !important;
  margin-bottom: 6px !important;
}
.po-sec-v {
  font-size: 13px !important;
  color: #dbdee1 !important;
  font-weight: 500 !important;
}

.po-roles {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
.po-role {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #dbdee1 !important;
}

.po-foot {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
.po-foot .btn {
  flex: 1 !important;
}


/* ==========================================================================
   UNREALCHAT CONTEXT MENU & SERVER DROPDOWN SYSTEM
   ========================================================================== */

.ctx {
  position: fixed !important;
  z-index: 100000 !important;
  min-width: 220px !important;
  max-width: 320px !important;
  background: linear-gradient(155deg, rgba(26, 31, 46, 0.98), rgba(15, 18, 28, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 6px 8px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 32px rgba(88, 101, 242, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  animation: ctxSlideIn 0.14s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

@keyframes ctxSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ctx-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 4px !important;
}
.ctx-head .who {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
.ctx-head .who b {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ctx-head .who span {
  font-size: 11.5px !important;
  color: #949ba4 !important;
  font-weight: 500 !important;
}

.ctx-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #949ba4 !important;
  padding: 6px 10px 4px !important;
}

.ctx-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #dbdee1 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  box-sizing: border-box !important;
}

.ctx-item:hover {
  background: rgba(88, 101, 242, 0.22) !important;
  color: #ffffff !important;
  transform: translateX(2px) !important;
}

.ctx-item .ci-ico {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  color: #949ba4 !important;
  flex-shrink: 0 !important;
}
.ctx-item:hover .ci-ico {
  color: #ffffff !important;
}

.ctx-item .ci-label {
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ctx-item .ci-end {
  font-size: 11.5px !important;
  color: #949ba4 !important;
  margin-left: 8px !important;
}

.ctx-item.danger {
  color: #f23f43 !important;
}
.ctx-item.danger .ci-ico {
  color: #f23f43 !important;
}
.ctx-item.danger:hover {
  background: rgba(242, 63, 67, 0.22) !important;
  color: #ffffff !important;
}
.ctx-item.danger:hover .ci-ico {
  color: #ffffff !important;
}

.ctx hr {
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  margin: 4px 0 !important;
  padding: 0 !important;
}

.ctx-vol {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 8px !important;
  margin: 2px 0 !important;
}
.ctx-vol input[type="range"] {
  flex: 1 !important;
}
.ctx-vol-pct {
  font-size: 11.5px !important;
  color: #5865f2 !important;
  font-weight: 700 !important;
  min-width: 36px !important;
  text-align: right !important;
}


/* ==========================================================================
   DISCORD-ACCURATE PROFILE THEMES & CUSTOMIZATION SYSTEM
   ========================================================================== */

/* Sub-panel in settings */
.settings-sub-panel {
  background: rgba(14, 18, 27, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

/* Selector Grids & Buttons */
.thm-selector-grid, .dec-selector-grid, .amb-selector-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
  gap: 10px !important;
  margin: 12px 0 6px !important;
}

.thm-choice, .dec-choice, .amb-choice {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  outline: none !important;
  user-select: none !important;
}

.thm-choice:hover, .dec-choice:hover, .amb-choice:hover {
  border-color: rgba(88, 101, 242, 0.6) !important;
  background: rgba(88, 101, 242, 0.1) !important;
  transform: translateY(-2px) !important;
}

.thm-choice.active, .dec-choice.active, .amb-choice.active {
  border-color: #5865f2 !important;
  background: rgba(88, 101, 242, 0.18) !important;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.4), inset 0 0 0 1px #5865f2 !important;
}

.thm-preview {
  width: 100% !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dec-preview-wrap {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
}

.dec-preview-inner {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-strong, #fff) !important;
}

.dec-preview-ring {
  position: absolute !important;
  inset: -3px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  border: 2px solid transparent !important;
}

.thm-lbl, .dec-lbl, .amb-lbl {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--text-strong, #f2f3f5) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.amb-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  display: grid !important;
  place-items: center !important;
  color: #5865f2 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   THEME STYLES (POP-OUT, ACCOUNT CARD, USER PROFILE DIALOG)
   -------------------------------------------------------------------------- */

/* 1. Synthwave Night */
.user-popout.theme-synthwave,
.acct-card.theme-synthwave,
.user-profile-dialog.theme-synthwave,
.user-profile-modal-wrap.theme-synthwave .modal-card {
  background: linear-gradient(160deg, #1f0b35 0%, #2e0854 45%, #100320 100%) !important;
  border-color: rgba(255, 0, 127, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 127, 0.25) !important;
}
.user-popout.theme-synthwave .po-banner,
.acct-card.theme-synthwave .bnr,
.user-profile-dialog.theme-synthwave .pop-banner,
.user-profile-modal-wrap.theme-synthwave .pop-banner {
  background: linear-gradient(135deg, #2e0854 0%, #8b008b 55%, #ff007f 100%) !important;
}

/* 2. Cyberpunk Neon */
.user-popout.theme-cyberpunk,
.acct-card.theme-cyberpunk,
.user-profile-dialog.theme-cyberpunk,
.user-profile-modal-wrap.theme-cyberpunk .modal-card {
  background: linear-gradient(160deg, #050514 0%, #0a1128 50%, #020208 100%) !important;
  border-color: rgba(0, 243, 255, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.25) !important;
}
.user-popout.theme-cyberpunk .po-banner,
.acct-card.theme-cyberpunk .bnr,
.user-profile-dialog.theme-cyberpunk .pop-banner,
.user-profile-modal-wrap.theme-cyberpunk .pop-banner {
  background: linear-gradient(135deg, #050510 0%, #00f3ff 65%, #ffe600 100%) !important;
}

/* 3. Midnight Aurora */
.user-popout.theme-midnight,
.acct-card.theme-midnight,
.user-profile-dialog.theme-midnight,
.user-profile-modal-wrap.theme-midnight .modal-card {
  background: linear-gradient(160deg, #071522 0%, #0c2338 50%, #040d16 100%) !important;
  border-color: rgba(0, 180, 216, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 180, 216, 0.25) !important;
}
.user-popout.theme-midnight .po-banner,
.acct-card.theme-midnight .bnr,
.user-profile-dialog.theme-midnight .pop-banner,
.user-profile-modal-wrap.theme-midnight .pop-banner {
  background: linear-gradient(135deg, #091a28 0%, #00b4d8 60%, #52b788 100%) !important;
}

/* 4. Sunset Boulevard */
.user-popout.theme-sunset,
.acct-card.theme-sunset,
.user-profile-dialog.theme-sunset,
.user-profile-modal-wrap.theme-sunset .modal-card {
  background: linear-gradient(160deg, #2b0321 0%, #3d002e 50%, #150010 100%) !important;
  border-color: rgba(230, 57, 70, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 57, 70, 0.25) !important;
}
.user-popout.theme-sunset .po-banner,
.acct-card.theme-sunset .bnr,
.user-profile-dialog.theme-sunset .pop-banner,
.user-profile-modal-wrap.theme-sunset .pop-banner {
  background: linear-gradient(135deg, #3d002e 0%, #e63946 55%, #ffb703 100%) !important;
}

/* 5. Deep Galaxy */
.user-popout.theme-galaxy,
.acct-card.theme-galaxy,
.user-profile-dialog.theme-galaxy,
.user-profile-modal-wrap.theme-galaxy .modal-card {
  background: linear-gradient(160deg, #0b021d 0%, #170535 50%, #05010e 100%) !important;
  border-color: rgba(217, 3, 104, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(217, 3, 104, 0.25) !important;
}
.user-popout.theme-galaxy .po-banner,
.acct-card.theme-galaxy .bnr,
.user-profile-dialog.theme-galaxy .pop-banner,
.user-profile-modal-wrap.theme-galaxy .pop-banner {
  background: linear-gradient(135deg, #0d0221 0%, #541388 55%, #d90368 100%) !important;
}

/* 6. Emerald Velvet */
.user-popout.theme-emerald,
.acct-card.theme-emerald,
.user-profile-dialog.theme-emerald,
.user-profile-modal-wrap.theme-emerald .modal-card {
  background: linear-gradient(160deg, #02201b 0%, #04382e 50%, #01110e 100%) !important;
  border-color: rgba(37, 162, 68, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 162, 68, 0.25) !important;
}
.user-popout.theme-emerald .po-banner,
.acct-card.theme-emerald .bnr,
.user-profile-dialog.theme-emerald .pop-banner,
.user-profile-modal-wrap.theme-emerald .pop-banner {
  background: linear-gradient(135deg, #032b24 0%, #0f5132 55%, #25a244 100%) !important;
}

/* 7. Crimson Eclipse */
.user-popout.theme-crimson,
.acct-card.theme-crimson,
.user-profile-dialog.theme-crimson,
.user-profile-modal-wrap.theme-crimson .modal-card {
  background: linear-gradient(160deg, #220505 0%, #380712 50%, #120101 100%) !important;
  border-color: rgba(201, 24, 74, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 24, 74, 0.25) !important;
}
.user-popout.theme-crimson .po-banner,
.acct-card.theme-crimson .bnr,
.user-profile-dialog.theme-crimson .pop-banner,
.user-profile-modal-wrap.theme-crimson .pop-banner {
  background: linear-gradient(135deg, #2b0909 0%, #800f2f 55%, #c9184a 100%) !important;
}

/* 8. Ocean Abyss */
.user-popout.theme-ocean-abyss,
.acct-card.theme-ocean-abyss,
.user-profile-dialog.theme-ocean-abyss,
.user-profile-modal-wrap.theme-ocean-abyss .modal-card {
  background: linear-gradient(160deg, #020914 0%, #051d2d 50%, #01040a 100%) !important;
  border-color: rgba(0, 119, 182, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 119, 182, 0.25) !important;
}
.user-popout.theme-ocean-abyss .po-banner,
.acct-card.theme-ocean-abyss .bnr,
.user-profile-dialog.theme-ocean-abyss .pop-banner,
.user-profile-modal-wrap.theme-ocean-abyss .pop-banner {
  background: linear-gradient(135deg, #03071e 0%, #032b43 55%, #0077b6 100%) !important;
}

/* 9. Volcano Magma */
.user-popout.theme-volcano-magma,
.acct-card.theme-volcano-magma,
.user-profile-dialog.theme-volcano-magma,
.user-profile-modal-wrap.theme-volcano-magma .modal-card {
  background: linear-gradient(160deg, #180600 0%, #290c00 50%, #0c0300 100%) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(249, 115, 22, 0.25) !important;
}
.user-popout.theme-volcano-magma .po-banner,
.acct-card.theme-volcano-magma .bnr,
.user-profile-dialog.theme-volcano-magma .pop-banner,
.user-profile-modal-wrap.theme-volcano-magma .pop-banner {
  background: linear-gradient(135deg, #1a0800 0%, #4d1500 55%, #992b00 100%) !important;
}

/* 10. Cherry Blossom */
.user-popout.theme-cherry-blossom,
.acct-card.theme-cherry-blossom,
.user-profile-dialog.theme-cherry-blossom,
.user-profile-modal-wrap.theme-cherry-blossom .modal-card {
  background: linear-gradient(160deg, #1d0915 0%, #331124 50%, #0e040a 100%) !important;
  border-color: rgba(244, 114, 182, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(244, 114, 182, 0.25) !important;
}
.user-popout.theme-cherry-blossom .po-banner,
.acct-card.theme-cherry-blossom .bnr,
.user-profile-dialog.theme-cherry-blossom .pop-banner,
.user-profile-modal-wrap.theme-cherry-blossom .pop-banner {
  background: linear-gradient(135deg, #240c1a 0%, #501d3a 55%, #833860 100%) !important;
}

/* 11. Holographic */
.user-popout.theme-holographic,
.acct-card.theme-holographic,
.user-profile-dialog.theme-holographic,
.user-profile-modal-wrap.theme-holographic .modal-card {
  background: linear-gradient(160deg, #131131 0%, #201e52 50%, #09081a 100%) !important;
  border-color: rgba(129, 140, 248, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(129, 140, 248, 0.25) !important;
}
.user-popout.theme-holographic .po-banner,
.acct-card.theme-holographic .bnr,
.user-profile-dialog.theme-holographic .pop-banner,
.user-profile-modal-wrap.theme-holographic .pop-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%) !important;
}

/* 12. Matrix Code */
.user-popout.theme-matrix-code,
.acct-card.theme-matrix-code,
.user-profile-dialog.theme-matrix-code,
.user-profile-modal-wrap.theme-matrix-code .modal-card {
  background: linear-gradient(160deg, #000e00 0%, #001f00 50%, #000600 100%) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.25) !important;
}
.user-popout.theme-matrix-code .po-banner,
.acct-card.theme-matrix-code .bnr,
.user-profile-dialog.theme-matrix-code .pop-banner,
.user-profile-modal-wrap.theme-matrix-code .pop-banner {
  background: linear-gradient(135deg, #001100 0%, #002b00 55%, #004400 100%) !important;
}

/* 13. Royal Amethyst */
.user-popout.theme-royal-amethyst,
.acct-card.theme-royal-amethyst,
.user-profile-dialog.theme-royal-amethyst,
.user-profile-modal-wrap.theme-royal-amethyst .modal-card {
  background: linear-gradient(160deg, #120624 0%, #250644 50%, #090214 100%) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.25) !important;
}
.user-popout.theme-royal-amethyst .po-banner,
.acct-card.theme-royal-amethyst .bnr,
.user-profile-dialog.theme-royal-amethyst .pop-banner,
.user-profile-modal-wrap.theme-royal-amethyst .pop-banner {
  background: linear-gradient(135deg, #1a0933 0%, #3c096c 55%, #5a189a 100%) !important;
}

/* 14. Frost Glacier */
.user-popout.theme-frost-glacier,
.acct-card.theme-frost-glacier,
.user-profile-dialog.theme-frost-glacier,
.user-profile-modal-wrap.theme-frost-glacier .modal-card {
  background: linear-gradient(160deg, #051319 0%, #09272d 50%, #02090c 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25) !important;
}
.user-popout.theme-frost-glacier .po-banner,
.acct-card.theme-frost-glacier .bnr,
.user-profile-dialog.theme-frost-glacier .pop-banner,
.user-profile-modal-wrap.theme-frost-glacier .pop-banner {
  background: linear-gradient(135deg, #081c24 0%, #0e3b43 55%, #155e63 100%) !important;
}

/* 15. Sunset Glow */
.user-popout.theme-sunset-glow,
.acct-card.theme-sunset-glow,
.user-profile-dialog.theme-sunset-glow {
  background: linear-gradient(160deg, #230b04 0%, #3b1308 50%, #120401 100%) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
}
.user-popout.theme-sunset-glow .po-banner,
.acct-card.theme-sunset-glow .bnr,
.user-profile-dialog.theme-sunset-glow .pop-banner {
  background: linear-gradient(135deg, #431407 0%, #c2410c 55%, #f97316 100%) !important;
}

/* 16. Midnight Neon */
.user-popout.theme-midnight-neon,
.acct-card.theme-midnight-neon,
.user-profile-dialog.theme-midnight-neon {
  background: linear-gradient(160deg, #011813 0%, #042921 50%, #000c09 100%) !important;
  border-color: rgba(45, 212, 191, 0.5) !important;
}
.user-popout.theme-midnight-neon .po-banner,
.acct-card.theme-midnight-neon .bnr,
.user-profile-dialog.theme-midnight-neon .pop-banner {
  background: linear-gradient(135deg, #022c22 0%, #0d9488 55%, #2dd4bf 100%) !important;
}

/* 17. Ocean Breeze */
.user-popout.theme-ocean-breeze,
.acct-card.theme-ocean-breeze,
.user-profile-dialog.theme-ocean-breeze {
  background: linear-gradient(160deg, #041927 0%, #082d45 50%, #020c14 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}
.user-popout.theme-ocean-breeze .po-banner,
.acct-card.theme-ocean-breeze .bnr,
.user-profile-dialog.theme-ocean-breeze .pop-banner {
  background: linear-gradient(135deg, #082f49 0%, #0284c7 55%, #38bdf8 100%) !important;
}

/* 18. Emerald Forest */
.user-popout.theme-emerald-forest,
.acct-card.theme-emerald-forest,
.user-profile-dialog.theme-emerald-forest {
  background: linear-gradient(160deg, #031c0e 0%, #06331a 50%, #010e07 100%) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
}
.user-popout.theme-emerald-forest .po-banner,
.acct-card.theme-emerald-forest .bnr,
.user-profile-dialog.theme-emerald-forest .pop-banner {
  background: linear-gradient(135deg, #052e16 0%, #16a34a 55%, #4ade80 100%) !important;
}

/* 19. Amethyst Magic */
.user-popout.theme-amethyst-magic,
.acct-card.theme-amethyst-magic,
.user-profile-dialog.theme-amethyst-magic {
  background: linear-gradient(160deg, #1e0433 0%, #300652 50%, #0e021a 100%) !important;
  border-color: rgba(192, 132, 252, 0.5) !important;
}
.user-popout.theme-amethyst-magic .po-banner,
.acct-card.theme-amethyst-magic .bnr,
.user-profile-dialog.theme-amethyst-magic .pop-banner {
  background: linear-gradient(135deg, #3b0764 0%, #9333ea 55%, #c084fc 100%) !important;
}

/* --------------------------------------------------------------------------
   AMBIENT WEATHER & ATMOSPHERE EFFECTS
   -------------------------------------------------------------------------- */
.po-ambient-layer,
.acct-ambient-layer {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
}

.ambient-rain {
  background: linear-gradient(transparent 70%, rgba(56, 189, 248, 0.15) 100%),
              repeating-linear-gradient(105deg, transparent 0, transparent 15px, rgba(56, 189, 248, 0.25) 16px, transparent 17px) !important;
  background-size: 100% 100%, 120px 120px !important;
  animation: ambRainFall 0.8s linear infinite !important;
}
@keyframes ambRainFall {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 20px 120px; }
}

.ambient-snow {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 1.5px, transparent 2px),
              radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.4) 1.2px, transparent 2px),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.5) 2px, transparent 2.5px),
              radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.3) 1px, transparent 1.5px) !important;
  background-size: 80px 80px, 120px 120px, 90px 90px, 110px 110px !important;
  animation: ambSnowFall 4s linear infinite !important;
}
@keyframes ambSnowFall {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 10px 80px, -15px 120px, 8px 90px, -5px 110px; }
}

.ambient-sakura {
  background: radial-gradient(ellipse at 30% 30%, rgba(244, 114, 182, 0.6) 2px, transparent 4px),
              radial-gradient(ellipse at 70% 60%, rgba(251, 113, 133, 0.5) 2.5px, transparent 4px),
              radial-gradient(ellipse at 45% 85%, rgba(244, 114, 182, 0.4) 2px, transparent 3.5px) !important;
  background-size: 100px 100px, 140px 140px, 110px 110px !important;
  animation: ambSakuraFloat 5s ease-in-out infinite alternate !important;
}
@keyframes ambSakuraFloat {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 25px 90px, -20px 130px, 15px 100px; }
}

.ambient-matrix {
  background: repeating-linear-gradient(180deg, transparent 0, transparent 18px, rgba(34, 197, 94, 0.22) 19px, transparent 22px) !important;
  background-size: 100% 90px !important;
  animation: ambMatrixScan 1.5s linear infinite !important;
}
@keyframes ambMatrixScan {
  0% { background-position: 0 0; }
  100% { background-position: 0 90px; }
}

.ambient-sparks {
  background: radial-gradient(circle at 35% 80%, rgba(251, 191, 36, 0.8) 1.5px, transparent 2.5px),
              radial-gradient(circle at 65% 90%, rgba(245, 158, 11, 0.7) 2px, transparent 3px),
              radial-gradient(circle at 50% 60%, rgba(239, 68, 68, 0.6) 1.8px, transparent 2.8px) !important;
  background-size: 70px 70px, 100px 100px, 85px 85px !important;
  animation: ambSparksRise 2.2s ease-out infinite !important;
}
@keyframes ambSparksRise {
  0% { background-position: 0 0, 0 0, 0 0; opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { background-position: -5px -70px, 8px -100px, -10px -85px; opacity: 0.2; }
}

.ambient-leaves {
  background: radial-gradient(ellipse at 40% 30%, rgba(217, 119, 6, 0.6) 2.5px, transparent 4px),
              radial-gradient(ellipse at 80% 70%, rgba(180, 83, 9, 0.5) 3px, transparent 4.5px) !important;
  background-size: 90px 90px, 130px 130px !important;
  animation: ambLeavesDrift 4.5s ease-in-out infinite !important;
}
@keyframes ambLeavesDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 25px 80px, -30px 110px; }
}

.ambient-nebula {
  background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.2) 0%, transparent 55%) !important;
  animation: ambNebulaPulse 6s ease-in-out infinite alternate !important;
}
@keyframes ambNebulaPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

.ambient-fireflies {
  background: radial-gradient(circle at 25% 45%, rgba(234, 179, 8, 0.8) 1.5px, transparent 3px),
              radial-gradient(circle at 70% 30%, rgba(163, 230, 53, 0.7) 1.5px, transparent 3px),
              radial-gradient(circle at 55% 75%, rgba(250, 204, 21, 0.6) 2px, transparent 3.5px) !important;
  background-size: 60px 60px, 90px 90px, 75px 75px !important;
  animation: ambFirefliesGlow 3s ease-in-out infinite alternate !important;
}
@keyframes ambFirefliesGlow {
  0% { opacity: 0.3; background-position: 0 0, 0 0, 0 0; }
  100% { opacity: 1; background-position: 10px -15px, -12px 10px, 8px 12px; }
}


/* ==========================================================================
   TICKET CREATION FORM & INPUTS STYLING
   ========================================================================== */
.ticket-create-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 8px 4px !important;
}

.ticket-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ticket-form-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f2f3f5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ticket-input,
.ticket-select,
.ticket-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(10, 14, 26, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #f2f3f5 !important;
  padding: 10px 14px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.ticket-select {
  cursor: pointer !important;
  appearance: auto !important;
}
.ticket-select option {
  background: #181f30 !important;
  color: #ffffff !important;
  padding: 8px !important;
}

.ticket-textarea {
  resize: vertical !important;
  min-height: 110px !important;
}

.ticket-input:focus,
.ticket-select:focus,
.ticket-textarea:focus {
  border-color: #5865f2 !important;
  background: rgba(14, 20, 36, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.35), inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.ticket-form-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 10px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ticket-submit-btn {
  background: linear-gradient(135deg, #5865f2, #3b82f6) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.45) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}
.ticket-submit-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6) !important;
}

/* --------------------------------------------------------------------------
   THEME TRANSPARENT BODY OVERRIDES (MAKES THEME GRADIENTS 100% VISIBLE)
   -------------------------------------------------------------------------- */
[class*="theme-"] .po-body,
[class*="theme-"] .user-profile-body,
[class*="theme-"] .po-bio,
[class*="theme-"] .acct-card .row {
  background: transparent !important;
}

.user-profile-body {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile-modal-wrap [class*="theme-"] {
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   GLOBAL THEME LIGHTING, RADIANT GLOWS & ELEVATED CONTRAST
   -------------------------------------------------------------------------- */
body {
  background-color: #0c111e !important;
  background-image:
    radial-gradient(1200px 700px at 18% -5%, rgba(88, 101, 242, 0.2), transparent 60%),
    radial-gradient(1000px 600px at 85% 95%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(800px 500px at 50% 35%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(34, 197, 94, 0.08), transparent 60%) !important;
  background-attachment: fixed !important;
}

/* Elevated Frosted Glass Surfaces */
.navbar {
  background: rgba(18, 25, 42, 0.86) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.35), 0 0 35px rgba(88, 101, 242, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.rail {
  background: rgba(15, 20, 36, 0.85) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
}

.col {
  background: rgba(19, 26, 45, 0.84) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.11) !important;
}

.chat {
  background: rgba(23, 31, 52, 0.86) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.members-panel {
  background: rgba(19, 26, 45, 0.84) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.11) !important;
}

.modal-card {
  background: rgba(20, 28, 48, 0.95) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.75), 0 0 45px rgba(88, 101, 242, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Luminous Composer & Text Highlights */
.composer {
  background: rgba(15, 22, 38, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.composer:focus-within {
  border-color: #5865f2 !important;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Radiant Item Highlights */
.chan:hover, .dm-row:hover, .member:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
.chan.active, .dm-row.active {
  background: rgba(88, 101, 242, 0.22) !important;
  box-shadow: inset 3px 0 0 #5865f2, 0 0 16px rgba(88, 101, 242, 0.25) !important;
}

/* ==========================================================================
   LANDING PAGE STYLES (index.php)
   ========================================================================== */
.landing-body {
  background: #080d1a !important;
  color: #e2e8f0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  position: relative !important;
}

.landing-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.glow-orb.orb-1 {
  width: 550px;
  height: 550px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #5865f2, transparent 70%);
}

.glow-orb.orb-2 {
  width: 600px;
  height: 600px;
  top: 20%;
  right: -150px;
  background: radial-gradient(circle, #00d1ff, transparent 70%);
}

.glow-orb.orb-3 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: 20%;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

/* Navigation */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 13, 26, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.landing-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5865f2, #38bdf8);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.4);
}

.landing-brand-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}
.landing-brand-text span {
  color: #5865f2;
}

.landing-badge-chip {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.2);
  color: #7a88ff;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.landing-link {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-link:hover {
  color: #fff;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-signin {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.landing-btn-signin:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.landing-btn-register, .landing-btn-launch {
  background: #5865f2;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}
.landing-btn-register:hover, .landing-btn-launch:hover {
  background: #4752c4;
}

/* Hero Section */
.landing-hero-section {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 960px) {
  .landing-hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
  }
  .landing-nav-links { display: none; }
}

.landing-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  color: #8da0ff;
  margin-bottom: 18px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
}

.landing-hero-title {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 900;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(120deg, #5865f2, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 28px;
  max-width: 520px;
}

.landing-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 960px) {
  .landing-hero-ctas { justify-content: center; }
  .landing-hero-sub { margin-left: auto; margin-right: auto; }
}

.landing-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .landing-trust-row { justify-content: center; }
}

.trust-item {
  font-size: 12.5px;
  color: #94a3b8;
}
.trust-item b {
  color: #38ef7d;
  margin-right: 4px;
}

/* Interactive Preview Window */
.landing-hero-preview-wrap {
  position: relative;
}

.landing-preview-window {
  background: #101726;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(88, 101, 242, 0.15);
}

.window-top-bar {
  background: #0c111c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ed4245; }
.dot-yellow { background: #fee75c; }
.dot-green { background: #57f287; }

.window-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-left: 6px;
}

.window-app-grid {
  display: grid;
  grid-template-columns: 52px 160px 1fr;
  height: 380px;
}

.preview-rail {
  background: #080d17;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.p-srv {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  transition: border-radius 0.2s ease, background 0.2s ease;
}
.p-srv.active {
  border-radius: 12px;
  background: #5865f2;
}
.p-srv.add {
  display: grid;
  place-items: center;
  color: #38ef7d;
  font-weight: 800;
  background: rgba(56, 239, 125, 0.1);
  border: 1px dashed rgba(56, 239, 125, 0.4);
}

.preview-channels {
  background: #0c1220;
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.p-ch-head {
  font-weight: 800;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.p-cat {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin: 10px 0 4px;
}

.p-ch {
  padding: 5px 8px;
  border-radius: 6px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.p-ch.active {
  background: rgba(88, 101, 242, 0.2);
  color: #fff;
  font-weight: 600;
}

.preview-chat {
  background: #111827;
  display: flex;
  flex-direction: column;
}

.p-chat-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-badge-live {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 239, 125, 0.2);
  color: #38ef7d;
}

.p-messages-stream {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.p-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.p-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
}
.p-av.av-1 { background: #38bdf8; }
.p-av.av-2 { background: #a855f7; }
.p-av.av-3 { background: #38ef7d; }
.p-av.av-4 { background: #f59e0b; }
.p-av.lg { width: 44px; height: 44px; }
.p-av.sm { width: 24px; height: 24px; }

.p-mc { flex: 1; }
.p-author { font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.p-stamp { font-size: 10.5px; font-weight: 400; color: #64748b; margin-left: 6px; }
.p-tag-admin { font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: #5865f2; color: #fff; }
.p-tag-nitro { font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: #c084fc; color: #fff; }
.p-text { font-size: 13px; color: #cbd5e1; }

.p-poll-box {
  margin-top: 6px;
  background: #0c1220;
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
}
.p-poll-q { font-size: 11.5px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.p-poll-opt {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.p-poll-opt.voted {
  background: rgba(88, 101, 242, 0.25);
  border-left: 3px solid #5865f2;
}

.p-composer {
  padding: 8px 12px;
  background: #0c1220;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.p-input-mock { flex: 1; }
.p-btn-tool { cursor: pointer; color: #94a3b8; }

/* Sections */
.landing-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}
.landing-section.alt-bg {
  background: rgba(12, 18, 32, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5865f2;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Feature Grid */
.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(16, 24, 38, 0.8), rgba(9, 13, 22, 0.9));
  border: 1px solid rgba(88, 101, 242, 0.18);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(88, 101, 242, 0.15);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #5865f2;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.feature-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 16px;
}

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Split Rows */
.landing-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
@media (max-width: 900px) {
  .landing-split-row { grid-template-columns: 1fr; }
}

.feature-bullet-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullet-list li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}
.feature-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #38ef7d;
  font-weight: 800;
}

/* Stage Mock Card */
.stage-mock-card {
  background: #0f1626;
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 16px;
  padding: 20px;
}
.stage-section-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 12px;
}
.stage-speakers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.stage-speaker-card {
  background: #151e33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stage-speaker-card.speaking {
  border-color: #38ef7d;
  box-shadow: 0 0 16px rgba(56, 239, 125, 0.2);
}
.stage-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.stage-badge.mod { background: #5865f2; color: #fff; }
.stage-badge.speaker { background: #00d1ff; color: #000; }

.stage-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stage-audience-card {
  background: #111827;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stage-hand-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  color: #f59e0b;
}

/* Pricing Grid */
.nitro-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .nitro-card-grid { grid-template-columns: 1fr; }
}

.nitro-pricing-card {
  background: linear-gradient(135deg, rgba(16, 24, 38, 0.9), rgba(9, 13, 22, 0.95));
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
}
.nitro-pricing-card.featured {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(192, 132, 252, 0.15);
}

.nitro-card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #a855f7, #5865f2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.nitro-price-tag {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 16px 0;
}
.nitro-price-tag span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.nitro-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
}

/* FAQ Accordion */
.landing-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(16, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item[open] {
  border-color: rgba(88, 101, 242, 0.4);
}

.faq-question {
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* CTA Section */
.landing-cta-section {
  position: relative;
  z-index: 10;
  padding: 60px 24px 80px;
}

.cta-banner-box {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(0, 209, 255, 0.15)), #0f1628;
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 20px;
  padding: 50px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.2);
}

.cta-banner-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}

.cta-banner-desc {
  font-size: 16px;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 28px;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 10;
  background: #060a14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 24px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 14px 0;
  max-width: 280px;
}

.footer-copy {
  font-size: 12px;
  color: #475569;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.footer-links-col a {
  font-size: 13.5px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links-col a:hover {
  color: #fff;
}

/* ==========================================================================
   ADMIN IMPERSONATION BAR & AUTO-UPDATE STYLES
   ========================================================================== */
.impersonation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #9a3412, #d97706, #9a3412);
  color: #ffffff;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.4);
  font-size: 13px;
  font-weight: 600;
  animation: impSlideDown 0.25s ease-out;
}
@keyframes impSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.imp-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.imp-icon {
  font-size: 16px;
  display: grid;
  place-items: center;
}
.imp-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imp-revert-btn {
  background: #0f172a !important;
  color: #fef08a !important;
  border: 1px solid rgba(254, 240, 138, 0.4) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.imp-revert-btn:hover {
  background: #1e293b !important;
  transform: scale(1.04) !important;
}

body.has-impersonation-bar .cube-nav {
  top: 36px !important;
}
body.has-impersonation-bar .app-grid,
body.has-impersonation-bar .rail {
  padding-top: 36px !important;
}

/* ==========================================================================
   MANDATORY UPDATE MODAL (BALE / TELEGRAM WEB STYLE)
   ========================================================================== */
.mandatory-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: upOverlayFade 0.3s ease-out;
}

@keyframes upOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mandatory-update-card {
  max-width: 460px;
  width: 100%;
  background: linear-gradient(180deg, rgba(26, 36, 60, 0.95), rgba(15, 22, 38, 0.98));
  border: 1.5px solid rgba(88, 101, 242, 0.45);
  border-radius: 24px;
  padding: 38px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(88, 101, 242, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: upCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes upCardPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.up-icon-glow {
  position: relative;
  margin-bottom: 18px;
}
.up-icon-glow::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.6), transparent 70%);
  filter: blur(14px);
  animation: upPulse 2.5s infinite ease-in-out;
}
@keyframes upPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.up-icon-circle {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5865f2, #38bdf8);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.up-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.up-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: upDotFlash 1.5s infinite;
}
@keyframes upDotFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.up-title {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.up-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 24px;
}

.up-actions {
  width: 100%;
}

.up-btn-main {
  width: 100%;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #5865f2, #4752c4) !important;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.up-btn-main:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.6) !important;
}

.up-footer-note {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 14px;
}

/* Voice & Call VPN Alert Notice Panel */
.vpn-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vpnFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vpnFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vpn-notice-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #1e2129 0%, #15171d 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: vpnPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vpnPopIn {
  from { transform: scale(0.92) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.vpn-notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.vpn-icon-glow {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.vpn-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vpn-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.vpn-desc-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.vpn-desc-text {
  font-size: 14px;
  line-height: 1.65;
  color: #fbbf24;
  font-weight: 600;
  margin: 0;
  text-align: center;
  direction: rtl;
}

.vpn-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.vpn-btn-proceed {
  flex: 1.4;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: #5865f2 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}
.vpn-btn-proceed:hover {
  background: #4752c4 !important;
  transform: translateY(-1px);
}

.vpn-btn-cancel {
  flex: 1;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.vpn-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}

