/* =========================
   Global / Base
   ========================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'Inter','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  background: #0f1117;
  color: #e4e6eb;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Header (desktop default)
   ========================= */

#header {
  position: relative;
  z-index: 9600;
  min-height: 56px;
  background: #14161d;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
  isolation: isolate;
  overflow: visible;
}

/* Signature app header: recognizable without taking extra screen space. */
#header {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 7% -80%, rgba(34, 197, 94, .18), transparent 34%),
    radial-gradient(circle at 88% -100%, rgba(99, 102, 241, .16), transparent 38%),
    linear-gradient(180deg, rgba(13, 18, 29, .98), rgba(8, 12, 20, .98)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .12) !important;
  box-shadow: 0 5px 18px rgba(2, 6, 23, .32) !important;
}

#header::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #22c55e 0%, #22d3ee 34%, #6366f1 68%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(34, 211, 238, .24);
  opacity: .82;
}

#header .brand-logo {
  position: relative;
  color: #f0fdf4;
  border: 1px solid rgba(134, 239, 172, .82) !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .42), transparent 21%),
    linear-gradient(145deg, #34d399 0%, #16a34a 52%, #064e3b 100%) !important;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, .09),
    0 0 18px rgba(34, 197, 94, .28),
    inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

#header .btn,
#header .header-more-btn {
  border-color: rgba(148, 163, 184, .14);
  background: linear-gradient(180deg, rgba(30, 41, 59, .72), rgba(15, 23, 42, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

#header .btn i,
#header .header-more-btn i {
  color: #93c5fd;
}

#header #btnSobe {
  border-color: rgba(34, 211, 238, .24) !important;
  background: linear-gradient(180deg, rgba(8, 145, 178, .16), rgba(15, 23, 42, .8)) !important;
}

#header #btnYoutubeRoom i {
  color: #c4b5fd;
}

#header #btnOnlineAll i {
  color: #67e8f9;
}

#header .btn:hover,
#header .header-more-btn:hover {
  border-color: rgba(96, 165, 250, .3);
  background: linear-gradient(180deg, rgba(51, 65, 85, .78), rgba(20, 29, 46, .84));
}

@media (max-width: 640px) {
  #header {
    min-height: 46px !important;
    padding: 5px 5px !important;
    gap: 3px !important;
  }

  #header .brand-logo {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }

  #header .btn,
  #header .notification-btn,
  #header .header-more-btn {
    min-width: 29px !important;
    width: auto;
    height: 29px !important;
    padding: 0 6px !important;
    border: 1px solid rgba(148, 163, 184, .11) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, .7), rgba(15, 23, 42, .76)) !important;
  }

  #header .btn i,
  #header .notification-btn i,
  #header .header-more-btn i {
    font-size: .88rem !important;
  }

  #header #btnSobe {
    background: linear-gradient(180deg, rgba(8, 145, 178, .18), rgba(15, 23, 42, .8)) !important;
    border-color: rgba(34, 211, 238, .22) !important;
  }

  #header #btnYoutubeRoom {
    min-width: 37px !important;
  }

  #header #btnYoutubeRoom small {
    margin-left: 0 !important;
    padding: 1px 3px !important;
  }
}

/* Desktop red čekanja i trenutna pjesma u slobodnom lijevom dijelu headera. */
.yt-header-queue{box-sizing:border-box;min-width:72px;max-width:min(470px,38vw);height:42px;flex:1 1 220px;display:flex;align-items:center;margin-left:5px;padding:3px 6px;overflow:hidden;border:0;border-radius:11px;background:linear-gradient(180deg,rgba(31,36,46,.72),rgba(21,25,33,.78));box-shadow:inset 0 1px rgba(255,255,255,.035)}
.yt-header-queue[hidden]{display:none!important}
.yt-header-queue-controls{width:100%;min-width:0;display:flex;align-items:center;gap:4px;overflow:hidden}
.yt-header-now-playing-wrap{box-sizing:border-box}
.yt-header-now-playing-wrap[hidden]{display:none!important}
.yt-header-now-playing{min-width:0;flex:1 1 auto;height:100%;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;padding:3px 10px 3px 3px;overflow:hidden;border:0;border-radius:10px;background:transparent;box-shadow:none}
.yt-header-live-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:linear-gradient(145deg,#fb7185,#db2777);box-shadow:0 5px 12px rgba(219,39,119,.2),inset 0 1px rgba(255,255,255,.18);font-size:.76rem}
.yt-header-song-copy{min-width:0;display:grid;gap:3px;line-height:1}
.yt-header-song-copy small{display:flex;align-items:center;gap:4px;color:#f9a8d4;font-size:.43rem;font-weight:950;letter-spacing:.075em}
.yt-header-song-copy small i{width:5px;height:5px;border-radius:50%;background:#fb7185;box-shadow:0 0 7px rgba(251,113,133,.75);animation:ytLiveDot 1.7s ease-in-out infinite}
.yt-header-song-copy strong{min-width:0;overflow:hidden;color:#fff1f7;font-size:.68rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.yt-header-queue-label{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;padding:0;border:0;border-radius:10px;color:#c4ceda;background:rgba(139,92,246,.12);white-space:nowrap}
.yt-header-queue-label span{display:none}
.yt-header-queue-label i{color:#b9a3fb;font-size:1rem}
.yt-header-queue.is-playing:not(.has-queue){
  width:112px;
  min-width:112px;
  max-width:112px;
  height:36px;
  flex:0 0 112px;
  padding:3px 7px;
  border:1px solid rgba(52,211,153,.22);
  background:radial-gradient(circle at 10% 50%,rgba(52,211,153,.16),transparent 48%),linear-gradient(135deg,rgba(20,48,42,.94),rgba(21,24,32,.96));
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 4px 12px rgba(0,0,0,.14);
}
.yt-header-queue.is-playing:not(.has-queue) .yt-header-queue-label{width:100%;height:28px;display:inline-flex;place-items:initial;align-items:center;justify-content:flex-start;gap:7px;padding:0 4px;color:#bfe3d5;background:transparent;box-shadow:none}
.yt-header-queue.is-playing:not(.has-queue) .yt-header-queue-label span{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;overflow:hidden;line-height:1;white-space:nowrap}
.yt-header-queue.is-playing:not(.has-queue) .yt-header-queue-label small{display:block;color:#78aa98;font-size:.43rem;font-weight:950;line-height:1;letter-spacing:.035em;text-transform:uppercase}
.yt-header-queue.is-playing:not(.has-queue) .yt-header-queue-label strong{display:block;color:#d7f2e7;font-size:.63rem;font-weight:950;line-height:1}
.yt-header-queue.is-playing:not(.has-queue) .yt-header-queue-label i{color:#6ee7b7;font-size:.72rem}
.yt-header-queue .yt-queue-avatar{width:36px;height:36px;min-width:36px;margin-left:-6px;border:2px solid #171c25;box-shadow:0 4px 10px rgba(0,0,0,.27)}
.yt-header-queue .yt-header-queue-label+.yt-queue-avatar{margin-left:1px}
.yt-header-queue .yt-queue-avatar:hover{z-index:3;transform:translateY(-1px)}
.yt-header-queue .yt-queue-avatar b{right:-2px;bottom:-2px;min-width:16px;height:16px;font-size:.56rem}
.yt-header-queue .yt-queue-more{height:22px;min-width:25px;margin-left:1px;padding:0 5px;border:0;border-radius:7px;color:#c4b5fd;background:rgba(139,92,246,.12);font-size:.52rem}
.yt-live-indicator{display:none}
@media (min-width:721px){
  #chatView>.yt-queue-peek{display:none!important}
}
@media (max-width:900px){
  .yt-header-queue-label span{display:none}
  .yt-header-queue{min-width:108px;max-width:32vw;gap:0;padding-inline:4px}
  .yt-header-queue .yt-queue-avatar:nth-of-type(n+5){display:none}
}
@media (max-width:720px){
  .yt-header-queue{display:none!important}
}

/* Clean signature header: open icons, no framed icon buttons. */
#header .btn,
#header .notification-btn,
#header .header-more-btn,
#header #btnSobe,
#header #btnYoutubeRoom,
#header #btnOnlineAll,
#header #btnProfile {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#header .btn:hover,
#header .btn:focus-visible,
#header .notification-btn:hover,
#header .header-more-btn:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

#header .btn i,
#header .notification-btn i,
#header .header-more-btn i {
  filter: none !important;
  text-shadow: 0 0 10px currentColor;
  opacity: .9;
  transition: color .16s ease, opacity .16s ease, transform .16s ease;
}

#header .btn:hover i,
#header .notification-btn:hover i,
#header .header-more-btn:hover i {
  opacity: 1;
  transform: translateY(-1px);
}

#header #btnSobe {
  position: relative;
}

#header #btnSobe::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #22d3ee !important;
  box-shadow: 0 0 8px #22d3ee !important;
  transform: translateX(-50%) !important;
}

#header #btnSobe i { color: #93c5fd !important; }
#header #btnYoutubeRoom i { color: #c4b5fd !important; }
#header #btnOnlineAll i { color: #67e8f9 !important; }
#header .notification-btn i { color: #fde68a !important; }

/* Desktop stays on the original header design. */
@media (min-width: 641px) {
  #header {
    background: #14161d !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.02) !important;
  }

  #header::after {
    display: block !important;
    height: 1px !important;
    background: linear-gradient(90deg, #22c55e 0%, rgba(34,197,94,.72) 16%, rgba(34,197,94,.22) 30%, transparent 42%) !important;
    box-shadow: 0 0 9px rgba(34,197,94,.28) !important;
    opacity: .82 !important;
  }

  #header .brand-logo {
    background:
      radial-gradient(circle at 34% 28%, rgba(255,255,255,.34), transparent 22%),
      radial-gradient(circle at 50% 58%, #34d399 0 28%, #16a34a 56%, #064e3b 100%) !important;
    border: 1px solid rgba(134,239,172,.7) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.28),
      0 0 0 3px rgba(34,197,94,.10),
      0 0 18px rgba(34,197,94,.34) !important;
  }

  #header .header-actions > .btn,
  #header .header-actions .notification-btn {
    border: 1px solid rgba(148,163,184,.14) !important;
    border-radius: 10px !important;
    background: rgba(26,29,38,.82) !important;
    box-shadow: none !important;
  }

  #header .header-nav .btn {
    border-color: transparent !important;
    background: transparent !important;
  }

  #header .btn i,
  #header .notification-btn i,
  #header .header-more-btn i {
    color: #8ab4f8 !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  #header #btnSobe::after {
    display: none !important;
  }
}

/* Mobile-only identity: open icons over a soft aurora header. */
@media (max-width: 640px) {
  #header {
    background:
      radial-gradient(circle at 8% 0%, rgba(34,197,94,.18), transparent 31%),
      radial-gradient(circle at 82% 0%, rgba(124,58,237,.16), transparent 38%),
      linear-gradient(100deg, #09121a, #10101b) !important;
    box-shadow: 0 4px 16px rgba(2,6,23,.3) !important;
  }

  #header::after {
    height: 1px !important;
    opacity: .72 !important;
  }

  #header .brand-logo {
    box-shadow:
      0 0 0 2px rgba(34,197,94,.08),
      0 0 14px rgba(34,197,94,.28) !important;
  }

  #header .btn i,
  #header .notification-btn i,
  #header .header-more-btn i {
    text-shadow: none !important;
  }
}
#header .header-more-btn i { color: #cbd5e1 !important; }

@media (max-width: 640px) {
  #header .btn,
  #header .notification-btn,
  #header .header-more-btn,
  #header #btnSobe,
  #header #btnYoutubeRoom,
  #header #btnOnlineAll,
  #header #btnProfile {
    min-width: 27px !important;
    width: auto !important;
    height: 30px !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #header #btnYoutubeRoom {
    min-width: 35px !important;
  }
}

html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transform: none !important;
}

html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  display: block !important;
  /* Ne mijenjaj iframe na 1x1: YouTube na nekim mobitelima tada prekida render/playback. */
  width: min(100vw, 480px) !important;
  height: clamp(128px, 34vw, 164px) !important;
  min-width: 280px !important;
  min-height: 128px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* Absolute final click guard: keep YouTube alive away from chat, but never clickable through pages. */
body.yt-view-away .yt-chat-spot.yt-sidebar-player,
body.yt-view-away .yt-chat-spot.yt-sidebar-player *,
body.yt-view-away .yt-chat-spot.yt-sidebar-player iframe,
body.yt-view-away #ytPlayer,
body.yt-view-away #ytPlayer *,
body.yt-view-away #ytPlayer iframe,
body.yt-view-away #ytMobilePlayer,
body.yt-view-away #ytMobilePlayer *,
body.yt-view-away #ytMobilePlayer iframe {
  pointer-events: none !important;
}

body.yt-view-away .yt-chat-spot.yt-sidebar-player {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
}

/* Mobile right online column: keep nicknames on one line and compress them gently. */
@media (max-width: 760px) {
  #onlineUsers .online-user-name-line {
    width: calc(100% + 10px) !important;
    min-height: 15px !important;
    margin: 4px -5px 0 !important;
    padding: 0 !important;
  }

  #onlineUsers .online-user-nick,
  #onlineUsers .online-user-nick[class*="cody-name-"],
  #onlineUsers .online-user-nick[class*="name-effect--"] {
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    font-size: clamp(7px, 2.15vw, 9.5px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: none;
    transform-origin: center;
    padding: 0 !important;
  }

  #onlineUsers .online-user-nick.is-compressed {
    transform: scaleX(var(--online-nick-scale, .94)) !important;
  }
}

/* Absolute final click guard: keep YouTube alive away from chat, but never clickable through pages. */
body.yt-view-away .yt-chat-spot.yt-sidebar-player,
body.yt-view-away .yt-chat-spot.yt-sidebar-player *,
body.yt-view-away .yt-chat-spot.yt-sidebar-player iframe,
body.yt-view-away #ytPlayer,
body.yt-view-away #ytPlayer *,
body.yt-view-away #ytPlayer iframe,
body.yt-view-away #ytMobilePlayer,
body.yt-view-away #ytMobilePlayer *,
body.yt-view-away #ytMobilePlayer iframe {
  pointer-events: none !important;
}

body.yt-view-away .yt-chat-spot.yt-sidebar-player {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
}

/* Final click guard: when another page is open, YouTube must keep playing but never catch taps/clicks. */
body.yt-view-away .yt-chat-spot.yt-sidebar-player,
body.yt-view-away .yt-chat-spot.yt-sidebar-player *,
body.yt-view-away .yt-chat-spot.yt-sidebar-player iframe,
body.yt-view-away #ytPlayer,
body.yt-view-away #ytPlayer *,
body.yt-view-away #ytPlayer iframe,
body.yt-view-away #ytMobilePlayer,
body.yt-view-away #ytMobilePlayer *,
body.yt-view-away #ytMobilePlayer iframe {
  pointer-events: none !important;
}

body.yt-view-away .yt-chat-spot.yt-sidebar-player {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
}



/* ===== SIMPLE ID REGISTRATION + ADMIN REVIEW ===== */
.id-register-simple {
  width: min(100%, 620px);
  margin-inline: auto;
  gap: 14px;
  padding: 16px;
}

.id-register-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.id-document-upload {
  min-height: 132px;
  padding: 14px;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px !important;
  border: 1px dashed rgba(96,165,250,.36);
  border-radius: 16px;
  color: #dbeafe !important;
  background: rgba(15,23,42,.7);
  cursor: pointer;
}

.id-document-upload > input { display: none; }

.id-document-upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.id-document-upload-copy { min-width: 0; }
.id-document-upload-copy strong,
.id-document-upload-copy small { display: block; }
.id-document-upload-copy small { margin-top: 4px; color: #8fa1ba; font-size: .68rem; }

#idDocumentPreview {
  width: 112px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.18);
}

.id-scan-status {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  color: #aebdd1;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(148,163,184,.1);
  font-size: .72rem;
  font-weight: 800;
}

.id-scan-status i { color: #60a5fa; }
.id-scan-status.is-loading i { animation: idScanPulse 1s ease-in-out infinite; }
.id-scan-status.is-ready { color: #bbf7d0; border-color: rgba(74,222,128,.22); background: rgba(22,101,52,.13); }
.id-scan-status.is-ready i { color: #4ade80; }
.id-scan-status.is-error { color: #fecaca; border-color: rgba(248,113,113,.22); background: rgba(127,29,29,.14); }
.id-photo-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.id-photo-tips span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 12px;
  color: #b8c6d8;
  background: rgba(15,23,42,.46);
  text-align: center;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.2;
}
.id-photo-tips i { color: #67e8f9; }
.id-manual-name-fields {
  padding: 10px;
  border: 1px solid rgba(250,204,21,.22);
  border-radius: 15px;
  background: rgba(250,204,21,.07);
}
.id-manual-name-fields .id-register-alert {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .78rem;
}
.id-scan-status.is-error i { color: #f87171; }

@keyframes idScanPulse { 50% { opacity: .35; transform: scale(.9); } }

.id-register-simple button:disabled { opacity: .55; cursor: wait; }

.admin-id-list { display: grid; gap: 12px; }

.admin-id-card {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.12);
  background: linear-gradient(180deg, rgba(15,23,42,.78), rgba(7,12,21,.9));
}

.admin-id-card.is-pending { border-color: rgba(250,204,21,.2); }
.admin-id-card.is-accepted { border-color: rgba(74,222,128,.18); }
.admin-id-card.is-rejected { opacity: .72; }

.admin-id-image {
  position: relative;
  min-height: 180px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #080d17;
  border: 1px solid rgba(148,163,184,.12);
}

.admin-id-image img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: contain; }
.admin-id-image span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(3,7,18,.82);
  font-size: .62rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.admin-id-data { min-width: 0; display: grid; align-content: start; gap: 10px; }
.admin-id-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-id-title strong { display: block; color: #f8fafc; font-size: .94rem; }
.admin-id-title small { display: block; margin-top: 3px; color: #8495ad; font-size: .62rem; }

.admin-id-status { padding: 5px 8px; border-radius: 999px; font-size: .58rem; font-weight: 950; text-transform: uppercase; }
.admin-id-status.is-pending { color: #fde68a; background: rgba(161,98,7,.22); }
.admin-id-status.is-accepted { color: #bbf7d0; background: rgba(22,101,52,.24); }
.admin-id-status.is-rejected { color: #fecaca; background: rgba(153,27,27,.22); }

.admin-id-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.admin-id-facts > span { min-width: 0; padding: 8px 9px; border-radius: 10px; background: rgba(15,23,42,.62); border: 1px solid rgba(148,163,184,.08); }
.admin-id-facts small,
.admin-id-facts b { display: block; overflow-wrap: anywhere; }
.admin-id-facts small { color: #7f91aa; font-size: .57rem; font-weight: 800; }
.admin-id-facts b { margin-top: 3px; color: #dce7f5; font-size: .69rem; }

.admin-id-ocr { border: 1px solid rgba(148,163,184,.1); border-radius: 10px; background: rgba(3,7,18,.42); }
.admin-id-ocr summary { padding: 8px 10px; color: #9fb1c9; cursor: pointer; font-size: .66rem; font-weight: 850; }
.admin-id-ocr pre { max-height: 160px; overflow: auto; padding: 10px; border-top: 1px solid rgba(148,163,184,.08); color: #9fb1c9; white-space: pre-wrap; font: 11px/1.4 Consolas, monospace; }

.admin-id-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.admin-id-actions form { margin: 0; }
.admin-id-actions button { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .68rem; font-weight: 900; cursor: pointer; }
.admin-id-reject { color: #fecaca; background: rgba(127,29,29,.18); border: 1px solid rgba(248,113,113,.2); }
.admin-id-accept { color: #fff; background: linear-gradient(145deg, #22c55e, #15803d); border: 1px solid rgba(134,239,172,.2); }
.admin-id-reviewed { color: #7f91aa; font-size: .62rem; text-align: right; }
.admin-id-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 10px; color: #7f91aa; }
.admin-id-empty i { font-size: 2rem; }

@media (max-width: 720px) {
  .id-register-simple { padding: 12px; }
  .id-register-credentials { grid-template-columns: 1fr; }
  .id-document-upload { grid-template-columns: 42px minmax(0, 1fr); min-height: 108px; }
  #idDocumentPreview { grid-column: 1 / -1; width: 100%; height: 150px; }
  .admin-id-card { grid-template-columns: 1fr; }
  .admin-id-image,
  .admin-id-image img { min-height: 160px; }
  .admin-id-facts { grid-template-columns: 1fr; }
  .admin-id-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-id-actions button { width: 100%; }
}

#header::before {
  content: "";
  display: none;
}

.header-start,
.header-nav,
.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-start {
  flex: 0 0 auto;
  justify-self: start;
  order: 0;
  gap: 6px;
}

.header-nav {
  justify-self: stretch;
  justify-content: center;
  order: 1;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.header-actions {
  justify-self: end;
  justify-content: flex-end;
  order: 2;
  gap: 4px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #dcfce7;
  font-size: 1.45rem;
  font-weight: 950;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  line-height: 1;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.34), transparent 22%),
    radial-gradient(circle at 50% 58%, #34d399 0 28%, #16a34a 56%, #064e3b 100%);
  border: 1px solid rgba(134,239,172,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 0 3px rgba(34,197,94,.10),
    0 0 18px rgba(34,197,94,.34);
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  cursor: pointer;
}
.brand-logo:focus-visible {
  outline: 2px solid rgba(34,211,238,.7);
  outline-offset: 2px;
}
#welcome {
  display: none;
}
#welcome::before {
  display: none;
}

.player-stats {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.player-stats[hidden] { display: none; }
.player-stat {
  position: relative;
  height: 30px;
  min-width: 74px;
  padding: 0 8px 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background:
    linear-gradient(180deg, rgba(31,111,235,.12), rgba(31,111,235,.04)),
    #1a1d26;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.player-stat::after {
  display: none;
}
.stat-chip {
  position: absolute;
  left: 6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #14161d;
  background: #facc15;
  border: 0;
  box-shadow: 0 0 0 3px rgba(250,204,21,.10);
  z-index: 2;
}
.stat-chip::before {
  display: none;
}
.stat-chip i {
  position: relative;
  z-index: 1;
  font-size: 9px;
  filter: none;
}
.stat-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat-label {
  display: block;
  color: #93c5fd;
  font-size: .64rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow: none;
}
.stat-copy strong {
  color: #f8fafc;
  font-size: .76rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
.player-stat-credit::before {
  display: none;
}
.player-stat-pop {
  min-width: 62px;
  padding-right: 8px;
  border-color: rgba(52,211,153,.12);
  background:
    linear-gradient(180deg, rgba(52,211,153,.12), rgba(52,211,153,.04)),
    #1a1d26;
}
.player-stat-pop .stat-chip {
  color: #052e24;
  background: #34d399;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(52,211,153,.10);
}
.player-stat-pop::after { background: #34d399; }
.player-stat-pop .stat-copy {
  background: transparent;
}
.player-stat-pop .stat-label { color: #86efac; }

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
#authButtons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-more {
  position: relative;
  flex: 0 0 auto;
}

.header-more > summary {
  list-style: none;
}

.header-more > summary::-webkit-details-marker {
  display: none;
}

.header-more-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9700;
  width: 220px;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(20,22,29,.98);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.header-more[open] .header-more-panel {
  display: grid;
}

.header-more-panel .btn,
.header-more-panel .btn-ghost {
  width: 100%;
  justify-content: flex-start;
}

.header-more-panel #authButtons {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.btn {
  position: relative;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(26,29,38,.82);
  border: 1px solid rgba(148,163,184,.14);
  color: #e5e7eb;
  padding: 0 9px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: none;
  white-space: nowrap;
}
.btn i {
  color: #8ab4f8;
  font-size: .98rem;
  filter: none;
}
.btn small {
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(31,111,235,.16);
  border: 1px solid rgba(31,111,235,.22);
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profileNameLabel {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(96,165,250,.28);
  box-shadow: 0 0 0 2px rgba(31,111,235,.10);
}
.btn:hover {
  background: rgba(35,39,53,.86);
  border-color: rgba(148,163,184,.24);
  color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}
.btn::after { display: none; }
.btn:hover i { color: #93c5fd; }

.header-nav .btn {
  min-width: 72px;
  height: 44px;
  border-color: transparent;
  background: transparent;
  color: #b6c2d4;
  border-radius: 8px;
  box-shadow: none;
  padding: 0 14px;
}

.header-nav .btn i {
  font-size: 1.14rem;
}

.header-nav .btn span,
.header-nav .btn small {
  display: none;
}

.header-nav .btn:hover,
.header-nav .btn:focus-visible {
  background: rgba(255,255,255,.055);
  border-color: transparent;
  color: #f8fafc;
  transform: none;
  box-shadow: none;
}

.header-nav #btnSobe {
  background: transparent;
  border-color: transparent;
  color: #f8fafc;
}

.header-nav #btnSobe::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #2b7fff;
  box-shadow: 0 0 10px rgba(43,127,255,.35);
}

.header-actions > .btn,
.header-actions .notification-btn {
  width: auto;
  min-width: 0;
  height: 34px;
  padding-inline: 9px;
  border-radius: 10px;
  background: rgba(26,29,38,.82);
  border-color: rgba(148,163,184,.14);
}

.header-actions > .btn span,
.header-actions > .btn small {
  display: inline;
}

.header-actions .notification-btn {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
}

.header-actions .notification-btn span {
  display: none;
}

.header-actions #btnProfile {
  width: auto;
  min-width: 0;
  padding: 0 9px 0 6px;
  gap: 7px;
  border-color: rgba(96,165,250,.20);
  background:
    linear-gradient(180deg, rgba(96,165,250,.10), rgba(15,19,29,.04)),
    rgba(26,29,38,.86);
}

.header-actions #btnProfile #profileNameLabel {
  display: inline-block;
}

.photo-head-btn {
  padding-right: 9px;
}

.photo-head-btn .photo-plus {
  display: none;
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(31,111,235,.5); outline-offset: 2px; }
#btnShop {
  color: #e5e7eb;
  background: rgba(20,24,34,.92);
  border-color: rgba(148,163,184,.10);
  box-shadow: none;
}
#btnShop i { color: #8ab4f8; }
#btnShop:hover {
  background: rgba(35,39,53,.90);
  border-color: rgba(148,163,184,.24);
  box-shadow: none;
}

.btn-ghost {
  background: #1a1d26;
  border: 1px solid rgba(148,163,184,0.25);
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn-ghost:hover { background: #232735; border-color: rgba(148,163,184,0.4); transform: translateY(-1px); }

.back-btn { background:#1a1d26; border:1px solid rgba(148,163,184,0.25); }
.back-btn:hover { background:#232735; border-color:rgba(148,163,184,0.4); }

/* =========================
   Layout
   ========================= */

#main {
  flex: 1;
  display: flex;
  height: calc(100vh - 56px);
  padding: 15px;
  gap: 15px;
  background: #0f1117;
  overflow: hidden;
}

#chatAndInput {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.view { height: 100%; display: flex; flex-direction: column; min-width: 0; }
.hidden { display: none !important; }

/* =========================
   YouTube room player / DJ queue
   ========================= */
.room-youtube-btn { position: relative; }
.room-youtube-btn i {
  color: inherit;
  filter: none;
  font-size: inherit;
}
#btnYoutubeRoom span {
  display: none !important;
}
#btnYoutubeRoom {
  min-width: 42px;
}
#chatView {
  position: relative;
}
.guest-guide {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 11px 42px 11px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 13px;
  color: #dbeafe;
  background:
    radial-gradient(circle at 0 0, rgba(34,211,238,.14), transparent 38%),
    linear-gradient(135deg, rgba(13,31,48,.96), rgba(20,20,42,.96));
  box-shadow: 0 8px 22px rgba(2,6,23,.25), inset 0 1px 0 rgba(255,255,255,.05);
}
.guest-guide[hidden] { display: none !important; }
.guest-guide-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-size: 1rem;
}
.guest-guide-copy { min-width: 0; display: grid; gap: 3px; }
.guest-guide-copy strong { color: #f8fafc; font-size: .8rem; }
.guest-guide-copy p { color: #cbd5e1; font-size: .69rem; line-height: 1.35; }
.guest-guide-copy p b { color: #67e8f9; }
.guest-guide-copy small { color: #91a4bd; font-size: .61rem; line-height: 1.35; }
.guest-guide-actions { display: flex; gap: 6px; }
.guest-guide-actions button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 9px;
  color: #e0f2fe;
  background: rgba(30,64,175,.24);
  font-size: .65rem;
  font-weight: 900;
  cursor: pointer;
}
.guest-guide-actions button:last-child {
  color: #071a12;
  border-color: rgba(134,239,172,.42);
  background: linear-gradient(135deg, #86efac, #5eead4);
}
.guest-guide-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #94a3b8;
  background: rgba(15,23,42,.55);
  cursor: pointer;
}
.guest-chat-welcome {
  width: min(680px, calc(100% - 14px));
  margin: 8px auto 12px;
  padding: 11px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 14px;
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(13,31,48,.96), rgba(26,20,50,.96));
  box-shadow: 0 8px 24px rgba(2,6,23,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.guest-chat-welcome-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #818cf8);
}
.guest-chat-welcome-copy { min-width: 0; display: grid; gap: 3px; }
.guest-chat-welcome-copy strong { color: #f8fafc; font-size: .78rem; }
.guest-chat-welcome-copy strong b { color: #67e8f9; }
.guest-chat-welcome-copy p { color: #cbd5e1; font-size: .68rem; line-height: 1.35; }
.guest-chat-welcome-copy small { color: #91a4bd; font-size: .61rem; line-height: 1.3; }
.guest-chat-welcome-actions { display: flex; gap: 5px; }
.guest-chat-welcome-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 9px;
  color: #e0f2fe;
  background: rgba(30,64,175,.25);
  font-size: .63rem;
  font-weight: 900;
  cursor: pointer;
}
.guest-chat-welcome-actions button:last-child { color: #071a12; background: linear-gradient(135deg, #86efac, #5eead4); }
@media (max-width: 640px) {
  .guest-chat-welcome {
    width: calc(100% - 6px);
    margin: 5px auto 8px;
    padding: 8px;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 7px;
    border-radius: 11px;
  }
  .guest-chat-welcome-icon { width: 31px; height: 31px; border-radius: 9px; font-size: .78rem; }
  .guest-chat-welcome-copy strong { font-size: .68rem; }
  .guest-chat-welcome-copy p { font-size: .59rem; }
  .guest-chat-welcome-copy small { display: none; }
  .guest-chat-welcome-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .guest-chat-welcome-actions button { min-height: 29px; font-size: .58rem; }
}
@media (max-width: 640px) {
  .guest-guide {
    margin-bottom: 5px;
    padding: 8px 31px 8px 8px;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 7px;
    border-radius: 10px;
  }
  .guest-guide-icon { width: 31px; height: 31px; border-radius: 9px; font-size: .8rem; }
  .guest-guide-copy strong { font-size: .7rem; }
  .guest-guide-copy p { font-size: .61rem; line-height: 1.3; }
  .guest-guide-copy small { display: none; }
  .guest-guide-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .guest-guide-actions button { min-height: 30px; justify-content: center; padding: 0 6px; font-size: .6rem; }
  .guest-guide-close { top: 5px; right: 5px; width: 22px; height: 22px; }
}
.yt-chat-spot {
  position:absolute;
  top:10px;
  right:12px;
  z-index:35;
  width:min(310px,38vw);
  overflow:clip;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  color:#e5eefc;
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(3,7,18,.94));
  box-shadow:0 18px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(12px);
}
.yt-chat-spot[hidden]{display:none!important}
.yt-chat-spot-head{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px 6px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
.yt-chat-spot-title{
  min-width:0;
  display:grid;
  gap:2px;
}
.yt-chat-spot-title b{
  min-width:0;
  overflow:hidden;
  color:#fff;
  font-size:.78rem;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.yt-chat-spot-title small{
  min-width:0;
  overflow:hidden;
  color:#9fb0c8;
  font-size:.64rem;
  font-weight:850;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.yt-chat-spot-head span{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:7px;
  overflow:hidden;
  color:#fecaca;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.12em;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.yt-chat-spot-head>div{
  display:flex;
  align-items:center;
  gap:5px;
}
.yt-chat-spot-head button{
  min-width:34px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.07);
  cursor:pointer;
}
.yt-admin-next{
  flex:0 0 auto;
  border-color:rgba(251,113,133,.34)!important;
  color:#ffe4ea!important;
  background:linear-gradient(180deg,rgba(251,113,133,.20),rgba(127,29,29,.16))!important;
  font-size:.68rem;
  font-weight:950;
}
.yt-admin-next:hover{border-color:rgba(251,113,133,.58)!important;filter:brightness(1.08)}
.yt-admin-next:disabled,.yt-mini-skip.is-disabled{opacity:.55;cursor:wait;filter:saturate(.7)}
@media(max-width:720px){
  #chatView>.yt-admin-next{
    position:absolute!important;
    top:var(--yt-next-top,0px)!important;
    right:0!important;
    left:auto!important;
    z-index:58!important;
    width:29px!important;
    min-width:29px!important;
    height:29px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border:1px solid rgba(251,113,133,.27)!important;
    border-radius:0 0 0 9px!important;
    color:#fda4af!important;
    background:linear-gradient(145deg,rgba(39,31,42,.97),rgba(20,23,31,.98))!important;
    box-shadow:0 5px 12px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.06)!important;
    line-height:1!important;
  }
  #chatView>.yt-admin-next::after{display:none!important}
  #chatView>.yt-admin-next span{display:none!important}
  #chatView>.yt-admin-next i{font-size:.62rem!important}
  #chatView>.yt-admin-next:hover{color:#ffe4e6!important;border-color:rgba(251,113,133,.48)!important;background:linear-gradient(145deg,rgba(65,36,48,.98),rgba(30,25,34,.99))!important}
  #chatView>.yt-admin-next:active{transform:scale(.96)!important}
}
#ytSpotPlay{
  color:#111827;
  background:linear-gradient(135deg,#86efac,#67e8f9);
  border-color:rgba(167,243,208,.46);
}
.yt-chat-spot.yt-needs-play #ytSpotPlay{
  animation:ytPlayPulse .9s ease-in-out infinite;
  box-shadow:0 0 0 4px rgba(134,239,172,.12),0 0 18px rgba(103,232,249,.34);
}
@keyframes ytPlayPulse{
  50%{transform:scale(1.08);filter:brightness(1.15)}
}
.yt-chat-spot iframe,
.yt-chat-spot #ytPlayer{
  width:100%!important;
  height:174px!important;
  display:block;
  background:#020617;
}
.yt-chat-spot-title{
  display:grid;
  gap:2px;
  padding:8px 10px 9px;
}
.yt-chat-spot-title b,
.yt-chat-spot-title small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.yt-chat-spot-title b{color:#fff;font-size:.82rem;font-weight:950}
.yt-chat-spot-title small{color:#8fa3bf;font-size:.68rem;font-weight:850}
.yt-mobile-play{display:none}
.yt-mobile-player{display:none}
.yt-spot-queue{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:0 8px 9px;
  overflow-x:auto;
  scrollbar-width:none;
}
.yt-spot-queue::-webkit-scrollbar{display:none}
.yt-spot-person{
  min-width:0;
  max-width:86px;
  flex:0 0 auto;
  height:32px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 7px 3px 3px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  color:#dbeafe;
  background:rgba(255,255,255,.055);
  cursor:pointer;
}
.yt-spot-person img{
  width:26px;
  height:26px;
  flex:0 0 auto;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.22);
}
.yt-spot-person span{
  min-width:0;
  overflow:hidden;
  font-size:.64rem;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.yt-spot-empty{
  color:#7f8ea5;
  font-size:.68rem;
  font-weight:850;
}
.yt-spot-more{
  width:30px;
  height:30px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#111827;
  background:#facc15;
  font-size:.68rem;
  font-weight:950;
}
.yt-chat-spot:not([hidden]) ~ #chat {
  padding-top: 266px;
}
.yt-mini-bar {
  flex:0 0 auto;
  min-height:42px;
  margin:8px 10px 0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:7px 9px;
  border:1px solid rgba(248,113,113,.18);
  border-radius:16px;
  color:#e5eefc;
  background:linear-gradient(135deg,rgba(239,68,68,.10),rgba(15,23,42,.76));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  cursor:pointer;
}

/* Muzika ostaje u headeru/playeru; pomoćna traka iznad smajlića se ne prikazuje. */
#chatView > .yt-mini-bar,
#chatView > .yt-queue-peek {
  display: none !important;
}
.yt-mini-bar[hidden]{display:none!important}
.yt-mini-bar>i{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#ef4444;box-shadow:0 0 16px rgba(239,68,68,.35)}
.yt-mini-bar span{min-width:0;display:grid;text-align:left}
.yt-mini-bar b{min-width:0;overflow:hidden;color:#fff;font-size:.82rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.yt-mini-bar small{min-width:0;overflow:hidden;color:#9fb0c8;font-size:.68rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.yt-mini-bar em{min-width:24px;height:24px;display:grid;place-items:center;border-radius:999px;color:#111827;background:#facc15;font-size:.7rem;font-style:normal;font-weight:950}
.yt-mini-skip{width:28px;height:28px;display:grid;place-items:center;border:1px solid rgba(251,113,133,.28);border-radius:999px;color:#ffe4ea;background:rgba(251,113,133,.13);font-size:.72rem}
.yt-queue-peek{min-height:34px;margin:5px 10px 0;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}
.yt-queue-peek[hidden]{display:none!important}
.yt-queue-peek::-webkit-scrollbar{display:none}
.yt-queue-peek-label{height:24px;display:inline-flex;align-items:center;padding:0 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:#9fb0c8;background:rgba(255,255,255,.035);font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.yt-queue-avatar{position:relative;width:31px;height:31px;flex:0 0 auto;padding:0;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:#020617;box-shadow:0 0 0 2px rgba(2,6,23,.75),0 8px 18px rgba(0,0,0,.28);cursor:pointer}
.yt-queue-avatar img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover}
.yt-queue-avatar b{position:absolute;right:-4px;bottom:-4px;min-width:16px;height:16px;display:grid;place-items:center;border:1px solid rgba(2,6,23,.95);border-radius:999px;color:#07111f;background:#facc15;font-size:.52rem;font-weight:950;box-shadow:0 4px 10px rgba(250,204,21,.18)}
.yt-queue-more{height:28px;min-width:32px;padding:0 8px;border:1px solid rgba(250,204,21,.22);border-radius:999px;color:#fde68a;background:rgba(250,204,21,.08);font-size:.68rem;font-weight:950;cursor:pointer}
.yt-queue-popover{position:fixed;z-index:100060;width:min(310px,calc(100vw - 20px));padding:11px;border:1px solid rgba(255,255,255,.12);border-radius:15px;color:#e5eefc;background:linear-gradient(180deg,#151923,#090d15);box-shadow:0 18px 50px rgba(0,0,0,.48)}
.yt-queue-popover[hidden]{display:none!important}
.yt-pop-head{display:flex;align-items:center;gap:8px;margin-right:30px}
.yt-pop-head img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.14);box-shadow:0 0 0 2px rgba(2,6,23,.7)}
.yt-pop-head div{min-width:0;display:grid}
.yt-pop-head b{overflow:hidden;color:#fff;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.yt-pop-head span,.yt-queue-popover small{color:#8fa3bf;font-size:.68rem;font-weight:800}
.yt-pop-song{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:9px;margin-top:10px;padding:7px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.04)}
.yt-pop-song img{width:74px;height:42px;object-fit:cover;border-radius:9px;background:#020617}
.yt-pop-song div{min-width:0;display:grid;gap:3px}
.yt-pop-song strong{min-width:0;overflow:hidden;color:#f8fafc;font-size:.82rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.yt-queue-popover>button{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid rgba(255,255,255,.10);border-radius:50%;color:#cbd5e1;background:rgba(255,255,255,.05);cursor:pointer}
.yt-room-panel {
  position:fixed;inset:0;z-index:100040;display:grid;place-items:center;
  padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:rgba(2,6,23,.72);backdrop-filter:blur(10px);
}
.yt-room-panel[hidden]{display:none!important}
.yt-room-card {
  width:min(720px,96vw);max-height:min(820px,94dvh);display:grid;grid-template-rows:auto auto auto minmax(0,1fr);
  gap:12px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:28px;color:#e5eefc;
  background:radial-gradient(circle at 12% 0,rgba(239,68,68,.18),transparent 18rem),radial-gradient(circle at 88% 12%,rgba(56,189,248,.12),transparent 16rem),linear-gradient(145deg,rgba(15,23,42,.98),rgba(3,7,18,.98));
  box-shadow:0 34px 110px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.08);
}
.yt-room-head{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.yt-room-head div{min-width:0;display:grid;gap:3px}
.yt-room-head span{color:#fecaca;font-size:.72rem;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.yt-room-head strong{max-width:560px;overflow:hidden;color:#fff;font-size:1.05rem;font-weight:950;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}
.yt-room-head button{width:42px;height:42px;flex:0 0 auto;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:#fff;background:rgba(255,255,255,.07);cursor:pointer}
.yt-now,.yt-search,.yt-queue{margin:0 14px}
.yt-player-wrap{position:relative;min-height:86px;overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:18px;background:#020617}
.yt-player-wrap iframe{width:100%!important;height:126px!important;display:block}
.yt-empty-player{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;background:radial-gradient(circle at 50% 20%,rgba(239,68,68,.20),transparent 12rem),linear-gradient(145deg,#0f172a,#020617)}
.yt-empty-player[hidden]{display:none!important}
.yt-empty-player i{width:42px;height:42px;display:grid;place-items:center;border-radius:15px;color:#fecaca;background:rgba(239,68,68,.12);border:1px solid rgba(248,113,113,.18);font-size:1rem}
.yt-empty-player b{color:#fff}.yt-empty-player span{color:#9fb0c8;font-size:.76rem}
.yt-now-meta{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px 0;color:#9fb0c8;font-size:.78rem;font-weight:850}
.yt-now-meta button,.yt-search form button{border:1px solid rgba(103,232,249,.22);color:#dffcff;background:rgba(103,232,249,.09);cursor:pointer}
.yt-now-meta button{min-height:34px;padding:0 12px;border-radius:999px;font-weight:950}
.yt-now-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.yt-search form{display:grid;grid-template-columns:1fr 44px;gap:8px}
.yt-search input{min-width:0;height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.10);border-radius:16px;color:#f8fafc;background:rgba(255,255,255,.06);outline:none}
.yt-search input:focus{border-color:rgba(103,232,249,.38);box-shadow:0 0 0 3px rgba(103,232,249,.08)}
.yt-search form button{border-radius:16px}
.yt-api-hint,.yt-loading{margin-top:8px;padding:10px 12px;border:1px dashed rgba(250,204,21,.24);border-radius:14px;color:#fde68a;background:rgba(250,204,21,.07);font-size:.78rem;font-weight:850}
.yt-loading{color:#9fb0c8;border-color:rgba(148,163,184,.16);background:rgba(255,255,255,.035)}
.yt-error{color:#fecaca;border-color:rgba(248,113,113,.26);background:rgba(239,68,68,.08)}
.yt-results{max-height:248px;display:grid;gap:6px;overflow:auto;margin-top:8px;padding-right:2px}
.yt-result{min-width:0;width:100%;min-height:52px;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px;border:1px solid rgba(255,255,255,.08);border-radius:14px;color:#e5eefc;background:rgba(255,255,255,.045);text-align:left;cursor:pointer}
.yt-result:hover{border-color:rgba(248,113,113,.28);background:rgba(239,68,68,.08)}
.yt-result:disabled{opacity:.65;cursor:wait}
.yt-result img,.yt-queue-row img{width:64px;height:38px;object-fit:cover;border-radius:10px;background:#020617}
.yt-result span,.yt-queue-row div{min-width:0;display:grid;gap:3px}
.yt-result strong,.yt-queue-row strong{min-width:0;overflow:hidden;color:#fff;font-size:.82rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.yt-result small,.yt-queue-row span{min-width:0;overflow:hidden;color:#8fa3bf;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.yt-result b{padding:7px 9px;border-radius:999px;color:#fff;background:rgba(239,68,68,.18);font-size:.7rem;font-weight:950}
.yt-queue{min-height:0;margin-bottom:14px;padding:10px;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035)}
.yt-queue-title{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#fff}
.yt-queue-title span{min-width:26px;height:24px;display:grid;place-items:center;border-radius:999px;color:#111827;background:#facc15;font-size:.72rem;font-weight:950}
.yt-queue-users{min-height:34px;display:flex;align-items:center;gap:6px;overflow-x:auto;padding:7px 0}
.yt-queue-users img{width:34px;height:34px;flex:0 0 auto;border:2px solid rgba(255,255,255,.22);border-radius:50%;object-fit:cover;box-shadow:0 0 14px rgba(56,189,248,.13)}
.yt-queue-users span{color:#8190a8;font-size:.78rem;font-weight:850}
.yt-queue-list{max-height:134px;display:grid;gap:6px;overflow:auto}
.yt-queue-row{display:grid;grid-template-columns:28px 76px minmax(0,1fr);align-items:center;gap:9px;padding:7px;border-radius:15px;background:rgba(15,23,42,.72)}
.yt-queue-row>b{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;color:#fecaca;background:rgba(239,68,68,.12);font-size:.72rem}
@media(max-width:720px){
  body.yt-mobile-video-active .yt-chat-spot,
  body:not(.yt-mobile-audio-active) .yt-chat-spot{
    display:none!important;
  }
  body.yt-mobile-video-active #chat{
    padding:8px!important;
    background:#14161d!important;
  }
  body.yt-mobile-video-active .emoji-strip-wrapper,
  body.yt-mobile-video-active #inputArea{
    background:initial;
    backdrop-filter:none;
  }
}

/* Absolute final keyboard behavior: hide the player visually, keep iframe alive */
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transform: none !important;
}

html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  display: block !important;
  width: min(100vw, 480px) !important;
  height: clamp(128px, 34vw, 164px) !important;
  min-width: 280px !important;
  min-height: 128px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* Desktop restore: keep the original YouTube room/player layout on large screens */
@media (min-width: 721px) {
  body.yt-mobile-video-active .yt-queue-peek{
    position:fixed!important;
    z-index:9801!important;
    left:var(--yt-spot-left,10px)!important;
    top:calc(var(--yt-spot-top,18px) + clamp(220px,18vw,292px) + 48px)!important;
    width:var(--yt-spot-width,clamp(390px,34vw,520px))!important;
    max-width:var(--yt-spot-width,clamp(390px,34vw,520px))!important;
    margin:0!important;
    padding:6px 7px!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:0 0 12px 12px!important;
    background:rgba(20,22,29,.96)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.24)!important;
  }

  .yt-chat-spot.yt-sidebar-player {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 35 !important;
    width: min(310px, 38vw) !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 18px !important;
    color: #e5eefc !important;
    background: linear-gradient(145deg,rgba(15,23,42,.96),rgba(3,7,18,.94)) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06) !important;
    backdrop-filter: blur(12px) !important;
    contain: none !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head {
    display: flex !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title {
    display: grid !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-spot-queue {
    display: flex !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-mobile-play,
  .yt-chat-spot.yt-sidebar-player .yt-mobile-player {
    display: none !important;
  }

  .yt-chat-spot.yt-sidebar-player iframe,
  .yt-chat-spot.yt-sidebar-player #ytPlayer,
  .yt-chat-spot.yt-sidebar-player #ytPlayer iframe {
    width: 100% !important;
    height: 174px !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .yt-chat-spot.yt-sidebar-player:not([hidden]) ~ #chat {
    padding-top: 266px !important;
  }

  .yt-mini-bar:not([hidden]) {
    display: grid !important;
  }
}

@media(max-width:720px){
  .yt-queue-peek{
    min-height:36px;
    margin:4px 8px 0;
    padding:1px 0 3px;
    gap:6px;
  }
  .yt-queue-peek-label{
    height:25px;
    padding:0 7px;
    font-size:.59rem;
  }
  .yt-queue-avatar{
    width:33px;
    height:33px;
  }
  .yt-queue-popover{
    left:10px!important;
    right:10px!important;
    bottom:calc(var(--input-area-height, 74px) + max(10px, env(safe-area-inset-bottom)))!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    border-radius:16px;
  }
  .yt-room-card{width:100%;max-height:96dvh;border-radius:22px}
  .yt-player-wrap{min-height:84px}.yt-player-wrap iframe{height:84px!important}
  .yt-room-head strong{max-width:72vw}
  .yt-result{grid-template-columns:68px minmax(0,1fr)}
  .yt-result b{grid-column:1/-1;justify-self:stretch;text-align:center}
  .yt-result img,.yt-queue-row img{width:68px;height:40px}
  #chatView:has(.yt-chat-spot:not([hidden])),
  body.yt-mobile-video-active #chatView{
    background:
      linear-gradient(180deg, rgba(2,6,23,.08) 0, rgba(2,6,23,.18) 190px, rgba(15,17,23,.98) 390px);
  }
  .yt-chat-spot{
    top:0;
    left:0;
    right:0;
    width:100%;
    height:min(58vh,430px);
    border:0;
    border-radius:0;
    background:#020617;
    box-shadow:none;
    backdrop-filter:none;
  }
  .yt-chat-spot::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:
      linear-gradient(180deg, rgba(2,6,23,.20) 0%, rgba(2,6,23,.05) 34%, rgba(2,6,23,.80) 100%),
      linear-gradient(90deg, rgba(2,6,23,.34), transparent 48%, rgba(2,6,23,.22));
  }
  .yt-chat-spot iframe,
  .yt-chat-spot #ytPlayer{
    width:100%!important;
    height:min(58vh,430px)!important;
    object-fit:cover;
  }
  .yt-chat-spot:not([hidden]) ~ #chat,
  body.yt-mobile-video-active #chatView #chat{
    position:relative;
    z-index:4;
    padding-top:min(34vh,255px);
    background:transparent;
    -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.08) 0, #000 64px);
    mask-image:linear-gradient(180deg, rgba(0,0,0,.08) 0, #000 64px);
  }
  .yt-chat-spot-head,
  .yt-chat-spot-title,
  .yt-spot-queue{display:none!important}
  #chatView:has(.yt-chat-spot:not([hidden])) #chat .msg,
  body.yt-mobile-video-active #chatView #chat .msg{
    max-width:94%;
    margin-bottom:7px;
    filter:drop-shadow(0 8px 16px rgba(0,0,0,.28));
  }
  #chatView:has(.yt-chat-spot:not([hidden])) #chat .msg-main,
  body.yt-mobile-video-active #chatView #chat .msg-main{
    min-width:0;
  }
  #chatView:has(.yt-chat-spot:not([hidden])) #chat .msg-header,
  body.yt-mobile-video-active #chatView #chat .msg-header{
    padding:2px 8px;
    width:max-content;
    max-width:82vw;
    border-radius:999px;
    background:rgba(2,6,23,.46);
    backdrop-filter:blur(10px);
  }
  #chatView:has(.yt-chat-spot:not([hidden])) #chat .msg-text,
  body.yt-mobile-video-active #chatView #chat .msg-text{
    color:#fff;
    background:rgba(2,6,23,.58);
    border:1px solid rgba(255,255,255,.13);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
  }
  .yt-mini-bar{
    margin-top:6px;
  }
}

body.yt-view-away .yt-queue-peek,
body.keyboard-open.mobile-client .yt-queue-peek,
body.typing-active.mobile-client .yt-queue-peek,
html.keyboard-open body.mobile-client .yt-queue-peek,
html.typing-active body.mobile-client .yt-queue-peek {
  display:none!important;
}

/* Mobile TikTok-style correction: video is the background, chat floats over it */
@media(max-width:720px){
  body.yt-mobile-video-active #chatView{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:#0f1117!important;
  }
  body.yt-mobile-video-active #chatView::after{
    display:none!important;
  }
  body.yt-mobile-video-active .yt-chat-spot{
    position:relative!important;
    inset:auto!important;
    z-index:3!important;
    width:calc(100% - 12px)!important;
    height:auto!important;
    margin:6px auto 4px!important;
    display:block!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(3,7,18,.98))!important;
    box-shadow:0 12px 30px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.06)!important;
  }
  body.yt-mobile-video-active:not(.yt-mobile-player-started) .yt-chat-spot{
    background:
      linear-gradient(180deg, rgba(2,6,23,.20), rgba(2,6,23,.62)),
      var(--yt-thumb, linear-gradient(145deg,#111827,#020617)) center/cover no-repeat!important;
  }
  body.yt-mobile-video-active .yt-chat-spot::after,
  body.yt-mobile-video-active .yt-chat-spot-title,
  body.yt-mobile-video-active .yt-spot-queue,
  body.yt-mobile-video-active .yt-mobile-play,
  body.yt-mobile-video-active .yt-mini-bar{
    display:none!important;
  }
  body.yt-mobile-video-active .yt-chat-spot iframe,
  body.yt-mobile-video-active .yt-chat-spot #ytPlayer{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    width:100%!important;
    height:92px!important;
    min-width:0!important;
    min-height:0!important;
    transform:none!important;
    border:0!important;
    background:#020617!important;
    display:block!important;
    pointer-events:auto!important;
  }
  body.yt-mobile-video-active .yt-chat-spot #ytPlayer iframe{
    width:100%!important;
    height:92px!important;
    display:block!important;
    border:0!important;
    pointer-events:auto!important;
    background:#020617!important;
  }
  body.yt-mobile-video-active:not(.yt-mobile-player-started) .yt-chat-spot iframe,
  body.yt-mobile-video-active:not(.yt-mobile-player-started) .yt-chat-spot #ytPlayer{
    display:none!important;
  }
  body.yt-mobile-video-active #chat{
    position:relative!important;
    z-index:1!important;
    padding:8px!important;
    background:#14161d!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
  }
  body.yt-mobile-video-active .emoji-strip-wrapper,
  body.yt-mobile-video-active #inputArea{
    position:relative;
    z-index:4;
    background:rgba(2,6,23,.68);
    backdrop-filter:blur(14px);
  }
  body.yt-mobile-video-active .yt-chat-spot-head{
    position:relative!important;
    inset:auto!important;
    z-index:7;
    height:32px;
    display:flex!important;
    justify-content:flex-end;
    gap:6px;
    padding:3px 5px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    border-radius:0;
    background:rgba(2,6,23,.72);
    backdrop-filter:none;
  }
  body.yt-mobile-video-active .yt-chat-spot-head span{
    display:none!important;
  }
  body.yt-mobile-video-active .yt-chat-spot-head>div{
    display:flex;
    gap:6px;
  }
  body.yt-mobile-video-active .yt-chat-spot-head button{
    width:28px;
    height:26px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.10);
    border-radius:9px;
    color:#e5eefc;
    background:rgba(255,255,255,.07);
  }
  body.yt-mobile-video-active .yt-chat-spot-head #ytSpotPlay{
    color:#07111f;
    background:linear-gradient(135deg,#86efac,#67e8f9);
    border-color:rgba(134,239,172,.42);
  }
  body.yt-mobile-video-active:not(.yt-mobile-player-started) .yt-chat-spot-head #ytSpotPlay{
    width:42px;
    height:42px;
    border-radius:50%;
    box-shadow:0 0 0 6px rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.34);
  }
  body.keyboard-open.yt-mobile-video-active .yt-chat-spot{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-height:1px!important;
    margin:0!important;
    opacity:0!important;
    pointer-events:none!important;
    transform:translateX(-9999px)!important;
  }
  body.yt-mobile-video-active #chat .msg{
    max-width:96%;
    filter:none;
  }
  body.yt-mobile-video-active #chat .msg-header{
    padding:0;
    background:transparent;
    backdrop-filter:none;
  }
  body.yt-mobile-video-active #chat .msg-text{
    color:#e4e6eb!important;
    background:#1d2029!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none;
  }
}

/* Desna kolona – online korisnici */
#onlineUsers {
  flex: 1;
  background: #14161d;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* skrol je unutar .users-grid */
  border: 1px solid rgba(255,255,255,0.06);
}
#onlineUsers h3 {
  min-height:40px;
  margin:0;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#dbeafe;
  background:linear-gradient(180deg, #171d28, #111722);
  border-bottom:1px solid rgba(148,163,184,.12);
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
#onlineUsers h3 strong{
  min-width:30px;
  height:24px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#1f6feb;
  color:#fff;
  font-size:.78rem;
  line-height:1;
}
#onlineUsers h3 span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#onlineUsers .online-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 8px 0;
}

#onlineUsers:has(.online-tabs) > h3,
#onlineUsers .online-tabs + h3 {
  display: none !important;
}

#onlineUsers .online-tab {
  min-width: 0;
  flex: 1 1 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 10px;
  color: #9fb0c8;
  background: rgba(10,14,22,.58);
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

#onlineUsers .online-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#onlineUsers .online-tab strong {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31,111,235,.22);
  border: 1px solid rgba(96,165,250,.22);
  color: #dbeafe;
  font-size: .64rem;
  line-height: 1;
}

#onlineUsers .online-tab.is-active {
  color: #f8fafc;
  border-color: rgba(96,165,250,.30);
  background: linear-gradient(180deg, rgba(31,111,235,.28), rgba(15,23,42,.70));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

#onlineUsers .online-tab[data-online-tab="messages"] strong {
  background: linear-gradient(135deg, #f59e0b, #ca8a04);
  border-color: rgba(253,230,138,.38);
  color: #111827;
}

#onlineUsers .online-panel {
  min-height: 0;
  flex: 1 1 auto;
  display: none;
  overflow: hidden;
}

#onlineUsers .online-panel.is-active {
  display: flex;
  flex-direction: column;
}

#onlineUsers .dm-inbox-empty {
  margin: 10px;
  padding: 12px 10px;
  border: 1px dashed rgba(148,163,184,.18);
  border-radius: 12px;
  color: #7f8ea5;
  background: rgba(10,14,22,.42);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

#onlineUsers .dm-inbox-grid {
  flex: 1 1 auto;
}

#onlineUsers .user-card.dm-thread-card {
  position: relative;
}

#onlineUsers .user-card.dm-thread-card:not(.dm-unread-card) {
  border-color: rgba(96,165,250,.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(96,165,250,.10), transparent 42%),
    linear-gradient(180deg, rgba(18,24,36,.92), rgba(12,16,24,.96));
}

#onlineUsers .user-card.dm-thread-card:not(.dm-unread-card) .dm-preview {
  color: #8fa3bf;
}

#onlineUsers .dm-thread-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 14px rgba(250,204,21,.32);
  z-index: 2;
}

#onlineUsers .user-card.dm-unread-card {
  border-color: rgba(250,204,21,.75);
  background:
    radial-gradient(circle at 50% 0%, rgba(250,204,21,.20), transparent 44%),
    linear-gradient(180deg, rgba(32,28,19,.94), rgba(16,20,29,.96));
  box-shadow:
    0 0 0 1px rgba(250,204,21,.18) inset,
    0 10px 22px rgba(0,0,0,.24),
    0 0 22px rgba(250,204,21,.12);
}

#onlineUsers .user-card.dm-unread-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 12px rgba(250,204,21,.80);
}

#onlineUsers .dm-preview {
  width: 100%;
  padding: 0 4px;
  color: #fef3c7;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   Rooms
   ========================= */

.rooms-list{
  background:#14161d;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  padding:12px;
  width:100%;
}
#roomsList{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px,1fr));
  gap:15px;
  color:#8ab4f8;
  width:100%;
  min-width:0;
}
.room-item {
  background: #1d2029;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-height: 200px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.18);
}

.room-item:hover { background: #2a2e3a; transform: translateY(-2px); }
.room-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.room-info { display: flex; flex-direction: column; align-items: center; width: 100%; overflow: hidden; }
.room-name { font-weight: 700; font-size: 1.05rem; color: #8ab4f8; margin-bottom: 4px; word-break: break-word; }
.room-owner { font-size: .85rem; color: #a0aec0; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-desc { font-size: .85rem; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* =========================
   Chat
   ========================= */

#chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #14161d;
  border-radius: 12px;
  padding: 15px;
  scrollbar-width: thin;
  scrollbar-color: #1f6feb transparent;
  border: 1px solid rgba(255,255,255,0.06);
}
#chat::-webkit-scrollbar { width: 8px; }
#chat::-webkit-scrollbar-thumb { background: #1f6feb; border-radius: 4px; }

/* jedan red u listi poruka */
.msg {
  position: relative;
  margin-bottom: 12px;
  padding: 3px 6px 3px 2px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-radius: 12px;
  transition: background .16s ease, transform .16s ease;
}
.msg:hover {
  background: rgba(255,255,255,.025);
}

/* samo avatar u chatu */
#chat .avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#chat .avatar-wrap:not([class*="avatar-frame--"])::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(31,111,235,.80), rgba(52,211,153,.52));
  opacity: .55;
  filter: blur(.2px);
  transition: opacity .18s ease, transform .18s ease;
}
#chat .msg:hover .avatar-wrap:not([class*="avatar-frame--"])::before {
  opacity: .82;
}
.msg-avatar,
.c-msg-avatar {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #14161d;
  object-fit: cover;
  background: #10131a;
  box-shadow: 0 7px 16px rgba(0,0,0,.30);
}

/* desna strana (nick + poruka) */
.msg-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: min(76%, 620px);
}

/* header kao na primjeru: nick + značka + vrijeme u istom redu */
.msg-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  min-height: 18px;
}

.msg strong {
  display: inline-block;           /* da ikonica bude u istom redu */
  font-size: .88rem;
  color: #93c5fd;
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 0;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg strong:not([class*="name-effect--"]) {
  text-shadow: 0 0 10px rgba(31,111,235,.22);
}

/* mala PNG kruna/smajlić desno od nicka */
.chat-badge-ico {
  width: 19px;
  height: 19px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 2px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.45));
}

/* vrijeme poruke (ako ga dodaješ u HTML) */
.msg-time {
  font-size: .75rem;
  color: #9ca3af;
  margin-left: 6px;
}

/* balon poruke – slično kao na slici */
.msg-text,
.c-msg-text {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    #1d2029;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.45;
  display: inline-block;
  max-width: 100%;
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  color: #eef2f8;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.msg-text:not([class*="msg-style--"]),
.c-msg-text:not([class*="msg-style--"]) {
  border-left: 3px solid rgba(31,111,235,.70);
}

/* hover malo istakne poruku */
.msg-text:not([class*="msg-style--"]):hover,
.c-msg-text:not([class*="msg-style--"]):hover {
  border-color: rgba(147,197,253,0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024)),
    #202431;
  transform: translateY(-1px);
}

/* stari tekstualni badge (ako ga još negdje koristiš) */
.badge {
  display:inline-block; margin-left:6px; padding:2px 6px; border-radius:6px;
  font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  background:#1d2029; border:1px solid rgba(148,163,184,0.25); color:#cbd5e1;
}
.badge.admin { border-color:rgba(220,38,38,0.6); color:#fecaca; }
.badge.moderator { border-color:rgba(37,99,235,0.6); color:#bfdbfe; }
.badge.vip { border-color:rgba(217,119,6,0.6); color:#fed7aa; }

#inputArea {
  flex-shrink: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(94, 234, 212, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 50%, rgba(45, 212, 191, .08), transparent 38%),
    rgba(11, 16, 27, .94);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .18s ease, box-shadow .18s ease;
}
#inputArea:focus-within {
  border-color: rgba(45, 212, 191, .38);
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, .08),
    0 12px 30px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}
#msg {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 0;
  padding: 10px 12px;
  font-size: .95rem;
  background: rgba(255, 255, 255, .025);
  color: #f1f5f9;
  caret-color: #5eead4;
  outline: none;
  transition: background .18s ease;
}
#msg:focus {
  box-shadow: none;
  background: rgba(255, 255, 255, .04);
}
#sendBtn {
  flex: 0 0 auto;
  min-width: 46px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(94, 234, 212, .2);
  border-radius: 12px;
  color: #ecfeff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow:
    0 7px 16px rgba(8, 145, 178, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
#sendBtn:hover {
  filter: brightness(1.09);
  box-shadow:
    0 9px 20px rgba(8, 145, 178, .3),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
#sendBtn:active {
  transform: translateY(1px) scale(.97);
}

/* =========================
   Online Users (desktop)
   ========================= */

.users-grid {
  flex: 1;
  overflow-y: auto;                  /* zaseban scroll */
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 1rem;
  align-content: start;              /* zbij redove, bez vert. razvlačenja */
}
.users-grid::-webkit-scrollbar { width: 8px; }
.users-grid::-webkit-scrollbar-thumb { background: rgba(75,85,99,.45); border-radius: 6px; }

.user-card {
  position: relative;
  background: rgba(31,41,55,0.6);
  backdrop-filter: blur(8px);
  border-radius: .85rem;
  padding: .5rem;
  border: 1px solid rgba(75,85,99,0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 96px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.user-card:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(75,85,99,0.6);
  background: rgba(55,65,81,0.6);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
}
.user-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(75,85,99,0.5);
  object-fit: cover;
}
.user-card:hover .user-avatar { border-color: rgba(156,163,175,0.8); }
#onlineUsers .avatar-wrap::before {
  display: none !important;
}
#onlineUsers .avatar-wrap {
  width: auto;
  height: auto;
}
#onlineUsers .avatar-wrap img {
  box-shadow: none;
}
.username {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .2px;
}
.online-indicator {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: #10b981;
  border-radius: 50%;
  border: 3px solid #000;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
  animation: pulse 2s infinite;
}
.role-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(251,191,36,.55);
  background: rgba(6,9,15,.86);
  box-shadow: 0 5px 14px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.role-badge:empty,
.online-person-badge:empty {
  display: none;
}

#onlineUsers .role-admin,
#onlineUsers .role-moderator,
#onlineUsers .role-vip,
#onlineUsers .role-member,
.online-person-badge.role-admin,
.online-person-badge.role-moderator,
.online-person-badge.role-vip,
.online-person-badge.role-member {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.online-person-badge {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.online-person-badge img {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}

.role-admin { background: linear-gradient(135deg,#dc2626,#b91c1c); }
.role-moderator { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.role-vip { background: linear-gradient(135deg,#d97706,#b45309); }
.role-member { background: linear-gradient(135deg,#4b5563,#374151); }

.glow-red { text-shadow: 0 0 6px #ef4444; color: #fecaca; }
.glow-blue { text-shadow: 0 0 6px #3b82f6; color: #bfdbfe; }
.glow-yellow { text-shadow: 0 0 6px #eab308; color: #fed7aa; }
.glow-green { text-shadow: 0 0 6px #10b981; color: #d1fae5; }

@keyframes pulse { 0%,100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(1.1); opacity: .85; } }

/* =========================
   Profile – Full-width left column
   ========================= */

.profile-page { display:flex; flex-direction:column; height:100%; }
.profile-header {
  display:flex; align-items:center; justify-content:flex-start;
  gap:10px; padding: 0 0 12px 0;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.profile-mount { flex:1; min-height:0; display:flex; }

.p-wrap { display:flex; flex-direction:column; gap:14px; width:100%; }
.p-hero {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  background: linear-gradient(135deg, rgba(31,111,235,0.16), rgba(99,102,241,0.08) 35%, rgba(17,24,39,0.7));
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.p-hero-bg {
  position:absolute; inset:-20%;
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(31,111,235,.25), transparent 55%),
    radial-gradient(700px 380px at 80% 0%, rgba(59,130,246,.22), transparent 55%),
    radial-gradient(600px 300px at 50% 120%, rgba(16,185,129,.16), transparent 60%);
  filter: blur(12px); opacity:.9;
}
.p-hero-content { position: relative; display:flex; align-items:center; gap:18px; padding: 20px 18px; }
.p-avatar-lg {
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid rgba(148,163,184,0.35); object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  background: #0f1117;
}
.p-title { display:flex; flex-direction:column; gap:6px }
.p-name {
  font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: .2px; color: #e5e7eb;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.p-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: .82rem; font-weight: 800; text-transform: capitalize;
  background: #1d2029; color: #cbd5e1; border: 1px solid rgba(148,163,184,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* =========================
   Popups (login/register)
   ========================= */

.popupBox {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #14161d;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  z-index: 1000;
  width: 320px;
  max-width: 92vw;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  display: none;
  color: #e4e6eb;
  border-radius: 12px;
}
.popupBox h3 { margin-top: 0; margin-bottom: 15px; text-align: center; color: #8ab4f8; font-weight: 800; }
.popupBox input {
  width: 100%; padding: 12px; margin: 8px 0;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: #1a1d26; color: #eee; font-size: .95rem; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.popupBox input:focus { border-color: rgba(31,111,235,.6); box-shadow: 0 0 0 3px rgba(31,111,235,.18); background: #181b24; }
.popupBox button {
  padding: 12px; width: 100%; border-radius: 10px; border: none;
  background: #1f6feb; color: #fff; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .12s ease;
  box-shadow: 0 6px 16px rgba(31,111,235,.18);
}
.popupBox button:hover { background: #1a5fc4; transform: translateY(-1px); }
.id-login-link {
  margin-top: 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dbeafe;
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  border-radius: 10px;
  background: #10141c;
  border: 1px solid rgba(147,197,253,.18);
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.id-login-link:hover {
  color: #fff;
  background: #182234;
  border-color: rgba(147,197,253,.34);
  transform: translateY(-1px);
}
.popupBox .closeBtn {
  position: absolute; top: 6px; right: 10px;
  font-weight: 900; font-size: 20px; color: #8ab4f8; cursor: pointer; user-select: none;
}
#overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; z-index: 999;
}
.err { color: #ff5555; margin-top: 8px; text-align: center; font-weight: 700; }

/* =========================
   ID registration
   ========================= */

.id-register-page {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 20% 0%, rgba(31,111,235,.16), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(34,197,94,.10), transparent 28%),
    #0f1117;
}
.id-register-shell {
  width: min(100% - 24px, 920px);
  margin: 0 auto;
  padding: 24px 0;
}
.id-register-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(20,22,29,.82);
  border: 1px solid rgba(255,255,255,.08);
}
.id-register-card {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(20,22,29,.94);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}
.id-register-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.id-register-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #bfdbfe;
  background: #101827;
  border: 1px solid rgba(147,197,253,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.id-register-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  letter-spacing: 0;
  color: #f8fafc;
}
.id-register-hero p {
  margin: 5px 0 0;
  color: #9fb0c8;
  font-weight: 650;
}
.id-register-alert,
.id-register-success {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(31,111,235,.12);
  border: 1px solid rgba(147,197,253,.18);
  color: #dbeafe;
  font-weight: 750;
}
.id-register-alert.is-error {
  color: #fecaca;
  background: rgba(239,68,68,.12);
  border-color: rgba(248,113,113,.22);
}
.id-register-ocr {
  margin: 12px 0;
  border-radius: 12px;
  background: #0c1119;
  border: 1px solid rgba(148,163,184,.14);
  overflow: hidden;
}
.id-register-ocr summary {
  padding: 10px 12px;
  color: #cbd5e1;
  font-weight: 850;
  cursor: pointer;
}
.id-register-ocr pre {
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  color: #9fb0c8;
  border-top: 1px solid rgba(148,163,184,.12);
  white-space: pre-wrap;
  font: 12px/1.45 Consolas, monospace;
}
.id-register-success {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dcfce7;
  background: rgba(34,197,94,.12);
  border-color: rgba(134,239,172,.22);
}
.id-register-success i { font-size: 1.35rem; }
.id-register-success span {
  display: block;
  margin-top: 3px;
  color: #b7c4d8;
}
.id-register-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-top: 12px;
  border-radius: 14px;
  background: #10141c;
  border: 1px solid rgba(255,255,255,.07);
}
.id-register-form label {
  display: grid;
  gap: 7px;
  color: #9fb0c8;
  font-weight: 850;
  font-size: .82rem;
}
.id-register-form input {
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f8fafc;
  background: #0c1119;
  border: 1px solid rgba(148,163,184,.16);
  outline: none;
}
.id-register-form input:focus {
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(31,111,235,.16);
}
.id-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.id-register-full,
.id-register-consent {
  grid-column: 1 / -1;
}
.id-register-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  color: #cbd5e1 !important;
  line-height: 1.45;
}
.id-register-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.id-debug-save {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 10px;
  border-radius: 12px;
  color: #cbd5e1 !important;
  background: rgba(31,111,235,.08);
  border: 1px solid rgba(147,197,253,.14);
  line-height: 1.35;
}
.id-debug-save input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.id-register-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.id-register-form button,
.id-register-primary,
.id-register-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: #1f6feb;
  border: 1px solid rgba(147,197,253,.24);
  cursor: pointer;
}
.id-register-form button:hover,
.id-register-primary:hover {
  background: #1a5fc4;
}

.id-register-secondary {
  color: #dbeafe;
  background: rgba(31,111,235,.12);
}

.id-register-secondary:hover {
  background: rgba(31,111,235,.22);
}

@media (max-width: 720px) {
  .id-register-card { padding: 14px; border-radius: 14px; }
  .id-register-hero { align-items: flex-start; }
  .id-register-grid { grid-template-columns: 1fr; }
}

/* =========================
   Skeleton loader
   ========================= */

.skeleton {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(75,85,99,0.35);
  background: linear-gradient(90deg,#1a1d26 25%,#202431 37%,#1a1d26 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
  height: 200px;
  margin: auto;
}
@keyframes shimmer { 0%{ background-position:200% 0 } 100%{ background-position:-200% 0 } }

/* =========================
   Fallback profile card
   ========================= */

.profile-wrap{flex:1;overflow-y:auto;background:#14161d;border-radius:12px;padding:18px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,0.06)}
.profile-card{width:100%;max-width:720px;background:rgba(31,41,55,0.6);border:1px solid rgba(75,85,99,0.35);border-radius:14px;padding:22px;backdrop-filter:blur(10px);box-shadow:0 10px 30px rgba(0,0,0,0.35)}
.meta-value{font-size:1rem;color:#e2e8f0;word-break:break-word}

/* =========================================================
   MOBILE (≤640px)
   ========================================================= */
@media (max-width: 640px) {
  #header{
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 5px 4px;
    gap: 3px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow-x: hidden;
    white-space: nowrap;
    background:
      linear-gradient(180deg, rgba(15,17,24,.98), rgba(10,12,18,.98));
  }
  #header::-webkit-scrollbar{ height:0; width:0; display:none; }

  #header img{
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid rgba(148,163,184,.3);
    object-fit: cover;
    flex: 0 0 auto;
  }

  .brand-logo {
    order: 0;
    width: 32px;
    height: 32px;
    font-size: 1.12rem;
  }

  .header-start,
  .header-nav {
    flex: 0 0 auto;
    gap: 2px;
  }

  .header-actions {
    display: contents;
  }

  .header-nav {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 1px;
  }

  .player-stats {
    order: 9;
    flex: 0 0 auto;
    align-self: center;
    gap: 1px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .player-stat {
    min-width: 30px;
    height: 20px;
    padding: 0 3px 0 12px;
    border-radius: 999px;
    border: 0;
    background: transparent;
  }
  .player-stat-pop {
    min-width: 26px;
    padding-right: 3px;
  }
  .stat-chip {
    left: 0;
    width: 10px;
    height: 10px;
    border-width: 1px;
    box-shadow: none;
  }
  .player-stat-credit::before {
    display: none;
  }
  .stat-chip i { font-size: 5px; }
  .stat-label { display: none; }
  .stat-copy {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .stat-copy strong {
    font-size: .48rem;
    letter-spacing: 0;
  }

  #notificationCenter { order: 2; margin-left: 0; }
  #btnProfile { order: 3; }
  #btnSobe { order: 4; }
  #btnOnlineAll { order: 5; }
  .header-more { order: 6; }
  .player-stats { order: 7; }
  #notificationCenter,
  #btnProfile,
  #btnSobe,
  #btnOnlineAll,
  .header-more {
    flex: 1 1 0;
    min-width: 0;
  }
  #authButtons {
    gap: 2px;
  }

  .menu a, .navbar a, .nav a{
    display: inline-flex; align-items:center; gap:6px;
    background: #1a1d26; color:#e5e7eb; text-decoration:none;
    border:1px solid rgba(148,163,184,.25);
    padding: 4px 10px; border-radius:999px; font-weight:700; font-size:.86rem;
  }

  #header .btn, #header .btn-ghost{
    height: 28px !important;
    padding: 0 4px !important;
    gap: 2px !important;
    border-radius: 999px !important;
    font-size: .66rem !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .btn small {
    max-width: 34px;
    padding: 1px 4px;
    font-size: .52rem;
  }
  #profileNameLabel { display: none; }
  #btnOnlineAll,
  #btnProfile,
  #btnSobe,
  .header-more-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  #btnOnlineAll span,
  .header-more-btn span {
    display: none;
  }
  #btnSobe small {
    display: none;
  }

  #btnSobe span {
    display: none;
  }

  .header-nav .btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px;
  }

  .header-nav .btn span {
    display: none;
  }

  .header-nav .btn i {
    font-size: 1.05rem;
  }

  .header-actions #btnProfile {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .header-actions #btnProfile #profileNameLabel {
    display: none;
  }

  .header-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .btn i { font-size: 1.08rem; }
  .photo-head-btn .photo-plus {
    width: 10px;
    height: 10px;
    margin-left: -8px;
    font-size: .38rem;
  }

  .header-more {
    position: static;
    flex: 1 1 0;
  }

  .header-more-panel {
    position: fixed;
    top: 46px;
    right: 6px;
    width: min(238px, calc(100vw - 12px));
    max-height: calc(var(--app-vvh, 100dvh) - 54px);
    overflow: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-radius: 14px;
  }

  .header-more-panel .btn,
  .header-more-panel .btn-ghost {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 8px !important;
    justify-content: flex-start;
    gap: 6px !important;
    border-radius: 10px !important;
    font-size: .72rem !important;
    background: rgba(26,29,38,.94) !important;
    border-color: rgba(148,163,184,.16) !important;
  }

  .header-more-panel .btn span,
  .header-more-panel .btn small,
  .header-more-panel #profileNameLabel {
    display: inline !important;
    max-width: none;
    overflow: visible;
  }

  .header-more-panel .photo-plus {
    display: none;
  }

  #brandLogo,
  .player-stats {
    flex: 0 0 auto;
  }

  #main {
    height: calc(var(--app-vvh, 100dvh) - 46px);
    min-height: 0;
    max-height: calc(var(--app-vvh, 100dvh) - 46px);
    padding: 8px;
    gap: 8px;
    overflow: hidden;
  }

  #onlineUsers {
    flex: 0 0 76px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #onlineUsers h3 { display: none !important; }
  #onlineUsers .online-tabs{
    flex: 0 0 auto;
    gap:3px;
    padding:5px 4px 0;
  }
  #onlineUsers .online-tab{
    height:27px;
    min-width:0;
    gap:3px;
    padding:0 4px;
    border-radius:8px;
    font-size:.58rem;
  }
  #onlineUsers .online-tab i{ font-size:.62rem; }
  #onlineUsers .online-tab span{ display:none; }
  #onlineUsers .online-tab strong{
    min-width:16px;
    height:15px;
    padding:0 4px;
    font-size:.52rem;
  }

  #onlineUsers .online-panel {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  #onlineUsers .online-panel.is-active {
    min-height: 0;
  }

  #onlineUsers .users-grid{
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;                 /* ključ za scroll u flex roditelju */
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
  }

  #onlineUsers .dm-inbox-grid {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #onlineUsers .dm-inbox-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  #onlineUsers .users-grid::-webkit-scrollbar{ width:0; height:0; display:none; }

  #onlineUsers .user-card{
    flex: 0 0 auto;                /* NE shrinkaj kad ih bude puno */
    min-height: 70px;
    padding: 4px 3px;
    border-radius: 9px;
    background: rgba(31,41,55,.5);
    box-shadow: none;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
  }
  #onlineUsers .avatar-wrap{
    width:auto;
    height:auto;
    margin:0 auto;
    line-height:0;
    display:inline-block;
  }
  #onlineUsers .user-avatar{
    width: 39px; height: 39px;
    border-radius: 50%; border:1px solid rgba(75,85,99,.45); object-fit: cover; margin:0;
  }
  #onlineUsers .username{
    width:100%;
    margin:2px 0 0;
    font-size:9px;
    line-height:1.1;
    text-align:center;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  #onlineUsers .online-indicator { top: 5px; right: 5px; width: 9px; height: 9px; border-width: 2px; }
  #onlineUsers .role-badge { top: 2px; left: 2px; width: 20px; height: 20px; border-width: 1px; z-index:3; }
  #onlineUsers .role-badge .ol-badge-ico{ width:16px; height:16px; }
  #onlineUsers .pop-score-compact{
    margin-top:1px;
    padding:1px 4px;
    max-width:52px;
  }
  #onlineUsers .pop-score-compact .pop-score-label{ font-size:.46rem; }
#onlineUsers .pop-score-compact .pop-score-value{ font-size:.6rem; }
  #onlineUsers .dm-preview{ display:none; }
  #onlineUsers .dm-inbox-empty{
    flex: 0 0 auto;
    margin:6px 4px;
    padding:8px 4px;
    border-radius:9px;
    font-size:.56rem;
    line-height:1.15;
  }
  #onlineUsers .user-card.dm-unread-card{
    min-height:70px;
    box-shadow:
      0 0 0 1px rgba(250,204,21,.20) inset,
      0 0 14px rgba(250,204,21,.12);
  }

  #onlineUsers .avatar-wrap::before {
    display: none !important;
  }
  #onlineUsers .avatar-wrap {
    position: static;
    flex: initial;
    width: auto;
    height: auto;
    display: inline-block;
  }
  #onlineUsers .avatar-wrap img {
    position: static;
    z-index: auto;
    box-shadow: none;
  }

  body.keyboard-open #onlineUsers,
  body.dm-keyboard-active #onlineUsers {
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }

  #chat { padding: 7px; }
  .msg {
    gap: 7px;
    margin-bottom: 6px;
    padding: 2px 2px 2px 0;
    border-radius: 8px;
  }
  .msg:hover {
    background: transparent;
  }
  #chat .avatar-wrap {
    width: 30px;
    height: 30px;
  }
  #chat .avatar-wrap:not([class*="avatar-frame--"])::before {
    inset: -1px;
    opacity: .45;
  }
  .msg-avatar,
  .c-msg-avatar {
    width: 28px;
    height: 28px;
    border-width: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,.24);
  }
  .msg-main {
    gap: 2px;
    max-width: calc(100% - 38px);
  }
  .msg-header {
    min-height: 15px;
    gap: 3px;
  }
  .msg strong {
    max-width: 150px;
    font-size: .8rem;
  }
  .chat-badge-ico {
    width: 15px;
    height: 15px;
    margin-left: 1px;
  }
  .msg-text,
  .c-msg-text {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: .84rem;
    line-height: 1.35;
    box-shadow: 0 4px 10px rgba(0,0,0,.20);
  }
  .msg-text:not([class*="msg-style--"]),
  .c-msg-text:not([class*="msg-style--"]) {
    border-left-width: 2px;
  }

  #inputArea { gap: 6px; margin-top: 6px; }
  #msg { padding: 10px 12px; font-size: .92rem; }
  #sendBtn { padding: 0 12px; font-size: .9rem; }
}

/* ==========================================
   TABLET (641–900px)
   ========================================== */
@media (min-width: 641px) and (max-width: 900px) {
  #header {
    min-height: 52px;
    padding: 7px 8px;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #header::-webkit-scrollbar{ height:0; width:0; display:none; }
  #header img{ width: 28px; height: 28px; border-radius: 50%; border:1px solid rgba(148,163,184,.3); object-fit: cover; }
  .brand-logo {
    width: 32px;
    height: 32px;
    font-size: 1.22rem;
  }
  .header-start,
  .header-nav {
    flex: 0 0 auto;
    gap: 4px;
  }
  .header-nav {
    padding: 2px;
  }
  .player-stats {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .player-stat {
    min-width: 58px;
    height: 26px;
    padding-left: 23px;
    padding-right: 6px;
    border-radius: 999px;
  }
  .player-stat-pop {
    min-width: 48px;
    padding-right: 6px;
  }
  .stat-chip {
    left: 4px;
    width: 15px;
    height: 15px;
  }
  .player-stat-credit::before {
    display: none;
  }
  .stat-label { font-size: .48rem; }
  .stat-copy strong { font-size: .62rem; }
  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
    padding: 0;
  }
  .btn, .btn-ghost {
    height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: .84rem;
  }
  .menu a, .navbar a, .nav a { padding: 6px 10px; border-radius: 999px; }

  #onlineUsers { flex: 0 0 160px; }
  #main { height: calc(var(--app-vvh, 100dvh) - 60px); }
  .users-grid {
    display: flex; flex-direction: column; gap: 6px; padding: 8px; height: 100%;
    overflow-y: auto;
  }
  .user-card { flex: 0 0 auto; padding: 4px 6px; }
  .user-avatar { width: 70%; aspect-ratio: 1/1; height: auto; }
  .username { font-size: 11px; }
}

/* ===========================================================
   CREATE ROOM — Sleek Minimal v2 (scoped, no conflicts)
   =========================================================== */

/* Lijevi panel: nikakvo centriranje — sadržaj ide od vrha */
#roomsView .profile-mount{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;  /* top-aligned */
  align-items:stretch;
  padding:0;
  min-height:0;
  overflow:auto;
}

/* Form kao “meki” panel preko pozadine (puna širina kolone) */
#roomsMount .cr-form{
  display:grid;
  gap:14px;
  margin:0;                     /* nema “u pola” – start od vrha */
  padding:10px 12px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  background:
    radial-gradient(560px 260px at 0% 0%, rgba(31,111,235,.06), transparent 60%),
    radial-gradient(520px 240px at 100% 0%, rgba(99,102,241,.05), transparent 60%),
    rgba(20,22,29,.78);
  border:1px solid rgba(148,163,184,.16);
  border-radius:12px;
  backdrop-filter:saturate(120%) blur(6px);
  box-shadow:0 10px 26px rgba(0,0,0,.24);
}
#roomsMount .cr-form *{ box-sizing:border-box; }

/* Inputs (fiksna visina) */
#roomsMount .cr-input{
  width:100%;
  height:46px;
  line-height:46px;
  background:#10131a;
  color:#e4e6eb;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  padding:0 44px 0 42px;
  font-size:.98rem;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .08s ease;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}
#roomsMount .cr-input:hover{ border-color: rgba(148,163,184,.32); }
#roomsMount .cr-input:focus{
  border-color: rgba(31,111,235,.85);
  box-shadow: 0 0 0 4px rgba(31,111,235,.18);
  background:#0f1219;
  transform: translateY(-1px);
}
#roomsMount .cr-input::placeholder{ color: rgba(203,213,225,.55); }

/* Naziv — inline ikonica (bez dodatnog HTML-a) */
#roomsMount #cr_name{
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7b0bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7h18'/><path d='M3 12h18'/><path d='M3 17h18'/></svg>");
  background-repeat:no-repeat;
  background-position:12px center;
  background-size:18px 18px;
}

/* Textarea */
#roomsMount .cr-textarea{
  width:100%;
  min-height:110px;
  background:#10131a;
  color:#e4e6eb;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  padding:12px 14px 12px 42px;
  font-size:.98rem;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .08s ease;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
  resize:vertical;
}
#roomsMount .cr-textarea:hover{ border-color: rgba(148,163,184,.32); }
#roomsMount .cr-textarea:focus{
  border-color: rgba(31,111,235,.85);
  box-shadow: 0 0 0 4px rgba(31,111,235,.18);
  background:#0f1219;
  transform: translateY(-1px);
}
#roomsMount .cr-textarea::placeholder{ color: rgba(203,213,225,.55); }
/* Poruke ostaju jasne preko fotografije, bez dodatne težine kada nema pozadine. */
#chat.has-room-background .msg-text,
#chat.has-room-background .c-msg-text{
  box-shadow:0 7px 16px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.05);
}
#chat.has-room-background .msg-header{
  text-shadow:0 2px 3px rgba(0,0,0,.88);
}
#chat.has-room-background .msg-avatar,
#chat.has-room-background .c-msg-avatar{
  box-shadow:0 5px 12px rgba(0,0,0,.56);
}
@media(max-width:640px){
  #chat.has-room-background .msg-text,
  #chat.has-room-background .c-msg-text{
    box-shadow:0 4px 10px rgba(0,0,0,.48);
  }
}
/* Ikonica za opis */
#roomsMount #cr_desc{
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7b0bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
  background-repeat:no-repeat;
  background-position:12px 12px;
  background-size:18px 18px;
}

/* File input */
#roomsMount .cr-file{
  width:100%;
  min-height:46px;
  background:#10131a;
  color:#cbd5e1;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  padding:6px 10px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#roomsMount .cr-file:hover{ border-color: rgba(148,163,184,.32); }
#roomsMount .cr-file:focus{
  border-color: rgba(31,111,235,.85);
  box-shadow: 0 0 0 4px rgba(31,111,235,.18);
  background:#0f1219;
}
#roomsMount .cr-file::-webkit-file-upload-button,
#roomsMount .cr-file::file-selector-button{
  background:#1a1d26;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,.25);
  border-radius:10px;
  padding:8px 12px;
  margin-right:10px;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .08s ease;
}
#roomsMount .cr-file::-webkit-file-upload-button:hover,
#roomsMount .cr-file::file-selector-button:hover{
  background:#232735; border-color:rgba(148,163,184,.4); transform: translateY(-1px);
}

/* Actions */
#roomsMount .cr-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:10px;
  border-top:1px solid rgba(148,163,184,.12);
}
#roomsMount .cr-actions .btn,
#roomsMount .cr-actions .btn-ghost{ height:40px; }

/* Inline poruke */
#roomsMount .cr-msg{ min-height:0; font-size:.9rem; }
#roomsMount .cr-alert-ok{
  padding:10px 12px; border-radius:12px;
  background: rgba(16,185,129,.10);
  border:1px solid rgba(16,185,129,.32);
  color:#34d399; font-weight:800;
}
#roomsMount .cr-alert-err{
  padding:10px 12px; border-radius:12px;
  background: rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.34);
  color:#f87171; font-weight:800;
}

/* Mobile prilagodbe za create room */
@media (max-width:640px){
  #roomsMount .cr-form{ gap:12px; padding:8px 10px; border-radius:12px; }
  #roomsMount .cr-input{
    height:42px; line-height:42px;
    padding:0 40px 0 38px; font-size:.95rem;
  }
  #roomsMount .cr-textarea{ min-height:96px; padding:10px 12px 10px 38px; }
  #roomsMount .cr-file{ min-height:42px; }
  #roomsMount .cr-actions{ gap:8px; }
}

/* PNG značka u online listi (unutar postojeće .role-badge) */
.role-badge .ol-badge-ico{
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

/* ===========================================================
   ONLINE DIRECTORY - Dernek inspired
   =========================================================== */
.online-directory{
  height:100%;
  min-height:0;
  overflow-y:auto;
  padding:0;
  color:#e5e7eb;
  background:
    linear-gradient(180deg, rgba(15,17,23,.28), rgba(15,17,23,0)),
    repeating-linear-gradient(0deg, rgba(148,163,184,.035) 0 1px, transparent 1px 34px);
}
.online-directory::-webkit-scrollbar{ width:8px; }
.online-directory::-webkit-scrollbar-thumb{ background:rgba(75,85,99,.55); border-radius:8px; }

.online-hero{
  position:relative;
  overflow:hidden;
  min-height:150px;
  border:1px solid rgba(251,191,36,.26);
  background:
    linear-gradient(135deg, rgba(14,16,24,.98), rgba(24,30,44,.96) 58%, rgba(28,23,16,.94)),
    repeating-linear-gradient(90deg, rgba(251,191,36,.10) 0 1px, transparent 1px 13px);
  border-radius:10px;
  padding:22px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  box-shadow:0 18px 44px rgba(0,0,0,.34);
}
.online-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(31,111,235,.20), transparent 38%),
    radial-gradient(circle at 82% 16%, rgba(251,191,36,.22), transparent 30%);
}
.online-hero > *{ position:relative; z-index:1; }
.online-kicker{
  color:#fbbf24;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.18em;
  margin-bottom:8px;
}
.online-hero h2{
  font-size:2.15rem;
  line-height:1.05;
  letter-spacing:0;
  color:#f8fafc;
}
.online-subtitle{
  margin-top:8px;
  max-width:420px;
  color:#cbd5e1;
  font-size:.95rem;
  line-height:1.45;
}
.online-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.online-stats span{
  min-width:104px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(15,17,23,.64);
  border-radius:10px;
  padding:12px 14px;
  color:#cbd5e1;
  font-size:.8rem;
  text-align:center;
}
.online-stats strong{
  display:block;
  color:#fbbf24;
  font-size:1.65rem;
  line-height:1;
}
.online-actions{
  position:absolute;
  right:20px;
  bottom:16px;
  display:flex;
  gap:8px;
  z-index:2;
}
.online-marquee{
  margin-top:12px;
  border:1px solid rgba(148,163,184,.16);
  background:#10131b;
  color:#8ab4f8;
  border-radius:8px;
  padding:9px 12px;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.online-band{
  margin-top:12px;
  background:linear-gradient(180deg, #14161d, #10131a);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  padding:12px;
  box-shadow:0 10px 26px rgba(0,0,0,.20);
}
.online-band-all{ border-color:rgba(251,191,36,.24); }
.online-band-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  color:#f8fafc;
  font-weight:900;
  letter-spacing:.02em;
  border-bottom:1px solid rgba(148,163,184,.12);
  padding-bottom:10px;
}
.online-band-title span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-band-title small{
  min-width:30px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fbbf24;
  color:#111827;
  font-size:.78rem;
}
.online-people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(148px, 1fr));
  gap:8px;
}
.online-person{
  position:relative;
  min-width:0;
  min-height:74px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(31,41,55,.70), rgba(17,24,39,.72));
  border-radius:8px;
  padding:9px 9px 9px 68px;
  color:#e5e7eb;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.online-person:hover{
  transform:translateY(-1px);
  border-color:rgba(138,180,248,.55);
  background:linear-gradient(180deg, rgba(40,52,73,.86), rgba(20,28,42,.86));
  box-shadow:0 10px 20px rgba(0,0,0,.26);
}
.online-person-avatar{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(251,191,36,.45);
  background:#111827;
}
.online-person-dot{
  position:absolute;
  top:10px;
  right:10px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid #111827;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}
.online-person-badge{
  position:absolute;
  left:42px;
  top:12px;
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
}
.online-person-badge img{
  width:19px;
  height:19px;
  object-fit:contain;
}
.online-person-name{
  width:100%;
  color:#f8fafc;
  font-size:.92rem;
  font-weight:900;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-person-room{
  width:100%;
  color:#a7b4c8;
  font-size:.75rem;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-empty,
.online-loading{
  grid-column:1 / -1;
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9ca3af;
  border:1px dashed rgba(148,163,184,.24);
  border-radius:10px;
  background:rgba(20,22,29,.65);
}

@media (max-width:640px){
  .online-directory{ padding:0; }
  .online-hero{
    min-height:172px;
    padding:14px;
    flex-direction:column;
  }
  .online-hero h2{ font-size:1.35rem; }
  .online-stats{ justify-content:flex-start; }
  .online-actions{
    position:static;
    width:100%;
    margin-top:4px;
  }
  .online-actions .btn-ghost{ flex:1; }
  .online-people-grid{ grid-template-columns:1fr; gap:8px; }
  .online-person{ min-height:72px; border-radius:8px; }
}

/* ONLINE SOCIAL VIEW v2 */
.online-directory{
  padding:0;
  background:#f5f7fb;
  color:#173b63;
}
.online-hero{
  min-height:104px;
  border-radius:8px 8px 0 0;
  border-color:#c9d8e8;
  background:
    linear-gradient(180deg, #ffffff, #edf4fb),
    repeating-linear-gradient(90deg, rgba(26,91,146,.08) 0 1px, transparent 1px 16px);
  box-shadow:none;
  padding:18px 20px;
}
.online-hero::before{ display:none; }
.online-hero h2{
  font-size:1.55rem;
  color:#234d75;
  letter-spacing:0;
  font-weight:600;
}
.online-subtitle{
  color:#5a7692;
  font-size:.9rem;
}
.online-stats span{
  background:#fff;
  border-color:#c9d8e8;
  color:#516b85;
}
.online-stats strong{
  color:#1c5b93;
}
.online-social-bar{
  margin-top:0;
  padding:10px 12px;
  background:#e8f0f8;
  border-left:1px solid #c9d8e8;
  border-right:1px solid #c9d8e8;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(220px, 320px);
  gap:10px;
  align-items:stretch;
}
.online-social-pill,
.online-search{
  min-height:38px;
  border:1px solid #c8d7e6;
  background:#fff;
  border-radius:6px;
  display:flex;
  align-items:center;
}
.online-social-pill{
  gap:10px;
  padding:10px 12px;
  min-width:0;
}
.online-social-pill span{
  color:#1c5b93;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  white-space:nowrap;
}
.online-social-pill strong{
  min-width:0;
  color:#315575;
  font-size:.86rem;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-search{
  padding:0 12px;
}
.online-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#173b63;
  font:700 .92rem 'Inter','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
}
.online-search input::placeholder{
  color:#7f96ad;
}
.online-band{
  margin-top:0;
  border-radius:0 0 8px 8px;
  background:#fff;
  border:1px solid #c9d8e8;
  border-top:0;
  box-shadow:none;
}
.online-band-title{
  padding:0 0 12px;
  border-bottom:1px solid #dde7f1;
  color:#234d75;
}
.online-band-title small{
  background:#1c5b93;
  color:#fff;
}
.online-people-grid{
  grid-template-columns:repeat(auto-fill, minmax(72px, 1fr));
  gap:14px 12px;
  align-items:start;
}
.online-raja-tile,
.online-person{
  min-height:92px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  cursor:pointer;
  color:#064c91;
}
.online-raja-tile:hover,
.online-person:hover{
  transform:translateY(-1px);
  background:transparent;
  box-shadow:none;
}
.online-person-avatar-wrap{
  position:relative;
  width:52px;
  height:58px;
  border:1px solid #b8c8d8;
  background:#f8fafc;
  padding:2px;
  box-shadow:inset 0 -4px 0 #1b66a6;
}
.online-person-avatar{
  position:static;
  transform:none;
  width:100%;
  height:48px;
  display:block;
  border:0;
  border-radius:0;
  object-fit:cover;
  background:#eef2f6;
}
.online-person-dot{
  right:3px;
  bottom:3px;
  top:auto;
  width:8px;
  height:8px;
  border:1px solid #fff;
  box-shadow:none;
}
.online-person-badge{
  top:0;
  right:8px;
  left:auto;
  width:16px;
  height:16px;
  border:1px solid #fff;
}
.online-person-badge img{
  width:15px;
  height:15px;
}
.online-person-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
  width:100%;
}
.online-person-name{
  width:100%;
  color:#064c91;
  font-size:12px;
  line-height:1.15;
  font-weight:600;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-person-room{
  display:none;
}

@media (max-width:640px){
  .online-social-bar{
    grid-template-columns:1fr;
  }
  .online-hero h2{
    font-size:1.35rem;
  }
  .online-people-grid{
    grid-template-columns:repeat(auto-fill, minmax(64px, 1fr));
    gap:12px 8px;
  }
}

/* ONLINE LOUNGE v3 */
.online-directory{
  padding:0;
  background:#0f1117;
  color:#e5e7eb;
}
.online-hero{
  min-height:150px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.18);
  background:
    linear-gradient(135deg, rgba(20,22,29,.98), rgba(23,35,52,.96) 62%, rgba(28,31,38,.98)),
    radial-gradient(circle at 85% 12%, rgba(251,191,36,.20), transparent 32%);
  padding:22px;
  box-shadow:0 18px 42px rgba(0,0,0,.30);
}
.online-hero h2{
  color:#f8fafc;
  font-size:2rem;
  font-weight:900;
}
.online-subtitle{
  color:#b9c5d6;
}
.online-kicker{
  color:#8ab4f8;
}
.online-stats span{
  background:rgba(15,17,23,.64);
  border-color:rgba(138,180,248,.24);
  color:#cbd5e1;
}
.online-stats strong{
  color:#fbbf24;
}
.online-social-bar{
  margin-top:12px;
  padding:0;
  background:transparent;
  border:0;
  grid-template-columns:minmax(0, 1fr) minmax(220px, 300px);
}
.online-social-pill,
.online-search{
  min-height:46px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:#141923;
}
.online-social-pill span{
  color:#fbbf24;
}
.online-social-pill strong{
  color:#dbeafe;
}
.online-search input{
  color:#f8fafc;
}
.online-search input::placeholder{
  color:#8a97aa;
}
.online-band{
  margin-top:12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.16);
  background:#14161d;
  padding:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
}
.online-band-title{
  color:#f8fafc;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.online-band-title small{
  background:#1f6feb;
  color:#fff;
}
.online-people-grid{
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:10px;
}
.online-raja-tile,
.online-person{
  position:relative;
  min-height:84px;
  padding:10px 12px 10px 76px;
  border:1px solid rgba(148,163,184,.15);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(31,41,55,.62), rgba(17,24,39,.70));
  color:#e5e7eb;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.online-raja-tile:hover,
.online-person:hover{
  transform:translateY(-2px);
  border-color:rgba(138,180,248,.45);
  background:linear-gradient(180deg, rgba(42,54,76,.78), rgba(20,29,44,.82));
  box-shadow:0 14px 28px rgba(0,0,0,.28);
}
.online-person-avatar-wrap{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  padding:2px;
  border:1px solid rgba(138,180,248,.35);
  background:#0f1117;
  box-shadow:none;
}
.online-person-avatar{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  background:#1f2937;
}
.online-person-dot{
  right:1px;
  bottom:4px;
  width:11px;
  height:11px;
  border:2px solid #0f1117;
  box-shadow:0 0 0 4px rgba(34,197,94,.10);
}
.online-person-badge{
  top:9px;
  right:10px;
  left:auto;
  width:22px;
  height:22px;
  border:2px solid #111827;
}
.online-person-badge img{
  width:20px;
  height:20px;
}
.online-person-body{
  width:100%;
  min-width:0;
  align-items:flex-start;
  padding-right:26px;
}
.online-person-name{
  color:#f8fafc;
  text-align:left;
  font-size:.94rem;
  font-weight:900;
}
.online-person-room{
  display:block;
  width:100%;
  margin-top:5px;
  color:#9fb0c5;
  font-size:.76rem;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.online-empty,
.online-loading{
  color:#9fb0c5;
  background:#141923;
  border-color:rgba(148,163,184,.18);
}

@media (max-width:640px){
  .online-hero{
    min-height:160px;
    padding:16px;
  }
  .online-hero h2{
    font-size:1.55rem;
  }
  .online-social-bar{
    grid-template-columns:1fr;
  }
  .online-people-grid{
    grid-template-columns:1fr;
  }
}

/* ONLINE MINIMAL MOBILE-FIRST v4 */
.online-directory{
  padding:0;
  background:#0f1117;
  color:#e5e7eb;
}
.online-hero{
  min-height:auto;
  padding:12px;
  border:0;
  border-bottom:1px solid rgba(148,163,184,.12);
  border-radius:0;
  background:#0f1117;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.online-hero::before{ display:none; }
.online-kicker{
  margin:0 0 2px;
  color:#8ab4f8;
  font-size:.68rem;
  letter-spacing:.12em;
}
.online-hero h2{
  color:#f8fafc;
  font-size:1.15rem;
  line-height:1.15;
  font-weight:800;
}
.online-subtitle{
  margin-top:3px;
  color:#8f9bad;
  font-size:.78rem;
  line-height:1.25;
}
.online-stats{ display:none; }
.online-actions{
  position:static;
  display:flex;
  gap:6px;
  flex:0 0 auto;
}
.online-actions .btn-ghost{
  min-height:34px;
  padding:6px 9px;
  border-radius:8px;
  font-size:.78rem;
  background:#151a23;
  border-color:rgba(148,163,184,.14);
}
.online-social-bar{
  margin:0;
  padding:10px 12px;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  background:#0f1117;
  border:0;
}
.online-search{
  order:1;
  min-height:42px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.14);
  background:#151a23;
}
.online-search input{
  color:#f8fafc;
  font-size:.95rem;
  font-weight:700;
}
.online-search input::placeholder{ color:#778397; }
.online-social-pill{
  order:2;
  min-height:0;
  padding:0 2px;
  border:0;
  background:transparent;
  display:flex;
  gap:6px;
}
.online-social-pill span{
  color:#778397;
  font-size:.7rem;
  letter-spacing:.08em;
}
.online-social-pill strong{
  color:#9fb0c5;
  font-size:.76rem;
  font-weight:700;
}
.online-band{
  margin:0;
  padding:0 12px 12px;
  border:0;
  border-radius:0;
  background:#0f1117;
  box-shadow:none;
}
.online-band-title{
  padding:4px 0 8px;
  margin:0;
  border:0;
  color:#cbd5e1;
  font-size:.83rem;
}
.online-band-title span{
  font-weight:800;
}
.online-band-title small{
  min-width:24px;
  height:22px;
  background:#1f6feb;
  color:#fff;
  font-size:.72rem;
}
.online-people-grid{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.online-raja-tile,
.online-person{
  min-height:62px;
  width:100%;
  padding:8px 42px 8px 58px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:#151a23;
  box-shadow:none;
  display:flex;
  align-items:center;
}
.online-raja-tile:hover,
.online-person:hover{
  transform:none;
  background:#19202b;
  border-color:rgba(138,180,248,.28);
  box-shadow:none;
}
.online-person-avatar-wrap{
  left:9px;
  width:40px;
  height:40px;
  border-radius:50%;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.online-person-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
}
.online-person-dot{
  width:10px;
  height:10px;
  right:0;
  bottom:2px;
  border:2px solid #151a23;
  box-shadow:none;
}
.online-person-badge{
  top:50%;
  right:12px;
  left:auto;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border:0;
  background:transparent;
}
.online-person-badge img{
  width:20px;
  height:20px;
}
.online-person-body{
  width:100%;
  min-width:0;
  align-items:flex-start;
}
.online-person-name{
  color:#f8fafc;
  font-size:.92rem;
  line-height:1.2;
  font-weight:800;
  text-align:left;
}
.online-person-room{
  display:block;
  margin-top:3px;
  color:#8f9bad;
  font-size:.74rem;
  line-height:1.15;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.online-empty,
.online-loading{
  min-height:100px;
  border:1px dashed rgba(148,163,184,.16);
  border-radius:10px;
  background:#151a23;
  color:#8f9bad;
}

@media (min-width:720px){
  .online-directory{ padding:12px; }
  .online-hero{
    border:1px solid rgba(148,163,184,.12);
    border-radius:12px;
    padding:14px 16px;
  }
  .online-social-bar{
    padding:10px 0;
    grid-template-columns:minmax(260px, 360px) 1fr;
    align-items:center;
  }
  .online-search{ order:1; }
  .online-social-pill{ order:2; }
  .online-band{
    padding:0;
  }
  .online-people-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:8px;
  }
}

/* ONLINE COMPACT BOXES v5 */
.online-people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(82px, 92px));
  gap:10px;
  justify-content:start;
  align-items:start;
}
.online-raja-tile,
.online-person{
  width:100%;
  min-height:104px;
  padding:8px 6px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  border-radius:10px;
}
.online-person-avatar-wrap{
  position:relative;
  left:auto;
  top:auto;
  transform:none;
  width:48px;
  height:48px;
  margin:0 auto 6px;
}
.online-person-avatar{
  width:48px;
  height:48px;
}
.online-person-dot{
  right:0;
  bottom:2px;
}
.online-person-badge{
  top:6px;
  right:6px;
  transform:none;
  width:18px;
  height:18px;
}
.online-person-badge img{
  width:18px;
  height:18px;
}
.online-person-body{
  align-items:center;
  padding:0;
  width:100%;
}
.online-person-name{
  width:100%;
  text-align:center;
  font-size:.78rem;
  line-height:1.15;
}
.online-person-room{
  width:100%;
  margin-top:3px;
  text-align:center;
  font-size:.66rem;
  line-height:1.1;
}

@media (max-width:640px){
  .online-people-grid{
    grid-template-columns:repeat(auto-fill, minmax(58px, 1fr));
    gap:7px 6px;
  }
  .online-raja-tile,
  .online-person{
    min-height:82px;
    padding:6px 4px 5px;
    border-radius:8px;
  }
  .online-person-avatar-wrap{
    width:38px;
    height:38px;
    margin-bottom:4px;
  }
  .online-person-avatar{
    width:38px;
    height:38px;
  }
  .online-person-dot{
    width:8px;
    height:8px;
    border-width:1px;
  }
  .online-person-badge{
    top:4px;
    right:4px;
    width:14px;
    height:14px;
  }
  .online-person-badge img{
    width:14px;
    height:14px;
  }
  .online-person-name{
    font-size:.68rem;
  }
  .online-person-room{
    display:none;
  }
}

/* ONLINE ULTRA COMPACT v6 */
.online-directory{
  padding:0;
  background:#0f1117;
}
.online-hero{
  min-height:0;
  height:36px;
  padding:0 8px;
  border:0;
  border-bottom:1px solid rgba(148,163,184,.12);
  border-radius:0;
  background:#0f1117;
  box-shadow:none;
  display:flex;
  align-items:center;
}
.online-hero h2{
  color:#e5e7eb;
  font-size:.92rem;
  font-weight:800;
  line-height:1;
}
.online-kicker,
.online-subtitle,
.online-stats,
.online-actions,
.online-social-bar,
.online-band-title{
  display:none !important;
}
.online-band{
  margin:0;
  padding:6px;
  border:0;
  border-radius:0;
  background:#0f1117;
  box-shadow:none;
}
.online-people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(64px, 1fr));
  gap:4px;
  align-items:start;
}
.online-raja-tile,
.online-person{
  min-height:74px;
  padding:5px 3px 4px;
  border:0;
  border-radius:6px;
  background:#151a23;
  box-shadow:none;
}
.online-raja-tile:hover,
.online-person:hover{
  transform:none;
  background:#19202b;
  box-shadow:none;
}
.online-person-avatar-wrap{
  position:relative;
  left:auto;
  top:auto;
  transform:none;
  width:36px;
  height:36px;
  margin:0 auto 3px;
  border:0;
  padding:0;
  background:transparent;
}
.online-person-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
}
.online-person-dot{
  width:7px;
  height:7px;
  right:0;
  bottom:1px;
  border:1px solid #151a23;
}
.online-person-badge{
  top:3px;
  right:3px;
  width:12px;
  height:12px;
  border:0;
  background:transparent;
}
.online-person-badge img{
  width:12px;
  height:12px;
}
.online-person-body{
  width:100%;
  align-items:center;
  padding:0;
}
.online-person-name{
  width:100%;
  color:#e5e7eb;
  font-size:.64rem;
  line-height:1.08;
  font-weight:700;
  text-align:center;
}
.online-person-room{
  display:none !important;
}
.online-empty,
.online-loading{
  min-height:80px;
  border:0;
  border-radius:6px;
  background:#151a23;
  color:#8f9bad;
}

@media (max-width:640px){
  .online-hero{
    height:32px;
    padding:0 6px;
  }
  .online-band{
    padding:4px;
  }
  .online-people-grid{
    grid-template-columns:repeat(auto-fill, minmax(48px, 1fr));
    gap:3px;
  }
  .online-raja-tile,
  .online-person{
    min-height:64px;
    padding:4px 2px 3px;
    border-radius:5px;
  }
  .online-person-avatar-wrap,
  .online-person-avatar{
    width:30px;
    height:30px;
  }
  .online-person-name{
    font-size:.58rem;
  }
}

/* ONLINE DENSE POLISHED v7 */
.online-hero{
  height:38px;
  padding:0 10px;
  background:#111722;
}
.online-hero h2{
  font-size:1rem;
  color:#f8fafc;
}
.online-band{
  padding:6px;
  background:#0f1117;
}
.online-people-grid{
  grid-template-columns:repeat(auto-fill, minmax(76px, 1fr));
  gap:6px;
}
.online-raja-tile,
.online-person{
  min-height:92px;
  padding:7px 5px 6px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:8px;
  background:linear-gradient(180deg, #171d28, #131923);
}
.online-raja-tile:hover,
.online-person:hover{
  background:linear-gradient(180deg, #1d2635, #151d2a);
  border-color:rgba(138,180,248,.34);
}
.online-person-avatar-wrap{
  width:44px;
  height:44px;
  margin-bottom:5px;
  padding:2px;
  border:1px solid rgba(138,180,248,.24);
  background:#0f1117;
  border-radius:50%;
}
.online-person-avatar{
  width:100%;
  height:100%;
  border-radius:50%;
}
.online-person-dot{
  width:9px;
  height:9px;
  right:1px;
  bottom:3px;
  border:2px solid #0f1117;
}
.online-person-badge{
  top:5px;
  right:5px;
  width:15px;
  height:15px;
}
.online-person-badge img{
  width:15px;
  height:15px;
}
.online-person-name{
  color:#f1f5f9;
  font-size:.72rem;
  line-height:1.12;
  font-weight:800;
}

@media (max-width:640px){
  .online-band{
    padding:5px;
  }
  .online-people-grid{
    grid-template-columns:repeat(auto-fill, minmax(64px, 1fr));
    gap:5px;
  }
  .online-raja-tile,
  .online-person{
    min-height:84px;
    padding:6px 4px 5px;
  }
  .online-person-avatar-wrap{
    width:40px;
    height:40px;
    margin-bottom:4px;
  }
  .online-person-name{
    font-size:.66rem;
  }
}

/* ONLINE AVATAR FOCUS v8 */
.online-people-grid{
  grid-template-columns:repeat(auto-fill, minmax(92px, 1fr));
  gap:8px;
}
.online-raja-tile,
.online-person{
  min-height:118px;
  padding:9px 7px 8px;
  border:1px solid rgba(138,180,248,.16);
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(31,41,55,.86), rgba(17,24,39,.92));
}
.online-raja-tile:hover,
.online-person:hover{
  border-color:rgba(251,191,36,.36);
  background:
    linear-gradient(180deg, rgba(38,50,70,.94), rgba(20,29,44,.96));
}
.online-person-avatar-wrap{
  width:62px;
  height:62px;
  margin-bottom:7px;
  padding:3px;
  border:1px solid rgba(251,191,36,.32);
  box-shadow:0 8px 18px rgba(0,0,0,.24);
}
.online-person-avatar-wrap.avatar-wrap{
  display:block;
  line-height:0;
  flex:0 0 auto;
}
.online-person-avatar-wrap.avatar-wrap img{
  display:block;
}
.online-person-avatar{
  width:100%;
  height:100%;
}

.online-person-dot{
  width:11px;
  height:11px;
  right:3px;
  bottom:5px;
}
.online-person-badge{
  top:6px;
  right:6px;
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(6,9,15,.84);
  border:1px solid rgba(251,191,36,.52);
  box-shadow:0 6px 16px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.08);
  z-index:4;
}
.online-person-badge img{
  width:18px;
  height:18px;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.58));
}
.online-person-name{
  font-size:.78rem;
  color:#f8fafc;
}
.pop-meter{
  width:100%;
  margin-top:5px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.pop-label{
  color:#fbbf24;
  font-size:.58rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pop-track{
  width:100%;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.18);
}
.pop-fill{
  height:100%;
  display:block;
  border-radius:999px;
  background:linear-gradient(90deg, #1f6feb, #fbbf24);
}
.pop-meter-compact{
  width:72%;
  max-width:54px;
  margin-top:4px;
  align-items:center;
}
.pop-meter-compact .pop-label{
  color:#8ab4f8;
  font-size:.56rem;
}
.pop-meter-compact .pop-track{
  height:3px;
}

@media (min-width:641px){
  #onlineUsers .users-grid{
    padding:10px;
    grid-template-columns:repeat(auto-fill, minmax(74px, 1fr));
    gap:8px;
  }
  #onlineUsers .user-card{
    height:112px;
    padding:7px 5px 6px;
    border-radius:10px;
    background:linear-gradient(180deg, rgba(31,41,55,.72), rgba(17,24,39,.82));
    border-color:rgba(148,163,184,.14);
  }
  #onlineUsers .user-card:hover{
    transform:translateY(-1px);
    border-color:rgba(251,191,36,.32);
    background:linear-gradient(180deg, rgba(38,50,70,.86), rgba(20,29,44,.90));
  }
  #onlineUsers .user-avatar{
    width:48px;
    height:48px;
    border-color:rgba(138,180,248,.28);
  }
  #onlineUsers .username{
    width:100%;
    margin-top:4px;
    color:#f8fafc;
    font-size:.68rem;
    line-height:1.1;
  }
  #onlineUsers .pop-meter-compact{
    width:68%;
    margin-top:5px;
  }
}

/* POPULARITY SCORE BADGE v2 */
.pop-meter{ display:none !important; }
.pop-score{
  margin-top:6px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  max-width:100%;
  min-width:74px;
  padding:5px 9px 6px;
  border-radius:10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(180deg, rgba(20,24,34,.92), rgba(10,12,18,.96));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 18px rgba(0,0,0,.22);
}
.pop-score-label{
  color:rgba(226,232,240,.62);
  font-size:.49rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:lowercase;
}
.pop-score-value{
  color:#ffffff;
  font-size:.82rem;
  line-height:1;
  font-weight:950;
  max-width:48px;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:0 0 12px rgba(255,255,255,.18);
}
.pop-score-compact{
  margin-top:4px;
  min-width:68px;
  padding:4px 6px 5px;
  gap:1px;
  border-radius:9px;
}
.pop-score-compact .pop-score-label{
  font-size:.43rem;
}
.pop-score-compact .pop-score-value{
  font-size:.68rem;
  max-width:36px;
}

@media (max-width:640px){
  .online-people-grid{
    grid-template-columns:repeat(auto-fill, minmax(78px, 1fr));
    gap:6px;
  }
  .online-raja-tile,
  .online-person{
    min-height:106px;
    padding:8px 5px 7px;
  }
  .online-person-avatar-wrap{
    width:54px;
    height:54px;
    margin-bottom:6px;
  }
  .online-person-name{
    font-size:.7rem;
  }
  .pop-meter{
    margin-top:4px;
  }
  .pop-label{
    font-size:.54rem;
  }
  .pop-score{
    margin-top:4px;
    min-width:64px;
    padding:4px 6px 5px;
  }
  .pop-score-value{
    font-size:.66rem;
  }
}
/* =========================================
   SHOP – SYSTEM MATCH STYLE
   ========================================= */

#shopList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* =========================================
   CARD
   ========================================= */

.sh-item {
  background: #111827;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: 
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.sh-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.4);
  background: #151c2b;
}

/* =========================================
   IMAGE
   ========================================= */

.sh-img-wrap {
  margin-bottom: 14px;
}

.sh-img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 12px;
  padding: 6px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  transition: .2s ease;
}

.sh-item:hover .sh-img {
  border-color: rgba(59,130,246,.5);
}

/* =========================================
   TITLE
   ========================================= */

.sh-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 6px;
}

/* =========================================
   DESCRIPTION
   ========================================= */

.sh-desc {
  font-size: .85rem;
  color: #9ca3af;
  margin-bottom: 12px;
  min-height: 36px;
}

/* =========================================
   PRICE
   ========================================= */

.sh-meta {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.1);
  color: #93c5fd;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(59,130,246,.25);
  margin-bottom: 14px;
}

/* =========================================
   BUTTON
   ========================================= */

.sh-item .buy-btn {
  width: 100%;
  padding: 8px 0;
  border-radius: 10px;
  background: #1f2937;
  border: 1px solid rgba(255,255,255,.08);
  color: #e5e7eb;
  font-weight: 600;
  transition: .2s ease;
}

.sh-item .buy-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* =========================================
   OWNED
   ========================================= */

.sh-owned-card {
  border-color: rgba(34,197,94,.35);
  background: #0f1a1a;
}

.sh-item .owned {
  width: 100%;
  padding: 8px 0;
  border-radius: 10px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  color: #4ade80;
  font-weight: 600;
}
.avatar-wrap {
  line-height: 0;
}

.avatar-wrap img {
  display: block;
}

/* =========================================
   PROFILE EDIT + FACTS
   ========================================= */

#roomsMount .profile-edit-form{
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow-y:auto;
  scrollbar-color:rgba(138,180,248,.42) rgba(15,23,42,.34);
  scrollbar-width:thin;
  background:rgba(12,16,24,.72);
  border-color:rgba(148,163,184,.12);
}
.profile-edit-form::-webkit-scrollbar,
.mini-profile::-webkit-scrollbar,
.m-body::-webkit-scrollbar,
.pf-choice-grid::-webkit-scrollbar{
  width:9px;
  height:9px;
}
.profile-edit-form::-webkit-scrollbar-track,
.mini-profile::-webkit-scrollbar-track,
.m-body::-webkit-scrollbar-track,
.pf-choice-grid::-webkit-scrollbar-track{
  background:rgba(15,23,42,.34);
  border-radius:999px;
}
.profile-edit-form::-webkit-scrollbar-thumb,
.mini-profile::-webkit-scrollbar-thumb,
.m-body::-webkit-scrollbar-thumb,
.pf-choice-grid::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(138,180,248,.74), rgba(251,191,36,.44));
  border:2px solid rgba(15,23,42,.65);
  border-radius:999px;
}
.profile-edit-form::-webkit-scrollbar-thumb:hover,
.mini-profile::-webkit-scrollbar-thumb:hover,
.m-body::-webkit-scrollbar-thumb:hover,
.pf-choice-grid::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(147,197,253,.92), rgba(251,191,36,.62));
}
#roomsMount .profile-edit-form .cr-msg{
  grid-column:1 / -1;
  min-height:0;
}
.pf-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.72));
}
.pf-kicker{
  color:#8ab4f8;
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.pf-top h2{
  margin:2px 0 0;
  color:#f8fafc;
  font-size:1.28rem;
  line-height:1.1;
}
.pf-save-hint{
  flex:0 0 auto;
  padding:5px 10px;
  border-radius:999px;
  color:#cbd5e1;
  background:rgba(31,41,55,.72);
  border:1px solid rgba(148,163,184,.16);
  font-size:.75rem;
  font-weight:800;
}
.pf-avatar-field{
  position:relative;
  top:auto;
  display:flex;
  justify-content:center;
  padding:8px 10px;
  min-height:0;
  align-items:center;
  border:1px solid rgba(148,163,184,.13);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.72));
}
.pf-avatar-field + .pf-sections{
  margin-top:0;
}
.pf-avatar{
  position:relative;
  width:92px;
  height:92px;
  border-radius:50%;
  display:block;
  cursor:pointer;
}
.pf-avatar img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(138,180,248,.36);
  box-shadow:0 12px 28px rgba(0,0,0,.34);
  background:#0f172a;
}
.pf-avatar-cta{
  position:absolute;
  left:50%;
  bottom:3px;
  transform:translateX(-50%);
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(6,9,15,.88);
  color:#f8fafc;
  border:1px solid rgba(255,255,255,.14);
  font-size:.72rem;
  font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
}
.pf-file{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.pf-sections{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:9px;
}
.pf-sections .pf-section:nth-child(3){
  grid-column:1 / -1;
}
.pf-section{
  border:1px solid rgba(148,163,184,.13);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(17,24,39,.90), rgba(10,15,25,.86));
  padding:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}
.pf-section-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:9px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(148,163,184,.10);
}
.pf-section-icon{
  width:30px;
  height:30px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fbbf24;
  background:rgba(251,191,36,.11);
  border:1px solid rgba(251,191,36,.22);
}
.pf-section h3{
  margin:0;
  color:#f8fafc;
  font-size:.92rem;
  line-height:1.1;
}
.pf-section p{
  margin:3px 0 0;
  color:#94a3b8;
  font-size:.72rem;
}
.pf-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.profile-edit-form .cr-field{
  min-width:0;
  margin:0;
  padding:8px;
  border-radius:10px;
  background:rgba(6,9,15,.32);
  border:1px solid rgba(148,163,184,.11);
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.profile-edit-form .cr-field:hover{
  background:rgba(15,23,42,.48);
  border-color:rgba(138,180,248,.22);
}
.profile-edit-form .cr-field:has(.pf-choice-grid){
  grid-column:1 / -1;
}
.profile-edit-form .cr-label{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:6px;
  color:#dbeafe;
  font-size:.74rem;
  font-weight:900;
}
.profile-edit-form .cr-label i{
  color:#8ab4f8;
}
.profile-edit-form .cr-label small{
  color:#94a3b8;
  font-weight:800;
}
.profile-edit-form .cr-select,
.profile-edit-form .cr-multiselect{
  width:100%;
  min-height:36px;
  color:#e5e7eb;
  background:linear-gradient(180deg, #111827, #0f172a);
  border:1px solid rgba(148,163,184,.18);
  border-radius:9px;
  padding:7px 9px;
  outline:none;
}
.profile-edit-form .cr-multiselect{
  min-height:116px;
  padding:6px;
}
.profile-edit-form .cr-multiselect option{
  padding:6px 8px;
  border-radius:7px;
}
.pf-choice-grid{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  max-height:108px;
  overflow-y:auto;
  padding:2px 4px 2px 2px;
  scrollbar-color:rgba(138,180,248,.44) rgba(15,23,42,.30);
  scrollbar-width:thin;
}
.pf-choice{
  min-width:0;
  cursor:pointer;
}
.pf-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.pf-choice span{
  display:block;
  max-width:100%;
  padding:6px 9px;
  border-radius:999px;
  color:#cbd5e1;
  background:rgba(15,23,42,.88);
  border:1px solid rgba(148,163,184,.16);
  font-size:.73rem;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.pf-choice input:checked + span{
  color:#f8fafc;
  background:linear-gradient(135deg, rgba(31,111,235,.62), rgba(251,191,36,.22));
  border-color:rgba(138,180,248,.46);
  box-shadow:0 6px 14px rgba(0,0,0,.20);
}
.pf-choice:active span{
  transform:scale(.98);
}
.profile-edit-form .cr-select:focus,
.profile-edit-form .cr-multiselect:focus{
  border-color:rgba(138,180,248,.62);
  box-shadow:0 0 0 3px rgba(31,111,235,.14);
}
.profile-edit-form .cr-inline{
  display:flex;
  align-items:center;
  gap:8px;
}
.profile-edit-form .cr-suffix{
  color:#94a3b8;
  font-size:.78rem;
  font-weight:900;
}
#roomsMount .profile-edit-form .cr-actions{
  position:sticky;
  bottom:0;
  z-index:4;
  display:block;
  padding:8px 0 0;
  background:linear-gradient(180deg, rgba(15,17,23,0), rgba(15,17,23,.96) 44%);
}
#roomsMount .profile-edit-form .cr-actions .btn{
  width:100%;
  min-height:40px;
  border-radius:10px;
  font-weight:950;
}

.facts-card,
.info-card{
  border:1px solid rgba(148,163,184,.14);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(17,24,39,.86), rgba(10,15,25,.90));
  padding:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}
.facts-card + .info-card{
  margin-top:8px;
}
.facts-title{
  margin-bottom:8px;
  color:#f8fafc;
  font-size:.9rem;
  font-weight:950;
}
.facts-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.fact-item{
  min-width:0;
  display:flex;
  gap:8px;
  padding:8px;
  border-radius:10px;
  background:rgba(6,9,15,.34);
  border:1px solid rgba(148,163,184,.11);
  transition:border-color .16s ease, background .16s ease;
}
.fact-item:hover{
  background:rgba(15,23,42,.48);
  border-color:rgba(138,180,248,.20);
}
.fact-icon{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#8ab4f8;
  background:rgba(31,111,235,.12);
  border:1px solid rgba(138,180,248,.18);
}
.fact-copy{
  min-width:0;
  flex:1;
}
.fact-label{
  display:block;
  margin-bottom:4px;
  color:#94a3b8;
  font-size:.64rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.fact-values{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.fact-chip{
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  color:#e5e7eb;
  background:rgba(31,41,55,.76);
  border:1px solid rgba(148,163,184,.13);
  font-size:.72rem;
  line-height:1.1;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.facts-empty{
  color:#94a3b8;
  font-size:.86rem;
}
.mini-profile{
  height:100%;
  min-height:0;
  overflow-y:auto;
  scrollbar-color:rgba(138,180,248,.42) rgba(15,23,42,.34);
  scrollbar-width:thin;
}
.m-body{
  min-height:0;
  scrollbar-color:rgba(138,180,248,.42) rgba(15,23,42,.34);
  scrollbar-width:thin;
}

@media (max-width:640px){
  #roomsMount .profile-edit-form{
    display:flex;
    flex-direction:column;
    max-width:100%;
    padding:10px;
    gap:10px;
    grid-template-areas:none;
  }
  .pf-top{
    align-items:flex-start;
  }
  .pf-top h2{
    font-size:1.08rem;
  }
  .pf-save-hint{
    display:none;
  }
  .pf-avatar{
    width:88px;
    height:88px;
  }
  .pf-avatar-field{
    position:relative;
    top:auto;
    padding:8px;
    min-height:104px;
  }
  .pf-sections,
  .profile-edit-form .cr-actions{
    grid-column:auto;
  }
  .pf-sections{
    display:flex;
    flex-direction:column;
  }
  .pf-sections .pf-section:nth-child(3){
    grid-column:auto;
  }
  .pf-section{
    padding:9px;
    border-radius:10px;
  }
  .pf-section-head{
    margin-bottom:9px;
    padding-bottom:8px;
  }
  .pf-grid,
  .facts-grid{
    grid-template-columns:1fr;
    gap:7px;
  }
  .profile-edit-form .cr-field{
    padding:8px;
  }
  .profile-edit-form .cr-multiselect{
    min-height:104px;
  }
  .pf-choice-grid{
    max-height:104px;
    gap:6px;
  }
  .pf-choice span{
    padding:7px 9px;
    font-size:.74rem;
  }
  .fact-item{
    padding:8px;
  }
}

/* =========================================
   PROFILE EDIT CLEAN RESET
   ========================================= */

#roomsMount .profile-edit-form.pf-clean{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  max-width:920px;
  margin:0 auto;
  padding:12px;
  box-sizing:border-box;
  overflow-y:auto;
  background:rgba(13,17,25,.86);
  border:1px solid rgba(148,163,184,.14);
  border-radius:12px;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
  scrollbar-width:thin;
  scrollbar-color:rgba(138,180,248,.45) rgba(15,23,42,.35);
}
#roomsMount .profile-edit-form.pf-clean *,
#roomsMount .profile-edit-form.pf-clean *::before,
#roomsMount .profile-edit-form.pf-clean *::after{
  box-sizing:border-box;
}
#roomsMount .profile-edit-form.pf-clean::-webkit-scrollbar,
#roomsMount .pf-clean .pf-choice-grid::-webkit-scrollbar{
  width:8px;
}
#roomsMount .profile-edit-form.pf-clean::-webkit-scrollbar-track,
#roomsMount .pf-clean .pf-choice-grid::-webkit-scrollbar-track{
  background:rgba(15,23,42,.35);
  border-radius:999px;
}
#roomsMount .profile-edit-form.pf-clean::-webkit-scrollbar-thumb,
#roomsMount .pf-clean .pf-choice-grid::-webkit-scrollbar-thumb{
  background:rgba(138,180,248,.58);
  border:2px solid rgba(15,23,42,.55);
  border-radius:999px;
}
#roomsMount .pf-clean .cr-msg{
  min-height:0;
}
#roomsMount .pf-clean-head{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(20,27,40,.92), rgba(12,16,24,.86));
}
#roomsMount .pf-clean-avatar{
  position:relative;
  width:76px;
  height:76px;
  display:block;
  cursor:pointer;
  flex:0 0 auto;
}
#roomsMount .pf-clean-avatar img{
  width:76px;
  height:76px;
  display:block;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(138,180,248,.38);
  background:#0f172a;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
}
#roomsMount .pf-clean-avatar span{
  position:absolute;
  right:0;
  bottom:0;
  width:25px;
  height:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  background:#1f6feb;
  border:2px solid #10131a;
  font-size:.72rem;
}
#roomsMount .pf-clean .pf-file{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
#roomsMount .pf-clean-title{
  min-width:0;
}
#roomsMount .pf-clean-title .pf-kicker{
  color:#8ab4f8;
  font-size:.7rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
#roomsMount .pf-clean-title h2{
  margin:2px 0 0;
  color:#f8fafc;
  font-size:1.18rem;
  line-height:1.1;
}
#roomsMount .pf-clean-section{
  padding:10px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.82));
}
#roomsMount .pf-clean-section h3{
  margin:0 0 9px;
  padding-bottom:8px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#f8fafc;
  border-bottom:1px solid rgba(148,163,184,.10);
  font-size:.92rem;
  line-height:1.1;
}
#roomsMount .pf-clean-section h3 i{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fbbf24;
  background:rgba(251,191,36,.12);
  border:1px solid rgba(251,191,36,.22);
  border-radius:8px;
  font-size:.78rem;
}
#roomsMount .pf-clean-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
#roomsMount .pf-clean .pf-control{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
  padding:8px;
  border-radius:9px;
  background:rgba(6,9,15,.36);
  border:1px solid rgba(148,163,184,.10);
}
#roomsMount .pf-clean .pf-control > span,
#roomsMount .pf-clean .pf-choice-title{
  color:#b9c7dc;
  font-size:.72rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}
#roomsMount .pf-clean .cr-select{
  width:100%;
  min-height:36px;
  color:#e5e7eb;
  background:#111827;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  padding:7px 9px;
  outline:none;
}
#roomsMount .pf-clean .pf-input,
#roomsMount .pf-clean .pf-textarea{
  width:100%;
  color:#e5e7eb;
  background:#111827;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  padding:8px 9px;
  outline:none;
  font:inherit;
}
#roomsMount .pf-clean .pf-input{
  min-height:36px;
}
#roomsMount .pf-clean .pf-textarea{
  min-height:88px;
  resize:vertical;
  line-height:1.35;
}
#roomsMount .pf-clean .pf-input:focus,
#roomsMount .pf-clean .pf-textarea:focus{
  border-color:rgba(138,180,248,.62);
  box-shadow:0 0 0 3px rgba(31,111,235,.14);
}
#roomsMount .pf-clean .pf-control-wide{
  margin-top:8px;
}
#roomsMount .pf-clean .cr-select:focus{
  border-color:rgba(138,180,248,.62);
  box-shadow:0 0 0 3px rgba(31,111,235,.14);
}
#roomsMount .pf-clean .cr-inline{
  display:flex;
  align-items:center;
  gap:7px;
}
#roomsMount .pf-clean .cr-suffix{
  color:#94a3b8;
  font-size:.76rem;
  font-weight:900;
}
#roomsMount .pf-choice-block{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:8px;
  border-radius:9px;
  background:rgba(6,9,15,.32);
  border:1px solid rgba(148,163,184,.10);
}
#roomsMount .pf-choice-block + .pf-choice-block{
  margin-top:8px;
}
#roomsMount .pf-clean .pf-choice-grid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-height:98px;
  overflow-y:auto;
  padding:1px 4px 1px 1px;
}
#roomsMount .pf-clean .pf-choice{
  display:block;
  min-width:0;
  cursor:pointer;
}
#roomsMount .pf-clean .pf-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
#roomsMount .pf-clean .pf-choice span{
  display:block;
  max-width:100%;
  padding:6px 9px;
  border-radius:999px;
  color:#cbd5e1;
  background:#101827;
  border:1px solid rgba(148,163,184,.16);
  font-size:.73rem;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#roomsMount .pf-clean .pf-choice input:checked + span{
  color:#fff;
  background:#1f6feb;
  border-color:rgba(138,180,248,.55);
}
#roomsMount .pf-clean-actions{
  position:sticky;
  bottom:0;
  z-index:5;
  display:block;
  padding-top:8px;
  background:linear-gradient(180deg, rgba(13,17,25,0), rgba(13,17,25,.98) 42%);
}
#roomsMount .pf-clean-actions .btn{
  width:100%;
  min-height:40px;
  border-radius:9px;
  font-weight:950;
}

@media (max-width:640px){
  #roomsMount .profile-edit-form.pf-clean{
    max-width:100%;
    padding:9px;
    gap:8px;
    border-radius:10px;
  }
  #roomsMount .pf-clean-head{
    grid-template-columns:auto minmax(0, 1fr);
    padding:9px;
  }
  #roomsMount .pf-clean-avatar,
  #roomsMount .pf-clean-avatar img{
    width:62px;
    height:62px;
  }
  #roomsMount .pf-clean-title h2{
    font-size:1rem;
  }
  #roomsMount .pf-clean-section{
    padding:9px;
  }
  #roomsMount .pf-clean-grid{
    grid-template-columns:1fr;
    gap:7px;
  }
  #roomsMount .pf-clean .pf-choice-grid{
    max-height:90px;
  }
}

/* =========================================
   PROFILE VIEW CLEAN
   ========================================= */

#roomsMount .mini-profile{
  width:100%;
  max-width:920px;
  height:100%;
  min-height:0;
  margin:0 auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:hidden;
  color:#e5e7eb;
  background:rgba(13,17,25,.86);
  border:1px solid rgba(148,163,184,.14);
  border-radius:12px;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
#roomsMount .mini-profile .m-body::-webkit-scrollbar{
  width:8px;
}
#roomsMount .mini-profile .m-body::-webkit-scrollbar-track{
  background:rgba(15,23,42,.35);
  border-radius:999px;
}
#roomsMount .mini-profile .m-body::-webkit-scrollbar-thumb{
  background:rgba(138,180,248,.58);
  border:2px solid rgba(15,23,42,.55);
  border-radius:999px;
}
#roomsMount .mini-profile .m-head{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar name meta"
    "mood mood mood";
  align-items:center;
  gap:10px 12px;
  padding:10px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(20,27,40,.92), rgba(12,16,24,.86));
  flex:0 0 auto;
}
#roomsMount .mini-profile .m-ava{
  grid-area:avatar;
  width:76px;
  height:76px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(138,180,248,.38);
  background:#0f172a;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
}
#roomsMount .mini-profile .m-uname{
  grid-area:name;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
#roomsMount .mini-profile .m-name{
  min-width:0;
  color:#f8fafc;
  font-size:1.18rem;
  line-height:1.1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#roomsMount .mini-profile .verify-ico{
  flex:0 0 auto;
  width:19px;
  height:19px;
}
#roomsMount .mini-profile .m-meta{
  grid-area:meta;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
}
#roomsMount .mini-profile .badge-ico,
#roomsMount .mini-profile .mood-trigger{
  width:30px;
  height:30px;
  border-radius:9px;
  background:rgba(6,9,15,.40);
  border:1px solid rgba(148,163,184,.12);
}
#roomsMount .mini-profile .mood-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px;
}
#roomsMount .mini-profile .mood-trigger img{
  width:100%;
  height:100%;
  object-fit:contain;
}
#roomsMount .mini-profile .pop-chip{
  min-width:66px;
  height:42px;
  display:inline-grid;
  place-items:center;
  align-content:center;
  align-items:center;
  gap:1px;
  padding:4px 8px;
  border-radius:8px;
  color:#8ab4f8;
  background:linear-gradient(180deg, rgba(31,41,55,.96), rgba(17,24,39,.96));
  border:1px solid rgba(148,163,184,.20);
  font-size:.78rem;
  font-weight:950;
  line-height:1;
}
#roomsMount .mini-profile .pop-chip svg{
  display:none;
}
#roomsMount .mini-profile .pop-chip small{
  color:#8ea0b8;
  font-size:.56rem;
  font-weight:800;
  line-height:1;
}
#roomsMount .mini-profile .pop-chip .pop-chip-value{
  color:#60a5fa;
  font-size:1.02rem;
  font-weight:950;
  line-height:1;
}
#roomsMount .mini-profile .room-roles{
  display:flex;
  align-items:center;
  gap:4px;
}
#roomsMount .mini-profile .role-chip{
  height:28px;
  min-width:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(6,9,15,.40);
  border:1px solid rgba(148,163,184,.12);
}
#roomsMount .mini-profile .role-chip img{
  width:18px;
  height:18px;
}
#roomsMount .mini-profile .role-chip .cnt{
  margin-left:2px;
  color:#f8fafc;
  font-size:.65rem;
}
#roomsMount .mini-profile .mood-wrap{
  grid-area:mood;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
#roomsMount .mini-profile .mood-input{
  width:100%;
  min-height:34px;
  color:#e5e7eb;
  background:#111827;
  border:1px solid rgba(148,163,184,.16);
  border-radius:8px;
  padding:7px 9px;
  outline:none;
}
#roomsMount .mini-profile .m-toolbar{
  padding:0;
  flex:0 0 auto;
}
#roomsMount .mini-profile .tabbar{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(0, 1fr));
  gap:6px;
  padding:4px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:rgba(6,9,15,.28);
}
#roomsMount .mini-profile .tabbar .tab-btn{
  min-height:34px;
  border-radius:8px;
  color:#cbd5e1;
  background:transparent;
  border:1px solid transparent;
  font-weight:900;
}
#roomsMount .mini-profile .tabbar .tab-btn.is-active,
#roomsMount .mini-profile .tabbar .tab-btn.active,
#roomsMount .mini-profile .tabbar .tab-btn[aria-selected="true"]{
  color:#f8fafc;
  background:#1f6feb;
  border-color:rgba(138,180,248,.35);
}
#roomsMount .mini-profile .m-body{
  flex:1 1 auto;
  height:0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(138,180,248,.45) rgba(15,23,42,.35);
}
#roomsMount .mini-profile .m-body > .view{
  min-height:0;
}
#roomsMount .mini-profile .m-body > .view[hidden]{
  display:none !important;
}
#roomsMount .mini-profile .view[data-view-id="info"]{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-bottom:2px;
}
#roomsMount .mini-profile .v-dm,
#roomsMount .mini-profile .v-gifts,
#roomsMount .mini-profile .v-admin{
  min-height:100%;
}
#roomsMount .mini-profile .facts-card,
#roomsMount .mini-profile .info-card,
#roomsMount .mini-profile .profile-story-card{
  padding:10px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.82));
  box-shadow:none;
}
#roomsMount .mini-profile .profile-story-title{
  margin:0 0 8px;
  padding-bottom:8px;
  color:#f8fafc;
  border-bottom:1px solid rgba(148,163,184,.10);
  font-size:.92rem;
  line-height:1.1;
  font-weight:950;
}
#roomsMount .mini-profile .profile-story-text{
  color:#dbeafe;
  font-size:.86rem;
  line-height:1.45;
  white-space:normal;
  word-break:break-word;
}
#roomsMount .mini-profile .facts-title{
  margin:0 0 9px;
  padding-bottom:8px;
  color:#f8fafc;
  border-bottom:1px solid rgba(148,163,184,.10);
  font-size:.92rem;
  line-height:1.1;
  font-weight:950;
}
#roomsMount .mini-profile .facts-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
#roomsMount .mini-profile .fact-item{
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px;
  border-radius:9px;
  background:rgba(6,9,15,.36);
  border:1px solid rgba(148,163,184,.10);
}
#roomsMount .mini-profile .fact-icon{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#8ab4f8;
  background:rgba(31,111,235,.12);
  border:1px solid rgba(138,180,248,.18);
  border-radius:8px;
}
#roomsMount .mini-profile .fact-label{
  display:block;
  margin-bottom:5px;
  color:#b9c7dc;
  font-size:.66rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}
#roomsMount .mini-profile .fact-values{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
#roomsMount .mini-profile .fact-chip{
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  color:#e5e7eb;
  background:#101827;
  border:1px solid rgba(148,163,184,.16);
  font-size:.72rem;
  line-height:1.1;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#roomsMount .mini-profile .info-card{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-top:0;
}
#roomsMount .mini-profile .info-row{
  min-width:0;
  padding:8px;
  border-radius:9px;
  background:rgba(6,9,15,.32);
  border:1px solid rgba(148,163,184,.10);
}
#roomsMount .mini-profile .info-k{
  margin-bottom:4px;
  color:#94a3b8;
  font-size:.65rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}
#roomsMount .mini-profile .info-v{
  min-width:0;
  color:#f8fafc;
  font-size:.82rem;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:640px){
  #roomsMount{
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  #roomsMount .mini-profile{
    max-width:100%;
    height:100%;
    max-height:100%;
    min-height:0;
    padding:9px;
    gap:8px;
    border-radius:10px;
    overflow:hidden;
  }
  #roomsMount .mini-profile .m-head{
    grid-template-columns:auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "meta meta"
      "mood mood";
    padding:9px;
    flex:0 0 auto;
  }
  #roomsMount .mini-profile .m-ava{
    width:62px;
    height:62px;
  }
  #roomsMount .mini-profile .m-name{
    font-size:1rem;
  }
  #roomsMount .mini-profile .m-meta{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  #roomsMount .mini-profile .tabbar{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  #roomsMount .mini-profile .m-toolbar{
    flex:0 0 auto;
  }
  #roomsMount .mini-profile .m-body{
    flex:1 1 auto;
    height:0;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-right:2px;
  }
  #roomsMount .mini-profile .m-body > .view{
    min-height:0;
  }
  #roomsMount .mini-profile .facts-grid,
  #roomsMount .mini-profile .info-card{
    grid-template-columns:1fr;
    gap:7px;
  }
}

/* Mobile profile scroll fix for profileMount and roomsMount */
#profileView .profile-page,
#roomsView .profile-page{
  min-height:0;
}
#profileMount,
#roomsMount{
  min-height:0;
}
#profileMount .mini-profile,
#roomsMount .mini-profile{
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:920px;
  height:100%;
  min-height:0;
  margin:0 auto;
  overflow:hidden;
}
#profileMount .mini-profile .m-head,
#roomsMount .mini-profile .m-head,
#profileMount .mini-profile .m-toolbar,
#roomsMount .mini-profile .m-toolbar{
  flex:0 0 auto;
}
#profileMount .mini-profile .m-body,
#roomsMount .mini-profile .m-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

@media (max-width:640px){
  #profileView,
  #roomsView,
  #profileView .profile-page,
  #roomsView .profile-page,
  #profileMount,
  #roomsMount{
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  #profileMount .mini-profile,
  #roomsMount .mini-profile{
    height:100%;
    max-height:100%;
    min-height:0;
    overflow:hidden;
  }
  #profileMount .mini-profile .m-body,
  #roomsMount .mini-profile .m-body{
    height:0;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
}

/* =========================================================
   ONLINE USERS PANEL v3 - final override
   ========================================================= */
#onlineUsers {
  background:
    linear-gradient(180deg, rgba(22,25,34,.98), rgba(13,15,21,.98));
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.03);
  overflow: hidden;
}

#onlineUsers h3 {
  min-height: 0;
  margin: 9px 9px 1px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  background: transparent;
  border: 0;
  color: rgba(219,234,254,.78);
  font-size: .64rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

#onlineUsers h3 span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#onlineUsers h3 strong {
  min-width: 25px;
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #f8fafc;
  font-size: .72rem;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(135deg, #2f7dff, #1d4ed8);
  border: 1px solid rgba(147,197,253,.34);
  box-shadow: 0 6px 14px rgba(29,78,216,.22);
}

#onlineUsers .users-grid {
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  align-content: start;
}

#onlineUsers .user-card {
  position: relative;
  height: 136px;
  min-height: 136px;
  padding: 9px 5px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(31,111,235,.14), transparent 46%),
    linear-gradient(180deg, rgba(27,33,45,.88), rgba(16,20,29,.94));
  border: 1px solid rgba(148,163,184,.13);
  box-shadow: 0 8px 18px rgba(0,0,0,.20);
  overflow: hidden;
}

#onlineUsers .user-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31,111,235,.38);
  background:
    linear-gradient(180deg, rgba(37,49,70,.88), rgba(20,29,44,.94));
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
}

#onlineUsers .avatar-wrap,
#onlineUsers .avatar-wrap.avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
  transform: none;
}

#onlineUsers .avatar-wrap::before {
  inset: 2px;
  pointer-events: none;
}

#onlineUsers .user-avatar,
#onlineUsers .c-user-avatar,
#onlineUsers .avatar-wrap img {
  position: relative;
  z-index: 1;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  border-radius: 50%;
  border: 2px solid rgba(138,180,248,.34);
  object-fit: cover;
  margin: 0;
  box-shadow: 0 7px 14px rgba(0,0,0,.25);
}

#onlineUsers .user-card:hover .user-avatar {
  border-color: rgba(147,197,253,.65);
}

#onlineUsers .username {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 16px;
  width: 100%;
  min-height: 16px;
  margin: 0;
  padding: 0 3px;
  color: #ffffff;
  font-size: .73rem;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-shadow:
    0 1px 2px rgba(0,0,0,.85),
    0 0 8px rgba(0,0,0,.55);
}

#onlineUsers .online-indicator {
  top: 7px;
  right: 7px;
  width: 11px;
  height: 11px;
  border: 2px solid #14161d;
  box-shadow: 0 0 0 2px rgba(16,185,129,.14), 0 0 10px rgba(16,185,129,.45);
}

#onlineUsers .role-badge {
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

#onlineUsers .role-badge .ol-badge-ico {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}

#onlineUsers .pop-score-compact {
  flex: 0 0 auto;
  width: 72px;
  max-width: 100%;
  margin-top: 0;
  padding: 4px 5px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(15,18,26,.92), rgba(7,9,14,.94));
  border-color: rgba(255,255,255,.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 5px 12px rgba(0,0,0,.18);
}

#onlineUsers .pop-score-compact .pop-score-label {
  max-width: 100%;
  color: rgba(203,213,225,.62);
  font-size: .4rem;
  line-height: .9;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#onlineUsers .pop-score-compact .pop-score-value {
  color: #f8fafc;
  font-size: .7rem;
  line-height: 1;
  font-weight: 950;
}

@media (min-width: 901px) {
  #chatAndInput {
    flex: 0 0 calc(60% - 5px);
    min-width: 0;
  }

  #onlineUsers {
    flex: 0 0 calc(40% - 5px);
    min-width: 340px;
  }

  #onlineUsers h3 {
    margin: 10px 11px 2px;
  }

  #onlineUsers .users-grid {
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 9px;
  }

  #onlineUsers .user-card {
    height: 124px;
    min-height: 124px;
    padding: 8px 6px 7px;
    gap: 4px;
  }

  #onlineUsers .avatar-wrap,
  #onlineUsers .avatar-wrap.avatar-wrap {
    width: 62px;
    height: 62px;
  }

  #onlineUsers .user-avatar,
  #onlineUsers .c-user-avatar,
  #onlineUsers .avatar-wrap img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }

  #onlineUsers .username {
    font-size: .7rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #onlineUsers {
    flex: 0 0 38%;
    min-width: 245px;
  }

  #onlineUsers .users-grid {
    padding: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #onlineUsers .user-card {
    height: 116px;
    min-height: 116px;
    padding: 7px 5px 6px;
  }

  #onlineUsers .avatar-wrap,
  #onlineUsers .avatar-wrap.avatar-wrap {
    width: 56px;
    height: 56px;
  }

  #onlineUsers .user-avatar,
  #onlineUsers .c-user-avatar,
  #onlineUsers .avatar-wrap img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}

@media (max-width: 640px) {
  #onlineUsers {
    flex: 0 0 84px;
    border-radius: 10px;
  }

  #onlineUsers h3 {
    display: flex !important;
    margin: 6px 5px 2px;
    gap: 4px;
    font-size: .52rem;
    letter-spacing: .04em;
  }

  #onlineUsers h3 strong {
    min-width: 20px;
    height: 17px;
    padding: 0 6px;
    font-size: .62rem;
  }

  #onlineUsers .users-grid {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }

  #onlineUsers .user-card {
    height: 104px;
    min-height: 104px;
    padding: 5px 4px;
    gap: 3px;
    border-radius: 10px;
    box-shadow: none;
  }

  #onlineUsers .avatar-wrap,
  #onlineUsers .avatar-wrap.avatar-wrap {
    width: 50px;
    height: 50px;
  }

  #onlineUsers .user-avatar,
  #onlineUsers .c-user-avatar,
  #onlineUsers .avatar-wrap img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-width: 1px;
    box-shadow: none;
  }

  #onlineUsers .username {
    display: block;
    flex: 0 0 12px;
    width: 100%;
    min-height: 12px;
    padding: 0;
    font-size: .62rem;
    line-height: 1.05;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-shadow: none;
  }

  #onlineUsers .online-indicator {
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
  }

  #onlineUsers .role-badge {
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
  }

  #onlineUsers .role-badge .ol-badge-ico {
    width: 14px;
    height: 14px;
  }

  #onlineUsers .pop-score-compact {
    display: inline-flex;
    width: 66px;
    padding: 3px 4px;
    border-radius: 8px;
  }

  #onlineUsers .pop-score-compact .pop-score-label {
    font-size: .38rem;
  }

  #onlineUsers .pop-score-compact .pop-score-value {
    font-size: .62rem;
  }
}

/* Mobile right-column message inbox. */
@media (max-width: 640px) {
  #onlineUsers .dm-inbox-grid {
    box-sizing: border-box !important;
    gap: 3px !important;
    padding: 2px !important;
    overflow-x: hidden !important;
  }

  #onlineUsers .user-card.dm-thread-card {
    box-sizing: border-box !important;
    position: relative !important;
    flex: 0 0 84px !important;
    width: 100% !important;
    height: 84px !important;
    min-height: 84px !important;
    padding: 3px 2px !important;
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(31, 41, 55, .5) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
  }

  #onlineUsers .dm-thread-card .avatar-wrap,
  #onlineUsers .dm-thread-card .avatar-wrap[class*="cody-avatar-"],
  #onlineUsers .dm-thread-card .avatar-wrap[class*="avatar-frame--"] {
    position: relative !important;
    box-sizing: border-box !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
  }

  #onlineUsers .dm-thread-card .user-avatar,
  #onlineUsers .dm-thread-card .c-user-avatar,
  #onlineUsers .dm-thread-card .avatar-wrap img {
    box-sizing: border-box !important;
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  #onlineUsers .dm-thread-card .username,
  #onlineUsers .dm-thread-card .c-user-name {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 16px !important;
    height: 16px !important;
    margin: 2px 0 1px !important;
    padding: 0 1px !important;
    color: #dbeafe;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 16px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
  }

  #onlineUsers .dm-thread-card .dm-preview {
    box-sizing: border-box !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #bfdbfe !important;
    background: rgba(31, 111, 235, .16) !important;
    border: 1px solid rgba(31, 111, 235, .22) !important;
    border-radius: 5px !important;
    font-size: 7.5px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #onlineUsers .dm-thread-card > .online-indicator {
    display: none !important;
  }

  #onlineUsers .user-card.dm-unread-card {
    min-height: 84px !important;
    border: 1px solid rgba(250, 204, 21, .9) !important;
    background: rgba(31, 41, 55, .5) !important;
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, .12) inset,
      0 0 10px rgba(250, 204, 21, .13) !important;
  }

  #onlineUsers .user-card.dm-unread-card::after {
    display: none !important;
  }

  #onlineUsers .dm-thread-count {
    top: 3px !important;
    right: 3px !important;
    bottom: auto !important;
    min-width: 15px !important;
    width: auto !important;
    height: 15px !important;
    padding: 0 4px !important;
    font-size: 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 7px rgba(250, 204, 21, .22) !important;
  }

  #onlineUsers .dm-inbox-empty {
    box-sizing: border-box !important;
    width: calc(100% - 4px) !important;
    min-height: 58px !important;
    margin: 2px !important;
    padding: 8px 3px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
  }
}

/* Mobile chat composer: compact, colorful and thumb-friendly. */
@media (max-width: 640px) {
  #chatView > .emoji-strip-wrapper {
    margin: 3px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  #inputArea {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 4px 0 0 !important;
    padding: 4px !important;
    gap: 5px !important;
    align-items: center !important;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
    background:
      linear-gradient(rgba(11, 16, 27, .97), rgba(11, 16, 27, .97)) padding-box,
      linear-gradient(120deg, rgba(45, 212, 191, .58), rgba(14, 165, 233, .24)) border-box !important;
    box-shadow: 0 7px 18px rgba(2, 6, 23, .32), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
  }

  #inputArea:focus-within {
    border-color: transparent !important;
    box-shadow:
      0 0 0 2px rgba(45, 212, 191, .11),
      0 9px 22px rgba(2, 132, 199, .16) !important;
  }

  #inputArea #msg {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .025) !important;
    color: #f8fafc !important;
    caret-color: #5eead4 !important;
    box-shadow: none !important;
    font-size: 16px !important;
    line-height: 40px !important;
  }

  #inputArea #msg::placeholder {
    color: #94a3b8 !important;
    opacity: .9 !important;
  }

  #inputArea #sendBtn {
    box-sizing: border-box !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%) !important;
    box-shadow: 0 5px 12px rgba(8, 145, 178, .28), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25) !important;
  }

  #inputArea #sendBtn i {
    margin: 0 1px 1px 0 !important;
    font-size: 15px !important;
    transform: rotate(-8deg);
  }

  #inputArea #sendBtn span {
    display: none !important;
  }

  #inputArea #sendBtn:active {
    transform: scale(.94) !important;
    filter: brightness(1.08) !important;
  }
}

#onlineUsers .role-badge,
#onlineUsers .role-badge.role-admin,
#onlineUsers .role-badge.role-moderator,
#onlineUsers .role-badge.role-vip,
#onlineUsers .role-badge.role-member {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#onlineUsers .role-badge .ol-badge-ico {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}

.online-person-badge,
.online-person-badge.role-admin,
.online-person-badge.role-moderator,
.online-person-badge.role-vip,
.online-person-badge.role-member {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.online-person-badge img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}

.vip-head-btn i {
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.38));
}

.vip-box {
  width: min(420px, calc(100vw - 28px));
}

.vip-box h3 {
  color: #f8fafc;
}

.vip-status {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
}

.vip-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17,24,39,.88), rgba(10,15,25,.82));
  border: 1px solid rgba(148,163,184,.12);
}

.vip-status-row span {
  color: #94a3b8;
  font-size: .76rem;
  font-weight: 800;
}

.vip-status-row strong {
  color: #f8fafc;
  font-size: .82rem;
  text-align: right;
}

.vip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.vip-actions .btn-ghost,
.vip-save {
  min-height: 38px;
}

.vip-actions i,
.vip-save i {
  color: #fbbf24;
}

.vip-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15,23,42,.48);
  border: 1px solid rgba(148,163,184,.10);
  color: #dbeafe;
  font-size: .84rem;
  font-weight: 800;
}

.vip-toggle input {
  accent-color: #fbbf24;
}

.vip-save {
  width: 100%;
  margin-top: 8px;
}

.vip-msg {
  min-height: 18px;
  margin-top: 8px;
  color: #fbbf24;
  font-size: .78rem;
  font-weight: 800;
}

.vip-gift-card {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(251,191,36,.13), transparent 42%),
    linear-gradient(180deg, rgba(17,24,39,.88), rgba(10,15,25,.84));
  border: 1px solid rgba(251,191,36,.16);
}

.vip-gift-title {
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
}

.vip-gift-row {
  display: none;
}

.vip-gift-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 7px;
}

.vip-gift-btn {
  min-width: 0;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(6,9,15,.48);
  color: #e5e7eb;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.vip-gift-btn span {
  display: block;
  margin-bottom: 2px;
  font-size: 1.08rem;
}

.vip-gift-btn.vip-only {
  border-color: rgba(251,191,36,.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(251,191,36,.16), transparent 46%),
    rgba(6,9,15,.48);
}

.vip-gift-btn b {
  display: block;
  margin-top: 2px;
  color: #fbbf24;
  font-size: .64rem;
}

.vip-gift-btn:hover {
  border-color: rgba(251,191,36,.36);
  background: rgba(30,24,12,.46);
}

.vip-gift-msg {
  min-height: 16px;
  margin-top: 7px;
  color: #fbbf24;
  font-size: .74rem;
  font-weight: 800;
}

.gift-wrap-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #dbeafe;
  font-size: .75rem;
  font-weight: 850;
}

.gift-wrap-toggle input {
  accent-color: #fbbf24;
}

.gift-shelf {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(251,191,36,.10), transparent 38%),
    linear-gradient(180deg, rgba(17,24,39,.86), rgba(10,15,25,.82));
  border: 1px solid rgba(148,163,184,.12);
}

.gift-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
}

.gift-shelf-head strong {
  min-width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: #fbbf24;
  font-size: .72rem;
}

.gift-shelf-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gift-tile {
  flex: 0 0 92px;
  min-height: 116px;
  padding: 8px 6px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(20,24,34,.86), rgba(8,10,15,.92));
  text-align: center;
}

.gift-tile.is-hidden {
  opacity: .55;
}

.gift-emoji {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

.gift-name {
  margin-top: 6px;
  color: #f8fafc;
  font-size: .7rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-meta {
  margin-top: 3px;
  color: #94a3b8;
  font-size: .58rem;
  line-height: 1.1;
  min-height: 20px;
  overflow: hidden;
}

.gift-controls {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  gap: 3px;
  margin-top: 6px;
}

.gift-controls button {
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 7px;
  background: rgba(15,23,42,.72);
  color: #e5e7eb;
  font-size: .64rem;
  font-weight: 900;
  cursor: pointer;
}

.gift-admin-panel {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15,23,42,.52);
  border: 1px solid rgba(251,191,36,.14);
}

.gift-admin-title {
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
}

.gift-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gift-admin-grid input,
.gift-admin-grid select,
.gift-admin-grid label {
  min-width: 0;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(6,9,15,.55);
  color: #e5e7eb;
  padding: 7px 9px;
  font-size: .78rem;
}

.gift-admin-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
}

.gift-img,
.gift-choice-img,
.admin-gift-item img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.38));
}

.gift-img {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.gift-choice-img {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
}

.vip-gift-btn:has(.gift-choice-img) > span {
  display: none;
}

.gift-shelf {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0%, rgba(34,197,94,.14), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(251,191,36,.16), transparent 36%),
    linear-gradient(180deg, rgba(17,24,39,.94), rgba(7,10,18,.9));
  border: 1px solid rgba(226,232,240,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.24);
}

.gift-shelf-head {
  margin-bottom: 11px;
}

.gift-shelf-head > div {
  display: grid;
  gap: 2px;
}

.gift-shelf-head small {
  color: #9ca3af;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gift-shelf-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.gift-tile {
  position: relative;
  flex: initial;
  min-width: 0;
  min-height: 132px;
  padding: 9px 7px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(30,41,59,.8), rgba(10,15,25,.94));
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.gift-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(251,191,36,.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(251,191,36,.13), transparent 44%),
    linear-gradient(180deg, rgba(30,41,59,.88), rgba(10,15,25,.96));
}

.gift-art {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.gift-img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.gift-emoji {
  font-size: 1.85rem;
}

.gift-archive {
  margin-top: 10px;
  border-top: 1px solid rgba(148,163,184,.12);
  padding-top: 9px;
}

.gift-archive summary {
  cursor: pointer;
  user-select: none;
  color: #e5e7eb;
  font-size: .78rem;
  font-weight: 950;
  list-style: none;
}

.gift-archive summary::-webkit-details-marker {
  display: none;
}

.gift-archive summary b {
  margin-left: 6px;
  color: #fbbf24;
}

.gift-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.gift-archive-grid .gift-tile {
  min-height: 126px;
}

@media (max-width: 560px) {
  .gift-shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== BAR POS / PROFESSIONAL TABLET LAYOUT ===== */
.cafe-body.cafe-bar-body {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% -20%, rgba(14,165,233,.13), transparent 34rem),
    linear-gradient(145deg, #07101c 0%, #0a1321 48%, #070d17 100%);
}

.cafe-bar-app {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: 68px 32px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
}

.cafe-bar-head {
  min-width: 0;
  padding: 8px 10px;
  border-color: rgba(148,163,184,.13);
  border-radius: 16px;
  background: rgba(11,20,34,.94);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.cafe-bar-brand,
.cafe-bar-toolbar,
.cafe-bar-section-head,
.cafe-bar-section-head > div,
.cafe-bar-order-side,
.cafe-bar-table,
.cafe-bar-age {
  display: flex;
  align-items: center;
}

.cafe-bar-brand {
  min-width: 0;
  gap: 10px;
}

.cafe-bar-brand > div {
  min-width: 0;
}

.cafe-bar-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103,232,249,.32);
  border-radius: 13px;
  color: #67e8f9;
  background: linear-gradient(145deg, rgba(14,165,233,.18), rgba(16,185,129,.1));
  font-size: 1.08rem;
}

.cafe-bar-head .cafe-kicker {
  display: block;
  margin-bottom: 1px;
  color: #6f829b;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cafe-bar-head h1 {
  max-width: 32vw;
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(1.02rem, 1.7vw, 1.38rem);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-head .cafe-bar-toolbar {
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.cafe-bar-live,
.cafe-bar-clock,
.cafe-bar-toolbar strong,
.cafe-bar-toolbar button,
.cafe-bar-toolbar a {
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 11px;
  background: rgba(21,32,49,.78);
}

.cafe-bar-live {
  gap: 7px;
  padding: 0 11px;
  color: #9fb0c5;
  font-size: .72rem;
  font-weight: 850;
}

.cafe-bar-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.11), 0 0 14px rgba(52,211,153,.48);
}

.cafe-bar-toolbar strong {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #cbd5e1;
  font-size: .7rem;
}

.cafe-bar-toolbar strong b {
  color: #67e8f9;
  font-size: 1.05rem;
}

.cafe-bar-clock {
  justify-content: center;
  min-width: 62px;
  padding: 0 10px;
  color: #f8fafc;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.cafe-bar-toolbar button,
.cafe-bar-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  padding: 0 12px;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(21,32,49,.78);
  font-size: .76rem;
  font-weight: 900;
}

.cafe-bar-toolbar button:hover,
.cafe-bar-toolbar a:hover {
  border-color: rgba(103,232,249,.35);
  color: #fff;
  background: rgba(14,165,233,.13);
}

.cafe-bar-section-head {
  justify-content: space-between;
  min-width: 0;
  padding: 0 4px;
  color: #b8c5d6;
}

.cafe-bar-section-head > div {
  gap: 7px;
}

.cafe-bar-section-head i {
  color: #67e8f9;
  font-size: .74rem;
}

.cafe-bar-section-head strong {
  font-size: .78rem;
  letter-spacing: .015em;
}

.cafe-bar-section-head small {
  color: #64748b;
  font-size: .65rem;
}

.cafe-bar-orders {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  padding: 0 2px 8px 0;
  scrollbar-color: rgba(103,232,249,.25) transparent;
  scrollbar-width: thin;
}

.cafe-bar-order {
  position: relative;
  grid-template-rows: auto minmax(62px, auto) 42px;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.15);
  border-left: 3px solid #38bdf8;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(16,27,44,.97), rgba(10,18,31,.97));
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.cafe-bar-order.is-waiting { border-left-color: #fbbf24; }
.cafe-bar-order.is-late { border-left-color: #fb7185; }

.cafe-bar-order-head {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 0 7px;
}

.cafe-bar-customer-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(103,232,249,.28);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.cafe-bar-order-head .cafe-bar-order-title {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.cafe-bar-table {
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
  color: #f8fafc;
  font-size: .9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-table i {
  color: #67e8f9;
  font-size: .67rem;
}

.cafe-bar-order-head .cafe-bar-person {
  flex-wrap: nowrap;
  max-width: 100%;
  gap: 4px;
  overflow: hidden;
  color: #71829a;
  font-size: .7rem;
}

.cafe-bar-person b {
  max-width: 110px;
  overflow: hidden;
  color: #b9c7d9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-person small {
  overflow: hidden;
  color: #6e9ab5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-lastname-toggle {
  min-height: 18px;
  padding: 0 5px;
  font-size: .59rem;
}

.cafe-bar-order-side {
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}

.cafe-bar-order-head .cafe-bar-order-side em {
  color: #a7f3d0;
  font-size: .82rem;
  line-height: 1;
}

.cafe-bar-age {
  gap: 4px;
  color: #7f91a8;
  font-size: .64rem;
  font-weight: 850;
  white-space: nowrap;
}

.is-waiting .cafe-bar-age { color: #fbbf24; }
.is-late .cafe-bar-age { color: #fb7185; }

.cafe-bar-items {
  gap: 5px;
  overflow: visible;
}

.cafe-bar-items .cafe-bar-item-icon {
  flex: 0 0 56px;
  max-width: 56px;
  grid-template-rows: 34px minmax(0, 1fr);
  gap: 2px;
  min-height: 58px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(5,12,23,.52);
}

.cafe-bar-items b {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.cafe-bar-items strong {
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  border-width: 1px;
  padding: 0 3px;
  font-size: .59rem;
}

.cafe-bar-items span {
  font-size: .57rem;
}

.cafe-bar-done {
  min-height: 42px;
  gap: 8px;
  border-radius: 11px;
  color: #052014;
  background: linear-gradient(135deg, #5eead4, #86efac);
  box-shadow: 0 5px 15px rgba(16,185,129,.12);
  font-size: .78rem;
}

.cafe-bar-done:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cafe-bar-done i {
  width: 24px;
  height: 24px;
  font-size: .67rem;
}

.cafe-bar-empty {
  grid-column: 1 / -1;
  min-height: calc(100dvh - 124px);
  border-radius: 16px;
  background: rgba(10,18,31,.55);
}

@media (min-width: 1500px) {
  .cafe-bar-orders { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
}

@media (max-width: 720px) {
  .cafe-bar-app {
    width: 100%;
    grid-template-rows: 60px auto minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .cafe-bar-head {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 13px;
  }

  .cafe-bar-logo,
  .cafe-bar-live,
  .cafe-bar-clock,
  .cafe-bar-toolbar strong span,
  .cafe-bar-toolbar button span,
  .cafe-bar-toolbar a span,
  .cafe-bar-section-head small {
    display: none;
  }

  .cafe-bar-head h1 { max-width: 33vw; font-size: .92rem; }
  .cafe-bar-head .cafe-kicker { font-size: .53rem; }
  .cafe-bar-head .cafe-bar-toolbar { gap: 4px; }

  .cafe-bar-toolbar strong,
  .cafe-bar-toolbar button,
  .cafe-bar-toolbar a {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 9px;
  }

  .cafe-bar-toolbar strong b { font-size: .9rem; }
  .cafe-bar-orders { grid-template-columns: 1fr; gap: 6px; }
  .cafe-bar-order { min-height: 0; }
}

/* Cafe panel QR test gallery. */
.cafe-qr-testbar {
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto;
  align-items: end;
  gap: 7px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #304154;
  border-radius: 13px;
  background: #111d2a;
}
.cafe-qr-testbar label { min-width: 0; display: grid; gap: 5px; }
.cafe-qr-testbar label span { color: #8191a5; font-size: .57rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cafe-qr-testbar input { min-width: 0; min-height: 39px; padding: 0 10px; border: 1px solid #3b5067; border-radius: 9px; color: #e9f4fb; background: #0b1521; font-size: .72rem; }
.cafe-qr-testbar > button { min-height: 39px; padding: 0 12px; border: 1px solid #277b6a; border-radius: 9px; color: #06271f; background: #6ee7b7; font-size: .68rem; font-weight: 950; }
.cafe-qr-testbar > small { grid-column: 1 / -1; color: #73859a; font-size: .56rem; }

.cafe-qr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(126px,1fr));
  gap: 7px;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #2d3b4c;
  border-radius: 14px;
  background: #0c1622;
}
.cafe-qr-card {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 5px 7px;
  border: 1px solid #34465a;
  border-radius: 12px;
  color: #eaf2f8;
  background: linear-gradient(145deg,#192737,#111c29);
}
.cafe-qr-card:hover { border-color: #55c7ae; background: #183b35; }
.cafe-qr-card > span { width: 112px; height: 112px; display: grid; place-items: center; padding: 4px; border-radius: 9px; background: #fff; box-sizing: border-box; }
.cafe-qr-card canvas,.cafe-qr-card img { width: 104px !important; height: 104px !important; display: block; }
.cafe-qr-card strong { max-width: 100%; overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-qr-card small { color: #76879a; font-size: .48rem; }

.cafe-qr-preview {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
}
.cafe-qr-preview[hidden] { display: none !important; }
.cafe-qr-preview-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1,6,12,.86); backdrop-filter: blur(7px); }
.cafe-qr-preview > section { position: relative; width: min(390px,100%); display: grid; justify-items: center; gap: 12px; padding: 12px; border: 1px solid #42536a; border-radius: 20px; color: #edf5fb; background: #111d2a; box-shadow: 0 25px 70px rgba(0,0,0,.55); }
.cafe-qr-preview > section > header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cafe-qr-preview > section > header small { color: #6f8298; font-size: .54rem; font-weight: 950; letter-spacing: .08em; }
.cafe-qr-preview > section > header h2 { margin: 2px 0 0; font-size: 1.15rem; }
.cafe-qr-preview > section > header button { width: 40px; height: 40px; border: 1px solid #42536a; border-radius: 11px; color: #e2ebf4; background: #26364a; }
.cafe-qr-preview-code { width: 316px; height: 316px; display: grid; place-items: center; padding: 8px; border-radius: 15px; background: #fff; box-sizing: border-box; }
.cafe-qr-preview-code canvas,.cafe-qr-preview-code img { width: 300px !important; height: 300px !important; display: block; }
.cafe-qr-preview > section > p { width: 100%; margin: 0; overflow-wrap: anywhere; color: #8da0b5; font-size: .61rem; text-align: center; }
.cafe-qr-preview > section > a { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border-radius: 11px; color: #05271e; background: #6ee7b7; font-size: .72rem; font-weight: 950; text-decoration: none; }

@media (max-width: 520px) {
  .cafe-qr-testbar { grid-template-columns: 1fr; }
  .cafe-qr-testbar > small { grid-column: 1; }
  .cafe-qr-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 6px; }
  .cafe-qr-preview-code { width: min(300px,82vw); height: min(300px,82vw); }
  .cafe-qr-preview-code canvas,.cafe-qr-preview-code img { width: min(284px,calc(82vw - 16px)) !important; height: min(284px,calc(82vw - 16px)) !important; }
}

/* Keep the waiter table entry visible on compact tablets and phones. */
@media (max-width: 820px) {
  .cafe-bar-body .cafe-bar-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cafe-bar-body .cafe-bar-controls .cafe-bar-section-head {
    grid-column: 1 / -1;
    display: flex;
    padding: 0;
  }
  .cafe-bar-body .cafe-bar-controls .cafe-bar-section-head > small { display: none; }
  .cafe-bar-view-switch {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Payment controls must keep their own tablet row after all legacy POS rules. */
.cafe-bar-body .cafe-bar-app {
  grid-template-rows: 68px 32px 0 minmax(0, 1fr);
}

.cafe-bar-body .cafe-bar-app.has-payment-requests {
  grid-template-rows: 68px 32px auto minmax(0, 1fr);
}

.cafe-bar-body .cafe-bar-payments {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.cafe-bar-body .cafe-bar-payment-list {
  min-height: 0;
}

.cafe-bar-body .cafe-bar-payment-actions > button {
  height: 42px;
  min-height: 42px;
  justify-content: center;
  padding: 0 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, opacity .16s ease;
}

.cafe-bar-body .cafe-bar-payment-actions > button:not(:disabled):active { transform: scale(.98); }

.cafe-bar-body .cafe-bar-payment-actions > button.is-primary {
  border-color: #79e7c4;
  background: linear-gradient(135deg, #5eead4, #86efac);
  box-shadow: 0 5px 14px rgba(50,180,135,.18);
}

.cafe-bar-body .cafe-bar-payment-actions > button:disabled,
.cafe-bar-body .cafe-bar-payment-actions > button.is-primary:disabled {
  border-color: #354154;
  color: #748296;
  background: #222d3a;
  box-shadow: none;
  opacity: 1;
  cursor: default;
}

.cafe-bar-body .cafe-bar-payment-item > div button {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

@media (max-width: 720px) {
  .cafe-bar-body .cafe-bar-app { grid-template-rows: 60px 28px 0 minmax(0,1fr); }
  .cafe-bar-body .cafe-bar-app.has-payment-requests { grid-template-rows: 60px 28px auto minmax(0,1fr); }
  .cafe-bar-body .cafe-bar-payment-actions > button { min-width: 0; padding: 0 8px; }
}

/* ===== SIMPLE WAITER PAYMENT CALL ===== */
.guest-payment-called,
.guest-waiter-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid rgba(251,191,36,.34);
  border-radius: 14px;
  color: #fff7d6;
  background: linear-gradient(135deg, rgba(120,73,12,.38), rgba(47,35,18,.72));
}

.guest-payment-called > i,
.guest-waiter-mode > i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #1b1402;
  background: #fbbf24;
}

.guest-payment-called > div,
.guest-waiter-mode > div { min-width: 0; display: grid; gap: 2px; }
.guest-payment-called strong,
.guest-waiter-mode strong { font-size: .77rem; }
.guest-payment-called span,
.guest-waiter-mode span { overflow: hidden; color: #d2bd81; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }

.guest-waiter-mode {
  border-color: rgba(74,222,128,.3);
  color: #edfff4;
  background: linear-gradient(135deg, rgba(30,103,72,.45), rgba(18,48,38,.72));
}
.guest-waiter-mode > i { color: #052014; background: #86efac; }
.guest-waiter-mode span { color: #9bd4b6; }
.guest-waiter-mode > button {
  min-height: 40px;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #052014;
  background: #86efac;
  font-size: .67rem;
  font-weight: 900;
  white-space: nowrap;
}

.guest-waiter-order-pay {
  width: 100%;
  min-height: 38px;
  margin-top: 7px;
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 10px;
  color: #bdf8d1;
  background: rgba(22,101,52,.2);
  font-size: .68rem;
  font-weight: 900;
}

.cafe-guest-body .cafe-order-icon-app .guest-call-waiter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cafe-guest-body .cafe-order-icon-app .guest-call-waiter-actions button {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  border-color: rgba(251,191,36,.32);
  color: #fff5cf;
  background: linear-gradient(145deg, #6f4b16, #503512);
  font-size: .65rem;
  line-height: 1.15;
}

.cafe-guest-body .cafe-order-icon-app .guest-call-waiter-actions button:last-child {
  border-color: rgba(94,234,212,.25);
  color: #d9fff8;
  background: linear-gradient(145deg, #245c55, #193f3b);
}

.cafe-guest-body .cafe-order-icon-app .guest-call-waiter-actions button:disabled {
  color: #a5b0bb;
  background: #27313c;
  opacity: .82;
}

.cafe-bar-app {
  grid-template-rows: 68px 32px auto minmax(0, 1fr);
}

.cafe-bar-head { grid-row: 1; }
.cafe-bar-controls { grid-row: 2; }
.cafe-bar-payments { grid-row: 3; }
.cafe-bar-orders { grid-row: 4; }

.cafe-bar-pay-count {
  border-color: rgba(251,191,36,.34) !important;
  color: #fff2b8 !important;
  background: rgba(120,73,12,.35) !important;
}

.cafe-bar-payments {
  max-height: min(36dvh, 290px);
  min-width: 0;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(251,191,36,.3);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(82,50,9,.5), rgba(17,25,37,.96) 38%);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.cafe-bar-payments[hidden] { display: none !important; }

.cafe-bar-payments > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 4px 7px;
}

.cafe-bar-payments > header > div { display: flex; align-items: center; gap: 8px; }
.cafe-bar-payments > header > div > i { color: #fbbf24; font-size: 1rem; }
.cafe-bar-payments > header span { display: grid; gap: 1px; }
.cafe-bar-payments > header strong { color: #fff4c2; font-size: .69rem; }
.cafe-bar-payments > header small { color: #aa9664; font-size: .55rem; }
.cafe-bar-payments > header > b {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #241702;
  background: #fbbf24;
  font-size: .7rem;
}

.cafe-bar-payment-list {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(370px, 1fr);
  gap: 7px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #6f5325 transparent;
}

.cafe-bar-payment-request {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 38px minmax(90px,1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 12px;
  background: #151d29;
}

.cafe-bar-payment-place {
  min-width: 92px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 10px;
  color: #241702;
  background: #fbbf24;
}
.cafe-bar-payment-place > i { font-size: .9rem; }
.cafe-bar-payment-place > span { display: grid; line-height: 1; }
.cafe-bar-payment-place small { font-size: .47rem; font-weight: 1000; letter-spacing: .08em; }
.cafe-bar-payment-place strong { margin-top: 3px; font-size: .82rem; }

.cafe-bar-payment-person { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; }
.cafe-bar-payment-person > strong { overflow: hidden; color: #f5f7fa; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-person > span { width: 100%; overflow: hidden; color: #8795a8; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-person .cafe-lastname-toggle { padding: 2px 5px; border: 0; border-radius: 5px; color: #aeb9c7; background: #283444; font-size: .52rem; }

.cafe-bar-payment-request > em { color: #fff0ad; font-size: .82rem; font-style: normal; font-weight: 1000; white-space: nowrap; }
.cafe-bar-payment-done {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #052014;
  background: linear-gradient(135deg, #5eead4, #86efac);
  font-size: .68rem;
  font-weight: 1000;
}

@media (max-width: 720px) {
  .cafe-bar-app { grid-template-rows: 60px 28px auto minmax(0, 1fr); }
  .cafe-bar-payments { grid-template-columns: 1fr; gap: 4px; padding: 5px; }
  .cafe-bar-payments > header { min-height: 28px; padding: 2px 5px; }
  .cafe-bar-payment-list { grid-auto-columns: minmax(330px, 92vw); }
  .cafe-bar-payment-request { grid-template-columns: auto 34px minmax(70px,1fr) auto; }
  .cafe-bar-payment-request .cafe-bar-customer-avatar { width: 34px; height: 34px; }
  .cafe-bar-payment-done { grid-column: 1 / -1; min-height: 36px; justify-content: center; }
  .cafe-guest-body .cafe-order-icon-app .guest-call-waiter-actions { grid-template-columns: 1fr; }
  .guest-waiter-mode { align-items: stretch; flex-wrap: wrap; }
  .guest-waiter-mode > div { flex: 1; }
  .guest-waiter-mode > button { width: 100%; margin: 0; }
}

/* Selective drink payment */
.cafe-bar-payment-list { grid-auto-columns: minmax(520px, 1fr); }

.cafe-bar-payment-request {
  display: block;
  padding: 7px;
}

.cafe-bar-payment-request-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 38px minmax(90px,1fr) auto;
  align-items: center;
  gap: 8px;
}

.cafe-bar-payment-request-head > em {
  color: #fff0ad;
  font-size: .86rem;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.cafe-bar-payment-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.cafe-bar-payment-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid #2d3949;
  border-radius: 10px;
  background: #101823;
}

.cafe-bar-payment-item.is-selected {
  border-color: rgba(94,234,212,.42);
  background: rgba(26,89,78,.3);
  box-shadow: inset 0 0 0 1px rgba(94,234,212,.06);
}

.cafe-bar-payment-item > img {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 9px;
  background: #253143;
  object-fit: contain;
}

.cafe-bar-payment-item > span { min-width: 0; display: grid; gap: 2px; }
.cafe-bar-payment-item > span strong { overflow: hidden; color: #edf2f7; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-item > span small { overflow: hidden; color: #7f90a5; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }

.cafe-bar-payment-item > div { display: flex; align-items: center; gap: 3px; }
.cafe-bar-payment-item > div button {
  width: 30px;
  height: 30px;
  border: 1px solid #405069;
  border-radius: 8px;
  color: #e7edf4;
  background: #263449;
  font-size: 1rem;
  font-weight: 900;
}
.cafe-bar-payment-item > div button:last-child { color: #052014; background: #86efac; border-color: #86efac; }
.cafe-bar-payment-item > div b { min-width: 31px; color: #fff; font-size: .77rem; text-align: center; font-variant-numeric: tabular-nums; }
.cafe-bar-payment-item > div b small { color: #7f90a5; font-size: .52rem; }

.cafe-bar-payment-actions {
  display: grid;
  grid-template-columns: minmax(90px,1fr) auto auto;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #293546;
}
.cafe-bar-payment-actions > div { display: grid; gap: 1px; }
.cafe-bar-payment-actions > div small { color: #7f8fa4; font-size: .52rem; text-transform: uppercase; }
.cafe-bar-payment-actions > div strong { color: #fff4bd; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cafe-bar-payment-actions > button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid #415069;
  border-radius: 9px;
  color: #dbe4ee;
  background: #263449;
  font-size: .62rem;
  font-weight: 900;
}
.cafe-bar-payment-actions > button.is-primary { border-color: #63dcb7; color: #052014; background: #86efac; }
.cafe-bar-payment-actions > button:disabled { opacity: .42; }

@media (max-width: 720px) {
  .cafe-bar-payment-list { grid-auto-columns: minmax(350px, 94vw); }
  .cafe-bar-payments { max-height: 42dvh; }
  .cafe-bar-payment-items { grid-template-columns: 1fr; }
  .cafe-bar-payment-actions { grid-template-columns: 1fr 1fr; }
  .cafe-bar-payment-actions > div { grid-column: 1 / -1; grid-row: 1; }
  .cafe-bar-payment-actions > button { justify-content: center; }
}

.guest-qr-pay-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid #344154;
  border-radius: 11px;
  background: #111a26;
}
.guest-qr-pay-item.is-selected { border-color: rgba(94,234,212,.48); background: rgba(27,91,81,.32); }
.guest-qr-pay-item > img { width: 38px; height: 38px; padding: 5px; border-radius: 9px; background: #263447; object-fit: contain; }
.guest-qr-pay-item > span { min-width: 0; display: grid; gap: 2px; }
.guest-qr-pay-item > span strong { overflow: hidden; color: #f1f5f9; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.guest-qr-pay-item > span small { overflow: hidden; color: #8291a4; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.guest-qr-pay-item > div { display: flex; align-items: center; gap: 3px; }
.guest-qr-pay-item > div button { width: 32px; height: 32px; border: 1px solid #46566d; border-radius: 8px; color: #fff; background: #29384d; font-size: 1rem; font-weight: 900; }
.guest-qr-pay-item > div button:last-child { border-color: #86efac; color: #052014; background: #86efac; }
.guest-qr-pay-item > div b { min-width: 30px; color: #fff; font-size: .78rem; text-align: center; }
.guest-qr-pay-item > div b small { color: #8190a4; font-size: .5rem; }

.guest-qr-payment-footer {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(94,234,212,.28);
  border-radius: 13px;
  background: rgba(13,21,31,.96);
  box-shadow: 0 -8px 20px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
}
.guest-qr-payment-footer > div { display: grid; gap: 1px; }
.guest-qr-payment-footer small { color: #8190a4; font-size: .56rem; text-transform: uppercase; }
.guest-qr-payment-footer strong { color: #fff; font-size: 1rem; }
.guest-qr-payment-footer > button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; color: #052014; background: #86efac; font-size: .68rem; font-weight: 1000; }
.guest-qr-payment-footer > button:disabled { opacity: .38; }

/* Compact bill totals on the guest screen. */
.cafe-guest-body .cafe-order-icon-app .guest-bill-summary {
  min-height: 0;
  gap: 5px;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-summary > div {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-summary span {
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .03em;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-summary strong {
  font-size: .8rem;
  line-height: 1;
}

/* Bill articles use the same compact icon-card language as ordering. */
.cafe-guest-body .cafe-order-icon-app .guest-bill-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-items:has(.guest-qr-pay-item) {
  grid-template-columns: 1fr;
}

.guest-bill-drink-box {
  min-width: 0;
  min-height: 90px;
  display: grid;
  grid-template-rows: 48px auto auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid #314055;
  border-radius: 12px;
  color: #edf4fa;
  background: linear-gradient(155deg, #182434, #101823);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  text-align: center;
}

.guest-bill-drink-box > span {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #8bd8db, #9ccbd7);
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-drink-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  border-radius: 15px;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 5px 12px rgba(34,211,238,.12);
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-drink-icon img {
  width: 42px;
  height: 42px;
  display: block;
  opacity: 1;
  visibility: visible;
  object-fit: contain;
}

.guest-bill-drink-box img { width: 32px; height: 32px; object-fit: contain; }

.guest-bill-drink-box > span b {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid #131d29;
  border-radius: 999px;
  color: #1d1602;
  background: #fbbf24;
  font-size: .62rem;
  font-weight: 1000;
}

.guest-bill-drink-box > strong {
  width: 100%;
  overflow: hidden;
  font-size: .66rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-bill-drink-box > small {
  width: 100%;
  overflow: hidden;
  color: #84a0b6;
  font-size: .54rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-payment-item,
.guest-qr-pay-item {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cafe-bar-payment-item.is-selected::after,
.guest-qr-pay-item.is-selected::after {
  content: "✓";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #101923;
  border-radius: 50%;
  color: #052014;
  background: #86efac;
  font-size: .58rem;
  font-weight: 1000;
  box-shadow: 0 3px 8px rgba(0,0,0,.28);
}

@media (min-width: 480px) {
  .cafe-guest-body .cafe-order-icon-app .guest-bill-items:not(:has(.guest-qr-pay-item)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cafe-guest-body .cafe-order-icon-app .guest-bill {
  grid-template-rows: auto minmax(0, 1fr) 46px;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions.guest-call-waiter-actions {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions.guest-call-waiter-actions button {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  min-width: 0;
  padding: 4px 7px;
  white-space: normal;
}

/* Keep guest bill orders directly below totals; never off-screen in a horizontal rail. */
.cafe-guest-body .cafe-order-icon-app .guest-bill-orders {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  align-self: stretch;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-order {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
  box-sizing: border-box;
}

/* Stable guest bill flow: notices/totals -> scrollable orders -> payment call buttons. */
.cafe-guest-body .cafe-order-icon-app .guest-bill {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  overflow: hidden;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-summary,
.cafe-guest-body .cafe-order-icon-app .guest-payment-called,
.cafe-guest-body .cafe-order-icon-app .guest-waiter-mode {
  flex: 0 0 auto;
  margin: 0;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-orders {
  flex: 1 1 auto;
  order: 20;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-summary { order: 10; }
.cafe-guest-body .cafe-order-icon-app .guest-payment-called,
.cafe-guest-body .cafe-order-icon-app .guest-waiter-mode { order: 5; }

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions.guest-call-waiter-actions,
.cafe-guest-body .cafe-order-icon-app .guest-qr-payment-footer {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 46px;
  order: 30;
  margin: 0;
}

/* One iOS-safe scroll owner inside the bill tab. */
.cafe-guest-body .cafe-order-icon-app .guest-tab-panel[data-guest-panel="bill"].is-active {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-panel.is-active > .guest-bill {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-orders {
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(103,232,249,.35) transparent;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-order,
.cafe-guest-body .cafe-order-icon-app .guest-bill-items,
.cafe-guest-body .cafe-order-icon-app .guest-bill-drink-box {
  touch-action: pan-y;
}

/* Final bill scroll model: the whole bill tab scrolls; no nested scroll areas. */
.cafe-guest-body .cafe-order-icon-app .guest-tab-panel[data-guest-panel="bill"].is-active {
  display: block;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-panel.is-active > .guest-bill {
  width: 100%;
  height: auto;
  min-height: 100%;
  max-height: none;
  display: flex;
  overflow: visible;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-orders {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
  touch-action: pan-y;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions.guest-call-waiter-actions,
.cafe-guest-body .cafe-order-icon-app .guest-qr-payment-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  box-shadow: 0 -8px 20px rgba(3,8,15,.42);
}

.cafe-guest-body .guest-bill-order.is-waiter-split .guest-bill-order-top {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 5px 8px;
}

.cafe-guest-body .guest-bill-order.is-waiter-split .guest-bill-order-top > button {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 1px solid #4b607a;
  border-radius: 9px;
  color: #dfeaf4;
  background: #2a3a50;
  font-size: .61rem;
  font-weight: 900;
}

.cafe-guest-body .guest-qr-payment-footer {
  grid-template-columns: minmax(76px,1fr) auto auto;
}

.cafe-guest-body .guest-qr-payment-footer > button {
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.cafe-guest-body .guest-qr-payment-footer > button:first-of-type {
  border: 1px solid #49617d;
  color: #dce8f4;
  background: #2b3c52;
}

@media (max-width: 390px) {
  .cafe-guest-body .guest-qr-payment-footer { grid-template-columns: 1fr 1fr; }
  .cafe-guest-body .guest-qr-payment-footer > div { grid-column: 1 / -1; }
}

/* Waiter QR table switcher. */
.waiter-table-switcher[hidden] { display: none !important; }

.waiter-table-switcher {
  position: sticky;
  z-index: 25;
  top: 0;
  display: grid;
  gap: 5px;
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: rgba(10,17,27,.97);
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}

.waiter-table-switcher > header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px;
}
.waiter-table-switcher > header > div { display: flex; align-items: center; gap: 7px; }
.waiter-table-switcher > header > div > i { color: #67e8f9; font-size: .8rem; }
.waiter-table-switcher > header span { display: grid; gap: 1px; }
.waiter-table-switcher > header strong { color: #edf4fa; font-size: .67rem; }
.waiter-table-switcher > header small { color: #76869a; font-size: .5rem; }
.waiter-table-switcher > header em { padding: 4px 7px; border-radius: 999px; color: #ffe8a3; background: #5e4213; font-size: .52rem; font-style: normal; font-weight: 900; }

.waiter-table-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.waiter-table-rail::-webkit-scrollbar { display: none; }

.waiter-table-chip {
  width: 122px;
  min-width: 122px;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid #344257;
  border-radius: 11px;
  color: #dfe7ef;
  background: #172231;
  text-align: left;
  scroll-snap-align: start;
}
.waiter-table-chip > span { min-width: 0; display: flex; align-items: center; gap: 5px; }
.waiter-table-chip > span i { color: #7890a8; font-size: .65rem; }
.waiter-table-chip > span strong { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-table-chip > b { overflow: hidden; color: #a7f3d0; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-table-chip > small { overflow: hidden; color: #73849a; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }

.waiter-table-chip.is-active { border-color: #55bfa4; background: #244d45; box-shadow: inset 0 0 0 1px rgba(134,239,172,.08); }
.waiter-table-chip.is-calling { border-color: #fbbf24; color: #fff7d6; background: linear-gradient(145deg,#674716,#422f14); box-shadow: 0 0 0 2px rgba(251,191,36,.08); }
.waiter-table-chip.is-calling > span i { color: #fbbf24; animation: waiter-call-ring 1.15s ease-in-out infinite; }
.waiter-table-chip.is-calling > b { color: #fff0ad; }
.waiter-table-chip.is-calling > small { color: #d1b875; }

@keyframes waiter-call-ring {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(12deg); }
  75% { transform: rotate(-12deg); }
}

/* Full tablet table overview. */
#barTablesBtn { position: relative; }
.cafe-bar-view-switch {
  min-width: 0;
  display: inline-grid !important;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  gap: 4px !important;
  padding: 3px;
  border: 1px solid #303b4b;
  border-radius: 11px;
  background: #111a26;
}
.cafe-bar-view-switch > span,
.cafe-bar-view-switch > button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8291a4;
  background: transparent;
  font: inherit;
  white-space: nowrap;
}
.cafe-bar-view-switch > span.is-active {
  border-color: #285a71;
  color: #d8f5ff;
  background: #173447;
}
.cafe-bar-view-switch > button:hover {
  border-color: #3c4a5d;
  color: #f1f5f9;
  background: #222e3e;
}
.cafe-bar-view-switch > button.has-calls {
  border-color: #d99d17;
  color: #2c1b00;
  background: linear-gradient(145deg,#ffd45f,#f5b91e);
  box-shadow: 0 0 0 3px rgba(251,191,36,.1), 0 5px 16px rgba(113,71,0,.2);
}
.cafe-bar-view-switch > button.has-calls i { color: #2c1b00; animation: waiter-call-ring 1.15s ease-in-out infinite; }
.cafe-bar-view-switch strong { font-size: .68rem; }
#barTableCallCount {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #101926;
  border-radius: 999px;
  color: #271800;
  background: #fbbf24;
  font-size: .55rem;
  font-weight: 1000;
  box-sizing: border-box;
}
#barTableCallCount[hidden] { display: none !important; }

.cafe-bar-tables-panel {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: stretch;
  align-items: stretch;
  justify-items: stretch;
  padding: 0;
}
.cafe-bar-tables-panel[hidden] { display: none !important; }
.cafe-bar-tables-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,7,13,.82); backdrop-filter: blur(7px); }

.cafe-bar-tables-panel > section {
  position: relative;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  height: 100dvh;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #eaf0f6;
  background: #101925;
  box-shadow: 0 30px 80px rgba(0,0,0,.58);
}

.cafe-bar-tables-panel > section > header {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(170px,1fr) auto 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #2d394a;
  background: #172230;
}
.cafe-bar-tables-panel > section > header small { color: #6f8197; font-size: .56rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.cafe-bar-tables-panel > section > header h2 { margin: 2px 0 0; font-size: 1rem; }
.cafe-bar-tables-panel > section > header h2 i { margin-right: 6px; color: #67e8f9; }
.cafe-bar-tables-panel > section > header > button { width: 40px; height: 40px; border: 1px solid #425067; border-radius: 11px; color: #d7e1eb; background: #263447; }

.cafe-bar-table-legend { display: flex; align-items: center; gap: 5px; }
.cafe-bar-table-legend span { padding: 5px 8px; border-radius: 999px; font-size: .54rem; font-weight: 900; }
.cafe-bar-table-legend .is-empty { color: #95a3b4; background: #273241; }
.cafe-bar-table-legend .is-open { color: #c9ebff; background: #1f5471; }
.cafe-bar-table-legend .is-calling { color: #271800; background: #fbbf24; }

.cafe-bar-tables-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  grid-auto-rows: 128px;
  align-content: start !important;
  align-items: stretch;
  justify-content: stretch;
  gap: 7px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #46576f transparent;
}

.cafe-bar-table-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 6px;
  padding: 7px;
  border: 1px solid #344154;
  border-radius: 12px;
  color: #e8eef5;
  background: linear-gradient(145deg,#1a2533,#121b27);
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}
.cafe-bar-table-card:active { transform: scale(.98); }
.cafe-bar-table-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cafe-bar-table-card > header > span { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 950; }
.cafe-bar-table-card > header > span i { color: #71839a; }
.cafe-bar-table-card > header > b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #aab7c6; background: #263447; font-size: .82rem; }

.cafe-bar-table-state { display: grid; align-content: center; gap: 3px; }
.cafe-bar-table-state strong { color: #edf4fa; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cafe-bar-table-state span { color: #77889d; font-size: .61rem; }
.cafe-bar-table-card footer { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; border-radius: 8px; color: #97a8bc; background: #222f40; font-size: .57rem; font-weight: 900; }

.cafe-bar-table-card.is-open { border-color: #2d7195; background: linear-gradient(145deg,#17384c,#122635); }
.cafe-bar-table-card.is-open > header > span i { color: #67d4ff; }
.cafe-bar-table-card.is-open > header > b { color: #d5f3ff; background: #205878; }
.cafe-bar-table-card.is-open footer { color: #d3f1ff; background: #20506a; }

.cafe-bar-table-card.is-calling {
  border-color: #fbbf24;
  background: linear-gradient(145deg,#5b4117,#2d261a);
  box-shadow: 0 0 0 2px rgba(251,191,36,.08), 0 10px 24px rgba(85,51,5,.25);
}
.cafe-bar-table-card.is-calling > header > span i { color: #fbbf24; animation: waiter-call-ring 1.1s ease-in-out infinite; }
.cafe-bar-table-card.is-calling > header > b { color: #2b1b00; background: #fbbf24; }
.cafe-bar-table-card.is-calling footer { color: #2b1b00; background: #fbbf24; }
.cafe-bar-table-caller { display: flex; align-items: center; gap: 7px; }
.cafe-bar-table-caller > i { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; color: #2b1b00; background: #fbbf24; }
.cafe-bar-table-caller > span { min-width: 0; display: grid; gap: 2px; }
.cafe-bar-table-caller small { color: #d5b96f; font-size: .48rem; font-weight: 950; letter-spacing: .06em; }
.cafe-bar-table-caller strong { overflow: hidden; color: #fff4c5; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-table-caller em { overflow: hidden; color: #d8c38a; font-size: .55rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .cafe-bar-tables-panel { padding: 0; }
  .cafe-bar-tables-panel > section { height: 100dvh; max-height: none; border-radius: 0; }
  .cafe-bar-tables-panel > section > header { min-height: 58px; grid-template-columns: minmax(0,1fr) 38px; padding: 7px 8px; }
  .cafe-bar-table-legend { display: none; }
  .cafe-bar-tables-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 128px; gap: 5px; padding: 6px; }
  .cafe-bar-table-card { padding: 6px; border-radius: 11px; }
}

/* Split-bill tablet mode: table -> orders -> individual drink units. */
.cafe-bar-payment-orders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.cafe-bar-payment-request.is-split {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  align-content: stretch;
  gap: 0;
  box-sizing: border-box;
}

.cafe-bar-payment-request.is-split > .cafe-bar-payment-request-head {
  grid-column: 1;
  grid-row: 1;
}

.cafe-bar-payment-request.is-split > .cafe-bar-payment-orders {
  grid-column: 1;
  grid-row: 2;
}

.cafe-bar-payment-request.is-split > .cafe-bar-payment-actions {
  grid-column: 1;
  grid-row: 3;
}

.cafe-bar-payment-request.is-split .cafe-bar-payment-orders {
  min-height: 0;
  overflow: auto;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #526276 transparent;
}

.cafe-bar-payment-request.is-split .cafe-bar-payment-actions {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  background: #151d29;
}

.cafe-bar-payment-order-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303d50;
  border-radius: 12px;
  background: #101923;
}

.cafe-bar-payment-order-group > header {
  min-height: 43px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-bottom: 1px solid #2b3747;
  background: #182332;
}

.cafe-bar-payment-order-group > header .cafe-bar-customer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.cafe-bar-payment-order-group > header > span { min-width: 0; display: grid; gap: 1px; }
.cafe-bar-payment-order-group > header strong { overflow: hidden; color: #eef3f8; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-order-group > header small { color: #8190a4; font-size: .53rem; }
.cafe-bar-payment-order-group > header em { color: #cbd8e5; font-size: .7rem; font-style: normal; font-weight: 950; white-space: nowrap; }

.cafe-bar-payment-order-group > header > button {
  grid-column: 1 / -1;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #43546c;
  border-radius: 8px;
  color: #d7e2ed;
  background: #28374b;
  font-size: .56rem;
  font-weight: 900;
}

.cafe-bar-payment-order-group.is-selected { border-color: rgba(104,223,186,.55); }
.cafe-bar-payment-order-group.is-selected > header > button { border-color: #68dfba; color: #062318; background: #86efac; }

.cafe-bar-payment-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 5px;
  padding: 6px;
}

.cafe-bar-payment-unit {
  position: relative;
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-rows: 43px auto auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px solid #314055;
  border-radius: 11px;
  color: #eaf0f6;
  background: linear-gradient(155deg, #1a2635, #111923);
  text-align: center;
  cursor: pointer;
}

.cafe-bar-payment-unit > span {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #8bd8db, #9ccbd7);
}

.cafe-bar-payment-unit img { width: 32px; height: 32px; object-fit: contain; }
.cafe-bar-payment-unit > span i {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #111923;
  border-radius: 50%;
  color: #052014;
  background: #86efac;
  font-size: .55rem;
}
.cafe-bar-payment-unit > strong { width: 100%; overflow: hidden; font-size: .59rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-unit > small { width: 100%; overflow: hidden; color: #8292a6; font-size: .49rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }

.cafe-bar-payment-unit.is-selected {
  border-color: #68dfba;
  background: linear-gradient(155deg, rgba(37,112,91,.62), rgba(18,55,47,.8));
  box-shadow: inset 0 0 0 1px rgba(134,239,172,.12), 0 4px 12px rgba(22,101,70,.16);
}

.cafe-bar-payment-actions.is-compact { margin-top: 7px; }
.cafe-bar-payment-actions [data-bar-split] { border-color: #6c8bab; color: #eef7ff; background: #344b65; }

.cafe-bar-payment-request.is-split .cafe-bar-payment-actions {
  grid-template-columns: minmax(90px, 1fr) auto auto auto;
}

.cafe-bar-payment-preview {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cafe-bar-payment-preview::-webkit-scrollbar { display: none; }
.cafe-bar-payment-preview > div:not(.cafe-empty) {
  width: 69px;
  min-width: 69px;
  min-height: 73px;
  display: grid;
  grid-template-rows: 37px auto auto;
  justify-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px 3px;
  border: 1px solid #314055;
  border-radius: 10px;
  color: #edf3f8;
  background: #111a25;
  text-align: center;
}
.cafe-bar-payment-preview > div > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#8bd8db,#9ccbd7); }
.cafe-bar-payment-preview img { width: 28px; height: 28px; object-fit: contain; }
.cafe-bar-payment-preview strong { width: 100%; overflow: hidden; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-bar-payment-preview small { color: #8191a5; font-size: .46rem; }
.cafe-bar-payment-preview > em { min-width: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff0ad; background: #293547; font-size: .7rem; font-style: normal; font-weight: 950; }

@media (max-width: 720px) {
  .cafe-bar-payment-orders { grid-template-columns: 1fr; }
  .cafe-bar-payment-units { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .cafe-bar-payment-unit { min-height: 82px; }
}

.cafe-guest-body .guest-bill-orders:has(.guest-bill-order.is-waiter-split) {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.cafe-guest-body .guest-bill-order.is-waiter-split {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-items:has(.guest-qr-pay-unit) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-qr-pay-unit {
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-rows: 42px auto auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px solid #344154;
  border-radius: 11px;
  color: #edf3f8;
  background: linear-gradient(155deg, #1a2635, #111923);
  text-align: center;
}

.guest-qr-pay-unit > span {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #8bd8db, #9ccbd7);
}
.guest-qr-pay-unit img { width: 31px; height: 31px; object-fit: contain; }
.guest-qr-pay-unit > span i { position: absolute; top: -5px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #111923; border-radius: 50%; color: #052014; background: #86efac; font-size: .54rem; }
.guest-qr-pay-unit > strong { width: 100%; overflow: hidden; font-size: .58rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.guest-qr-pay-unit > small { width: 100%; overflow: hidden; color: #8292a6; font-size: .48rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.guest-qr-pay-unit.is-selected { border-color: #68dfba; background: linear-gradient(155deg, rgba(37,112,91,.62), rgba(18,55,47,.8)); }

@media (max-width: 380px) {
  .cafe-guest-body .cafe-order-icon-app .guest-bill-items:has(.guest-qr-pay-unit) { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Bar POS: restrained professional graphite palette. */
.cafe-body.cafe-bar-body {
  color: #e7ebf1;
  background: #0c1119;
}

.cafe-bar-body .cafe-bar-app {
  background: linear-gradient(180deg, #0c1119 0%, #101620 100%);
}

.cafe-bar-body .cafe-bar-head {
  border: 1px solid #283140;
  background: #151c27;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.cafe-bar-body .cafe-bar-logo {
  border-color: #354154;
  color: #d4dae4;
  background: #222b39;
  box-shadow: none;
}

.cafe-bar-body .cafe-bar-head .cafe-kicker {
  color: #818c9d;
}

.cafe-bar-body .cafe-bar-head h1 {
  color: #f5f7fa;
}

.cafe-bar-body .cafe-bar-live,
.cafe-bar-body .cafe-bar-clock,
.cafe-bar-body .cafe-bar-toolbar strong,
.cafe-bar-body .cafe-bar-toolbar button,
.cafe-bar-body .cafe-bar-toolbar a {
  border-color: #303a49;
  color: #cbd2dc;
  background: #1c2431;
  box-shadow: none;
}

.cafe-bar-body .cafe-bar-live i {
  background: #4eaa78;
  box-shadow: 0 0 0 3px rgba(78,170,120,.14);
}

.cafe-bar-body .cafe-bar-toolbar strong b {
  color: #f0f3f7;
}

.cafe-bar-body .cafe-bar-toolbar button:hover,
.cafe-bar-body .cafe-bar-toolbar a:hover {
  border-color: #536279;
  color: #fff;
  background: #273243;
}

.cafe-bar-body .cafe-bar-section-head {
  color: #b2bccb;
}

.cafe-bar-body .cafe-bar-section-head i {
  color: #8091a8;
}

.cafe-bar-body .cafe-bar-section-head small {
  color: #697587;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order {
  border-color: #293342;
  border-left-color: #65758b;
  background: #171f2a;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
}

.cafe-bar-body .cafe-bar-order.is-fresh { border-left-color: #66819f; }
.cafe-bar-body .cafe-bar-order.is-waiting { border-left-color: #b38b45; }
.cafe-bar-body .cafe-bar-order.is-late { border-left-color: #b65f67; }

.cafe-bar-body .cafe-bar-order-head {
  border-bottom-color: #2b3543;
}

.cafe-bar-body .cafe-bar-customer-avatar {
  border-color: #3b485a;
  color: #f1f4f8;
  background: #303b4b;
  box-shadow: none;
}

.cafe-bar-body .cafe-bar-table,
.cafe-bar-body .cafe-bar-person b {
  color: #edf1f6;
}

.cafe-bar-body .cafe-bar-table i,
.cafe-bar-body .cafe-bar-person small {
  color: #8f9caf;
}

.cafe-bar-body .cafe-lastname-toggle {
  border-color: #3c4859;
  color: #b8c1ce;
  background: #242e3c;
}

.cafe-bar-body .cafe-lastname-toggle.is-revealed {
  color: #f1f4f8;
  background: #354255;
}

.cafe-bar-body .cafe-bar-order-head .cafe-bar-order-side em {
  color: #d9e0e9;
}

.cafe-bar-body .cafe-bar-age {
  color: #7f8b9c;
}

.cafe-bar-body .is-waiting .cafe-bar-age { color: #c39a55; }
.cafe-bar-body .is-late .cafe-bar-age { color: #c97178; }

.cafe-bar-body .cafe-bar-items .cafe-bar-item-icon {
  border-color: #2c3746;
  background: #111821;
}

.cafe-bar-body .cafe-bar-items b {
  background: #263140;
}

.cafe-bar-body .cafe-bar-items b img {
  filter: saturate(.72) brightness(.9) contrast(.96);
}

.cafe-bar-body .cafe-bar-items strong {
  border-color: #171f2a;
  color: #eef2f6;
  background: #526175;
}

.cafe-bar-body .cafe-bar-items span {
  color: #c7cfda;
}

.cafe-bar-body .cafe-bar-done {
  border: 1px solid #4b956d;
  color: #f4fff8;
  background: #397b59;
  box-shadow: none;
}

.cafe-bar-body .cafe-bar-done:hover {
  border-color: #65ad83;
  background: #438c66;
  filter: none;
}

.cafe-bar-body .cafe-bar-done i {
  background: rgba(0,0,0,.14);
}

.cafe-bar-body .cafe-bar-empty {
  border-color: #303a49;
  color: #8792a2;
  background: #141b25;
}

.cafe-bar-body .cafe-bar-empty i { color: #6f927f; }
.cafe-bar-body .cafe-bar-empty strong { color: #e9edf3; }

/* Bar POS: show complete labels instead of cutting them with ellipsis. */
.cafe-bar-body .cafe-bar-orders .cafe-bar-order {
  --card-accent: #587895;
  --card-glow: rgba(71,116,153,.24);
  --card-border: rgba(74,139,190,.82);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-rows: auto minmax(78px, auto) 48px;
  border: 1px solid transparent;
  border-left-width: 1px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, var(--card-glow) 0, transparent 42%) padding-box,
    linear-gradient(145deg, #1c1d24 0%, #17181e 62%, #121318 100%) padding-box,
    linear-gradient(225deg, var(--card-border) 0%, rgba(91,101,116,.32) 34%, rgba(255,255,255,.055) 68%, rgba(255,255,255,.025) 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 12px 26px rgba(0,0,0,.25);
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order.is-fresh {
  --card-accent: #19b99b;
  --card-glow: rgba(18,175,145,.25);
  --card-border: rgba(27,190,157,.88);
  border-left-color: transparent;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order.is-waiting {
  --card-accent: #d1a43d;
  --card-glow: rgba(209,164,61,.23);
  --card-border: rgba(221,174,62,.88);
  border-left-color: transparent;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order.is-late {
  --card-accent: #cf5559;
  --card-glow: rgba(207,73,79,.22);
  --card-border: rgba(215,82,88,.86);
  border-left-color: transparent;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 46%;
  height: 46%;
  border-top: 1px solid color-mix(in srgb, var(--card-accent) 64%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--card-accent) 64%, transparent);
  border-radius: 0 20px 0 100%;
  opacity: .48;
  pointer-events: none;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order > * {
  position: relative;
  z-index: 1;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order-head {
  border-bottom-color: rgba(148,163,184,.14);
}

.cafe-bar-body .cafe-bar-order .cafe-bar-items .cafe-bar-item-icon {
  border-color: rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(9,11,16,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cafe-bar-body .cafe-bar-order .cafe-bar-done {
  border-color: rgba(91,163,123,.48);
  border-radius: 12px;
  background: rgba(48,116,78,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.cafe-bar-body .cafe-bar-order .cafe-bar-done:hover {
  border-color: rgba(112,190,147,.68);
  background: rgba(57,135,91,.9);
}

.cafe-bar-body .cafe-bar-order-id {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  color: #98a4b5;
  background: rgba(7,9,13,.34);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.cafe-bar-body .cafe-bar-order-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148,163,184,.13);
}

.cafe-bar-body .cafe-bar-order-footer > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.cafe-bar-body .cafe-bar-order-footer small {
  color: #778396;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.cafe-bar-body .cafe-bar-order-footer strong {
  color: #f7f8fa;
  font-size: .88rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.cafe-bar-body .cafe-bar-order-footer .cafe-bar-done {
  flex: 0 0 116px;
  width: 116px;
  min-height: 38px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: .75rem;
}

.cafe-bar-body .cafe-bar-order-footer .cafe-bar-done i {
  width: 22px;
  height: 22px;
  font-size: .62rem;
}

.cafe-body.cafe-bar-body {
  color: #f1f5f9;
  background: #0b1018;
}

.cafe-bar-body .cafe-bar-app {
  gap: 10px;
  padding: 10px;
  background: #0b1018;
}

.cafe-bar-body .cafe-bar-head {
  min-height: 70px;
  padding: 10px 12px;
  border-color: #344155;
  border-radius: 14px;
  background: #17202d;
}

.cafe-bar-body .cafe-bar-logo {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-color: #43526a;
  color: #e2e8f0;
  background: #273449;
}

.cafe-bar-body .cafe-bar-head h1 {
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  font-weight: 850;
}

.cafe-bar-body .cafe-bar-live,
.cafe-bar-body .cafe-bar-clock,
.cafe-bar-body .cafe-bar-toolbar strong,
.cafe-bar-body .cafe-bar-toolbar button,
.cafe-bar-body .cafe-bar-toolbar a {
  min-height: 42px;
  border-color: #3a475b;
  border-radius: 9px;
  color: #d6dde7;
  background: #222d3d;
}

.cafe-bar-body .cafe-bar-toolbar strong {
  padding-inline: 14px;
}

.cafe-bar-body .cafe-bar-toolbar strong b {
  color: #fff;
  font-size: 1.18rem;
}

.cafe-bar-body .cafe-bar-section-head {
  padding-inline: 5px;
  color: #d6dde7;
}

.cafe-bar-body .cafe-bar-section-head strong {
  font-size: .84rem;
}

.cafe-bar-body .cafe-bar-orders {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border: 1px solid #292c35;
  border-radius: 22px;
  background: #202129;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cafe-bar-body .cafe-bar-order {
  align-self: stretch;
  height: 100%;
  grid-template-rows: auto minmax(78px, auto) 46px;
  gap: 9px;
  padding: 11px;
  border-color: #354154;
  border-left-width: 4px;
  border-radius: 13px;
  background: #182230;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order {
  align-self: stretch;
  height: 100%;
  grid-template-rows: max-content minmax(78px, 1fr) 48px;
  align-content: stretch;
  box-sizing: border-box;
}

.cafe-bar-body .cafe-bar-orders .cafe-bar-order-head {
  align-self: start;
  height: auto;
  min-height: 0;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-items {
  align-content: flex-start;
  align-self: stretch;
  min-height: 78px;
  overflow: visible;
  padding-bottom: 2px;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-item-icon {
  height: auto;
  min-height: 76px;
  overflow: visible;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-item-icon b {
  flex-shrink: 0;
  overflow: hidden;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-items .cafe-bar-item-icon strong {
  z-index: 4;
  top: -5px;
  right: -5px;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 3px solid #151820;
  border-radius: 999px;
  color: #17130a;
  background: #f4c34e;
  box-shadow: 0 4px 12px rgba(0,0,0,.42), 0 0 0 1px rgba(244,195,78,.24);
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
  line-height: 1;
}

.cafe-bar-body .cafe-bar-order-head {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom-color: #344052;
}

.cafe-bar-body .cafe-bar-customer-avatar {
  width: 44px;
  height: 44px;
  border-color: #506078;
  border-radius: 10px;
  background: #344258;
}

.cafe-bar-body .cafe-bar-order-head .cafe-bar-order-title {
  gap: 4px;
}

.cafe-bar-body .cafe-bar-table {
  gap: 7px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

.cafe-bar-body .cafe-bar-table i {
  color: #91a4bd;
}

.cafe-bar-body .cafe-bar-order-head .cafe-bar-person {
  gap: 5px;
  color: #aab5c4;
  font-size: .76rem;
}

.cafe-bar-body .cafe-bar-person b {
  color: #dce3ec;
}

.cafe-bar-body .cafe-bar-order-head .cafe-bar-order-side em {
  color: #fff;
  font-size: .94rem;
  font-weight: 950;
}

.cafe-bar-body .cafe-bar-age {
  font-size: .69rem;
}

.cafe-bar-body .cafe-bar-items {
  align-items: flex-start;
  gap: 7px;
}

.cafe-bar-body .cafe-bar-items .cafe-bar-item-icon {
  flex-basis: 76px;
  max-width: 84px;
  grid-template-rows: 42px auto;
  gap: 4px;
  min-height: 76px;
  padding: 6px 5px;
  border-color: #364357;
  border-radius: 10px;
  background: #111924;
}

.cafe-bar-body .cafe-bar-items b {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #29374a;
}

.cafe-bar-body .cafe-bar-items strong {
  top: 3px;
  right: 3px;
  min-width: 21px;
  height: 21px;
  border-color: #182230;
  color: #fff;
  background: #60738d;
  font-size: .66rem;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-items span {
  color: #e2e8f0;
  font-size: .69rem;
  line-height: 1.15;
  font-weight: 800;
}

.cafe-bar-body .cafe-bar-done {
  min-height: 46px;
  border-color: #4b8b68;
  border-radius: 9px;
  color: #fff;
  background: #376e51;
  font-size: .84rem;
  font-weight: 900;
}

.cafe-bar-body .cafe-bar-done i {
  width: 26px;
  height: 26px;
}

@media (max-width: 720px) {
  .cafe-bar-body .cafe-bar-app {
    gap: 7px;
    padding: 7px;
  }

  .cafe-bar-body .cafe-bar-head {
    min-height: 58px;
  }

  .cafe-bar-body .cafe-bar-orders {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 7px;
    border-radius: 16px;
  }

  .cafe-bar-body .cafe-bar-order {
    padding: 10px;
  }
}

.cafe-bar-body .cafe-bar-app {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.cafe-bar-head h1 {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.08;
}

.cafe-bar-table {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.12;
}

.cafe-bar-order-head .cafe-bar-person {
  flex-wrap: wrap;
  overflow: visible;
  line-height: 1.18;
}

.cafe-bar-person b,
.cafe-bar-person small {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cafe-bar-items .cafe-bar-item-icon {
  flex-basis: 64px;
  max-width: 74px;
  grid-template-rows: 34px auto;
  min-height: 64px;
}

.cafe-bar-order .cafe-bar-items span {
  display: -webkit-box;
  width: 100%;
  overflow: visible;
  font-size: .59rem;
  line-height: 1.08;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: unset;
}

.cafe-bar-done span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 720px) {
  .cafe-bar-body .cafe-bar-app {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .cafe-bar-head h1 {
    max-width: 34vw;
    font-size: .84rem;
  }

  .cafe-bar-items .cafe-bar-item-icon {
    flex-basis: 62px;
  }
}

/* Bar POS live controls, filters and reversible completion. */
.cafe-bar-body .cafe-bar-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.5fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid #2c3441;
  border-radius: 13px;
  background: #151c26;
}

.cafe-bar-body .cafe-bar-controls .cafe-bar-section-head {
  min-width: 0;
  padding: 0 5px;
}

.cafe-bar-body .cafe-bar-controls .cafe-bar-section-head small {
  overflow: hidden;
  color: #788597;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 5px;
}

.cafe-bar-filters button,
.cafe-bar-sound {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #303a49;
  border-radius: 9px;
  color: #9eabba;
  background: #1c2532;
  font-size: .7rem;
  font-weight: 900;
  cursor: pointer;
}

.cafe-bar-filters button:hover,
.cafe-bar-sound:hover {
  border-color: #46556a;
  color: #eef2f7;
}

.cafe-bar-filters button.is-active {
  border-color: #66788f;
  color: #fff;
  background: #344257;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.cafe-bar-filters b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #dce4ee;
  background: rgba(3,8,15,.35);
  font-size: .61rem;
}

.cafe-bar-sound {
  min-width: 96px;
}

.cafe-bar-sound.is-off {
  color: #788496;
  background: #171e28;
}

.cafe-bar-body .cafe-bar-live.is-syncing i {
  background: #d1a43d;
  box-shadow: 0 0 0 3px rgba(209,164,61,.13);
}

.cafe-bar-body .cafe-bar-live.is-offline {
  color: #d78689;
  border-color: rgba(207,85,89,.35);
}

.cafe-bar-body .cafe-bar-live.is-offline i {
  background: #cf5559;
  box-shadow: 0 0 0 3px rgba(207,85,89,.13);
}

.cafe-bar-body .cafe-bar-order.is-new-arrival {
  animation: cafe-new-order 1.1s ease-out both;
}

@keyframes cafe-new-order {
  0% { opacity: .2; transform: translateY(-10px) scale(.975); filter: brightness(1.32); }
  55% { opacity: 1; transform: translateY(0) scale(1.008); }
  100% { transform: none; filter: none; }
}

.cafe-bar-undo {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(460px, calc(100% - 24px));
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 9px 10px 9px 13px;
  border: 1px solid #3d4b5f;
  border-radius: 14px;
  color: #dce3ec;
  background: #202a38;
  box-shadow: 0 18px 48px rgba(0,0,0,.48);
  transform: translateX(-50%);
}

.cafe-bar-undo[hidden] { display: none; }
.cafe-bar-undo > i { color: #63b185; }
.cafe-bar-undo span { font-size: .76rem; }
.cafe-bar-undo strong { color: #fff; }

.cafe-bar-undo button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #5d718a;
  border-radius: 9px;
  color: #fff;
  background: #36475d;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.cafe-bar-undo em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #63b185;
  transform-origin: left;
  animation: cafe-undo-time 7s linear forwards;
}

@keyframes cafe-undo-time { to { transform: scaleX(0); } }

@media (max-width: 820px) {
  .cafe-bar-body .cafe-bar-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
  }

  .cafe-bar-body .cafe-bar-controls .cafe-bar-section-head { display: none; }
  .cafe-bar-filters { grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 4px; }
  .cafe-bar-filters button { min-height: 34px; gap: 4px; padding: 0 6px; font-size: .64rem; }
  .cafe-bar-sound { min-width: 38px; min-height: 34px; padding: 0 9px; }
  .cafe-bar-sound span { display: none; }
}

@media (max-width: 430px) {
  .cafe-bar-filters button { font-size: .59rem; }
  .cafe-bar-filters b { min-width: 17px; height: 17px; padding: 0 3px; font-size: .55rem; }
  .cafe-bar-undo { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cafe-bar-undo span { font-size: .68rem; }
}

/* ===== HOOKAH FLAVOR PICKER ===== */
/* ===== CAFE MANAGEMENT / TABLET POS VISUAL SYSTEM ===== */
.cafe-body.cafe-waiter-body {
  color: #e7ebf1;
  background: #0b1018;
}

.cafe-body.cafe-waiter-body .cafe-app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px;
}

.cafe-panel-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cafe-panel-brand > div { min-width: 0; }

.cafe-panel-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid #40506a;
  border-radius: 13px;
  color: #dbe4ef;
  background: #263347;
  font-size: 1rem;
}

.cafe-waiter-body .cafe-topbar {
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid #2f3948;
  border-radius: 15px;
  background: #151d29;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  backdrop-filter: none;
}

.cafe-waiter-body .cafe-topbar h1 {
  max-width: 42vw;
  overflow: hidden;
  color: #f5f7fa;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-waiter-body .cafe-kicker {
  color: #8190a4;
  font-size: .6rem;
  letter-spacing: .13em;
}

.cafe-waiter-body .cafe-top-actions { gap: 7px; }

.cafe-waiter-body .cafe-top-actions a {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #354256;
  border-radius: 10px;
  color: #d7dee8;
  background: #202a38;
  box-shadow: none;
  font-size: .75rem;
}

.cafe-waiter-body .cafe-top-actions a:first-child {
  border-color: #467d70;
  color: #f2fff9;
  background: #315f51;
}

.cafe-waiter-body .cafe-section-tabs {
  gap: 5px;
  margin-top: 9px;
  padding: 6px;
  border-color: #293342;
  border-radius: 13px;
  background: #131a24;
}

.cafe-waiter-body .cafe-section-tabs button {
  min-height: 36px;
  gap: 6px;
  padding: 0 11px;
  border-color: #303b4b;
  border-radius: 9px;
  color: #9fabbc;
  background: #1b2431;
  font-size: .7rem;
}

.cafe-waiter-body .cafe-section-tabs button.is-active {
  border-color: #63758d;
  color: #fff;
  background: #344258;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.cafe-waiter-body .cafe-panel { margin-top: 9px; }

.cafe-waiter-body .cafe-waiter-grid,
.cafe-waiter-body .cafe-waiter-grid-compact {
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
  gap: 10px;
  margin-top: 0;
}

.cafe-waiter-body .cafe-card {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #171f2b, #111822) padding-box,
    linear-gradient(225deg, rgba(72,110,143,.55), rgba(65,77,95,.22) 42%, rgba(255,255,255,.035)) border-box;
  box-shadow: 0 7px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
}

.cafe-waiter-body .cafe-card-head {
  min-height: 58px;
  padding: 11px 12px;
  border-bottom-color: #2c3645;
}

.cafe-waiter-body .cafe-card h2 {
  color: #f1f4f8;
  font-size: .95rem;
  letter-spacing: -.015em;
}

.cafe-waiter-body .cafe-form,
.cafe-waiter-body .cafe-inline-form {
  gap: 8px;
  padding: 11px 12px;
}

.cafe-waiter-body .cafe-form input,
.cafe-waiter-body .cafe-form select,
.cafe-waiter-body .cafe-inline-form input,
.cafe-waiter-body .cafe-drink-row input,
.cafe-waiter-body .cafe-table-row input {
  height: 40px;
  border-color: #344154;
  border-radius: 10px;
  color: #edf2f7;
  background: #0d141f;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}

.cafe-waiter-body .cafe-form input:focus,
.cafe-waiter-body .cafe-form select:focus,
.cafe-waiter-body .cafe-inline-form input:focus,
.cafe-waiter-body .cafe-drink-row input:focus,
.cafe-waiter-body .cafe-table-row input:focus {
  border-color: #60758f;
  outline: 2px solid rgba(96,117,143,.16);
}

.cafe-waiter-body .cafe-form button,
.cafe-waiter-body .cafe-inline-form button,
.cafe-waiter-body .cafe-mini-btn,
.cafe-waiter-body .cafe-drink-row button,
.cafe-waiter-body .cafe-table-row a,
.cafe-waiter-body .cafe-table-row button,
.cafe-waiter-body .cafe-order-actions button {
  min-height: 38px;
  border: 1px solid #46566d;
  border-radius: 9px;
  color: #e6ebf2;
  background: #2a3749;
  box-shadow: none;
  font-size: .72rem;
}

.cafe-waiter-body .cafe-form > button[type="submit"],
.cafe-waiter-body .cafe-inline-form > button[type="submit"] {
  border-color: #4b856b;
  color: #f4fff8;
  background: #376e51;
}

.cafe-waiter-body .cafe-form-muted {
  border-top-color: #2c3645;
  background: rgba(7,11,17,.22);
}

.cafe-waiter-body .cafe-table-list,
.cafe-waiter-body .cafe-drink-list,
.cafe-waiter-body .cafe-order-list,
.cafe-waiter-body .cafe-cafe-list,
.cafe-waiter-body .cafe-stock-log-list,
.cafe-waiter-body .cafe-bill-list {
  gap: 7px;
  padding: 10px;
}

.cafe-waiter-body .cafe-table-row,
.cafe-waiter-body .cafe-order,
.cafe-waiter-body .cafe-drink-row,
.cafe-waiter-body .cafe-cafe-row,
.cafe-waiter-body .cafe-stock-log-row,
.cafe-waiter-body .cafe-bill-card {
  border-color: #303b4b;
  border-radius: 12px;
  background: #151e2a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.cafe-waiter-body .cafe-cafe-row {
  min-height: 54px;
  padding: 9px 11px;
}

.cafe-waiter-body .cafe-cafe-row.is-active {
  border-color: #54768a;
  background: linear-gradient(135deg, rgba(36,99,116,.32), #192532);
}

.cafe-waiter-body .cafe-package-grid { gap: 6px; }
.cafe-waiter-body .cafe-package-grid button {
  min-height: 49px;
  border-color: #354154;
  border-radius: 10px;
  color: #cdd5e0;
  background: #1b2532;
}
.cafe-waiter-body .cafe-package-grid button.is-active {
  border-color: #63758d;
  color: #fff;
  background: #344258;
}
.cafe-waiter-body .cafe-package-grid button.is-active small { color: #c7d2e0; }

.cafe-waiter-body .cafe-stock-total {
  border-color: #42516a;
  border-radius: 10px;
  color: #c3ccd8;
  background: #1b2635;
}
.cafe-waiter-body .cafe-stock-total strong { color: #fff; }

.cafe-waiter-body .cafe-bill-card { padding: 10px; }
.cafe-waiter-body .cafe-bill-head em { color: #dce3ec; }
.cafe-waiter-body .cafe-bill-order-row { border-color: #303b4b; border-radius: 10px; background: #101721; }
.cafe-waiter-body .cafe-bill-order-row button,
.cafe-waiter-body .cafe-bill-pay-all { border: 1px solid #4b856b; border-radius: 9px; color: #fff; background: #376e51; }

@media (max-width: 820px) {
  .cafe-body.cafe-waiter-body .cafe-app { padding: 7px; }
  .cafe-waiter-body .cafe-topbar { min-height: 62px; align-items: center; flex-direction: row; padding: 7px 8px; }
  .cafe-panel-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .cafe-waiter-body .cafe-topbar h1 { max-width: 36vw; font-size: .95rem; }
  .cafe-waiter-body .cafe-top-actions a { min-height: 38px; padding: 0 10px; }
  .cafe-waiter-body .cafe-top-actions a { font-size: 0; }
  .cafe-waiter-body .cafe-top-actions a i { font-size: .9rem; }
  .cafe-waiter-body .cafe-waiter-grid,
  .cafe-waiter-body .cafe-waiter-grid-compact { grid-template-columns: 1fr; }
  .cafe-waiter-body .cafe-section-tabs { margin-top: 7px; }
  .cafe-waiter-body .cafe-section-tabs button { min-height: 34px; }
}

@media (max-width: 520px) {
  .cafe-panel-logo { display: none; }
  .cafe-waiter-body .cafe-topbar h1 { max-width: 48vw; }
  .cafe-waiter-body .cafe-card { border-radius: 13px; }
  .cafe-waiter-body .cafe-card-head { min-height: 52px; padding: 9px 10px; }
}

.cafe-venue-profile { align-content: start; }
.cafe-venue-icon { color: #67e8f9; font-size: 1.15rem; }

.cafe-owner-profile,
.cafe-bar-owner-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 15px;
  background: rgba(8,145,178,.1);
}

.cafe-owner-profile img,
.cafe-bar-owner-profile img,
.cafe-staff-row > img,
.cafe-staff-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #43526a;
  border-radius: 13px;
  background: #2a3749;
  object-fit: cover;
}

.cafe-staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cafe-owner-profile > div,
.cafe-bar-owner-profile > div { display: grid; gap: 2px; min-width: 0; }
.cafe-owner-profile small,
.cafe-bar-owner-profile small { color: #67e8f9; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.cafe-owner-profile strong,
.cafe-bar-owner-profile strong { color: #f8fafc; }
.cafe-owner-profile span,
.cafe-bar-owner-profile span { color: #8fa0b5; font-size: .72rem; }

.cafe-venue-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.cafe-venue-stats span { padding: 9px; border: 1px solid #303a49; border-radius: 11px; color: #9eabba; background: #192230; font-size: .72rem; }
.cafe-venue-stats b { color: #fff; font-size: 1rem; }

.cafe-staff-list { display: grid; gap: 6px; margin-top: 10px; }
.cafe-staff-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 7px; border: 1px solid #303a49; border-radius: 12px; background: #18212e; }
.cafe-staff-row > img,
.cafe-staff-row .cafe-staff-avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
.cafe-staff-row > div:not(.cafe-staff-avatar) { display: grid; min-width: 0; }
.cafe-staff-row strong { overflow: hidden; color: #eef2f7; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.cafe-staff-row span { color: #7f8da1; font-size: .66rem; }
.cafe-staff-row em { padding: 5px 8px; border-radius: 999px; color: #cbd5e1; background: #29364a; font-size: .61rem; font-style: normal; font-weight: 900; }
.cafe-staff-row em.is-owner { color: #10231b; background: #86efac; }
.cafe-staff-row button { width: 32px; height: 32px; border: 1px solid rgba(251,113,133,.25); border-radius: 9px; color: #fb7185; background: rgba(127,29,29,.18); }

/* ===== CAFE TABLET SHELL V2 ===== */
@media (min-width: 721px) {
  .cafe-body.cafe-waiter-body {
    min-height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(circle at 12% 5%, rgba(47, 110, 104, .13), transparent 28%),
      #080d14;
  }

  .cafe-body.cafe-waiter-body .cafe-app {
    height: 100dvh;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    overflow: hidden;
  }

  .cafe-waiter-body .cafe-topbar {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .cafe-waiter-body .cafe-section-tabs {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #2a3545;
    border-radius: 18px;
    background: linear-gradient(180deg, #151e2a, #0e151f);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    scrollbar-width: none;
  }

  .cafe-waiter-body .cafe-section-tabs::-webkit-scrollbar { display: none; }

  .cafe-waiter-body .cafe-section-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    flex: 0 0 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px 3px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #8290a3;
    background: transparent;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .01em;
  }

  .cafe-waiter-body .cafe-section-tabs button i {
    font-size: 1.1rem;
    transition: transform .18s ease;
  }

  .cafe-waiter-body .cafe-section-tabs button:hover {
    color: #dbe4ee;
    background: #202b3a;
  }

  .cafe-waiter-body .cafe-section-tabs button.is-active {
    position: relative;
    border-color: rgba(88, 190, 158, .38);
    color: #f5fffb;
    background: linear-gradient(145deg, #326c5b, #244a43);
    box-shadow: 0 7px 16px rgba(16, 68, 55, .28), inset 0 1px rgba(255,255,255,.1);
  }

  .cafe-waiter-body .cafe-section-tabs button.is-active::before {
    content: "";
    position: absolute;
    left: -8px;
    width: 3px;
    height: 28px;
    border-radius: 0 5px 5px 0;
    background: #67e8bd;
    box-shadow: 0 0 12px rgba(103,232,189,.6);
  }

  .cafe-waiter-body .cafe-section-tabs button.is-active i { transform: translateY(-1px); }

  .cafe-waiter-body .cafe-panel {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 1px 3px 8px 1px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #35455b transparent;
    scrollbar-width: thin;
  }

  .cafe-waiter-body .cafe-panel:not(.is-active) { display: none; }
  .cafe-waiter-body .cafe-panel.is-active { display: block; }

  .cafe-waiter-body .cafe-waiter-grid,
  .cafe-waiter-body .cafe-waiter-grid-compact {
    min-height: 100%;
    align-items: start;
  }

  .cafe-waiter-body .cafe-card {
    overflow: hidden;
    border-radius: 18px;
  }
}

.cafe-terminal-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 11px;
  border: 1px solid #2c394a;
  border-radius: 12px;
  color: #8492a5;
  background: #101822;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}

.cafe-terminal-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cafe-terminal-status span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.1), 0 0 10px rgba(74,222,128,.45);
}

.cafe-terminal-status time {
  color: #eef5f8;
  font-size: .82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) and (min-width: 721px) {
  .cafe-terminal-status span { display: none; }
  .cafe-terminal-status { padding-inline: 10px; }
  .cafe-waiter-body .cafe-top-actions a { padding-inline: 10px; font-size: 0; }
  .cafe-waiter-body .cafe-top-actions a i { font-size: .95rem; }
}

@media (max-width: 720px) {
  .cafe-terminal-status { display: none; }

  .cafe-body.cafe-waiter-body .cafe-app {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .cafe-waiter-body .cafe-section-tabs {
    position: fixed;
    z-index: 120;
    right: 7px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    left: 7px;
    height: 62px;
    margin: 0;
    padding: 6px;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #334155;
    border-radius: 17px;
    background: rgba(14, 21, 31, .96);
    box-shadow: 0 14px 35px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .cafe-waiter-body .cafe-section-tabs::-webkit-scrollbar { display: none; }

  .cafe-waiter-body .cafe-section-tabs button {
    min-width: 58px;
    min-height: 48px;
    flex: 1 0 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 3px;
    border: 0;
    border-radius: 12px;
    font-size: .52rem;
  }

  .cafe-waiter-body .cafe-section-tabs button i { font-size: .92rem; }
  .cafe-waiter-body .cafe-section-tabs button.is-active {
    color: #f4fffb;
    background: #315f51;
    box-shadow: inset 0 1px rgba(255,255,255,.08);
  }
}

/* ===== CAFE OWNER FINANCE ===== */
.cafe-waiter-body [data-owner-only][hidden] { display: none !important; }

.cafe-finance-card { min-height: 100%; }

.cafe-finance-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7f91a7;
  font-size: .65rem;
  font-weight: 800;
}

.cafe-finance-live > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.09), 0 0 10px rgba(74,222,128,.35);
}

.cafe-finance-live .cafe-mini-btn {
  width: 34px;
  min-height: 34px;
  margin-left: 4px;
  padding: 0;
}

.cafe-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 11px;
}

.cafe-finance-summary > div {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid #303c4e;
  border-radius: 15px;
  background: linear-gradient(145deg, #1b2634, #141d29);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.cafe-finance-summary > div.is-primary {
  border-color: rgba(81,185,148,.42);
  background: linear-gradient(145deg, rgba(50,108,91,.8), rgba(27,69,61,.82));
}

.cafe-finance-summary span {
  overflow: hidden;
  color: #91a0b3;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-finance-summary .is-primary span { color: #b9e5d6; }

.cafe-finance-summary strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(1.22rem, 2.5vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cafe-finance-summary small {
  overflow: hidden;
  color: #8090a5;
  font-size: .65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-finance-summary .is-primary small { color: #a9cfc2; }

.cafe-finance-history-head {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid #293546;
  border-bottom: 1px solid #293546;
  background: rgba(8,13,20,.24);
}

.cafe-finance-history-head h3 {
  margin: 2px 0 0;
  color: #f1f5f9;
  font-size: .9rem;
}

.cafe-finance-history-head > span {
  color: #728298;
  font-size: .64rem;
}

.cafe-finance-days {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.cafe-finance-day {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(120px, 1.2fr) minmax(100px, auto);
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid #2c3848;
  border-radius: 12px;
  background: #151f2b;
}

.cafe-finance-day.is-today {
  border-color: rgba(74,222,128,.28);
  background: linear-gradient(90deg, rgba(39,91,73,.24), #151f2b 46%);
}

.cafe-finance-date {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cafe-finance-date strong { color: #e8edf4; font-size: .76rem; }
.cafe-finance-date span { overflow: hidden; color: #75869b; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }

.cafe-finance-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b121c;
}

.cafe-finance-bar i {
  width: var(--finance-width);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #347661, #65d5ad);
  box-shadow: 0 0 12px rgba(82,205,164,.2);
}

.cafe-finance-day em {
  color: #f2f7f5;
  font-size: .86rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1020px) {
  .cafe-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cafe-finance-summary { gap: 7px; padding: 8px; }
  .cafe-finance-summary > div { min-height: 98px; padding: 11px; }
  .cafe-finance-summary strong { font-size: 1.2rem; }
  .cafe-finance-history-head > span { display: none; }
  .cafe-finance-day { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 9px 10px; }
  .cafe-finance-bar { grid-column: 1 / -1; grid-row: 2; }
  .cafe-finance-day em { grid-column: 2; grid-row: 1; }
  .cafe-finance-live > span { display: none; }
}

.profile-waiter-badge {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  overflow: visible;
  border: 1px solid rgba(251,113,133,.3);
  border-radius: 50%;
  background: #171d28;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.profile-waiter-badge img { width: 26px; height: 26px; display: block; border-radius: 50%; object-fit: cover; cursor: pointer; transition: filter .18s ease, transform .18s ease; }
.profile-waiter-badge:hover img { filter: brightness(1.12) drop-shadow(0 0 7px rgba(251,113,133,.45)); }
.profile-waiter-badge b { position: absolute; right: -4px; bottom: -3px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #111722; border-radius: 999px; color: #fff; background: #e11d48; font-size: .52rem; }
.profile-cafe-role { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(56,189,248,.2); border-radius: 999px; color: #bae6fd; background: rgba(14,116,144,.14); font-size: .68rem; font-weight: 850; }
.profile-cafe-role img { width: 18px; height: 18px; display: block; border-radius: 50%; object-fit: cover; }
.profile-cafe-role.is-owner { color: #bbf7d0; border-color: rgba(74,222,128,.22); background: rgba(22,101,52,.16); }
.profile-cafe-admin { flex: 1 0 100%; display: grid; grid-template-columns: minmax(150px,1fr) auto auto auto; gap: 6px; padding: 7px; border: 1px solid rgba(56,189,248,.18); border-radius: 12px; background: rgba(14,116,144,.1); }
.profile-cafe-select { min-height: 36px; border: 1px solid #37465a; border-radius: 9px; color: #e2e8f0; background: #1b2532; padding: 0 9px; }
.cafe-waiter-role-btn.is-owner { color: #bbf7d0; border-color: rgba(74,222,128,.28); background: linear-gradient(135deg, rgba(22,101,52,.2), rgba(15,23,42,.9)); }
.cafe-waiter-role-btn.is-remove { color: #fecdd3; }

.cafe-bar-staff-panel { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 12px; }
.cafe-bar-staff-panel[hidden] { display: none; }
.cafe-bar-staff-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,6,12,.76); backdrop-filter: blur(5px); }
.cafe-bar-staff-panel > section { position: relative; width: min(520px,100%); max-height: min(720px,90dvh); display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto; gap: 10px; overflow: hidden; padding: 13px; border: 1px solid #3b4658; border-radius: 20px; color: #e8edf4; background: #151d29; box-shadow: 0 28px 70px rgba(0,0,0,.55); }
.cafe-bar-staff-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cafe-bar-staff-panel header small { color: #67e8f9; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.cafe-bar-staff-panel header h2 { margin: 2px 0 0; font-size: 1.1rem; }
.cafe-bar-staff-panel header button { width: 36px; height: 36px; border: 1px solid #394658; border-radius: 10px; color: #cbd5e1; background: #222d3d; }
#barStaffForm { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
#barStaffForm input { min-width: 0; min-height: 42px; border: 1px solid #37465a; border-radius: 10px; color: #fff; background: #101720; padding: 0 11px; }
#barStaffForm button { min-height: 42px; border: 0; border-radius: 10px; color: #07151b; background: #67e8f9; padding: 0 12px; font-weight: 950; }
.cafe-bar-staff-panel .cafe-staff-list { min-height: 0; overflow-y: auto; margin: 0; }
#barStaffMsg { color: #94a3b8; }

@media (max-width: 640px) {
  .profile-cafe-admin { grid-template-columns: 1fr; }
  #barStaffForm { grid-template-columns: 1fr; }
}

.cafe-body.cafe-bar-body {
  height: var(--cafe-vvh, 100dvh);
  min-height: var(--cafe-vvh, 100dvh);
}

.cafe-body.cafe-bar-body > .cafe-bar-app {
  height: var(--cafe-vvh, 100dvh);
  min-height: 0;
}

.cafe-body.cafe-waiter-body {
  min-height: var(--cafe-vvh, 100dvh);
}

.id-register-page {
  min-height: var(--cafe-vvh, 100dvh);
}

html.keyboard-open,
html.keyboard-open body {
  overscroll-behavior: none;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html body #main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: max(6px, env(safe-area-inset-right));
    padding-left: max(6px, env(safe-area-inset-left));
    box-sizing: border-box;
  }

  html body #chatAndInput {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: calc(100% - 82px);
  }

  html body #onlineUsers {
    flex: 0 0 76px;
    width: 76px;
    min-width: 0;
    max-width: 76px;
    box-sizing: border-box;
  }

  html body #onlineUsers .username,
  html body #onlineUsers .dm-preview,
  html body #onlineUsers .online-panel,
  html body #onlineUsers .users-grid {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select,
  #msg {
    font-size: 16px !important;
  }
}

.hookah-picker {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 8px;
}

.hookah-picker[hidden] { display: none; }

.hookah-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2,6,12,.76);
  backdrop-filter: blur(5px);
}

.hookah-picker-sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(78dvh, 650px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #3b4658;
  border-radius: 24px;
  color: #edf2f7;
  background:
    radial-gradient(circle at 92% 0%, rgba(45,212,191,.15), transparent 33%),
    #151d29;
  box-shadow: 0 28px 70px rgba(0,0,0,.58);
  animation: hookah-sheet-in .24s ease-out both;
}

@keyframes hookah-sheet-in {
  from { opacity: .4; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.hookah-picker-sheet > header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.hookah-picker-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #09221e;
  background: linear-gradient(135deg, #5eead4, #60a5fa);
}

.hookah-picker-sheet h2 { margin: 0; font-size: 1.06rem; }
.hookah-picker-sheet header small { color: #76d8c7; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.hookah-picker-sheet > p { margin: 0; color: #9eabba; font-size: .78rem; }

.hookah-picker-close {
  width: 38px;
  height: 38px;
  border: 1px solid #394658;
  border-radius: 11px;
  color: #cbd5e1;
  background: #222d3d;
}

.hookah-flavor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.hookah-flavor {
  position: relative;
  min-width: 0;
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 4px;
  border: 1px solid #344155;
  border-radius: 16px;
  color: #d9e1eb;
  background: #1d2735;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

.hookah-flavor > span { font-size: 1.75rem; line-height: 1; }
.hookah-flavor > strong { font-size: .68rem; line-height: 1.05; text-align: center; }
.hookah-flavor > i { position: absolute; top: 5px; right: 5px; display: none; font-size: .58rem; }

.hookah-flavor.is-selected {
  border-color: #4ed6bd;
  color: #fff;
  background: linear-gradient(145deg, rgba(20,184,166,.29), #202c3a 70%);
  box-shadow: inset 0 0 0 1px rgba(94,234,212,.16);
}

.hookah-flavor.is-selected > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08211d;
  background: #5eead4;
}

.hookah-flavor-grid.is-limit { animation: hookah-limit .28s ease; }
@keyframes hookah-limit { 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }

.hookah-picker-sheet > footer {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #303b4b;
}

#hookahFlavorCount { color: #9eabba; font-size: .72rem; font-weight: 800; white-space: nowrap; }
#hookahFlavorCount b { color: #5eead4; font-size: 1.05rem; }

#hookahAdd {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  color: #08211d;
  background: linear-gradient(135deg, #5eead4, #86efac);
  font-weight: 950;
}

#hookahAdd:disabled { opacity: .38; }
.hookah-picker-open { touch-action: none; }

.cafe-guest-body .guest-cart-icons .guest-cart-pill.is-hookah {
  min-width: 145px;
  height: 52px;
  grid-template-rows: 18px 26px;
}

.cafe-guest-body .guest-cart-icons .guest-cart-pill.is-hookah span {
  max-width: 125px;
  display: grid;
  gap: 2px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.guest-cart-pill.is-hookah span small,
.guest-bill-items em small {
  display: block;
  color: #67e8f9;
  font-size: .58rem;
  font-weight: 850;
  line-height: 1.05;
}

.guest-bill-items em:has(small) {
  border-radius: 10px;
  white-space: normal;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-item-icon.has-flavors {
  flex: 1 0 100%;
  max-width: 100%;
  min-height: 66px;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto;
  justify-items: stretch;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #151b24, #10151d) padding-box,
    linear-gradient(225deg, rgba(89,139,158,.65), rgba(76,89,108,.28) 42%, rgba(255,255,255,.04)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cafe-bar-body .cafe-bar-order .cafe-bar-item-icon.has-flavors .cafe-bar-item-image {
  width: 46px;
  height: 46px;
  border: 1px solid #3b485a;
  border-radius: 11px;
  background: #263140;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-items .cafe-bar-hookah-info {
  position: static;
  flex: initial;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  justify-items: stretch;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-hookah-info > span {
  width: auto;
  overflow: visible;
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.cafe-bar-flavor-mix {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #b9c5d4;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
}

.cafe-bar-flavor-mix::before {
  content: "OKUSI";
  align-self: center;
  margin-right: 2px;
  color: #69788c;
  font-size: .5rem;
  font-weight: 950;
  letter-spacing: .1em;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-flavor-mix i {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 5px;
  border: 1px solid #354255;
  border-radius: 8px;
  color: #dce4ee;
  background: #202a38;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.cafe-bar-body .cafe-bar-order .cafe-bar-flavor-mix em {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #2b3748;
  font-size: .9rem;
  font-style: normal;
  line-height: 1;
}
.cafe-bar-body .cafe-bar-order .cafe-bar-flavor-mix b {
  width: auto;
  height: auto;
  min-width: 0;
  color: #66758a;
  background: none;
  font-size: .55rem;
}

@media (max-width: 430px) {
  .hookah-picker { padding: 5px; }
  .hookah-picker-sheet { max-height: 86dvh; padding: 12px; border-radius: 21px; }
  .hookah-flavor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hookah-flavor { min-height: 78px; }
}

/* ===== QR ORDER: COMPACT ANDROID-LIKE ICON PICKER ===== */
.cafe-body.cafe-guest-body {
  height: var(--cafe-vvh, 100dvh);
  overflow: hidden;
}

.cafe-guest-body .cafe-order-icon-app {
  width: min(100% - 12px, 620px);
  height: var(--cafe-vvh, 100dvh);
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 7px;
  overflow: hidden;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app > .cafe-order-head { grid-row: 1; }
.cafe-guest-body .cafe-order-icon-app > .guest-order-tabs { grid-row: 2; }
.cafe-guest-body .cafe-order-icon-app > .guest-login-required { grid-row: 3; }
.cafe-guest-body .cafe-order-icon-app > .guest-tab-panel { grid-row: 4; }
.cafe-guest-body .cafe-order-icon-app > .guest-submit-bar { grid-row: 5; }

.cafe-guest-body .cafe-order-icon-app .guest-submit-bar {
  position: relative;
  z-index: 20;
  bottom: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 0 0;
  background: #07111f;
}

.cafe-guest-body .cafe-order-icon-app .guest-submit-bar button {
  width: 100%;
  min-height: 52px;
}

.cafe-guest-body .cafe-order-icon-app .guest-tab-panel.is-active,
.cafe-guest-body .cafe-order-icon-app .guest-menu {
  min-height: 0;
}

.cafe-guest-body .cafe-order-icon-app .guest-menu {
  align-items: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cafe-guest-body .cafe-order-icon-app .guest-drink {
  align-self: start;
}

.cafe-guest-body .cafe-order-icon-app .guest-cats {
  align-items: center;
  min-height: 34px;
}

.cafe-guest-body .cafe-order-icon-app .guest-cats button {
  flex: 0 0 auto;
  width: auto;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-order-tabs button {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-submit-bar button {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 0 12px;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-submit-bar button span {
  font-size: clamp(.76rem, 3.4vw, .92rem);
  line-height: 1;
  white-space: nowrap;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions button {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill {
  grid-template-rows: auto minmax(0, 1fr) 42px;
  align-content: start;
  overflow: hidden;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-orders {
  align-items: flex-start;
  align-self: start;
  max-height: 100%;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions {
  align-self: end;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
}

.cafe-guest-body .cafe-order-icon-app .guest-bill-actions button {
  align-self: stretch;
  padding: 0 10px;
  line-height: 1;
  white-space: nowrap;
}

.cafe-order-icon-app {
  width: min(100% - 12px, 620px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 7px;
  padding-top: 6px;
}

.cafe-order-icon-app .cafe-order-head {
  top: 4px;
  padding: 9px 10px;
  border-radius: 17px;
}

.cafe-order-icon-app .cafe-order-head h1 {
  max-width: 58vw;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-order-icon-app .cafe-kicker {
  font-size: .62rem;
  letter-spacing: .1em;
}

.cafe-order-icon-app .cafe-order-head strong {
  min-width: max-content;
  padding: 7px 9px;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: .94rem;
  box-shadow: 0 10px 24px rgba(34,211,238,.18);
}

.guest-cart-icons {
  min-height: 44px;
  align-items: center;
  padding: 0 1px 2px;
}

.guest-cart-icons .guest-cart-empty {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(148,163,184,.22);
  border-radius: 15px;
  color: #9fb0c7;
  background: rgba(15,23,42,.48);
  text-align: center;
  font-weight: 850;
}

.guest-cart-icons .guest-cart-pill {
  min-width: 62px;
  height: 42px;
  display: inline-grid;
  grid-template-columns: 22px auto;
  grid-template-rows: 17px 17px;
  align-items: center;
  gap: 0 5px;
  padding: 4px 9px 4px 7px;
  color: #eaf2ff;
  border-radius: 14px;
  background: rgba(8,145,178,.19);
}

.guest-cart-icons .guest-cart-pill i {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  color: #06111f;
  background: #a7f3d0;
  font-size: .76rem;
}

.guest-cart-icons .guest-cart-pill strong {
  line-height: 1;
  color: #a7f3d0;
  font-size: .78rem;
}

.guest-cart-icons .guest-cart-pill span {
  max-width: 64px;
  overflow: hidden;
  line-height: 1;
  color: #cbd5e1;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-bill {
  display: grid;
  gap: 6px;
  min-height: 0;
}

.guest-order-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.guest-order-tabs.has-waiter-tables { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 46px 46px 46px; }
.guest-order-tabs .waiter-tables-trigger,
.guest-order-tabs .waiter-orders-trigger,
.guest-order-tabs .waiter-stock-trigger {
  position: relative;
  width: 46px;
  padding: 0;
  color: #8be9ff;
  border-color: #28536a;
  background: linear-gradient(145deg,#17384b,#102637);
}
.guest-order-tabs .waiter-orders-trigger { color: #a7f3d0; border-color: #276252; background: linear-gradient(145deg,#174438,#102f29); }
.guest-order-tabs .waiter-stock-trigger { color: #fde68a; border-color: #765a22; background: linear-gradient(145deg,#503b18,#322813); }
.guest-order-tabs .waiter-tables-trigger[hidden],
.guest-order-tabs .waiter-orders-trigger[hidden],
.guest-order-tabs .waiter-stock-trigger[hidden] { display: none !important; }
.guest-order-tabs .waiter-tables-trigger i,
.guest-order-tabs .waiter-orders-trigger i,
.guest-order-tabs .waiter-stock-trigger i { font-size: 1rem; }
.guest-order-tabs .waiter-orders-trigger.has-new {
  color: #fff;
  border-color: #ef4444;
  background: linear-gradient(145deg,#ef4444,#b91c1c);
  box-shadow: 0 0 0 3px rgba(239,68,68,.13);
}
.guest-order-tabs .waiter-orders-trigger.has-new i { animation: waiter-call-ring 1.15s ease-in-out infinite; }
.guest-order-tabs .waiter-tables-trigger.has-calls {
  color: #261700;
  border-color: #fbbf24;
  background: linear-gradient(145deg,#ffd75e,#f5b91f);
  box-shadow: 0 0 0 3px rgba(251,191,36,.11);
}
.guest-order-tabs .waiter-tables-trigger.has-calls i { animation: waiter-call-ring 1.15s ease-in-out infinite; }
.guest-order-tabs .waiter-tables-trigger em,
.guest-order-tabs .waiter-orders-trigger em {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #07111f;
  color: #fff;
  background: #ef4444;
  font-size: .53rem;
}
.guest-order-tabs .waiter-tables-trigger em[hidden],
.guest-order-tabs .waiter-orders-trigger em[hidden] { display: none !important; }

.waiter-mobile-stock {
  position: fixed;
  z-index: 720;
  inset: 0;
  display: grid;
  background: #08111d;
}
.waiter-mobile-stock[hidden] { display: none !important; }
.waiter-mobile-stock > section {
  position: relative;
  width: 100%;
  height: var(--cafe-vvh,100dvh);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  color: #eaf2f8;
  background: #0d1724;
}
.waiter-mobile-stock > section > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px,env(safe-area-inset-top)) 10px 8px 12px;
  border-bottom: 1px solid #2d3a4b;
  background: #172334;
}
.waiter-mobile-stock > section > header small { color: #8d805d; font-size: .51rem; font-weight: 950; letter-spacing: .08em; }
.waiter-mobile-stock > section > header h2 { margin: 2px 0 0; font-size: .95rem; }
.waiter-mobile-stock > section > header h2 i { margin-right: 6px; color: #facc15; }
.waiter-mobile-stock > section > header button { width: 38px; height: 38px; border: 1px solid #425168; border-radius: 11px; color: #dce6f0; background: #26364a; }
.waiter-stock-message { position: absolute; z-index: 8; top: 66px; right: 7px; left: 7px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 10px; border-radius: 10px; color: #06271f; background: #6ee7b7; box-shadow: 0 10px 24px rgba(0,0,0,.35); font-size: .68rem; }
.waiter-stock-message[hidden] { display: none !important; }

.waiter-stock-drinks {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-content: start;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.waiter-stock-drink { min-width: 0; min-height: 87px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 5px 3px; border: 1px solid #324154; border-radius: 11px; color: #e8f0f7; background: #152231; text-align: center; }
.waiter-stock-drink.is-selected { border-color: #facc15; background: linear-gradient(145deg,#5c4616,#372d17); box-shadow: inset 0 0 0 1px rgba(250,204,21,.13); }
.waiter-stock-drink > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; background: #223245; }
.waiter-stock-drink > span img { width: 35px; height: 35px; object-fit: contain; }
.waiter-stock-drink strong { width: 100%; overflow: hidden; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-stock-drink small { color: #7f90a4; font-size: .46rem; }
.waiter-stock-drink small b { color: #b8f5df; font-size: .54rem; }

.waiter-stock-form { display: grid; gap: 7px; padding: 8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #354459; background: #121e2b; box-shadow: 0 -12px 30px rgba(0,0,0,.3); }
.waiter-stock-form[hidden] { display: none !important; }
.waiter-stock-form > header { min-width: 0; display: flex; align-items: center; gap: 8px; }
.waiter-stock-form > header > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px; background: #26374a; }
.waiter-stock-form > header > span img { width: 34px; height: 34px; object-fit: contain; }
.waiter-stock-form > header > div { min-width: 0; display: grid; gap: 1px; }
.waiter-stock-form > header small { color: #78899d; font-size: .46rem; font-weight: 950; letter-spacing: .07em; }
.waiter-stock-form > header strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-stock-form > header em { color: #a7f3d0; font-size: .55rem; font-style: normal; }
.waiter-stock-packages { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
.waiter-stock-packages button { min-width: 0; min-height: 43px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 3px 1px; border: 1px solid #3a495c; border-radius: 8px; color: #aebdcd; background: #202d3d; font-size: .47rem; }
.waiter-stock-packages button b { color: #eaf1f7; font-size: .65rem; }
.waiter-stock-packages button.is-active { border-color: #facc15; color: #2b2100; background: #facc15; }
.waiter-stock-packages button.is-active b { color: #2b2100; }
.waiter-stock-numbers { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 5px; }
.waiter-stock-numbers label { display: grid; gap: 3px; }
.waiter-stock-numbers label span { color: #8494a7; font-size: .48rem; }
.waiter-stock-numbers input { width: 100%; min-height: 38px; padding: 0 7px; border: 1px solid #40526a; border-radius: 8px; color: #f5f9fc; background: #0c1622; font-size: .82rem; font-weight: 900; text-align: center; box-sizing: border-box; }
.waiter-stock-numbers > b { padding-bottom: 10px; color: #788a9d; text-align: center; }
.waiter-stock-submit { display: grid; grid-template-columns: auto minmax(170px,1fr); align-items: center; gap: 8px; }
.waiter-stock-submit > span { color: #8495a8; font-size: .53rem; }
.waiter-stock-submit > span strong { display: block; color: #f8d94e; font-size: 1.05rem; }
.waiter-stock-submit > span em { color: #8495a8; font-size: .5rem; font-style: normal; }
.waiter-stock-submit > button { min-height: 46px; border: 0; border-radius: 10px; color: #2b2100; background: linear-gradient(135deg,#facc15,#fde68a); font-size: .7rem; font-weight: 1000; }
.waiter-stock-submit > button:disabled { opacity: .65; }

@media (max-width: 350px) {
  .waiter-stock-drinks { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .waiter-stock-packages { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.waiter-mobile-orders {
  position: fixed;
  z-index: 710;
  inset: 0;
  display: grid;
  background: #08111d;
}
.waiter-mobile-orders[hidden] { display: none !important; }
.waiter-mobile-orders > section {
  width: 100%;
  height: var(--cafe-vvh,100dvh);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  color: #eaf2f8;
  background: #0d1724;
}
.waiter-mobile-orders > section > header {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 38px;
  align-items: center;
  gap: 9px;
  padding: max(8px,env(safe-area-inset-top)) 10px 8px 12px;
  border-bottom: 1px solid #2d3a4b;
  background: #172334;
}
.waiter-mobile-orders > section > header small { color: #718197; font-size: .51rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.waiter-mobile-orders > section > header h2 { margin: 2px 0 0; font-size: .95rem; }
.waiter-mobile-orders > section > header h2 i { margin-right: 6px; color: #6ee7b7; }
.waiter-mobile-orders > section > header > button { width: 38px; height: 38px; border: 1px solid #425168; border-radius: 11px; color: #dce6f0; background: #26364a; }
.waiter-orders-head-status { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px; padding: 5px 8px; border-radius: 9px; color: #bff8e4; background: #174438; }
.waiter-orders-head-status strong { font-size: .9rem; }
.waiter-orders-head-status span { font-size: .5rem; font-weight: 900; text-transform: uppercase; }

.waiter-mobile-order-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.waiter-mobile-order {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 45px minmax(0,1fr) 58px;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 5px;
  border: 1px solid #324154;
  border-radius: 11px;
  color: #e9f1f8;
  background: linear-gradient(145deg,#172434,#111c29);
  text-align: left;
  cursor: pointer;
}
.waiter-mobile-order.is-new { border-color: #287a66; background: linear-gradient(145deg,#16483d,#122f2b); }
.waiter-mobile-order-table { width: 45px; height: 45px; display: grid; place-items: center; align-content: center; border-radius: 9px; color: #d7f9ff; background: #1b526b; text-align: center; }
.waiter-mobile-order.is-new .waiter-mobile-order-table { color: #06281f; background: #6ee7b7; }
.waiter-mobile-order-table small { font-size: .42rem; font-weight: 950; line-height: 1; }
.waiter-mobile-order-table strong { font-size: 1.08rem; line-height: 1.08; }
.waiter-mobile-order-main { min-width: 0; display: grid; gap: 4px; }
.waiter-mobile-order-main strong { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-mobile-order-main small { overflow: hidden; color: #aebdcd; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-mobile-order-icons {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.waiter-mobile-order-item {
  position: relative;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167,243,208,.2);
  border-radius: 8px;
  background: rgba(5,24,22,.5);
}
.waiter-mobile-order-item img { width: 22px; height: 22px; object-fit: contain; }
.waiter-mobile-order-item b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 16px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0 2px;
  border: 1px solid #16483d;
  border-radius: 999px;
  color: #05251d;
  background: #a7f3d0;
  font-size: .42rem;
  line-height: 1;
}
.waiter-mobile-order-actions { display: grid; justify-items: stretch; gap: 4px; }
.waiter-mobile-order-actions > b { color: #d8e4ef; font-size: .55rem; font-variant-numeric: tabular-nums; text-align: center; }
.waiter-mobile-order-actions > button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  color: #05271e;
  background: #6ee7b7;
  font-size: .48rem;
  font-weight: 1000;
}
.waiter-mobile-order-actions > button:disabled { opacity: .65; }
.waiter-mobile-order-actions > button i { font-size: .55rem; }
.waiter-mobile-order.is-focus {
  min-height: calc(var(--cafe-vvh,100dvh) - 72px);
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto minmax(0,1fr) auto;
  align-items: stretch;
  gap: 9px;
  padding: 9px;
  border-color: #2c8c75;
  border-radius: 16px;
  background: linear-gradient(155deg,#153f37,#0d2523 55%,#0b1b22);
}
.waiter-mobile-order.is-focus > header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(110,231,183,.16);
}
.waiter-mobile-order.is-focus > header .waiter-mobile-order-table { width: 64px; height: 64px; border-radius: 13px; }
.waiter-mobile-order.is-focus > header .waiter-mobile-order-table small { font-size: .52rem; }
.waiter-mobile-order.is-focus > header .waiter-mobile-order-table strong { font-size: 1.65rem; }
.waiter-mobile-order.is-focus > header > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.waiter-mobile-order.is-focus > header > span:nth-child(2) small { color: #77a798; font-size: .48rem; font-weight: 950; letter-spacing: .08em; }
.waiter-mobile-order.is-focus > header > span:nth-child(2) strong { overflow: hidden; color: #f0fff9; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.waiter-mobile-order.is-focus > header time { align-self: start; padding: 5px 7px; border-radius: 8px; color: #d8fff1; background: #1c594b; font-size: .62rem; font-weight: 950; }

.waiter-mobile-order.is-focus > .waiter-mobile-order-icons {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-content: start;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.waiter-mobile-order.is-focus .waiter-mobile-order-item {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 98px;
  display: grid;
  grid-template-rows: 57px auto auto;
  justify-items: center;
  gap: 3px;
  padding: 6px 4px 5px;
  border-color: rgba(103,232,249,.18);
  border-radius: 12px;
  background: rgba(7,27,31,.72);
  text-align: center;
}
.waiter-mobile-order.is-focus .waiter-mobile-order-item > span { position: relative; width: 57px; height: 57px; display: grid; place-items: center; border-radius: 11px; background: #172f38; }
.waiter-mobile-order.is-focus .waiter-mobile-order-item img { width: 45px; height: 45px; }
.waiter-mobile-order.is-focus .waiter-mobile-order-item b { right: -4px; bottom: -4px; min-width: 25px; height: 21px; font-size: .62rem; }
.waiter-mobile-order.is-focus .waiter-mobile-order-item > small { width: 100%; overflow: hidden; color: #e8f7f2; font-size: .58rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.waiter-mobile-order.is-focus .waiter-mobile-order-item > em { width: 100%; overflow: hidden; color: #a7d5c6; font-size: .46rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.waiter-mobile-order.is-focus > footer { min-height: 58px; display: grid; grid-template-columns: auto minmax(180px,1fr); align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(110,231,183,.16); }
.waiter-mobile-order.is-focus > footer > span { display: flex; align-items: baseline; gap: 5px; color: #93a9a2; }
.waiter-mobile-order.is-focus > footer > span b { color: #f3fff9; font-size: 1.1rem; }
.waiter-mobile-order.is-focus > footer > span small { max-width: 74px; font-size: .49rem; line-height: 1.15; }
.waiter-mobile-order.is-focus > footer > button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; color: #05271e; background: linear-gradient(135deg,#6ee7b7,#a7f3d0); font-size: .78rem; font-weight: 1000; }
.waiter-mobile-order.is-focus > footer > button:disabled { opacity: .65; }

@media (max-width: 350px) {
  .waiter-mobile-order.is-focus > .waiter-mobile-order-icons { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .waiter-mobile-order.is-focus > footer { grid-template-columns: 70px minmax(0,1fr); }
}
.waiter-mobile-order-time { display: grid; justify-items: end; gap: 4px; }
.waiter-mobile-order-time b { color: #d8e4ef; font-size: .57rem; font-variant-numeric: tabular-nums; }
.waiter-mobile-order-time small { padding: 3px 4px; border-radius: 5px; color: #b8c8d9; background: #263548; font-size: .4rem; font-weight: 1000; }
.waiter-mobile-order.is-new .waiter-mobile-order-time small { color: #05271e; background: #6ee7b7; }
.waiter-mobile-orders-empty { min-height: calc(100dvh - 74px); display: grid; place-items: center; align-content: center; gap: 7px; color: #8291a3; text-align: center; }
.waiter-mobile-orders-empty i { color: #6ee7b7; font-size: 1.8rem; }
.waiter-mobile-orders-empty strong { color: #dce7f1; }
.waiter-mobile-orders-empty span { font-size: .7rem; }

.waiter-mobile-tables {
  position: fixed;
  z-index: 700;
  inset: 0;
  display: grid;
  align-items: start;
  align-content: start;
  padding: 0;
  background: #08111d;
}
.waiter-mobile-tables[hidden] { display: none !important; }
.waiter-mobile-tables-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1,6,12,.8); backdrop-filter: blur(6px); }
.waiter-mobile-tables > section {
  position: relative;
  align-self: start;
  width: 100%;
  height: var(--cafe-vvh, 100dvh);
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  justify-self: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #eaf2f8;
  background: #0d1724;
  box-shadow: none;
}
.waiter-mobile-tables > section > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px,env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid #2d3a4b;
  background: #172334;
}
.waiter-mobile-tables > section > header small { color: #718197; font-size: .53rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.waiter-mobile-tables > section > header h2 { margin: 2px 0 0; font-size: .95rem; }
.waiter-mobile-tables > section > header h2 i { margin-right: 6px; color: #67e8f9; }
.waiter-tables-head-actions { display: flex; align-items: center; gap: 6px; }
.waiter-mobile-tables > section > header button { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid #425168; border-radius: 11px; color: #dce6f0; background: #26364a; font-size: .62rem; font-weight: 900; }
.waiter-mobile-tables > section > header button[data-waiter-tables-close] { width: 38px; padding: 0; }
.waiter-mobile-tables > section > header #waiterSoundTest { border-color: #23718a; color: #bdf4ff; background: #164459; }
.waiter-mobile-tables > section > header #waiterSoundTest.is-playing { border-color: #6ee7b7; color: #05261d; background: #6ee7b7; }

@media (max-width: 360px) {
  .waiter-mobile-tables > section > header #waiterSoundTest span { display: none; }
  .waiter-mobile-tables > section > header #waiterSoundTest { width: 38px; padding: 0; }
}

.waiter-mobile-tables .waiter-table-switcher {
  position: relative;
  top: auto;
  min-height: 0;
  align-self: start;
  align-content: start;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 0;
  background: #0d1724;
  box-shadow: none;
}
.waiter-mobile-tables .waiter-table-switcher > header { position: sticky; z-index: 2; top: -7px; padding: 5px 3px; background: #0d1724; }
.waiter-mobile-tables .waiter-table-rail {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  grid-auto-rows: 52px;
  align-content: start;
  align-items: stretch;
  justify-content: stretch;
  gap: 4px;
  overflow: visible;
  padding: 0;
  touch-action: pan-y;
  scroll-snap-type: none;
}
.waiter-mobile-tables .waiter-table-chip {
  width: auto;
  min-width: 0;
  min-height: 52px;
  align-content: center;
  gap: 3px;
  padding: 4px;
  border-radius: 9px;
  text-align: center;
}
.waiter-mobile-tables .waiter-table-chip > span { justify-content: center; gap: 4px; }
.waiter-mobile-tables .waiter-table-chip > span strong { color: #f3f7fb; font-size: 1rem; line-height: 1; }
.waiter-mobile-tables .waiter-table-chip > span i { font-size: .5rem; }
.waiter-mobile-tables .waiter-table-chip > b { color: #8292a6; font-size: .46rem; line-height: 1; text-align: center; }
.waiter-mobile-tables .waiter-table-chip.is-empty { border-color: #2b3747; background: #121d2a; }
.waiter-mobile-tables .waiter-table-chip.has-orders {
  border-color: #29b6d8;
  background: linear-gradient(145deg,#12647b,#12445d);
  box-shadow: inset 0 0 0 1px rgba(103,232,249,.1);
}
.waiter-mobile-tables .waiter-table-chip.has-orders > span i { color: #9aeeff; }
.waiter-mobile-tables .waiter-table-chip.has-orders > b { color: #d6f8ff; }
.waiter-mobile-tables .waiter-table-chip.is-calling {
  border-color: #ffd34e;
  background: linear-gradient(145deg,#815a0c,#513908);
  box-shadow: inset 0 0 0 1px rgba(255,220,91,.2), 0 0 0 1px rgba(251,191,36,.08);
}
.waiter-mobile-tables .waiter-table-chip.is-calling > span strong,
.waiter-mobile-tables .waiter-table-chip.is-calling > b { color: #fff4c5; }

@media (max-width: 350px) {
  .waiter-mobile-tables .waiter-table-rail { grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: 52px; }
}

.guest-order-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15,23,42,.62);
  font-size: .8rem;
  font-weight: 950;
  cursor: pointer;
}

.guest-order-tabs button.is-active {
  color: #06111f;
  border-color: transparent;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.guest-order-tabs em {
  padding: 3px 6px;
  border-radius: 999px;
  color: #06111f;
  background: #facc15;
  font-size: .65rem;
  font-style: normal;
}

.guest-tab-panel {
  display: none;
  min-height: 0;
}

.guest-login-required {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(250,204,21,.28);
  border-radius: 16px;
  color: #eaf2ff;
  background: rgba(120, 53, 15, .32);
  text-align: center;
}

.guest-login-required[hidden] {
  display: none;
}

.guest-login-required i {
  color: #facc15;
  font-size: 1.25rem;
}

.guest-login-required span {
  max-width: 360px;
  color: #cbd5e1;
  font-size: .78rem;
}

.guest-login-required div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.guest-login-required a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 12px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: .78rem;
  font-weight: 950;
  text-decoration: none;
}

.guest-tab-panel.is-active {
  display: grid;
  gap: 7px;
  min-height: 0;
}

.guest-tab-panel[data-guest-panel="order"].is-active {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.guest-tab-panel[data-guest-panel="bill"].is-active {
  grid-template-rows: minmax(0, 1fr);
}

.guest-bill-panel.is-active {
  overflow-y: auto;
}

.guest-bill-empty {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px dashed rgba(148,163,184,.18);
  border-radius: 14px;
  color: #94a3b8;
  background: rgba(15,23,42,.35);
  font-size: .78rem;
  font-weight: 850;
}

.guest-bill-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.guest-bill-summary div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 14px;
  background: rgba(8,145,178,.12);
}

.guest-bill-summary span {
  color: #9fb0c7;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-bill-summary strong {
  color: #a7f3d0;
  font-size: .88rem;
  white-space: nowrap;
}

.guest-bill-orders {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guest-bill-orders::-webkit-scrollbar { display: none; }

.guest-bill-order {
  flex: 0 0 min(78vw, 260px);
  padding: 8px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(15,23,42,.62);
}

.guest-bill-order.is-mine {
  border-color: rgba(167,243,208,.36);
  background: rgba(22,163,74,.13);
}

.guest-bill-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guest-bill-order-top strong {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-bill-order-top span {
  color: #a7f3d0;
  font-size: .8rem;
  font-weight: 950;
  white-space: nowrap;
}

.guest-bill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.guest-bill-items em {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59,130,246,.14);
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-bill-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.guest-bill-actions button {
  min-height: 39px;
  border: 0;
  border-radius: 13px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: .8rem;
  font-weight: 950;
  cursor: pointer;
}

.guest-bill-actions button:first-child {
  color: #eaf2ff;
  background: rgba(59,130,246,.38);
}

.guest-bill-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cafe-order-icon-app .guest-cats {
  padding-bottom: 1px;
}

.cafe-order-icon-app .guest-cats button {
  min-height: 31px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: .76rem;
}

.guest-icon-menu {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  grid-auto-rows: 108px;
  gap: 7px;
  align-content: start;
  padding: 1px 0 6px;
}

.guest-icon-menu .guest-drink {
  min-width: 0;
  min-height: 0;
  height: 108px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 50px minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 5px;
  padding: 8px 6px 7px;
  border-radius: 18px;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.guest-icon-menu .guest-drink:active {
  transform: scale(.97);
}

.guest-icon-menu .guest-drink-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 10px 20px rgba(34,211,238,.16);
}

.guest-icon-menu .guest-drink-main {
  width: 100%;
  gap: 2px;
  justify-items: center;
}

.guest-icon-menu .guest-drink-main strong {
  width: 100%;
  display: -webkit-box;
  min-height: 28px;
  overflow: hidden;
  font-size: .76rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guest-icon-menu .guest-drink-main small {
  color: #a7f3d0;
  font-size: .7rem;
  font-weight: 950;
}

.guest-icon-menu .guest-drink-price {
  display: none;
}

.guest-icon-menu .guest-drink em {
  top: 5px;
  right: 5px;
  min-width: 22px;
  height: 22px;
  border: 2px solid rgba(7,17,31,.8);
  font-size: .72rem;
}

.cafe-order-icon-app .guest-submit-bar {
  padding-top: 3px;
}

.cafe-order-icon-app .guest-submit-bar button {
  min-height: 48px;
  border-radius: 16px;
  font-size: .92rem;
}

@media (max-width: 390px) {
  .guest-icon-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 102px;
    gap: 6px;
  }

  .guest-icon-menu .guest-drink {
    height: 102px;
    grid-template-rows: 46px minmax(0, 1fr);
    padding-inline: 5px;
  }

  .guest-icon-menu .guest-drink-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

/* Local drink images; transparent product photos retain the whole bottle/cup. */
.cafe-body img[src^="/assets/cafe-products/"] {
  object-fit: contain !important;
  background: transparent;
  padding: 2px;
  box-sizing: border-box;
}
.guest-drink-stock-status { font: 600 10px/1.25 system-ui; color: #8793a5; }
.guest-icon-menu { grid-auto-rows: 158px; }
.guest-icon-menu .guest-drink {
  height: 158px;
  grid-template-rows: 86px minmax(0, 1fr);
  padding: 6px;
  gap: 5px;
  background: #101c2c;
}
.guest-icon-menu .guest-drink-icon {
  width: 100%;
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5f7fa, #d8e1eb);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: none;
}
.guest-icon-menu .guest-drink-main { grid-template-rows: 24px 12px 11px; gap: 2px; }
.guest-icon-menu .guest-drink-main strong {
  min-height: 24px;
  font: 600 10px/12px system-ui;
  color: #e2e8f0;
}
.guest-icon-menu .guest-drink-main small { font: 700 10px/12px system-ui; color: #c1e4da; }
.guest-icon-menu .guest-drink-stock-status { font: 500 9px/11px system-ui; color: #9daec1; }
.guest-icon-menu .guest-drink:disabled { opacity: 1; cursor: default; }
.guest-drink-icon img,
.cafe-bar-items b img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.guest-cart-icons .guest-cart-pill img {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  display: block;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
}

.cafe-bar-items b {
  overflow: hidden;
}

/* Profile gifts: modern showcase override */
.gift-shelf {
  isolation: isolate;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(16,185,129,.18), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(244,114,182,.14), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.96), rgba(3,7,18,.94));
  border-color: rgba(226,232,240,.16);
}

.gift-shelf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.gift-shelf-head span {
  font-size: .92rem;
  letter-spacing: 0;
}

.gift-shelf-head strong {
  min-width: 32px;
  height: 26px;
  color: #07111f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 8px 18px rgba(245,158,11,.22);
}

.gift-shelf-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.gift-shelf-row > .gift-tile:nth-child(1),
.gift-shelf-row > .gift-tile:nth-child(2) {
  grid-column: span 2;
  min-height: 176px;
}

.gift-shelf-row > .gift-tile:nth-child(n+3) {
  grid-column: span 1;
}

.gift-tile {
  overflow: hidden;
  min-height: 142px;
  padding: 10px;
  display: grid;
  align-content: end;
  gap: 8px;
  text-align: left;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(180deg, rgba(30,41,59,.82), rgba(2,6,23,.98));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gift-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.84));
}

.gift-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(0,0,0,.28);
}

.gift-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 86px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
.gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
  height: 116px;
}

.gift-img {
  width: 100%;
  height: 100%;
  max-width: 112px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.48));
}

.gift-emoji {
  width: 100%;
  text-align: center;
  font-size: 3rem;
  line-height: 1.1;
}

.gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
.gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
  font-size: 4rem;
}

.gift-name,
.gift-meta {
  position: relative;
  z-index: 1;
}

.gift-name {
  margin-top: 0;
  font-size: .76rem;
}

.gift-meta {
  color: #cbd5e1;
}

.gift-note {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  padding: 6px 7px;
  border-radius: 10px;
  color: #fef3c7;
  background: rgba(251,191,36,.10);
  border: 1px solid rgba(251,191,36,.16);
  font-size: .64rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gift-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 5px;
  margin: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}

.gift-tile:hover .gift-controls,
.gift-tile:focus-within .gift-controls {
  opacity: 1;
  transform: translateY(0);
}

.gift-controls button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  display: inline-grid;
  place-items: center;
  color: #f8fafc;
  background: rgba(15,23,42,.78);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.gift-controls button:hover {
  background: rgba(251,191,36,.9);
  color: #111827;
}

.gift-controls .gift-move[data-dir="left"]::before {
  content: "\f053";
  font-family: "Font Awesome 6 Free";
  font-size: .8rem;
  font-weight: 950;
}

.gift-controls .gift-move[data-dir="right"]::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-size: .8rem;
  font-weight: 950;
}

.gift-controls .gift-hide::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-size: 1rem;
  font-weight: 950;
}

.gift-controls .gift-wrap-received::before {
  content: "\f466";
  font-family: "Font Awesome 6 Free";
  font-size: .78rem;
  font-weight: 950;
}

.gift-archive {
  border-top-color: rgba(255,255,255,.10);
}

.gift-archive summary {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.gift-archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

.gift-archive-grid .gift-tile {
  min-height: 146px;
}

@media (max-width: 760px) {
  .gift-shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-shelf-row > .gift-tile:nth-child(1),
  .gift-shelf-row > .gift-tile:nth-child(2),
  .gift-shelf-row > .gift-tile:nth-child(n+3) {
    grid-column: span 1;
  }
}

/* Badoo-style gift shop */
.vip-gift-card {
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(236,72,153,.16), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(14,165,233,.14), transparent 36%),
    linear-gradient(180deg, rgba(15,23,42,.96), rgba(3,7,18,.94));
  border: 1px solid rgba(226,232,240,.14);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.vip-gift-card > .vip-gift-title {
  display: none;
}

.vip-gift-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vip-gift-title {
  margin: 0;
  color: #f8fafc;
  font-size: .98rem;
  font-weight: 950;
}

.vip-gift-subtitle {
  margin-top: 2px;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
}

.vip-gift-balance {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff7ed;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  box-shadow: 0 12px 22px rgba(236,72,153,.18);
}

.vip-gift-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vip-gift-tabs::-webkit-scrollbar {
  display: none;
}

.vip-gift-tab {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  color: #cbd5e1;
  background: rgba(15,23,42,.62);
  font-size: .72rem;
  font-weight: 950;
  cursor: pointer;
}

.vip-gift-tab.is-active {
  color: #07111f;
  border-color: transparent;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.vip-gift-catalog {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  max-height: 330px;
  overflow-y: auto;
  padding: 2px 2px 4px;
}

.vip-gift-btn {
  position: relative;
  min-height: 126px;
  padding: 10px 8px;
  border-radius: 16px;
  display: grid;
  grid-template-rows: 58px auto auto;
  align-items: center;
  gap: 5px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.10), transparent 38%),
    linear-gradient(180deg, rgba(30,41,59,.76), rgba(15,23,42,.92));
  border-color: rgba(148,163,184,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.vip-gift-btn:hover,
.vip-gift-btn.is-selected {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,.58);
  background:
    radial-gradient(circle at 50% 8%, rgba(251,191,36,.18), transparent 42%),
    linear-gradient(180deg, rgba(30,41,59,.86), rgba(15,23,42,.96));
}

.vip-gift-btn.is-selected::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 2px solid rgba(251,191,36,.72);
  pointer-events: none;
}

.vip-gift-btn em {
  display: block;
  min-width: 0;
  color: #f8fafc;
  font-style: normal;
  font-size: .74rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-gift-btn b {
  color: #fbbf24;
}

.vip-gift-btn[hidden] {
  display: none;
}

.vip-gift-selected {
  margin-top: 12px;
  padding: 10px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(2,6,23,.5);
  border: 1px solid rgba(148,163,184,.14);
}

.vip-gift-message {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 54px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.72);
  color: #e5e7eb;
  padding: 9px 10px;
  font-size: .78rem;
  outline: none;
}

.vip-gift-message:focus {
  border-color: rgba(251,191,36,.55);
  box-shadow: 0 0 0 3px rgba(251,191,36,.10);
}

.vip-gift-preview {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-gift-preview-art {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  color: #fbbf24;
}

.vip-gift-preview-art img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.vip-gift-preview-art span {
  font-size: 1.55rem;
}

.vip-gift-preview-name {
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-gift-preview-meta {
  margin-top: 2px;
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 800;
}

.vip-gift-send {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #07111f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  font-size: .76rem;
  font-weight: 950;
  cursor: pointer;
}

.vip-gift-send:disabled {
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(.35);
}

@media (max-width: 520px) {
  .vip-gift-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-gift-selected {
    grid-template-columns: 1fr;
  }

  .vip-gift-send {
    justify-content: center;
    width: 100%;
  }
}

/* Mobile polish: minimal tabs and softer gift showcase */
#roomsMount .mini-profile .tabbar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

#roomsMount .mini-profile .tabbar::-webkit-scrollbar {
  display: none;
}

#roomsMount .mini-profile .tabbar .tab-btn {
  flex: 1 0 auto;
  min-width: 74px;
  min-height: 36px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: .78rem;
}

#roomsMount .mini-profile .tabbar .tab-btn::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .76rem;
  opacity: .82;
}

#roomsMount .mini-profile .tabbar .tab-btn[data-open="info"]::before {
  content: "\f129";
}

#roomsMount .mini-profile .tabbar .tab-btn[data-open="dm"]::before {
  content: "\f4ad";
}

#roomsMount .mini-profile .tabbar .tab-btn[data-open="gifts"]::before {
  content: "\f06b";
}

#roomsMount .mini-profile .tabbar .tab-btn[data-open="admin"]::before {
  content: "\f013";
}

#roomsMount .mini-profile .tabbar .tab-btn.is-active,
#roomsMount .mini-profile .tabbar .tab-btn[aria-selected="true"] {
  background: rgba(37,99,235,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.gift-shelf {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(17,24,39,.82), rgba(8,13,23,.84));
  border-color: rgba(148,163,184,.13);
  box-shadow: none;
}

.gift-shelf::before {
  opacity: .18;
  background-size: 18px 18px;
}

.gift-shelf-head {
  margin-bottom: 10px;
}

.gift-shelf-head small {
  text-transform: none;
  color: #94a3b8;
}

.gift-shelf-row {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 7px;
}

.gift-shelf-row > .gift-tile:nth-child(1),
.gift-shelf-row > .gift-tile:nth-child(2),
.gift-shelf-row > .gift-tile:nth-child(n+3) {
  grid-column: auto;
  min-height: 124px;
}

.gift-tile {
  min-height: 124px;
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  align-content: center;
  gap: 5px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(30,41,59,.58), rgba(15,23,42,.78));
  border-color: rgba(148,163,184,.13);
}

.gift-tile::after {
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.55));
}

.gift-art,
.gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
.gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
  height: 58px;
}

.gift-img {
  max-width: 64px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.36));
}

.gift-emoji,
.gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
.gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
  font-size: 2.2rem;
}

.gift-name {
  font-size: .7rem;
}

.gift-meta {
  color: #9ca3af;
  font-size: .56rem;
}

.gift-note {
  padding: 5px 6px;
  text-align: left;
  font-size: .6rem;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.08);
  color: #e5e7eb;
}

.gift-controls {
  top: 6px;
  right: 6px;
  gap: 4px;
}

.gift-controls button {
  width: 24px;
  height: 24px;
}

.gift-archive summary {
  padding: 7px 9px;
  font-size: .72rem;
}

.gift-archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 7px;
}

.vip-gift-card {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,.84), rgba(8,13,23,.86));
  box-shadow: none;
}

.vip-gift-catalog {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-height: min(330px, 48vh);
}

.vip-gift-btn {
  min-height: 112px;
  border-radius: 13px;
  grid-template-rows: 48px auto auto;
}

@media (max-width: 520px) {
  #roomsMount .mini-profile .tabbar {
    margin: 0 -2px;
  }

  #roomsMount .mini-profile .tabbar .tab-btn {
    min-width: 68px;
    min-height: 34px;
    padding: 0 8px;
    font-size: .72rem;
  }

  .gift-shelf {
    padding: 10px;
    border-radius: 12px;
  }

  .gift-shelf-row,
  .gift-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .gift-tile,
  .gift-shelf-row > .gift-tile:nth-child(1),
  .gift-shelf-row > .gift-tile:nth-child(2),
  .gift-shelf-row > .gift-tile:nth-child(n+3),
  .gift-archive-grid .gift-tile {
    min-height: 112px;
    padding: 7px 5px;
  }

  .gift-art,
  .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
  .gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
    height: 48px;
  }

  .gift-img {
    max-width: 52px;
  }

  .gift-emoji,
  .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
  .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
    font-size: 1.85rem;
  }

  .gift-name {
    font-size: .64rem;
  }

  .gift-meta {
    font-size: .52rem;
  }

  .gift-note {
    display: none;
  }

  .gift-controls {
    opacity: 1;
    transform: none;
  }

  .gift-controls button {
    width: 22px;
    height: 22px;
  }

  .vip-gift-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Badoo-inspired gift shop refinement */
#roomsMount .mini-profile .v-gifts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-gifts .vip-gift-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.vip-gift-shop-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.vip-gift-title {
  font-size: 1rem;
}

.vip-gift-subtitle {
  max-width: 260px;
  line-height: 1.25;
}

.vip-gift-tabs {
  margin: 10px 0;
}

.vip-gift-tab {
  min-height: 30px;
  padding: 0 11px;
}

.vip-gift-catalog {
  display: grid;
  gap: 8px;
  padding-right: 2px;
  flex: 1 1 auto;
  min-height: 0;
}

.vip-gift-btn {
  min-width: 0;
  min-height: 134px;
  padding: 9px;
  grid-template-rows: 68px minmax(18px, auto) 22px;
  justify-items: center;
  text-align: center;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(180deg, rgba(31,41,55,.72), rgba(15,23,42,.90));
}

.gift-choice-art {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
}

.gift-choice-art img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.36));
}

.gift-choice-art span {
  font-size: 2rem;
  line-height: 1;
}

.gift-choice-name {
  width: 100%;
  color: #f8fafc;
  font-size: .74rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-choice-cost {
  min-height: 22px;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251,191,36,.10);
  border: 1px solid rgba(251,191,36,.16);
  font-size: .62rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-gift-btn.vip-only .gift-choice-cost {
  color: #fbcfe8;
  background: rgba(236,72,153,.10);
  border-color: rgba(236,72,153,.18);
}

.vip-gift-btn.is-selected {
  border-color: rgba(56,189,248,.72);
  box-shadow: 0 0 0 2px rgba(56,189,248,.16), 0 12px 22px rgba(0,0,0,.22);
}

.vip-gift-btn.is-selected::after {
  inset: 6px;
  border-color: rgba(56,189,248,.72);
}

.vip-gift-selected {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(15,23,42,.92), rgba(2,6,23,.96));
  backdrop-filter: blur(12px);
}

.vip-gift-selected[hidden] {
  display: none !important;
}

.vip-gift-card.is-composing-gift .vip-gift-catalog,
.vip-gift-card.is-composing-gift .vip-gift-tabs {
  opacity: .24;
  filter: blur(.5px) saturate(.75);
}

.vip-gift-compose-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vip-gift-back {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.14);
  color: #e5e7eb;
  background: rgba(15,23,42,.72);
  cursor: pointer;
}

.vip-gift-back:hover {
  border-color: rgba(96,165,250,.34);
  background: rgba(30,41,59,.86);
}

.vip-gift-card.is-composing-gift .vip-gift-selected {
  min-height: min(380px, 58vh);
  align-content: start;
  grid-template-columns: 1fr;
  padding: 14px;
}

.vip-gift-card.is-composing-gift .vip-gift-message {
  min-height: 140px;
}

.vip-gift-card.is-composing-gift .vip-gift-send {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 520px) {
  .vip-gift-shop-head {
    align-items: flex-start;
  }

  .vip-gift-balance {
    width: 34px;
    height: 34px;
  }

  .vip-gift-catalog {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-gift-btn {
    min-height: 126px;
    grid-template-rows: 60px minmax(18px, auto) 22px;
    padding: 8px;
  }

  .gift-choice-art {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .gift-choice-art img {
    width: 52px;
    height: 52px;
  }

  .vip-gift-selected {
    position: static;
  }
}

/* Stable profile app tabs */
#roomsMount .mini-profile .m-body > .view[data-view-id],
#profileMount .mini-profile .m-body > .view[data-view-id] {
  display: none !important;
}

#roomsMount .mini-profile .m-body > .view[data-view-id].is-active,
#profileMount .mini-profile .m-body > .view[data-view-id].is-active {
  display: flex !important;
  flex-direction: column;
}

#roomsMount .mini-profile .m-body > .view[data-view-id][hidden],
#profileMount .mini-profile .m-body > .view[data-view-id][hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  #roomsMount .mini-profile,
  #profileMount .mini-profile {
    border-radius: 0;
    background: #090d15;
  }

  #roomsMount .mini-profile .m-toolbar,
  #profileMount .mini-profile .m-toolbar {
    order: 3;
    position: sticky;
    bottom: 0;
    z-index: 30;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    margin: 0 -2px;
    background: rgba(9,13,21,.94);
    border-top: 1px solid rgba(148,163,184,.12);
    backdrop-filter: blur(14px);
  }

  #roomsMount .mini-profile .tabbar,
  #profileMount .mini-profile .tabbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 4px;
    padding: 3px;
    border-radius: 16px;
    background: rgba(15,23,42,.88);
    border: 1px solid rgba(148,163,184,.14);
    overflow: visible;
  }

  #roomsMount .mini-profile .tabbar .tab-btn,
  #profileMount .mini-profile .tabbar .tab-btn {
    min-width: 0;
    min-height: 46px;
    padding: 5px 2px;
    flex-direction: column;
    gap: 3px;
    border-radius: 13px;
    font-size: .62rem;
    line-height: 1;
  }

  #roomsMount .mini-profile .tabbar .tab-btn::before,
  #profileMount .mini-profile .tabbar .tab-btn::before {
    font-size: .95rem;
  }

  #roomsMount .mini-profile .tabbar .tab-btn.is-active,
  #roomsMount .mini-profile .tabbar .tab-btn[aria-selected="true"],
  #profileMount .mini-profile .tabbar .tab-btn.is-active,
  #profileMount .mini-profile .tabbar .tab-btn[aria-selected="true"] {
    color: #f8fafc;
    background: rgba(37,99,235,.96);
    border-color: rgba(147,197,253,.34);
  }

  #roomsMount .mini-profile .m-body,
  #profileMount .mini-profile .m-body {
    padding-right: 0;
    padding-bottom: 8px;
  }

  #roomsMount .mini-profile .v-gifts,
  #profileMount .mini-profile .v-gifts {
    gap: 8px;
  }

  .v-gifts .vip-gift-card {
    border: 0;
    border-radius: 0;
    padding: 10px 2px 4px;
    background: transparent;
    min-height: calc(var(--app-vvh, 100vh) - 150px);
  }

  .v-gifts .vip-gift-shop-head {
    padding: 0 4px 10px;
    border-bottom: 0;
  }

  .v-gifts .vip-gift-tabs {
    padding: 0 2px 2px;
    margin: 6px 0 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .v-gifts .vip-gift-tab {
    min-height: 26px;
    padding: 0 9px;
    font-size: .64rem;
  }

  .v-gifts .vip-gift-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
  }

  .v-gifts .vip-gift-btn {
    min-height: 142px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 8%, rgba(255,255,255,.13), transparent 38%),
      linear-gradient(180deg, rgba(31,41,55,.86), rgba(15,23,42,.96));
  }

  .v-gifts .gift-choice-art {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .v-gifts .gift-choice-art img {
    width: 62px;
    height: 62px;
  }

  .v-gifts .vip-gift-selected {
    position: sticky;
    bottom: 64px;
    margin: 10px 2px 0;
    border-radius: 18px;
    box-shadow: 0 -12px 28px rgba(0,0,0,.22);
  }

  .v-gifts .vip-gift-card.is-composing-gift .vip-gift-selected {
    min-height: min(420px, calc(var(--app-vvh, 100vh) - 190px));
  }

  .v-gifts .vip-gift-card.is-composing-gift .vip-gift-message {
    min-height: 170px;
  }
}

/* Tab/scroll cleanup: one profile scroll, no nested sliders */
#roomsMount .mini-profile .m-toolbar,
#profileMount .mini-profile .m-toolbar {
  position: static;
}

#roomsMount .mini-profile .tabbar,
#profileMount .mini-profile .tabbar {
  overflow: visible;
}

#roomsMount .mini-profile .m-body,
#profileMount .mini-profile .m-body {
  overflow-y: auto;
  overflow-x: hidden;
}

#roomsMount .mini-profile .m-body > .view[data-view-id],
#profileMount .mini-profile .m-body > .view[data-view-id] {
  width: 100%;
  min-height: 0;
  overflow: visible;
}

#roomsMount .mini-profile .v-dm.is-active,
#profileMount .mini-profile .v-dm.is-active {
  min-height: clamp(360px, 58vh, 620px);
}

#roomsMount .mini-profile .dm-embed,
#profileMount .mini-profile .dm-embed {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(9,13,21,.86);
  border: 1px solid rgba(148,163,184,.10);
}

#roomsMount .mini-profile .dm-contact-bar,
#profileMount .mini-profile .dm-contact-bar {
  display: none;
}

#roomsMount .mini-profile .dm-back-btn,
#profileMount .mini-profile .dm-back-btn {
  border: 0;
  cursor: pointer;
}

#roomsMount .mini-profile .dm-embed-log,
#profileMount .mini-profile .dm-embed-log {
  flex: 1 1 auto;
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(3,7,18,.28);
  border: 1px solid rgba(148,163,184,.06);
}

#roomsMount .mini-profile .dm-embed-log::-webkit-scrollbar,
#profileMount .mini-profile .dm-embed-log::-webkit-scrollbar {
  width: 7px;
}

#roomsMount .mini-profile .dm-embed-log::-webkit-scrollbar-thumb,
#profileMount .mini-profile .dm-embed-log::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(96,165,250,.44);
}

#roomsMount .mini-profile .dm-row,
#profileMount .mini-profile .dm-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 9px;
  transition: background .16s ease;
}

#roomsMount .mini-profile .dm-row:hover,
#profileMount .mini-profile .dm-row:hover {
  background: rgba(148,163,184,.05);
}

#roomsMount .mini-profile .dm-row.me,
#profileMount .mini-profile .dm-row.me {
  justify-content: flex-end;
}

#roomsMount .mini-profile .dm-mini-avatar-wrap,
#profileMount .mini-profile .dm-mini-avatar-wrap {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  overflow: hidden;
}

#roomsMount .mini-profile .dm-mini-avatar,
#profileMount .mini-profile .dm-mini-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#roomsMount .mini-profile .dm-mini-stack,
#profileMount .mini-profile .dm-mini-stack {
  min-width: 0;
  max-width: min(78%, 560px);
  display: grid;
  gap: 1px;
}

#roomsMount .mini-profile .dm-row.me .dm-mini-stack,
#profileMount .mini-profile .dm-row.me .dm-mini-stack {
  justify-items: end;
}

#roomsMount .mini-profile .dm-mini-head,
#profileMount .mini-profile .dm-mini-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8ea2c0;
  font-size: .66rem;
  line-height: 1;
}

#roomsMount .mini-profile .dm-row.me .dm-mini-head,
#profileMount .mini-profile .dm-row.me .dm-mini-head {
  flex-direction: row-reverse;
}

#roomsMount .mini-profile .dm-mini-name,
#profileMount .mini-profile .dm-mini-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfe0ff;
  font-size: .68rem;
  font-weight: 950;
}

#roomsMount .mini-profile .dm-mini-badge,
#profileMount .mini-profile .dm-mini-badge,
#roomsMount .mini-profile .dm-mini-mood,
#profileMount .mini-profile .dm-mini-mood {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex: 0 0 13px;
}

#roomsMount .mini-profile .dm-mini-mood-text,
#profileMount .mini-profile .dm-mini-mood-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8fb5ff;
  font-size: .62rem;
  font-weight: 800;
}

#roomsMount .mini-profile .dm-bubble,
#profileMount .mini-profile .dm-bubble {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  color: #e5edf9;
  background: rgba(18,26,40,.84);
  border: 1px solid rgba(148,163,184,.09);
  box-shadow: none;
  font-size: .82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#roomsMount .mini-profile .dm-row.me .dm-bubble,
#profileMount .mini-profile .dm-row.me .dm-bubble {
  color: #fff;
  background: rgba(31,111,235,.86);
  border-color: rgba(147,197,253,.18);
  border-radius: 9px;
}

#roomsMount .mini-profile .dm-meta,
#profileMount .mini-profile .dm-meta {
  color: rgba(203,213,225,.66);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

#roomsMount .mini-profile .dm-row.me .dm-meta,
#profileMount .mini-profile .dm-row.me .dm-meta {
  color: rgba(219,234,254,.76);
}

#roomsMount .mini-profile .dm-typing,
#profileMount .mini-profile .dm-typing {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  color: #9fb7da;
  font-size: .78rem;
  font-weight: 800;
}

#roomsMount .mini-profile .dm-typing[hidden],
#profileMount .mini-profile .dm-typing[hidden] {
  display: none !important;
}

#roomsMount .mini-profile .dm-embed-foot,
#profileMount .mini-profile .dm-embed-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  background: rgba(3,7,18,.62);
  border: 1px solid rgba(148,163,184,.10);
}

#roomsMount .mini-profile .dm-embed-input,
#profileMount .mini-profile .dm-embed-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: #f8fafc;
  background: rgba(15,23,42,.96);
  border: 1px solid rgba(148,163,184,.14);
  outline: 0;
}

#roomsMount .mini-profile .dm-embed-input:focus,
#profileMount .mini-profile .dm-embed-input:focus {
  border-color: rgba(96,165,250,.58);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

#roomsMount .mini-profile .dm-embed-send,
#profileMount .mini-profile .dm-embed-send {
  flex: 0 0 auto;
  height: 40px;
  min-width: 86px;
  border-radius: 11px;
  background: #1f6feb;
  border: 1px solid rgba(147,197,253,.24);
  color: #fff;
  font-weight: 950;
}

@media (max-width: 640px) {
  body:has(#profileView.is-dm-active:not(.hidden)) #header {
    display: none !important;
  }

  #main:has(#profileView.is-dm-active:not(.hidden)) {
    height: var(--app-vvh, 100dvh);
    min-height: var(--app-vvh, 100dvh);
    max-height: var(--app-vvh, 100dvh);
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  #profileView.is-dm-active,
  #profileView.is-dm-active .profile-page,
  #profileView.is-dm-active #profileMount {
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  #profileView.is-dm-active #profileMount .mini-profile,
  #roomsMount .mini-profile:has(.v-dm.is-active) {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    gap: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow: hidden;
  }

  #profileView.is-dm-active #profileMount .mini-profile .m-body,
  #roomsMount .mini-profile:has(.v-dm.is-active) .m-body {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  #profileView.is-dm-active #profileMount .mini-profile .m-body > .view[data-view-id].is-active,
  #roomsMount .mini-profile:has(.v-dm.is-active) .m-body > .view[data-view-id].is-active {
    height: 100%;
    min-height: 0;
    gap: 0;
    overflow: hidden;
  }

  #roomsMount .mini-profile .v-dm.is-active,
  #profileMount .mini-profile .v-dm.is-active {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.keyboard-open #roomsMount .mini-profile,
  body.keyboard-open #profileMount .mini-profile {
    max-height: 100%;
  }

  body.keyboard-open #roomsMount .mini-profile .v-dm.is-active,
  body.keyboard-open #profileMount .mini-profile .v-dm.is-active,
  body.dm-keyboard-active #roomsMount .mini-profile .v-dm.is-active,
  body.dm-keyboard-active #profileMount .mini-profile .v-dm.is-active {
    height: 100%;
    min-height: 0;
  }

  #roomsMount .mini-profile .dm-embed,
  #profileMount .mini-profile .dm-embed {
    height: 100%;
    min-height: 0;
    gap: 3px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    overflow: hidden;
  }

  #profileView.is-dm-active .profile-header {
    display: none;
  }

  #roomsMount .mini-profile .dm-contact-bar,
  #profileMount .mini-profile .dm-contact-bar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 22px 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 1px 4px;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(12,18,30,.94), rgba(7,11,20,.92));
    border: 0;
    border-bottom: 1px solid rgba(148,163,184,.08);
  }

  #roomsMount .mini-profile .dm-back-btn,
  #profileMount .mini-profile .dm-back-btn {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    color: #dbeafe;
    background: rgba(15,23,42,.86);
    border: 1px solid rgba(148,163,184,.10);
    font-size: .62rem;
    padding: 0;
  }

  #roomsMount .mini-profile .dm-contact-avatar,
  #profileMount .mini-profile .dm-contact-avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(147,197,253,.22);
  }

  #roomsMount .mini-profile .dm-contact-main,
  #profileMount .mini-profile .dm-contact-main {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  #roomsMount .mini-profile .dm-contact-main strong,
  #profileMount .mini-profile .dm-contact-main strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
    font-size: .7rem;
    line-height: 1;
    font-weight: 950;
  }

  #roomsMount .mini-profile .dm-contact-mood,
  #profileMount .mini-profile .dm-contact-mood {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
  }

  #roomsMount .mini-profile .dm-contact-mood img,
  #profileMount .mini-profile .dm-contact-mood img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(96,165,250,.28));
  }

  #roomsMount .mini-profile .dm-contact-mood span,
  #profileMount .mini-profile .dm-contact-mood span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    color: #8ea0b8;
    font-size: .53rem;
    line-height: 1;
    font-weight: 800;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
  }

  #roomsMount .mini-profile .dm-contact-mood em,
  #profileMount .mini-profile .dm-contact-mood em {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    font-style: normal;
    animation: dm-contact-marquee 9s linear infinite;
  }

  #roomsMount .mini-profile .dm-contact-badge,
  #profileMount .mini-profile .dm-contact-badge {
    display: block;
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter:
      drop-shadow(0 0 6px rgba(96,165,250,.45))
      drop-shadow(0 0 12px rgba(31,111,235,.24));
    animation: dm-badge-glow 2.4s ease-in-out infinite;
    transform-origin: center;
  }

  @keyframes dm-contact-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  @keyframes dm-badge-glow {
    0%, 100% {
      transform: translateY(0) scale(1);
      filter:
        drop-shadow(0 0 5px rgba(96,165,250,.38))
        drop-shadow(0 0 11px rgba(31,111,235,.20));
    }
    50% {
      transform: translateY(-1px) scale(1.06);
      filter:
        drop-shadow(0 0 8px rgba(147,197,253,.58))
        drop-shadow(0 0 16px rgba(31,111,235,.34));
    }
  }

  #roomsMount .mini-profile .dm-embed-log,
  #profileMount .mini-profile .dm-embed-log {
    flex: 1 1 auto;
    min-height: 0;
    margin: 3px 3px 0;
    padding: 6px 5px;
    gap: 3px;
    border: 1px solid rgba(96,165,250,.11);
    border-radius: 12px;
    background:
      radial-gradient(circle at 18% 0%, rgba(59,130,246,.10), transparent 32%),
      linear-gradient(180deg, rgba(6,11,21,.74), rgba(3,7,14,.90));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 18px rgba(0,0,0,.16);
  }

  #roomsMount .mini-profile .dm-row,
  #profileMount .mini-profile .dm-row {
    gap: 4px;
    padding: 2px 2px;
  }

  #roomsMount .mini-profile .dm-mini-avatar-wrap,
  #profileMount .mini-profile .dm-mini-avatar-wrap {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
  }

  #roomsMount .mini-profile .dm-mini-stack,
  #profileMount .mini-profile .dm-mini-stack {
    max-width: calc(100% - 34px);
  }

  #roomsMount .mini-profile .dm-mini-name,
  #profileMount .mini-profile .dm-mini-name {
    max-width: 96px;
    font-size: .58rem;
    color: #9fb7da;
  }

  #roomsMount .mini-profile .dm-mini-badge,
  #profileMount .mini-profile .dm-mini-badge,
  #roomsMount .mini-profile .dm-mini-mood,
  #profileMount .mini-profile .dm-mini-mood {
    display: none;
  }

  #roomsMount .mini-profile .dm-mini-mood-text,
  #profileMount .mini-profile .dm-mini-mood-text {
    display: none;
  }

  #roomsMount .mini-profile .dm-bubble,
  #profileMount .mini-profile .dm-bubble {
    padding: 5px 8px;
    border-radius: 11px 11px 11px 4px;
    color: #e6edf7;
    background:
      linear-gradient(180deg, rgba(19,27,42,.96), rgba(12,18,30,.96));
    border: 1px solid rgba(148,163,184,.11);
    font-size: .78rem;
    line-height: 1.23;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
  }

  #roomsMount .mini-profile .dm-row.me .dm-bubble,
  #profileMount .mini-profile .dm-row.me .dm-bubble {
    border-radius: 11px 11px 4px 11px;
    background:
      linear-gradient(135deg, rgba(31,111,235,.98), rgba(22,82,190,.96));
    border-color: rgba(147,197,253,.22);
    box-shadow: 0 5px 12px rgba(31,111,235,.16);
  }

  #roomsMount .mini-profile .dm-embed-foot,
  #profileMount .mini-profile .dm-embed-foot {
    flex: 0 0 auto;
    position: static;
    z-index: 20;
    gap: 4px;
    padding: 4px;
    margin: 3px;
    margin-top: 2px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(9,14,24,.96), rgba(5,9,17,.98));
    border: 1px solid rgba(148,163,184,.10);
    backdrop-filter: blur(12px);
  }

  #roomsMount .mini-profile .dm-embed-input,
  #profileMount .mini-profile .dm-embed-input {
    height: 34px;
    padding: 0 9px;
    font-size: .84rem;
    border-radius: 10px;
    background: rgba(15,23,42,.88);
    border-color: rgba(148,163,184,.12);
  }

  #roomsMount .mini-profile .dm-embed-send,
  #profileMount .mini-profile .dm-embed-send {
    height: 34px;
    min-width: 58px;
    padding: 0 8px;
    font-size: .72rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f6feb, #155bd6);
  }
}

.vip-gift-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.vip-gift-tabs::-webkit-scrollbar {
  display: none;
}

.vip-gift-catalog,
.v-gifts .vip-gift-catalog {
  max-height: none;
  overflow: visible;
}

.vip-gift-selected,
.v-gifts .vip-gift-selected {
  position: static;
  bottom: auto;
}

.gift-shelf-row,
.gift-archive-grid {
  overflow: visible;
}

@media (max-width: 640px) {
  #roomsMount .mini-profile .m-toolbar,
  #profileMount .mini-profile .m-toolbar {
    position: static;
    order: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }

  #roomsMount .mini-profile .tabbar,
  #profileMount .mini-profile .tabbar {
    overflow: visible;
  }

  .v-gifts .vip-gift-selected {
    position: static;
    bottom: auto;
    box-shadow: none;
  }
}

/* Restore original tabs, keep panels organized */
#roomsMount .mini-profile .m-toolbar,
#profileMount .mini-profile .m-toolbar {
  order: initial;
  position: static;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border-top: 0;
  backdrop-filter: none;
}

#roomsMount .mini-profile .tabbar,
#profileMount .mini-profile .tabbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 10px;
  background: rgba(6,9,15,.28);
  overflow: visible;
}

#roomsMount .mini-profile .tabbar .tab-btn,
#profileMount .mini-profile .tabbar .tab-btn {
  min-width: 0;
  min-height: 32px;
  padding: 0 7px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  font-size: .78rem;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

#roomsMount .mini-profile .tabbar .tab-btn::before,
#profileMount .mini-profile .tabbar .tab-btn::before {
  content: none !important;
}

#roomsMount .mini-profile .tabbar .tab-btn.is-active,
#roomsMount .mini-profile .tabbar .tab-btn.active,
#roomsMount .mini-profile .tabbar .tab-btn[aria-selected="true"],
#profileMount .mini-profile .tabbar .tab-btn.is-active,
#profileMount .mini-profile .tabbar .tab-btn.active,
#profileMount .mini-profile .tabbar .tab-btn[aria-selected="true"] {
  color: #f8fafc;
  background: #1f6feb;
  border-color: rgba(138,180,248,.35);
  box-shadow: none;
}

#roomsMount .mini-profile .m-body,
#profileMount .mini-profile .m-body {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

#roomsMount .mini-profile .m-body > .view[data-view-id].is-active,
#profileMount .mini-profile .m-body > .view[data-view-id].is-active {
  min-height: 100%;
  gap: 8px;
}

#roomsMount .mini-profile .v-gifts,
#profileMount .mini-profile .v-gifts {
  min-height: 100%;
}

.v-gifts .vip-gift-card {
  width: 100%;
  min-height: 100%;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,.84), rgba(8,13,23,.86));
  border: 1px solid rgba(226,232,240,.14);
  display: flex;
  flex-direction: column;
}

.v-gifts .vip-gift-shop-head {
  padding-bottom: 10px;
}

.v-gifts .vip-gift-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 38px;
  gap: 6px;
  margin: 8px 0 7px;
  overflow: visible;
  scrollbar-width: auto;
  mask-image: none;
}

.v-gifts .vip-gift-tabs::-webkit-scrollbar {
  display: none;
}

.v-gifts .vip-gift-tab,
.vip-gift-tab {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  font-size: .68rem;
  white-space: nowrap;
}

.v-gifts .vip-gift-cat-toggle {
  padding: 0;
}

.vip-gift-category-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 6px;
  margin: 0 0 8px;
  padding: 7px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(11,17,29,.86), rgba(7,12,22,.92));
  border: 1px solid rgba(148,163,184,.12);
}

.vip-gift-category-panel[hidden] {
  display: none !important;
}

.vip-gift-cat {
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.13);
  background: rgba(15,23,42,.72);
  color: #c9d7ec;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.vip-gift-cat:hover,
.vip-gift-cat.is-active {
  color: #fff;
  border-color: rgba(96,165,250,.34);
  background: linear-gradient(135deg, rgba(31,111,235,.82), rgba(37,99,235,.64));
  box-shadow: 0 8px 18px rgba(31,111,235,.14);
}

.v-gifts .vip-gift-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  max-height: none;
  overflow-y: auto;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.v-gifts .vip-gift-selected {
  position: static;
  bottom: auto;
  margin-top: 10px;
  box-shadow: none;
}

.v-gifts .vip-gift-selected[hidden] {
  display: none !important;
}

.v-gifts .vip-gift-card.is-composing-gift {
  justify-content: stretch;
}

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-selected {
  flex: 1 1 auto;
  min-height: min(430px, 62vh);
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
}

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-message {
  min-height: 170px;
}

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-send {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 640px) {
  #roomsMount .mini-profile .tabbar,
  #profileMount .mini-profile .tabbar {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  }

  #roomsMount .mini-profile .tabbar .tab-btn,
  #profileMount .mini-profile .tabbar .tab-btn {
    min-height: 34px;
    padding: 0 6px;
    font-size: .72rem;
  }

  #roomsMount .mini-profile .m-body,
  #profileMount .mini-profile .m-body {
    padding-right: 2px;
  }

  .v-gifts .vip-gift-card {
    padding: 10px;
    border-radius: 12px;
    min-height: calc(var(--app-vvh, 100vh) - 160px);
  }

  .v-gifts .vip-gift-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 34px;
    gap: 5px;
    margin: 7px 0;
  }

  .v-gifts .vip-gift-tab,
  .vip-gift-tab {
    min-height: 30px;
    padding: 0 5px;
    font-size: .64rem;
  }

  .vip-gift-category-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 104px;
    overflow-y: auto;
    padding: 6px;
  }

  .vip-gift-cat {
    min-height: 27px;
    font-size: .63rem;
  }

  .v-gifts .vip-gift-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .v-gifts .vip-gift-card.is-composing-gift .vip-gift-selected {
    min-height: min(430px, calc(var(--app-vvh, 100vh) - 210px));
  }
}

/* Better use of profile info space: gifts + details */
#roomsMount .mini-profile .view[data-view-id="info"].is-active,
#profileMount .mini-profile .view[data-view-id="info"].is-active {
  display: grid !important;
  grid-template-columns: minmax(230px, .82fr) minmax(320px, 1.18fr);
  grid-auto-flow: dense;
  align-content: start;
  align-items: start;
  gap: 10px;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
  grid-column: 1;
  grid-row: span 2;
  margin: 0;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#profileMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#roomsMount .mini-profile .view[data-view-id="info"] > .facts-card,
#profileMount .mini-profile .view[data-view-id="info"] > .facts-card {
  grid-column: 2;
  margin: 0;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .info-card,
#profileMount .mini-profile .view[data-view-id="info"] > .info-card {
  grid-column: 1 / -1;
}

#roomsMount .mini-profile .gift-shelf,
#profileMount .mini-profile .gift-shelf {
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(251,191,36,.09), transparent 36%),
    linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.84));
  border: 1px solid rgba(148,163,184,.13);
  box-shadow: none;
}

#roomsMount .mini-profile .gift-shelf-head,
#profileMount .mini-profile .gift-shelf-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}

#roomsMount .mini-profile .gift-shelf-head span,
#profileMount .mini-profile .gift-shelf-head span {
  font-size: .9rem;
}

#roomsMount .mini-profile .gift-shelf-row,
#profileMount .mini-profile .gift-shelf-row,
#roomsMount .mini-profile .gift-archive-grid,
#profileMount .mini-profile .gift-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 7px;
  overflow: visible;
  padding: 0;
}

#roomsMount .mini-profile .gift-tile,
#profileMount .mini-profile .gift-tile,
#roomsMount .mini-profile .gift-shelf-grid > .gift-tile,
#profileMount .mini-profile .gift-shelf-grid > .gift-tile,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3) {
  grid-column: auto;
  min-height: 108px;
  padding: 8px 6px;
  border-radius: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.08), transparent 38%),
    linear-gradient(180deg, rgba(30,41,59,.58), rgba(15,23,42,.78));
  border-color: rgba(148,163,184,.12);
}

#roomsMount .mini-profile .gift-shelf .gift-art,
#profileMount .mini-profile .gift-shelf .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
  height: 46px;
}

#roomsMount .mini-profile .gift-shelf .gift-img,
#profileMount .mini-profile .gift-shelf .gift-img {
  max-width: 50px;
}

#roomsMount .mini-profile .gift-shelf .gift-emoji,
#profileMount .mini-profile .gift-shelf .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
  font-size: 1.75rem;
}

#roomsMount .mini-profile .gift-shelf .gift-name,
#profileMount .mini-profile .gift-shelf .gift-name {
  font-size: .64rem;
}

#roomsMount .mini-profile .gift-meta,
#profileMount .mini-profile .gift-meta {
  min-height: 0;
  font-size: .52rem;
}

#roomsMount .mini-profile .gift-note,
#profileMount .mini-profile .gift-note {
  display: none;
}

#roomsMount .mini-profile .gift-archive,
#profileMount .mini-profile .gift-archive {
  margin-top: 9px;
  padding-top: 8px;
}

#roomsMount .mini-profile .facts-card,
#profileMount .mini-profile .facts-card,
#roomsMount .mini-profile .profile-story-card,
#profileMount .mini-profile .profile-story-card {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,.78), rgba(10,15,25,.84));
}

#roomsMount .mini-profile .facts-grid,
#profileMount .mini-profile .facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

#roomsMount .mini-profile .fact-item,
#profileMount .mini-profile .fact-item {
  min-height: 64px;
  padding: 9px;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.72), rgba(6,9,15,.52));
}

#roomsMount .mini-profile .fact-item:nth-child(1),
#profileMount .mini-profile .fact-item:nth-child(1),
#roomsMount .mini-profile .fact-item:nth-child(4),
#profileMount .mini-profile .fact-item:nth-child(4) {
  grid-column: span 2;
}

#roomsMount .mini-profile .fact-chip,
#profileMount .mini-profile .fact-chip {
  max-width: 100%;
}

@media (max-width: 760px) {
  #roomsMount .mini-profile .view[data-view-id="info"].is-active,
  #profileMount .mini-profile .view[data-view-id="info"].is-active {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  #roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
  #profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
  #roomsMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
  #profileMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
  #roomsMount .mini-profile .view[data-view-id="info"] > .facts-card,
  #profileMount .mini-profile .view[data-view-id="info"] > .facts-card,
  #roomsMount .mini-profile .view[data-view-id="info"] > .info-card,
  #profileMount .mini-profile .view[data-view-id="info"] > .info-card {
    grid-column: auto;
  }

  #roomsMount .mini-profile .gift-shelf-row,
  #profileMount .mini-profile .gift-shelf-row,
  #roomsMount .mini-profile .gift-archive-grid,
  #profileMount .mini-profile .gift-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #roomsMount .mini-profile .facts-grid,
  #profileMount .mini-profile .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #roomsMount .mini-profile .fact-item:nth-child(1),
  #profileMount .mini-profile .fact-item:nth-child(1),
  #roomsMount .mini-profile .fact-item:nth-child(4),
  #profileMount .mini-profile .fact-item:nth-child(4) {
    grid-column: auto;
  }
}

/* Narrow profile column: make received gifts visible and details compact */
#roomsMount .mini-profile,
#profileMount .mini-profile {
  container-type: inline-size;
}

@container (max-width: 620px) {
  .mini-profile .view[data-view-id="info"].is-active {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  .mini-profile .view[data-view-id="info"] > .gift-shelf,
  .mini-profile .view[data-view-id="info"] > .profile-story-card,
  .mini-profile .view[data-view-id="info"] > .facts-card,
  .mini-profile .view[data-view-id="info"] > .info-card {
    grid-column: auto;
    width: 100%;
    margin: 0;
  }

  .mini-profile .gift-shelf {
    order: 0;
    padding: 9px;
    border-radius: 12px;
  }

  .mini-profile .facts-card {
    order: 1;
    padding: 10px;
  }

  .mini-profile .profile-story-card {
    order: 2;
  }

  .mini-profile .info-card {
    order: 3;
  }

  .mini-profile .gift-shelf-head {
    min-height: 26px;
    margin-bottom: 8px;
    padding-bottom: 7px;
  }

  .mini-profile .gift-shelf-head span {
    font-size: .82rem;
  }

  .mini-profile .gift-shelf-head small {
    display: none;
  }

  .mini-profile .gift-shelf-head strong {
    min-width: 24px;
    height: 22px;
    font-size: .68rem;
  }

  .mini-profile .gift-shelf-row,
  .mini-profile .gift-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .mini-profile .gift-tile,
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
  .mini-profile .gift-archive-grid .gift-tile {
    min-height: 82px;
    padding: 6px 4px;
    gap: 3px;
    border-radius: 10px;
  }

  .mini-profile .gift-shelf .gift-art,
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
    height: 36px;
  }

  .mini-profile .gift-shelf .gift-img {
    max-width: 38px;
    max-height: 38px;
  }

  .mini-profile .gift-shelf .gift-emoji,
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
  .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
    font-size: 1.45rem;
  }

  .mini-profile .gift-shelf .gift-name {
    margin-top: 0;
    font-size: .58rem;
    line-height: 1.05;
  }

  .mini-profile .gift-meta,
  .mini-profile .gift-note {
    display: none;
  }

  .mini-profile .gift-controls {
    top: 3px;
    right: 3px;
  }

  .mini-profile .gift-controls button {
    width: 19px;
    height: 19px;
  }

  .mini-profile .gift-archive {
    margin-top: 7px;
    padding-top: 7px;
  }

  .mini-profile .gift-archive summary {
    padding: 6px 8px;
    font-size: .66rem;
  }

  .mini-profile .facts-title {
    margin-bottom: 8px;
    padding-bottom: 7px;
    font-size: .84rem;
  }

  .mini-profile .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .mini-profile .fact-item,
  .mini-profile .fact-item:nth-child(1),
  .mini-profile .fact-item:nth-child(4) {
    grid-column: auto;
    min-height: 56px;
    padding: 7px;
    gap: 6px;
    border-radius: 10px;
  }

  .mini-profile .fact-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: .78rem;
  }

  .mini-profile .fact-label {
    margin-bottom: 4px;
    font-size: .58rem;
    letter-spacing: .04em;
  }

  .mini-profile .fact-chip {
    padding: 3px 6px;
    font-size: .66rem;
    line-height: 1.05;
  }
}

@container (max-width: 380px) {
  .mini-profile .gift-shelf-row,
  .mini-profile .gift-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-profile .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* Final profile info layout: compact, no wasted desktop space */
#roomsMount .mini-profile .view[data-view-id="info"].is-active,
#profileMount .mini-profile .view[data-view-id="info"].is-active {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#roomsMount .mini-profile .view[data-view-id="info"] > .facts-card,
#profileMount .mini-profile .view[data-view-id="info"] > .facts-card,
#roomsMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#profileMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#roomsMount .mini-profile .view[data-view-id="info"] > .info-card,
#profileMount .mini-profile .view[data-view-id="info"] > .info-card {
  width: 100%;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}

#roomsMount .mini-profile .gift-shelf,
#profileMount .mini-profile .gift-shelf {
  order: 0;
  padding: 8px;
  border-radius: 11px;
}

#roomsMount .mini-profile .facts-card,
#profileMount .mini-profile .facts-card {
  order: 1;
  padding: 9px;
  border-radius: 11px;
}

#roomsMount .mini-profile .profile-story-card,
#profileMount .mini-profile .profile-story-card {
  order: 2;
}

#roomsMount .mini-profile .info-card,
#profileMount .mini-profile .info-card {
  order: 3;
}

#roomsMount .mini-profile .gift-shelf-head,
#profileMount .mini-profile .gift-shelf-head {
  min-height: 0;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

#roomsMount .mini-profile .gift-shelf-head span,
#profileMount .mini-profile .gift-shelf-head span,
#roomsMount .mini-profile .facts-title,
#profileMount .mini-profile .facts-title {
  font-size: .82rem;
}

#roomsMount .mini-profile .gift-shelf-head small,
#profileMount .mini-profile .gift-shelf-head small {
  display: none;
}

#roomsMount .mini-profile .gift-shelf-row,
#profileMount .mini-profile .gift-shelf-row,
#roomsMount .mini-profile .gift-archive-grid,
#profileMount .mini-profile .gift-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 0;
}

#roomsMount .mini-profile .gift-tile,
#profileMount .mini-profile .gift-tile,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#roomsMount .mini-profile .gift-archive-grid .gift-tile,
#profileMount .mini-profile .gift-archive-grid .gift-tile {
  grid-column: auto;
  min-height: 76px;
  padding: 5px 4px;
  gap: 2px;
  border-radius: 9px;
}

#roomsMount .mini-profile .gift-shelf .gift-art,
#profileMount .mini-profile .gift-shelf .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
  height: 32px;
}

#roomsMount .mini-profile .gift-shelf .gift-img,
#profileMount .mini-profile .gift-shelf .gift-img {
  max-width: 34px;
  max-height: 34px;
}

#roomsMount .mini-profile .gift-shelf .gift-emoji,
#profileMount .mini-profile .gift-shelf .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
  font-size: 1.3rem;
}

#roomsMount .mini-profile .gift-shelf .gift-name,
#profileMount .mini-profile .gift-shelf .gift-name {
  font-size: .55rem;
  line-height: 1.05;
}

#roomsMount .mini-profile .gift-meta,
#profileMount .mini-profile .gift-meta,
#roomsMount .mini-profile .gift-note,
#profileMount .mini-profile .gift-note {
  display: none;
}

#roomsMount .mini-profile .facts-title,
#profileMount .mini-profile .facts-title {
  margin-bottom: 7px;
  padding-bottom: 6px;
}

#roomsMount .mini-profile .facts-grid,
#profileMount .mini-profile .facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

#roomsMount .mini-profile .fact-item,
#profileMount .mini-profile .fact-item,
#roomsMount .mini-profile .fact-item:nth-child(1),
#profileMount .mini-profile .fact-item:nth-child(1),
#roomsMount .mini-profile .fact-item:nth-child(4),
#profileMount .mini-profile .fact-item:nth-child(4) {
  grid-column: auto;
  min-height: 50px;
  padding: 7px;
  gap: 6px;
  border-radius: 9px;
}

#roomsMount .mini-profile .fact-icon,
#profileMount .mini-profile .fact-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  font-size: .76rem;
}

#roomsMount .mini-profile .fact-label,
#profileMount .mini-profile .fact-label {
  margin-bottom: 3px;
  font-size: .56rem;
  letter-spacing: .04em;
}

#roomsMount .mini-profile .fact-chip,
#profileMount .mini-profile .fact-chip {
  padding: 3px 6px;
  font-size: .64rem;
  line-height: 1.05;
}

@media (min-width: 900px) {
  #roomsMount .mini-profile .facts-grid,
  #profileMount .mini-profile .facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
}

/* Profile info: details first, received gifts as bottom grid */
#roomsMount .mini-profile .view[data-view-id="info"].is-active,
#profileMount .mini-profile .view[data-view-id="info"].is-active {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .facts-card,
#profileMount .mini-profile .view[data-view-id="info"] > .facts-card,
#roomsMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#profileMount .mini-profile .view[data-view-id="info"] > .profile-story-card,
#roomsMount .mini-profile .view[data-view-id="info"] > .info-card,
#profileMount .mini-profile .view[data-view-id="info"] > .info-card {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

#roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
  grid-column: 1 / -1;
  order: 40;
  width: 100%;
  margin: 0;
}

#roomsMount .mini-profile .gift-shelf,
#profileMount .mini-profile .gift-shelf,
#roomsMount .mini-profile .facts-card,
#profileMount .mini-profile .facts-card,
#roomsMount .mini-profile .profile-story-card,
#profileMount .mini-profile .profile-story-card {
  box-shadow: none;
}

#roomsMount .mini-profile .gift-shelf,
#profileMount .mini-profile .gift-shelf {
  padding: 7px;
  border-radius: 16px;
  background: rgba(5,10,20,.54);
  border: 1px solid rgba(148,163,184,.12);
}

#roomsMount .mini-profile .gift-shelf::before,
#profileMount .mini-profile .gift-shelf::before {
  display: none;
}

#roomsMount .mini-profile .gift-shelf-head,
#profileMount .mini-profile .gift-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin: 0 0 7px;
  padding: 0;
  text-align: left;
  border-bottom: 1px solid rgba(148,163,184,.10);
}

#roomsMount .mini-profile .gift-shelf-head span,
#profileMount .mini-profile .gift-shelf-head span {
  font-size: .68rem;
  line-height: 1;
}

#roomsMount .mini-profile .gift-shelf-head small,
#profileMount .mini-profile .gift-shelf-head small {
  display: block;
}

#roomsMount .mini-profile .gift-shelf-head strong,
#profileMount .mini-profile .gift-shelf-head strong {
  min-width: 22px;
  height: 20px;
  font-size: .64rem;
}

#roomsMount .mini-profile .gift-shelf-row,
#profileMount .mini-profile .gift-shelf-row,
#roomsMount .mini-profile .gift-shelf-grid,
#profileMount .mini-profile .gift-shelf-grid,
#roomsMount .mini-profile .gift-archive-grid,
#profileMount .mini-profile .gift-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 0;
}

#roomsMount .mini-profile .gift-tile,
#profileMount .mini-profile .gift-tile,
#roomsMount .mini-profile .gift-shelf-grid > .gift-tile,
#profileMount .mini-profile .gift-shelf-grid > .gift-tile,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#roomsMount .mini-profile .gift-archive-grid .gift-tile,
#profileMount .mini-profile .gift-archive-grid .gift-tile {
  min-height: 82px;
  padding: 7px 5px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 14px;
  background: rgba(6,9,15,.42);
  border: 1px solid rgba(148,163,184,.10);
  cursor: pointer;
}

#roomsMount .mini-profile .gift-shelf .gift-art,
#profileMount .mini-profile .gift-shelf .gift-art,
#roomsMount .mini-profile .gift-shelf-grid > .gift-tile .gift-art,
#profileMount .mini-profile .gift-shelf-grid > .gift-tile .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-art,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-art {
  height: 38px;
}

#roomsMount .mini-profile .gift-shelf .gift-img,
#profileMount .mini-profile .gift-shelf .gift-img {
  max-width: 38px;
  max-height: 38px;
}

#roomsMount .mini-profile .gift-shelf .gift-emoji,
#profileMount .mini-profile .gift-shelf .gift-emoji,
#roomsMount .mini-profile .gift-shelf-grid > .gift-tile .gift-emoji,
#profileMount .mini-profile .gift-shelf-grid > .gift-tile .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1) .gift-emoji,
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2) .gift-emoji {
  font-size: 1.55rem;
}

#roomsMount .mini-profile .gift-shelf .gift-name,
#profileMount .mini-profile .gift-shelf .gift-name {
  max-width: 100%;
  font-size: .62rem;
  line-height: 1;
}

.gift-detail-lightbox .gift-detail-pop,
#roomsMount .mini-profile .gift-detail-pop,
#profileMount .mini-profile .gift-detail-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  width: min(380px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 16% 10%, rgba(96,165,250,.18), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(34,197,94,.10), transparent 30%),
    #0b111d;
  border: 1px solid rgba(147,197,253,.20);
  box-shadow:
    0 24px 70px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.03) inset;
  text-align: left;
  backdrop-filter: blur(14px);
}

.gift-detail-lightbox .gift-detail-top,
#roomsMount .mini-profile .gift-detail-top,
#profileMount .mini-profile .gift-detail-top,
.gift-detail-lightbox .gift-detail-main,
#roomsMount .mini-profile .gift-detail-main,
#profileMount .mini-profile .gift-detail-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gift-detail-lightbox .gift-detail-top,
#roomsMount .mini-profile .gift-detail-top,
#profileMount .mini-profile .gift-detail-top {
  padding: 8px;
  border-radius: 16px;
  background: rgba(15,23,42,.62);
  border: 1px solid rgba(148,163,184,.10);
}

.gift-detail-lightbox .gift-detail-sender-avatar,
#roomsMount .mini-profile .gift-detail-sender-avatar,
#profileMount .mini-profile .gift-detail-sender-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  padding: 3px;
  background:
    linear-gradient(#0b111d, #0b111d) padding-box,
    linear-gradient(135deg, rgba(96,165,250,.95), rgba(34,197,94,.62), rgba(250,204,21,.55)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 12px 30px rgba(37,99,235,.30),
    0 0 24px rgba(96,165,250,.18);
}

.gift-detail-lightbox .gift-detail-sender-avatar::before,
#roomsMount .mini-profile .gift-detail-sender-avatar::before,
#profileMount .mini-profile .gift-detail-sender-avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(96,165,250,.28), transparent 62%),
    radial-gradient(circle at 80% 18%, rgba(34,197,94,.16), transparent 48%);
  filter: blur(2px);
}

.gift-detail-lightbox .gift-detail-sender-avatar::after,
#roomsMount .mini-profile .gift-detail-sender-avatar::after,
#profileMount .mini-profile .gift-detail-sender-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #0b111d;
  box-shadow: 0 0 12px rgba(34,197,94,.75);
}

.gift-detail-lightbox .gift-detail-sender-avatar img,
#roomsMount .mini-profile .gift-detail-sender-avatar img,
#profileMount .mini-profile .gift-detail-sender-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.gift-detail-lightbox .gift-detail-main,
#roomsMount .mini-profile .gift-detail-main,
#profileMount .mini-profile .gift-detail-main {
  align-items: stretch;
}

.gift-detail-lightbox .gift-detail-art,
#roomsMount .mini-profile .gift-detail-art,
#profileMount .mini-profile .gift-detail-art {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.14), transparent 44%),
    rgba(15,23,42,.66);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.gift-detail-lightbox .gift-detail-art.can-replay,
#roomsMount .mini-profile .gift-detail-art.can-replay,
#profileMount .mini-profile .gift-detail-art.can-replay {
  cursor: pointer;
  border-color: rgba(45,212,191,.30);
  box-shadow:
    0 0 0 4px rgba(45,212,191,.08),
    0 16px 34px rgba(45,212,191,.14),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.gift-detail-lightbox .gift-detail-art.can-replay:hover,
#roomsMount .mini-profile .gift-detail-art.can-replay:hover,
#profileMount .mini-profile .gift-detail-art.can-replay:hover {
  transform: translateY(-1px) scale(1.02);
}

.gift-detail-lightbox .gift-detail-gift,
#roomsMount .mini-profile .gift-detail-gift,
#profileMount .mini-profile .gift-detail-gift,
.gift-detail-lightbox .gift-detail-copy,
#roomsMount .mini-profile .gift-detail-copy,
#profileMount .mini-profile .gift-detail-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.gift-detail-lightbox .gift-detail-art .gift-img,
#roomsMount .mini-profile .gift-detail-art .gift-img,
#profileMount .mini-profile .gift-detail-art .gift-img {
  max-width: 66px;
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.42));
}

.gift-detail-lightbox .gift-detail-art .gift-emoji,
#roomsMount .mini-profile .gift-detail-art .gift-emoji,
#profileMount .mini-profile .gift-detail-art .gift-emoji {
  font-size: 2.35rem;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.42));
}

.gift-detail-lightbox .gift-detail-label,
#roomsMount .mini-profile .gift-detail-label,
#profileMount .mini-profile .gift-detail-label {
  color: #93a4bd;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gift-detail-lightbox .gift-detail-name,
#roomsMount .mini-profile .gift-detail-name,
#profileMount .mini-profile .gift-detail-name {
  margin-top: 2px;
  color: #dbeafe;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.1;
}

.gift-detail-lightbox .gift-detail-name span,
#roomsMount .mini-profile .gift-detail-name span,
#profileMount .mini-profile .gift-detail-name span {
  margin-left: 6px;
  color: #86efac;
  font-size: .66rem;
}

.gift-detail-lightbox .gift-detail-sender,
#roomsMount .mini-profile .gift-detail-sender,
#profileMount .mini-profile .gift-detail-sender {
  margin-top: 3px;
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.08;
  text-shadow:
    0 0 10px rgba(96,165,250,.36),
    0 1px 0 rgba(0,0,0,.55);
}

.gift-detail-lightbox .gift-detail-date,
#roomsMount .mini-profile .gift-detail-date,
#profileMount .mini-profile .gift-detail-date {
  margin-top: 4px;
  color: #93a4bd;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
}

.gift-detail-lightbox .gift-detail-message,
#roomsMount .mini-profile .gift-detail-message,
#profileMount .mini-profile .gift-detail-message {
  margin-top: 9px;
  padding: 9px 10px;
  color: #cbd5e1;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 12px;
  font-size: .76rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.gift-detail-lightbox .gift-detail-popularity,
#roomsMount .mini-profile .gift-detail-popularity,
#profileMount .mini-profile .gift-detail-popularity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fef3c7;
  background:
    linear-gradient(180deg, rgba(250,204,21,.14), rgba(15,23,42,.62));
  border: 1px solid rgba(250,204,21,.22);
  box-shadow: 0 0 18px rgba(250,204,21,.10);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.12;
}

.gift-detail-lightbox .gift-detail-popularity i,
#roomsMount .mini-profile .gift-detail-popularity i,
#profileMount .mini-profile .gift-detail-popularity i {
  color: #facc15;
  font-size: .78rem;
  filter: drop-shadow(0 0 7px rgba(250,204,21,.55));
}

.gift-detail-lightbox .gift-detail-replay,
#roomsMount .mini-profile .gift-detail-replay,
#profileMount .mini-profile .gift-detail-replay {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(45,212,191,.30);
  border-radius: 13px;
  color: #ecfeff;
  background:
    radial-gradient(circle at 25% 0%, rgba(45,212,191,.26), transparent 48%),
    linear-gradient(135deg, rgba(15,118,110,.72), rgba(91,33,182,.72));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 12px 28px rgba(20,184,166,.16);
  font-size: .76rem;
  font-weight: 950;
  cursor: pointer;
}

.gift-detail-lightbox .gift-detail-replay:hover,
#roomsMount .mini-profile .gift-detail-replay:hover,
#profileMount .mini-profile .gift-detail-replay:hover {
  transform: translateY(-1px);
  border-color: rgba(94,234,212,.48);
}

.gift-detail-lightbox .gift-detail-close,
#roomsMount .mini-profile .gift-detail-close,
#profileMount .mini-profile .gift-detail-close {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255,255,255,.07);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.gift-detail-lightbox .gift-detail-close:hover,
#roomsMount .mini-profile .gift-detail-close:hover,
#profileMount .mini-profile .gift-detail-close:hover {
  color: #ffffff;
  background: rgba(96,165,250,.22);
  transform: scale(1.04);
}

#roomsMount .mini-profile .gift-meta,
#profileMount .mini-profile .gift-meta,
#roomsMount .mini-profile .gift-note,
#profileMount .mini-profile .gift-note {
  display: none;
}

#roomsMount .mini-profile .gift-archive,
#profileMount .mini-profile .gift-archive {
  margin-top: 5px;
  padding-top: 4px;
}

#roomsMount .mini-profile .gift-archive summary,
#profileMount .mini-profile .gift-archive summary {
  width: 100%;
  padding: 4px 2px;
  text-align: center;
  font-size: .56rem;
}

#roomsMount .mini-profile .facts-card,
#profileMount .mini-profile .facts-card,
#roomsMount .mini-profile .profile-story-card,
#profileMount .mini-profile .profile-story-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

#roomsMount .mini-profile .facts-title,
#profileMount .mini-profile .facts-title,
#roomsMount .mini-profile .profile-story-title,
#profileMount .mini-profile .profile-story-title {
  margin-bottom: 5px;
  padding-bottom: 4px;
  font-size: .8rem;
}

#roomsMount .mini-profile .facts-grid,
#profileMount .mini-profile .facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#roomsMount .mini-profile .fact-item,
#profileMount .mini-profile .fact-item,
#roomsMount .mini-profile .fact-item:nth-child(1),
#profileMount .mini-profile .fact-item:nth-child(1),
#roomsMount .mini-profile .fact-item:nth-child(4),
#profileMount .mini-profile .fact-item:nth-child(4) {
  grid-column: auto;
  min-height: 48px;
  padding: 6px;
  gap: 5px;
  border-radius: 10px;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(148,163,184,.10);
}

#roomsMount .mini-profile .fact-icon,
#profileMount .mini-profile .fact-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}

#roomsMount .mini-profile .fact-label,
#profileMount .mini-profile .fact-label {
  margin-bottom: 3px;
  font-size: .55rem;
  letter-spacing: .04em;
}

#roomsMount .mini-profile .fact-chip,
#profileMount .mini-profile .fact-chip {
  padding: 3px 6px;
  font-size: .63rem;
  line-height: 1.05;
}

@media (max-width: 420px) {
  #roomsMount .mini-profile .view[data-view-id="info"].is-active,
  #profileMount .mini-profile .view[data-view-id="info"].is-active {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 7px;
  }

  #roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
  #profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
    width: 72px;
  }

  #roomsMount .mini-profile .facts-grid,
  #profileMount .mini-profile .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile app-style header, status icons and gifts */
#roomsMount .mini-profile,
#profileMount .mini-profile {
  background:
    linear-gradient(180deg, rgba(7,10,16,.96), rgba(3,5,10,.98));
  border-color: rgba(255,255,255,.08);
}

#roomsMount .mini-profile .m-head,
#profileMount .mini-profile .m-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(170px, auto);
  grid-template-areas:
    "avatar name status"
    "mood mood mood";
  align-items: center;
  padding: 8px;
  gap: 5px 7px;
  border-radius: 22px;
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,92,173,.62), transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(150,255,55,.58), transparent 34%),
    radial-gradient(circle at 46% 18%, rgba(96,165,250,.38), transparent 34%),
    linear-gradient(180deg, rgba(18,24,35,.92) 0%, rgba(5,7,13,.98) 68%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 18px 34px rgba(0,0,0,.34);
}

#roomsMount .mini-profile .profile-cover,
#profileMount .mini-profile .profile-cover {
  position: absolute;
  inset: 0 0 auto 0;
  height: 92px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.76)),
    var(--profile-cover) center/cover no-repeat;
  opacity: .72;
  pointer-events: none;
}

#roomsMount .mini-profile .profile-cover::after,
#profileMount .mini-profile .profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(96,165,250,.20), transparent 34%),
    linear-gradient(90deg, rgba(5,8,14,.18), rgba(5,8,14,.56));
}

#roomsMount .mini-profile .m-head::before,
#profileMount .mini-profile .m-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 42%);
  opacity: .55;
}

#roomsMount .mini-profile .m-head > *,
#profileMount .mini-profile .m-head > * {
  position: relative;
  z-index: 1;
}

#roomsMount .mini-profile .profile-cover,
#profileMount .mini-profile .profile-cover {
  z-index: 0;
}

#roomsMount .mini-profile .m-ava,
#profileMount .mini-profile .m-ava {
  grid-area: avatar;
}

#roomsMount .mini-profile .m-meta,
#profileMount .mini-profile .m-meta {
  grid-area: status;
  position: static;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
}

#roomsMount .mini-profile .pop-chip,
#profileMount .mini-profile .pop-chip {
  justify-self: center;
  align-self: center;
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  min-width: 76px;
  height: 46px;
  margin: 0;
  padding: 5px 9px 4px;
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 8px;
  color: #8ab4f8;
  background:
    linear-gradient(180deg, rgba(31,41,55,.96), rgba(17,24,39,.96));
  border-color: rgba(148,163,184,.22);
  border-top: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(148,163,184,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 10px 18px rgba(0,0,0,.24);
}

#roomsMount .mini-profile .pop-chip svg,
#profileMount .mini-profile .pop-chip svg {
  display: none;
}

#roomsMount .mini-profile .pop-chip .pop-chip-value,
#profileMount .mini-profile .pop-chip .pop-chip-value {
  color: #60a5fa;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: .95;
  text-shadow: 0 0 12px rgba(31,111,235,.22);
}

#roomsMount .mini-profile .pop-chip small,
#profileMount .mini-profile .pop-chip small {
  color: #8ea0b8;
  font-size: .56rem;
  font-weight: 800;
  line-height: 1;
}

#roomsMount .mini-profile .m-ava,
#profileMount .mini-profile .m-ava {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  border-color: rgba(255,255,255,.38);
  box-shadow:
    0 14px 24px rgba(0,0,0,.38),
    0 0 0 5px rgba(255,255,255,.08);
}

#roomsMount .mini-profile .m-avatar-btn,
#profileMount .mini-profile .m-avatar-btn {
  grid-area: avatar;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

#roomsMount .mini-profile .m-avatar-btn .m-ava,
#profileMount .mini-profile .m-avatar-btn .m-ava {
  display: block;
}

.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2,6,23,.84);
  backdrop-filter: blur(10px);
}

.gift-detail-lightbox {
  z-index: 10001;
}

.avatar-lightbox img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.avatar-lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15,23,42,.82);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox {
  touch-action: pan-y;
}

.photo-lightbox-nav {
  position: fixed;
  top: 50%;
  width: 44px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(15,23,42,.70);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.photo-lightbox-nav:hover {
  color: #fff;
  border-color: rgba(96,165,250,.35);
  background: rgba(31,111,235,.24);
}

.photo-lightbox .photo-prev {
  left: max(18px, calc((100vw - 820px) / 2));
}

.photo-lightbox .photo-next {
  right: max(18px, calc((100vw - 820px) / 2));
}

.photo-lightbox-heart {
  position: fixed;
  left: 50%;
  bottom: 24px;
  min-width: 74px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(248,113,113,.24);
  box-shadow: 0 16px 38px rgba(0,0,0,.38);
  transform: translateX(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-weight: 950;
}

.photo-lightbox-heart i {
  color: #fb7185;
}

.photo-lightbox-heart.is-liked,
.photo-lightbox-heart:disabled {
  cursor: default;
  background: rgba(127,29,29,.62);
}

.photo-lightbox .lightbox-heart-explosion {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 44px;
  transform: translateX(-50%);
}

#roomsMount .mini-profile .m-uname,
#profileMount .mini-profile .m-uname {
  grid-area: name;
  padding-right: 0;
}

#roomsMount .mini-profile .m-name,
#profileMount .mini-profile .m-name {
  font-size: 1.24rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.36);
}

#roomsMount .mini-profile .badge-ico,
#profileMount .mini-profile .badge-ico {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

#roomsMount .mini-profile .room-roles,
#profileMount .mini-profile .room-roles {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

#roomsMount .mini-profile .role-chip,
#profileMount .mini-profile .role-chip {
  min-width: auto;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: transparent;
  border: 0;
}

#roomsMount .mini-profile .role-chip img,
#profileMount .mini-profile .role-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}

#roomsMount .mini-profile .role-chip .cnt,
#profileMount .mini-profile .role-chip .cnt {
  margin-left: 1px;
  color: #f8fafc;
  font-size: .6rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

#roomsMount .mini-profile .mood-wrap,
#profileMount .mini-profile .mood-wrap {
  grid-area: mood;
  min-height: 42px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 5px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.70), rgba(2,6,23,.42)),
    radial-gradient(circle at 10% 0%, rgba(125,211,252,.16), transparent 34%);
  border: 1px solid rgba(147,197,253,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 8px 18px rgba(0,0,0,.22);
}

#roomsMount .mini-profile .mood-wrap .mood-trigger,
#profileMount .mini-profile .mood-wrap .mood-trigger {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 3px;
    border-radius: 0;
  background:
    radial-gradient(circle at 35% 22%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(180deg, rgba(30,41,59,.86), rgba(8,13,24,.92));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 6px 12px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.09);
}

#roomsMount .mini-profile .mood-wrap .mood-trigger img,
#profileMount .mini-profile .mood-wrap .mood-trigger img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#roomsMount .mini-profile .mood-input,
#profileMount .mini-profile .mood-input {
  flex: 1 1 auto;
  min-height: 32px;
  height: auto;
  max-height: calc(1.15em * 3 + 10px);
  padding: 4px 2px;
  border-radius: 0;
  color: #f8fafc;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.18;
  min-width: 0;
  white-space: normal;
  resize: none;
  font-family: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}

#roomsMount .mini-profile .mood-input::placeholder,
#profileMount .mini-profile .mood-input::placeholder {
  color: rgba(226,232,240,.58);
}

#roomsMount .mini-profile .tabbar,
#profileMount .mini-profile .tabbar {
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  padding: 3px;
}

#roomsMount .mini-profile .tabbar .tab-btn,
#profileMount .mini-profile .tabbar .tab-btn {
  border-radius: 999px;
}

#roomsMount .mini-profile .gift-shelf,
#profileMount .mini-profile .gift-shelf {
  padding: 6px;
  border-radius: 18px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

#roomsMount .mini-profile .gift-shelf-head,
#profileMount .mini-profile .gift-shelf-head {
  border-bottom: 0;
  margin-bottom: 6px;
  padding-bottom: 0;
}

#roomsMount .mini-profile .gift-shelf-head span,
#profileMount .mini-profile .gift-shelf-head span {
  color: #f8fafc;
  font-weight: 950;
}

#roomsMount .mini-profile .gift-shelf-head strong,
#profileMount .mini-profile .gift-shelf-head strong {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.12);
}

#roomsMount .mini-profile .gift-tile,
#profileMount .mini-profile .gift-tile,
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#roomsMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(1),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(2),
#profileMount .mini-profile .gift-shelf-row > .gift-tile:nth-child(n+3),
#roomsMount .mini-profile .gift-archive-grid .gift-tile,
#profileMount .mini-profile .gift-archive-grid .gift-tile {
  min-height: 82px;
  padding: 7px 5px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.10), transparent 36%),
    rgba(11,15,24,.88);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
  cursor: pointer;
}

#roomsMount .mini-profile .gift-shelf .gift-img,
#profileMount .mini-profile .gift-shelf .gift-img {
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.42));
}

#roomsMount .mini-profile .gift-shelf .gift-emoji,
#profileMount .mini-profile .gift-shelf .gift-emoji {
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.42));
}

@media (max-width: 520px) {
  #roomsMount .mini-profile .m-head,
  #profileMount .mini-profile .m-head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar status"
      "mood mood";
    border-radius: 20px;
  }

  #roomsMount .mini-profile .m-meta,
  #profileMount .mini-profile .m-meta {
    justify-content: flex-start;
    max-width: 100%;
    gap: 4px;
    padding-top: 0;
  }

  #roomsMount .mini-profile .pop-chip,
  #profileMount .mini-profile .pop-chip {
    min-width: 68px;
    height: 42px;
    border-radius: 8px;
  }

  #roomsMount .mini-profile .m-ava,
  #profileMount .mini-profile .m-ava {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  #roomsMount .mini-profile .m-name,
  #profileMount .mini-profile .m-name {
    font-size: 1.08rem;
  }

  #roomsMount .mini-profile .m-uname,
  #profileMount .mini-profile .m-uname {
    padding-right: 72px;
  }

  #roomsMount .mini-profile .pop-chip svg,
  #profileMount .mini-profile .pop-chip svg {
    display: none;
  }

  .mini-profile .mood-input {
    min-height: 34px;
    font-size: .74rem;
  }
}

.admin-page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
  color: #e5e7eb;
}

.admin-shell {
  display: grid;
  gap: 12px;
}

.admin-dashboard-shell {
  align-content: start;
}

.admin-hero,
.admin-section {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(8,12,20,.92));
  border: 1px solid rgba(148,163,184,.12);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
}

.admin-kicker {
  color: #fbbf24;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-hero h2 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.admin-hero p,
.admin-section-head p {
  margin: 4px 0 0;
  color: #8ea0b8;
  font-size: .76rem;
  font-weight: 750;
}

.admin-user {
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
}

.admin-sidebar {
  position: sticky;
  top: 10px;
  display: grid;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(3,7,14,.92));
  border: 1px solid rgba(148,163,184,.13);
}

.admin-nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #aebbd0;
  background: transparent;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.admin-nav-item i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #7fb4ff;
  background: rgba(37,99,235,.12);
}

.admin-nav-item b {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37,99,235,.22);
  text-align: center;
  font-size: .68rem;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  color: #f8fafc;
  background: rgba(15,23,42,.92);
  border-color: rgba(96,165,250,.24);
}

.admin-nav-item.is-active i {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 0 18px rgba(37,99,235,.22);
}

.admin-main {
  min-width: 0;
}

.admin-section {
  margin-bottom: 12px;
  padding: 12px;
}

.admin-import-panel,
.admin-create-panel {
  align-self: start;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-stat-card,
.admin-module-card,
.admin-gift-toolbar {
  border: 1px solid rgba(148,163,184,.12);
  background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(6,10,18,.92));
}

.admin-stat-card {
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
}

.admin-stat-card span {
  display: block;
  color: #8ea0b8;
  font-size: .72rem;
  font-weight: 900;
}

.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #f8fafc;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-module-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 10px;
  min-height: 132px;
  padding: 13px;
  border-radius: 15px;
  color: #e5e7eb;
  text-align: left;
  cursor: pointer;
}

.admin-module-card i {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #bfdbfe;
  background: rgba(37,99,235,.14);
  font-size: 1.08rem;
}

.admin-module-card strong {
  align-self: end;
  font-size: .94rem;
}

.admin-module-card span {
  color: #94a3b8;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.35;
}

.admin-module-card em {
  align-self: end;
  color: #60a5fa;
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
}

.admin-module-card:hover,
.admin-module-card.is-ready {
  border-color: rgba(96,165,250,.28);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.admin-module-card.is-ready i {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
}

.admin-gift-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 13px;
}

.admin-gift-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #aebbd0;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.10);
  font-size: .72rem;
  font-weight: 850;
}

.admin-gift-toolbar b {
  color: #fff;
}

.admin-gift-subnav {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
  padding: 7px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.78), rgba(5,9,17,.86));
  border: 1px solid rgba(148,163,184,.11);
}

.admin-gift-subnav button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #aebbd0;
  background: transparent;
  font-size: .68rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-gift-subnav i {
  color: #7fb4ff;
  font-size: .84rem;
}

.admin-gift-subnav span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gift-subnav button:hover,
.admin-gift-subnav button.is-active {
  color: #f8fafc;
  background: rgba(31,111,235,.14);
  border-color: rgba(96,165,250,.23);
}

.admin-gift-subnav button.is-active i {
  color: #fff;
}

.admin-gift-task-page {
  grid-template-columns: minmax(0, 820px);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.admin-section h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}

.admin-gift-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.admin-gift-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 900;
}

.admin-gift-form input,
.admin-gift-form select {
  min-width: 0;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(6,9,15,.58);
  color: #e5e7eb;
  padding: 8px 9px;
}

.admin-gift-form input[type="file"] {
  padding: 6px;
}

.admin-gift-form input::file-selector-button,
.admin-gift-item input::file-selector-button {
  margin-right: 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(37,99,235,.95);
  color: #fff;
  padding: 6px 9px;
  font-weight: 900;
  cursor: pointer;
}

.admin-gift-form .admin-file {
  grid-column: span 2;
}

.admin-primary-action {
  min-height: 38px;
  align-self: end;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.admin-msg {
  min-height: 18px;
  margin-top: 8px;
  color: #fbbf24;
  font-size: .8rem;
  font-weight: 850;
}

.admin-gift-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 12px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(7,12,22,.72);
  border: 1px solid rgba(148,163,184,.10);
}

.admin-gift-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #9fb3cf;
  font-size: .68rem;
  font-weight: 950;
}

.admin-gift-filters input,
.admin-gift-filters select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(3,7,14,.58);
  color: #e5e7eb;
  padding: 7px 9px;
}

.admin-gift-list {
  display: grid;
  gap: 7px;
}

.admin-gift-workbench {
  display: grid;
  gap: 7px;
}

.admin-gift-table-head {
  display: grid;
  grid-template-columns: 58px minmax(190px, 1.35fr) minmax(130px, .8fr) minmax(120px, .65fr) minmax(130px, .8fr) 104px;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 12px;
  color: #75859c;
  background: rgba(3,7,14,.32);
  border: 1px solid rgba(148,163,184,.07);
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-gift-table-head span:first-child {
  grid-column: 1 / 3;
}

.admin-gift-row {
  display: grid;
  grid-template-columns: 58px minmax(190px, 1.35fr) minmax(130px, .8fr) minmax(120px, .65fr) minmax(130px, .8fr) 104px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.76), rgba(6,10,18,.88));
  border: 1px solid rgba(148,163,184,.11);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.admin-gift-row:hover,
.admin-gift-row:has(.admin-gift-editor[open]) {
  border-color: rgba(96,165,250,.25);
  background:
    radial-gradient(circle at 7% 0%, rgba(37,99,235,.13), transparent 32%),
    linear-gradient(180deg, rgba(17,25,42,.88), rgba(7,12,22,.94));
}

.admin-gift-row.is-off {
  opacity: .62;
}

.admin-gift-row > .admin-gift-preview {
  grid-row: auto;
  width: 58px;
  min-height: 58px;
  border-radius: 12px;
}

.admin-gift-row > .admin-gift-preview img {
  width: 46px;
  height: 46px;
}

.admin-gift-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-gift-row-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.admin-gift-row-title strong {
  min-width: 0;
  color: #f8fafc;
  font-size: .86rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gift-row-title span {
  color: #74839a;
  font-size: .64rem;
  font-weight: 850;
}

.admin-gift-row-main small,
.admin-gift-row-category span,
.admin-gift-row-value span {
  color: #7e8ca3;
  font-size: .66rem;
  font-weight: 850;
}

.admin-gift-row-category,
.admin-gift-row-value,
.admin-gift-row-status {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-gift-row-category b,
.admin-gift-row-value b {
  color: #dbe7f7;
  font-size: .76rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gift-row-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-gift-row-meta b,
.admin-gift-row-meta em {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #b8c6da;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.10);
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.admin-gift-row-meta em {
  color: #93c5fd;
  border-color: rgba(96,165,250,.22);
}

.admin-gift-row-status {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-gift-row-status span,
.admin-gift-row-status em {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.10);
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.admin-gift-row-status .is-ok {
  color: #86efac;
  border-color: rgba(34,197,94,.18);
}

.admin-gift-row-status .is-muted {
  color: #fca5a5;
  border-color: rgba(248,113,113,.18);
}

.admin-gift-row-status em {
  color: #93c5fd;
  border-color: rgba(96,165,250,.20);
}

.admin-gift-editor {
  justify-self: end;
  min-width: 104px;
}

.admin-gift-editor summary {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(31,111,235,.16);
  border: 1px solid rgba(96,165,250,.22);
  font-size: .72rem;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.admin-gift-editor summary::-webkit-details-marker {
  display: none;
}

.admin-gift-editor[open] {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.admin-gift-editor[open] summary {
  width: max-content;
  margin-left: auto;
  margin-bottom: 8px;
}

.admin-gift-editor .admin-gift-item {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,.13), transparent 34%),
    linear-gradient(180deg, rgba(10,16,28,.96), rgba(5,9,17,.96));
  border-color: rgba(96,165,250,.18);
}

.admin-editor-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.admin-editor-title strong {
  color: #f8fafc;
  font-size: .88rem;
  font-weight: 950;
}

.admin-editor-title span {
  min-width: 0;
  color: #8ea0b8;
  font-size: .72rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gift-editor .admin-gift-edit-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-gift-editor .admin-field-name {
  grid-column: 1 / -1;
}

.admin-empty-state {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 150px;
  padding: 18px;
  border-radius: 14px;
  color: #94a3b8;
  background: rgba(7,12,22,.55);
  border: 1px dashed rgba(148,163,184,.18);
  text-align: center;
}

.admin-empty-state i {
  color: #60a5fa;
  font-size: 1.5rem;
}

.admin-gift-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.admin-gift-pager span {
  color: #cbd5e1;
  font-size: .76rem;
  font-weight: 950;
}

.admin-gift-management-grid,
.admin-glow-preview-grid,
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.admin-manage-card,
.admin-glow-sample,
.admin-settings-grid > div,
.admin-note-box {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.11);
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.82), rgba(6,10,18,.90));
  color: #dbe7f7;
}

.admin-manage-card,
.admin-glow-sample {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px 10px;
  text-align: left;
  cursor: pointer;
}

.admin-manage-card.is-static {
  cursor: default;
}

.admin-manage-card i {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #bfdbfe;
  background: rgba(37,99,235,.14);
}

.admin-manage-card strong,
.admin-glow-sample strong,
.admin-settings-grid strong,
.admin-note-box strong {
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
}

.admin-manage-card span,
.admin-manage-card em,
.admin-glow-sample em,
.admin-settings-grid span,
.admin-note-box span {
  min-width: 0;
  color: #91a3bb;
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.admin-manage-card:hover,
.admin-glow-sample:hover {
  border-color: rgba(96,165,250,.25);
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.16), transparent 38%),
    linear-gradient(180deg, rgba(17,25,42,.88), rgba(7,12,22,.94));
}

.admin-glow-preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.admin-glow-sample {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.admin-glow-sample .admin-gift-preview {
  grid-row: 1 / 3;
  width: 58px;
  min-height: 58px;
}

.admin-glow-sample .admin-gift-preview img {
  width: 46px;
  height: 46px;
}

.admin-settings-grid > div {
  display: grid;
  gap: 5px;
}

.admin-note-box {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border-color: rgba(96,165,250,.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,.13), transparent 36%),
    linear-gradient(180deg, rgba(10,16,28,.92), rgba(5,9,17,.94));
}

.admin-gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 12px;
}

.admin-gift-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px 11px;
  padding: 11px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 0%, rgba(37,99,235,.13), transparent 34%),
    linear-gradient(180deg, rgba(15,23,42,.90), rgba(6,10,18,.94));
  border: 1px solid rgba(148,163,184,.13);
  text-align: left;
  min-width: 0;
}

.admin-gift-item.is-off {
  opacity: .55;
}

.admin-gift-preview {
  display: grid;
  place-items: center;
  grid-row: span 3;
  width: 88px;
  min-height: 100px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(3,7,14,.38), rgba(15,23,42,.54));
  border: 1px solid rgba(148,163,184,.11);
  position: relative;
  overflow: hidden;
}

.admin-gift-preview::before {
  content: "\f06b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: rgba(96,165,250,.34);
  font-size: 2rem;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.admin-gift-preview img,
.admin-gift-item img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.admin-gift-preview img[src=""],
.admin-gift-preview img:not([src]) {
  display: none;
}

.admin-gift-item .admin-field,
.admin-gift-item > label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #9fb3cf;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1.1;
}

.admin-gift-item .admin-field input,
.admin-gift-item .admin-field select,
.admin-gift-item input,
.admin-gift-item select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(3,7,14,.54);
  color: #e5e7eb;
  padding: 7px 8px;
  font: inherit;
  font-size: .76rem;
}

.admin-gift-item .admin-field-name {
  align-self: end;
}

.admin-gift-item input[type="color"] {
  min-height: 34px;
  padding: 4px;
}

.admin-gift-item input[type="file"] {
  min-height: 34px;
  padding: 5px;
  font-size: .68rem;
}

.admin-gift-name {
  margin-top: 7px;
  color: #f8fafc;
  font-size: .78rem;
  font-weight: 950;
}

.admin-gift-meta {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2px;
  color: #94a3b8;
  font-size: .65rem;
  font-weight: 800;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  align-self: start;
}

.admin-gift-edit-grid {
  grid-column: 2;
  padding: 8px;
  border-radius: 11px;
  background: rgba(3,7,14,.22);
  border: 1px solid rgba(148,163,184,.08);
}

.admin-color-field {
  grid-column: 1 / -1;
  grid-template-columns: auto 72px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(15,23,42,.42);
  border: 1px solid rgba(148,163,184,.09);
}

.admin-color-field input[type="color"] {
  justify-self: end;
}

.admin-card-flags,
.admin-card-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.admin-card-flags label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.10);
  font-size: .68rem;
  font-weight: 850;
}

.admin-file.compact {
  grid-column: 1 / -1;
}

.admin-card-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.admin-card-actions .btn-ghost {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: .72rem;
}

.admin-count {
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(15,23,42,.70);
  border: 1px solid rgba(148,163,184,.14);
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
}

.admin-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.admin-placeholder i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 17px;
  color: #bfdbfe;
  background: rgba(37,99,235,.15);
  font-size: 1.35rem;
}

.admin-placeholder h3 {
  margin: 0;
}

.admin-placeholder p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 750;
}

.has-gift-glow {
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.28))
    drop-shadow(0 0 calc(var(--gift-glow-size, 9px) * .28) var(--gift-glow-color, #38bdf8))
    drop-shadow(0 0 calc(var(--gift-glow-blur, 28px) * .18) var(--gift-glow-color, #38bdf8)) !important;
  animation: giftEdgeGlow 3.8s ease-in-out infinite;
  transform-origin: 50% 55%;
  will-change: filter, transform;
}

.gift-glow-wrap,
.gift-choice-art:has(.has-gift-glow),
.vip-gift-preview-art:has(.has-gift-glow),
.admin-gift-preview:has(.has-gift-glow) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--gift-glow-color, #38bdf8);
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.10), transparent 44%),
    linear-gradient(180deg, rgba(13,20,32,.78), rgba(8,13,22,.90));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 0 18px rgba(255,255,255,.025);
}

.vip-gift-btn.gift-glow-wrap {
  border-color: rgba(255,255,255,.12);
}

.vip-gift-btn.gift-glow-wrap .gift-choice-art {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.vip-gift-selected.gift-glow-wrap {
  overflow: hidden;
}

.vip-gift-selected.gift-glow-wrap .vip-gift-preview-art {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.gift-detail-lightbox .gift-detail-pop.gift-glow-wrap,
#roomsMount .mini-profile .gift-detail-pop.gift-glow-wrap,
#profileMount .mini-profile .gift-detail-pop.gift-glow-wrap,
.gift-detail-pop.gift-glow-wrap {
  overflow: hidden;
  --gift-detail-sweep-opacity: .36;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 18px rgba(255,255,255,.025) !important;
}

.gift-detail-lightbox:has(.gift-detail-pop.gift-glow-wrap) {
  box-shadow: none !important;
}

.gift-detail-lightbox.gift-glow-open,
.gift-detail-lightbox.gift-glow-open.avatar-lightbox {
  box-shadow: none !important;
}

.gift-detail-lightbox.gift-glow-open img,
.gift-detail-lightbox.gift-glow-open .gift-detail-sender-avatar,
.gift-detail-lightbox.gift-glow-open .gift-detail-art {
  box-shadow: none !important;
}

.gift-detail-lightbox.gift-glow-open .gift-detail-sender-avatar::before {
  display: none !important;
}

.gift-detail-lightbox.gift-glow-open .gift-detail-sender-avatar::after {
  box-shadow: none !important;
}

.gift-detail-pop.gift-glow-wrap .gift-detail-art {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.gift-detail-pop.gift-glow-wrap .has-gift-glow {
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.34))
    drop-shadow(0 0 calc(var(--gift-glow-size, 9px) * .35) var(--gift-glow-color, #38bdf8))
    drop-shadow(0 0 calc(var(--gift-glow-blur, 28px) * .22) var(--gift-glow-color, #38bdf8)) !important;
}

.gift-detail-pop.gift-glow-wrap::before {
  inset: -32% -44%;
  opacity: 0;
  filter: blur(1px);
  animation: giftDetailSoftSweep 4.4s ease-out infinite;
}

.gift-detail-pop.gift-glow-wrap::after {
  opacity: .045;
  animation-duration: 4.4s;
}

@keyframes giftDetailSoftSweep {
  0% {
    opacity: 0;
    transform: translateX(-54%);
  }
  14% {
    opacity: .32;
  }
  38% {
    opacity: .10;
    transform: translateX(54%);
  }
  56%, 100% {
    opacity: 0;
    transform: translateX(54%);
  }
}

.profile-gift-card.gift-glow-wrap .gift-art {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.gift-glow-wrap::before,
.gift-choice-art:has(.has-gift-glow)::before,
.vip-gift-preview-art:has(.has-gift-glow)::before,
.admin-gift-preview:has(.has-gift-glow)::before {
  content: "";
  position: absolute;
  inset: -45% -72%;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg,
      transparent 36%,
      rgba(255,255,255,.12) 45%,
      var(--gift-glow-color, #38bdf8) 50%,
      rgba(255,255,255,.34) 54%,
      transparent 64%);
  opacity: 0;
  transform: translateX(-58%);
  animation: giftStatSweep 3.05s ease-out infinite;
}

.gift-glow-wrap::after,
.gift-choice-art:has(.has-gift-glow)::after,
.vip-gift-preview-art:has(.has-gift-glow)::after,
.admin-gift-preview:has(.has-gift-glow)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 60%, var(--gift-glow-color, #38bdf8), transparent 54%);
  opacity: .08;
  animation: giftStatBase 3.05s ease-in-out infinite;
}

.gift-glow-wrap > *,
.gift-choice-art:has(.has-gift-glow) > *,
.vip-gift-preview-art:has(.has-gift-glow) > *,
.admin-gift-preview:has(.has-gift-glow) > * {
  position: relative;
  z-index: 1;
}

@keyframes giftEdgeGlow {
  0%, 62%, 100% {
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 1px 0 rgba(255,255,255,.24))
      drop-shadow(0 0 calc(var(--gift-glow-size, 9px) * .22) var(--gift-glow-color, #38bdf8))
      drop-shadow(0 0 calc(var(--gift-glow-blur, 28px) * .14) var(--gift-glow-color, #38bdf8));
  }
  24% {
    transform: translateY(-1px) scale(1.012);
    filter:
      drop-shadow(0 1px 0 rgba(255,255,255,.54))
      drop-shadow(0 0 calc(var(--gift-glow-size, 9px) * .50) var(--gift-glow-color, #38bdf8))
      drop-shadow(0 0 calc(var(--gift-glow-blur, 28px) * .28) var(--gift-glow-color, #38bdf8));
  }
  42% {
    transform: translateY(0) scale(1.002);
    filter:
      drop-shadow(0 1px 0 rgba(255,255,255,.42))
      drop-shadow(-1px 0 calc(var(--gift-glow-size, 9px) * .44) var(--gift-glow-color, #38bdf8))
      drop-shadow(1px 0 calc(var(--gift-glow-blur, 28px) * .30) var(--gift-glow-color, #38bdf8));
  }
}

@keyframes giftStatSweep {
  0% {
    opacity: 0;
    transform: translateX(-58%);
  }
  12% {
    opacity: .88;
  }
  42% {
    opacity: .24;
    transform: translateX(58%);
  }
  58%, 100% {
    opacity: 0;
    transform: translateX(58%);
  }
}

@keyframes giftStatBase {
  0%, 100% {
    opacity: .05;
    transform: scale(.96);
  }
  24% {
    opacity: .18;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .admin-nav-item {
    grid-template-columns: 28px auto auto;
    min-width: max-content;
  }

  .admin-stat-grid,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-gift-subnav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-gift-subnav button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    min-height: 46px;
    padding: 6px 4px;
    text-align: center;
  }

  .admin-gift-subnav span {
    font-size: .62rem;
  }

  .admin-gift-form {
    grid-template-columns: 1fr;
  }

  .admin-gift-form .admin-file {
    grid-column: auto;
  }

  .admin-gift-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-gift-filters label:first-child,
  .admin-gift-filters .admin-primary-action {
    grid-column: 1 / -1;
  }

  .admin-gift-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .admin-gift-table-head {
    display: none;
  }

  .admin-gift-row > .admin-gift-preview {
    width: 52px;
    min-height: 52px;
  }

  .admin-gift-row > .admin-gift-preview img {
    width: 42px;
    height: 42px;
  }

  .admin-gift-editor {
    grid-column: 3;
    justify-self: end;
    min-width: 82px;
  }

  .admin-gift-row-category,
  .admin-gift-row-value,
  .admin-gift-row-status {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
  }

  .admin-gift-row-category span {
    display: none;
  }

  .admin-gift-editor summary {
    display: flex;
    justify-content: center;
    padding-inline: 9px;
  }

  .admin-gift-editor[open] {
    grid-column: 1 / -1;
  }

  .admin-gift-editor .admin-gift-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-gift-management-grid,
  .admin-glow-preview-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

#onlineUsers .user-card.is-vip .user-avatar,
#onlineUsers .user-card.is-vip .avatar-wrap img {
  border-color: rgba(251,191,36,.72);
  box-shadow:
    0 7px 14px rgba(0,0,0,.25),
    0 0 0 2px rgba(251,191,36,.13),
    0 0 18px rgba(251,191,36,.26);
}

#onlineUsers .user-card.is-vip .username {
  color: #fff7ed;
  text-shadow:
    0 1px 2px rgba(0,0,0,.85),
    0 0 10px rgba(251,191,36,.26);
}

#onlineUsers .user-card.is-boosted {
  border-color: rgba(251,191,36,.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(251,191,36,.18), transparent 42%),
    linear-gradient(180deg, rgba(31,36,48,.92), rgba(16,20,29,.96));
}

@media (max-width: 640px) {
  .vip-actions {
    grid-template-columns: 1fr;
  }
}

/* Compact back control on the standalone profile view */
#profileView .profile-page {
  position: relative;
}

#profileView .profile-header {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 20;
  width: auto;
  height: 0;
  padding: 0 !important;
  border: 0;
  overflow: visible;
}

#profileView #btnBackToChatTop.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 28px;
  padding: 5px 0;
  border-radius: 8px;
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  background: rgba(15,18,27,.76);
  border-color: rgba(148,163,184,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
}

@media (max-width: 520px) {
  #profileView .profile-header {
    top: 5px;
    left: 5px;
  }

  #profileView #btnBackToChatTop.back-btn {
    width: 32px;
    min-height: 26px;
  }
}

/* App compact spacing: save space without making UI tiny */
#header {
  min-height: 52px;
  padding: 7px 10px;
  gap: 7px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
}

.player-stats,
.header-start,
.header-nav,
.header-actions,
#authButtons {
  gap: 3px;
}

.header-start,
.header-nav {
  flex: 0 0 auto;
}

.player-stat {
  height: 28px;
  min-width: 64px;
  padding: 0 7px 0 25px;
}

.player-stat-pop {
  min-width: 54px;
}

.stat-chip {
  left: 5px;
  width: 16px;
  height: 16px;
}

.stat-copy strong {
  font-size: .68rem;
}

.stat-label {
  display: none;
}

.player-stats {
  margin-left: 0;
}

.header-actions {
  margin-left: auto;
}

.notification-center {
  position: relative;
  order: 0;
  flex: 0 0 auto;
  z-index: 9601;
}

.notification-btn {
  position: relative;
  min-width: 38px;
  border-color: rgba(96,165,250,.22);
  background:
    radial-gradient(circle at 28% 0%, rgba(96,165,250,.14), transparent 44%),
    linear-gradient(180deg, rgba(22,27,39,.94), rgba(15,19,29,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(31,111,235,.05);
}

.notification-btn i {
  color: #93c5fd;
  font-size: 1.04rem;
}

#btnSobe {
  border-color: rgba(96,165,250,.26);
  background:
    linear-gradient(180deg, rgba(31,111,235,.16), rgba(31,111,235,.05)),
    #1a1d26;
}

#btnOnlineAll {
  border-color: rgba(96,165,250,.20);
}

#btnCreateRoom,
#btnAddPhoto,
#btnEditProfile,
#btnTest {
  color: #cbd5e1;
  background: #171a22;
}

.header-more-btn {
  border-color: rgba(148,163,184,.18);
  background:
    linear-gradient(180deg, rgba(96,165,250,.10), rgba(15,19,29,.04)),
    #1a1d26;
}

.header-more-panel #btnCreateRoom,
.header-more-panel #btnAddPhoto,
.header-more-panel #btnEditProfile,
.header-more-panel #btnTest,
.header-more-panel #btnShop,
.header-more-panel #btnVip,
.header-more-panel #btnAdmin {
  background: rgba(23,26,34,.96);
}

#btnProfile {
  border-color: rgba(52,211,153,.22);
}

#btnVip {
  border-color: rgba(250,204,21,.25);
}

.notification-btn strong {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 16px rgba(250,204,21,.35);
  font-size: .62rem;
  font-weight: 950;
  line-height: 1;
}

.notification-panel {
  position: fixed;
  top: var(--notification-top, 58px);
  left: var(--notification-left, 8px);
  width: min(360px, calc(100vw - 16px));
  max-height: calc(100dvh - var(--notification-top, 58px) - 8px);
  z-index: 9700;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(180deg, rgba(20,22,29,.98), rgba(15,17,24,.98));
  box-shadow:
    0 18px 38px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-panel[hidden] {
  display: none;
}

.notification-head {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #171a22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.notification-head strong,
.notification-head span {
  display: block;
}

.notification-head strong {
  color: #f8fafc;
  font-size: .84rem;
  font-weight: 950;
}

.notification-head span {
  margin-top: 2px;
  color: #8ea0b8;
  font-size: .62rem;
  font-weight: 800;
}

.notification-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 9px;
  color: #bfdbfe;
  background: rgba(26,29,38,.82);
  cursor: pointer;
}

.notification-list {
  min-height: 0;
  max-height: none;
  padding: 7px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.notification-item {
  width: 100%;
  min-height: 48px;
  padding: 7px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  color: #e5edf9;
  background: rgba(20,24,34,.88);
  cursor: pointer;
  text-align: left;
}

.notification-item:hover {
  border-color: rgba(96,165,250,.22);
  background: rgba(26,31,44,.94);
}

.notification-item.is-new {
  border-color: rgba(250,204,21,.46);
  background:
    linear-gradient(90deg, rgba(250,204,21,.10), transparent 38%),
    rgba(25,27,34,.94);
}

.notification-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #93c5fd;
  background: rgba(31,111,235,.12);
  border: 1px solid rgba(96,165,250,.14);
}

.notification-item.is-new .notification-icon {
  color: #facc15;
  background: rgba(250,204,21,.12);
  border-color: rgba(250,204,21,.26);
}

.notification-copy {
  min-width: 0;
}

.notification-copy b,
.notification-copy span {
  display: block;
}

.notification-copy b {
  font-size: .74rem;
  font-weight: 950;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy span {
  margin-top: 2px;
  color: #8ea0b8;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
}

.notification-count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(31,111,235,.22);
  border: 1px solid rgba(96,165,250,.18);
  font-size: .58rem;
  font-weight: 950;
}

.notification-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #8190a8;
  font-size: .76rem;
  font-weight: 850;
  text-align: center;
}

.notification-empty i {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #93c5fd;
  background: rgba(96,165,250,.10);
  border: 1px solid rgba(96,165,250,.14);
}

.notification-target-flash {
  animation: notification-target-pulse 1.25s ease both;
}

@keyframes notification-target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(96,165,250,.0);
    outline: 1px solid rgba(96,165,250,0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(96,165,250,.16), 0 0 34px rgba(96,165,250,.18);
    outline: 1px solid rgba(96,165,250,.38);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(96,165,250,0);
    outline: 1px solid rgba(96,165,250,0);
  }
}

.player-stat {
  height: 28px;
  min-width: 64px;
  padding: 0 7px 0 25px;
}

.player-stat-pop {
  min-width: 54px;
}

.stat-chip {
  left: 5px;
  width: 16px;
  height: 16px;
}

.stat-copy {
  gap: 2px;
}

.stat-copy strong {
  font-size: .68rem;
}

.btn {
  height: 34px;
  padding: 0 10px;
  gap: 6px;
}

#main {
  height: calc(var(--app-vvh, 100dvh) - 52px);
  padding: 10px;
  gap: 10px;
}

#chat {
  padding: 10px;
}

#inputArea {
  margin-top: 7px;
  gap: 7px;
}

#msg {
  padding: 10px 12px;
}

#sendBtn {
  padding: 0 14px;
}

#onlineUsers {
  flex: 0 0 clamp(154px, 14vw, 184px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(12,17,29,.96), rgba(5,8,15,.98));
  border-color: rgba(147,197,253,.12);
}

#onlineUsers h3 {
  margin: 8px 8px 2px;
  gap: 5px;
}

#onlineUsers h3 strong {
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
}

#onlineUsers .users-grid {
  padding: 7px;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
}

#onlineUsers .user-card {
  height: 106px;
  min-height: 106px;
  padding: 7px 4px 5px;
  gap: 4px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 5%, rgba(96,165,250,.14), transparent 42%),
    rgba(9,14,25,.78);
  border-color: rgba(148,163,184,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

#onlineUsers .user-card:hover {
  border-color: rgba(96,165,250,.30);
  background:
    radial-gradient(circle at 50% 5%, rgba(96,165,250,.20), transparent 44%),
    rgba(12,19,34,.86);
}

#onlineUsers .avatar-wrap,
#onlineUsers .avatar-wrap.avatar-wrap {
  width: 56px;
  height: 56px;
}

#onlineUsers .user-avatar,
#onlineUsers .c-user-avatar,
#onlineUsers .avatar-wrap img {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-color: rgba(191,219,254,.26);
  box-shadow: 0 8px 18px rgba(0,0,0,.32);
}

#onlineUsers .username {
  min-height: 15px;
  font-size: .68rem;
}

#onlineUsers .pop-score-compact {
  width: 64px;
  padding: 3px 4px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.075);
}

@media (min-width: 901px) {
  #chatAndInput {
    flex: 0 0 calc(60% - 5px);
    min-width: 0;
  }

  #onlineUsers {
    flex: 0 0 calc(40% - 5px);
    min-width: 340px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #main {
    padding: 8px;
    gap: 8px;
  }

  #chatAndInput {
    flex: 1 1 62%;
  }

  #onlineUsers {
    flex: 0 0 38%;
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  #header {
    position: relative;
    z-index: 9000;
    min-height: 46px;
    padding: 5px 4px;
    gap: 3px;
  }

  .notification-btn {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
  }

  .notification-btn span {
    display: none;
  }

  .player-stat {
    min-width: 30px;
    height: 20px;
    padding: 0 3px 0 12px;
    border: 0;
    background: transparent;
  }

  .player-stat-pop {
    min-width: 26px;
    padding-right: 3px;
  }

  .stat-chip {
    left: 0;
    width: 10px;
    height: 10px;
  }

  .stat-chip i {
    font-size: 5px;
  }

  .stat-copy strong {
    font-size: .48rem;
  }

  .notification-panel {
    top: var(--notification-top, 52px);
    left: var(--notification-left, 6px);
    right: auto;
    width: var(--notification-width, auto);
    max-height: calc(var(--app-vvh, 100dvh) - var(--notification-top, 52px) - 6px);
    border-radius: 10px;
    border-color: rgba(255,255,255,.06);
    background: #14161d;
    box-shadow:
      0 12px 28px rgba(0,0,0,.38),
      inset 0 1px 0 rgba(255,255,255,.035);
    z-index: 9702;
  }

  .notification-list {
    max-height: none;
  }

  .notification-head {
    padding: 8px 9px;
    background: #171a22;
  }

  .notification-head strong {
    font-size: .78rem;
  }

  .notification-head span {
    font-size: .56rem;
  }

  .notification-list {
    padding: 6px;
    gap: 5px;
  }

  .notification-item {
    min-height: 44px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 6px;
    border-radius: 9px;
  }

  .notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .notification-copy b {
    font-size: .68rem;
  }

  .notification-copy span {
    font-size: .58rem;
  }

  .notification-count {
    height: 18px;
    min-width: 20px;
    padding: 0 5px;
    font-size: .52rem;
  }

  #main {
    position: relative;
    z-index: 1;
    height: calc(var(--app-vvh, 100dvh) - 46px);
    min-height: 0;
    max-height: calc(var(--app-vvh, 100dvh) - 46px);
    overflow: hidden;
    padding: 6px;
    gap: 6px;
  }

  #onlineUsers {
    flex: 0 0 78px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }
}

/* Profile width: desktop uses a centered Facebook-style profile card */
#profileMount,
#roomsMount {
  width: 100%;
  max-width: none;
}

#profileMount .mini-profile,
#roomsMount .mini-profile {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
}

@media (min-width: 901px) {
  #profileView .profile-page,
  #roomsView .profile-page {
    align-items: center;
    padding: 12px 0;
  }

  #profileMount,
  #roomsMount {
    display: flex;
    justify-content: center;
  }

  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    width: min(100%, 780px);
    max-width: 780px;
    align-self: flex-start;
  }
}

#profileMount .mini-profile .m-body,
#roomsMount .mini-profile .m-body {
  width: 100%;
}

#profileMount .mini-profile .view[data-view-id="info"].is-active,
#roomsMount .mini-profile .view[data-view-id="info"].is-active {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

#profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
  width: 100%;
}

#profileMount .mini-profile .facts-grid,
#roomsMount .mini-profile .facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (min-width: 760px) {
  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    gap: 7px;
    padding: 6px;
  }

  #profileMount .mini-profile .m-head,
  #roomsMount .mini-profile .m-head {
    grid-template-columns: 96px minmax(0, 1fr) minmax(176px, auto);
    grid-template-areas:
      "avatar name status"
      "avatar mood status";
    min-height: 116px;
    padding: 10px;
    gap: 7px 10px;
    border-radius: 24px;
  }

  #profileMount .mini-profile .m-ava,
  #roomsMount .mini-profile .m-ava,
  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn {
    width: 92px;
    height: 92px;
  }

  #profileMount .mini-profile .m-name,
  #roomsMount .mini-profile .m-name {
    font-size: 1.38rem;
  }

  #profileMount .mini-profile .mood-wrap,
  #roomsMount .mini-profile .mood-wrap {
    max-width: min(100%, 520px);
  }

  #profileMount .mini-profile .m-meta,
  #roomsMount .mini-profile .m-meta {
    align-self: end;
    padding-top: 38px;
  }

  #profileMount .mini-profile .profile-photo-strip,
  #roomsMount .mini-profile .profile-photo-strip {
    margin-top: 0;
  }

  #profileMount .mini-profile .profile-photo-rail,
  #roomsMount .mini-profile .profile-photo-rail {
    grid-auto-columns: clamp(86px, 46%, 118px);
  }

  #profileMount .mini-profile .profile-gifts-grid,
  #roomsMount .mini-profile .profile-gifts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  #profileMount .mini-profile .m-body > .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .m-body > .view[data-view-id="info"].is-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 10px;
    align-items: start;
  }

  #profileMount .mini-profile .profile-story-card,
  #roomsMount .mini-profile .profile-story-card,
  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .vip-analytics-card,
  #roomsMount .mini-profile .vip-analytics-card,
  #profileMount .mini-profile .info-card,
  #roomsMount .mini-profile .info-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  #profileMount .mini-profile .profile-photo-strip,
  #roomsMount .mini-profile .profile-photo-strip,
  #profileMount .mini-profile .profile-gifts-panel,
  #roomsMount .mini-profile .profile-gifts-panel,
  #profileMount .mini-profile .vip-gift-card,
  #roomsMount .mini-profile .vip-gift-card {
    grid-column: 2;
  }
}

@media (min-width: 1180px) {
  #profileMount .mini-profile .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .view[data-view-id="info"].is-active {
    grid-template-columns: minmax(0, 1fr) 258px;
    gap: 10px;
  }

  #profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
  #roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
    width: 100%;
  }
}

@media (max-width: 520px) {
  #profileMount .mini-profile .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .view[data-view-id="info"].is-active {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  #profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
  #roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
    width: 100%;
  }

  #profileMount .mini-profile .facts-grid,
  #roomsMount .mini-profile .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* Tight fit: minimal gutters so profile boxes use the space */
#main {
  padding: 10px;
  gap: 10px;
}

#main:has(#profileView:not(.hidden)),
#main:has(#roomsView:not(.hidden)) {
  padding: 4px;
  gap: 2px;
}

#chatAndInput,
#profileView .profile-page,
#roomsView .profile-page,
#profileMount,
#roomsMount {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

#profileView,
#roomsView {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  #profileView .profile-page,
  #roomsView .profile-page {
    align-items: center;
    padding: 12px 0;
  }

  #profileMount,
  #roomsMount {
    display: flex;
    justify-content: center;
  }

  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    width: min(100%, 780px);
    max-width: 780px;
    align-self: flex-start;
  }
}

#profileMount .mini-profile,
#roomsMount .mini-profile {
  padding: 3px;
  gap: 3px;
  border-radius: 8px;
}

#profileMount .mini-profile .m-head,
#roomsMount .mini-profile .m-head {
  padding: 6px;
  gap: 5px 7px;
}

#profileMount .mini-profile .m-toolbar,
#roomsMount .mini-profile .m-toolbar {
  margin: 0;
}

#profileMount .mini-profile .tabbar,
#roomsMount .mini-profile .tabbar {
  padding: 1px;
  gap: 2px;
}

#profileMount .mini-profile .m-body,
#roomsMount .mini-profile .m-body {
  padding-right: 0;
}

#profileMount .mini-profile .m-body > .view[data-view-id].is-active,
#roomsMount .mini-profile .m-body > .view[data-view-id].is-active {
  gap: 3px;
}

#profileMount .mini-profile .view[data-view-id="info"].is-active,
#roomsMount .mini-profile .view[data-view-id="info"].is-active {
  min-height: 0;
  gap: 3px;
}

@media (min-width: 760px) {
  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    padding: 6px;
    gap: 7px;
  }

  #profileMount .mini-profile .m-head,
  #roomsMount .mini-profile .m-head {
    min-height: 116px;
    padding: 10px;
    gap: 7px 10px;
  }
}

@media (min-width: 980px) {
  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    padding: 10px;
    gap: 10px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(9,14,25,.98), rgba(4,7,13,.98));
    border: 1px solid rgba(148,163,184,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
  }

  #profileMount .mini-profile .m-head,
  #roomsMount .mini-profile .m-head {
    grid-template-columns: 134px minmax(0, 1fr) minmax(170px, auto);
    grid-template-areas:
      ". . status"
      "avatar name status"
      "mood mood mood";
    min-height: 206px;
    padding: 18px;
    gap: 10px 14px;
    align-items: end;
    border-radius: 26px;
    background:
      radial-gradient(circle at 12% 0%, rgba(255,92,173,.54), transparent 30%),
      radial-gradient(circle at 82% 0%, rgba(132,255,48,.45), transparent 34%),
      linear-gradient(180deg, rgba(29,40,58,.52) 0%, rgba(5,7,13,.74) 58%, rgba(2,6,23,.98) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 18px 42px rgba(0,0,0,.38);
  }

  #profileMount .mini-profile .m-ava,
  #roomsMount .mini-profile .m-ava,
  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn {
    width: 122px;
    height: 122px;
    border-radius: 30px;
  }

  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn {
    align-self: end;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.42));
  }

  #profileMount .mini-profile .m-name,
  #roomsMount .mini-profile .m-name {
    font-size: 1.7rem;
    line-height: 1;
  }

  #profileMount .mini-profile .m-uname,
  #roomsMount .mini-profile .m-uname {
    align-self: end;
    padding-bottom: 8px;
  }

  #profileMount .mini-profile .pop-chip,
  #roomsMount .mini-profile .pop-chip {
    min-width: 94px;
    height: 40px;
    border-radius: 15px;
    align-self: center;
  }

  #profileMount .mini-profile .m-meta,
  #roomsMount .mini-profile .m-meta {
    align-self: center;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
  }

  #profileMount .mini-profile .mood-wrap,
  #roomsMount .mini-profile .mood-wrap {
    max-width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(15,23,42,.76), rgba(2,6,23,.52));
  }

  #profileMount .mini-profile .m-body > .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .m-body > .view[data-view-id="info"].is-active,
  #profileMount .mini-profile .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .view[data-view-id="info"].is-active {
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 10px;
  }

  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .profile-story-card,
  #roomsMount .mini-profile .profile-story-card,
  #profileMount .mini-profile .info-card,
  #roomsMount .mini-profile .info-card {
    padding: 12px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(15,23,42,.68), rgba(5,10,20,.82));
    border: 1px solid rgba(148,163,184,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  #profileMount .mini-profile .facts-grid,
  #roomsMount .mini-profile .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #profileMount .mini-profile .fact-item,
  #roomsMount .mini-profile .fact-item {
    min-height: 58px;
    padding: 8px;
    gap: 7px;
    border-radius: 16px;
    background: rgba(2,6,23,.38);
    border: 1px solid rgba(147,197,253,.10);
  }
}

#profileMount .mini-profile .facts-grid,
#roomsMount .mini-profile .facts-grid {
  gap: 3px;
}

#profileMount .mini-profile .fact-item,
#roomsMount .mini-profile .fact-item {
  padding: 4px;
  gap: 3px;
}

#profileMount .mini-profile .gift-shelf,
#roomsMount .mini-profile .gift-shelf {
  padding: 3px;
}

#profileMount .mini-profile .gift-shelf-row,
#roomsMount .mini-profile .gift-shelf-row,
#profileMount .mini-profile .gift-shelf-grid,
#roomsMount .mini-profile .gift-shelf-grid,
#profileMount .mini-profile .gift-archive-grid,
#roomsMount .mini-profile .gift-archive-grid {
  gap: 3px;
}

#profileMount .mini-profile .gift-shelf-grid,
#roomsMount .mini-profile .gift-shelf-grid {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

#profileMount .mini-profile .profile-photo-strip,
#roomsMount .mini-profile .profile-photo-strip {
  width: 100%;
  margin-top: 2px;
}

#profileMount .mini-profile .profile-photo-head,
#roomsMount .mini-profile .profile-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#profileMount .mini-profile .profile-photo-head span,
#roomsMount .mini-profile .profile-photo-head span {
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1;
}

#profileMount .mini-profile .profile-photo-head strong,
#roomsMount .mini-profile .profile-photo-head strong {
  min-width: 26px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(96,165,250,.10);
  border: 1px solid rgba(96,165,250,.16);
  font-size: .66rem;
  font-weight: 950;
}

#profileMount .mini-profile .profile-photo-rail,
#roomsMount .mini-profile .profile-photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(72px, 27%, 104px);
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 5px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

#profileMount .mini-profile .profile-photo-rail::-webkit-scrollbar,
#roomsMount .mini-profile .profile-photo-rail::-webkit-scrollbar {
  height: 4px;
}

#profileMount .mini-profile .profile-photo-rail::-webkit-scrollbar-thumb,
#roomsMount .mini-profile .profile-photo-rail::-webkit-scrollbar-thumb {
  background: rgba(96,165,250,.28);
  border-radius: 999px;
}

#profileMount .mini-profile .profile-photo-card,
#roomsMount .mini-profile .profile-photo-card {
  position: relative;
  aspect-ratio: 1 / 1.22;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  background: rgba(8,13,24,.76);
  overflow: hidden;
  cursor: zoom-in;
  scroll-snap-align: start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

#profileMount .mini-profile .profile-photo-card img,
#roomsMount .mini-profile .profile-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#profileMount .mini-profile .profile-photo-heart,
#roomsMount .mini-profile .profile-photo-heart {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  min-width: 38px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(7,12,22,.74);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.30);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 950;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

#profileMount .mini-profile .profile-photo-heart i,
#roomsMount .mini-profile .profile-photo-heart i {
  color: #94a3b8;
  font-size: .78rem;
}

#profileMount .mini-profile .profile-photo-heart.is-liked,
#roomsMount .mini-profile .profile-photo-heart.is-liked {
  color: #fff;
  background: rgba(127,29,29,.72);
  border-color: rgba(248,113,113,.28);
}

#profileMount .mini-profile .profile-photo-heart.is-liked i,
#roomsMount .mini-profile .profile-photo-heart.is-liked i {
  color: #fb7185;
}

#profileMount .mini-profile .profile-photo-card.photo-heart-burst .profile-photo-heart,
#roomsMount .mini-profile .profile-photo-card.photo-heart-burst .profile-photo-heart {
  animation: photo-heart-pop .62s ease both;
}

@keyframes photo-heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); box-shadow: 0 0 0 10px rgba(248,113,113,.12); }
  100% { transform: scale(1); }
}

.photo-heart-explosion {
  position: fixed;
  left: var(--heart-x, 50vw);
  top: var(--heart-y, 50vh);
  z-index: 10050;
  width: 12px;
  height: 12px;
  pointer-events: none;
  overflow: visible;
}

.photo-heart-explosion i {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.35) rotate(45deg);
  background: #fb7185;
  animation: heart-fly 1.15s cubic-bezier(.16,.86,.24,1) forwards;
  filter:
    drop-shadow(0 0 10px rgba(248,113,113,.75))
    drop-shadow(0 8px 12px rgba(0,0,0,.28));
}

.photo-heart-explosion i::before,
.photo-heart-explosion i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: inherit;
}

.photo-heart-explosion i::before { left: -6px; }
.photo-heart-explosion i::after { top: -6px; }

.photo-heart-explosion i:nth-child(1) { --x: -98px; --y: -118px; --r: -18deg; animation-delay: 0s; }
.photo-heart-explosion i:nth-child(2) { --x: -54px; --y: -150px; --r: 22deg; animation-delay: .03s; background: #f43f5e; }
.photo-heart-explosion i:nth-child(3) { --x: 8px; --y: -132px; --r: -34deg; animation-delay: .01s; background: #fda4af; }
.photo-heart-explosion i:nth-child(4) { --x: 74px; --y: -106px; --r: 28deg; animation-delay: .06s; background: #fecdd3; }
.photo-heart-explosion i:nth-child(5) { --x: -126px; --y: -54px; --r: 40deg; animation-delay: .05s; background: #fecdd3; }
.photo-heart-explosion i:nth-child(6) { --x: 112px; --y: -50px; --r: -28deg; animation-delay: .08s; background: #fda4af; }
.photo-heart-explosion i:nth-child(7) { --x: 44px; --y: -174px; --r: 12deg; animation-delay: .1s; background: #f43f5e; }
.photo-heart-explosion i:nth-child(8) { --x: -16px; --y: -202px; --r: -8deg; animation-delay: .12s; background: #fff1f2; }
.photo-heart-explosion i:nth-child(9) { --x: -86px; --y: -82px; --r: 34deg; animation-delay: .14s; background: #fb7185; }
.photo-heart-explosion i:nth-child(10) { --x: 92px; --y: -152px; --r: -42deg; animation-delay: .16s; background: #fff1f2; }

@keyframes heart-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(45deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(45deg); }
  62% { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%)) scale(.85) rotate(calc(45deg + var(--r, 0deg))); }
}

#profileMount .mini-profile .profile-photo-card::after,
#roomsMount .mini-profile .profile-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(2,6,23,.28));
  pointer-events: none;
}

#profileMount .mini-profile .profile-gifts-panel,
#roomsMount .mini-profile .profile-gifts-panel {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
}

#profileMount .mini-profile .view[data-view-id="info"] > .gift-shelf,
#roomsMount .mini-profile .view[data-view-id="info"] > .gift-shelf {
  display: none !important;
}

#profileMount .mini-profile .profile-gifts-head,
#roomsMount .mini-profile .profile-gifts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#profileMount .mini-profile .profile-gifts-head span,
#roomsMount .mini-profile .profile-gifts-head span {
  display: block;
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.1;
}

#profileMount .mini-profile .profile-gifts-head small,
#roomsMount .mini-profile .profile-gifts-head small {
  display: block;
  margin-top: 2px;
  color: #8ea0b8;
  font-size: .64rem;
  font-weight: 750;
  line-height: 1.15;
}

#profileMount .mini-profile .profile-gifts-head strong,
#roomsMount .mini-profile .profile-gifts-head strong {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37,99,235,.20);
  border: 1px solid rgba(147,197,253,.20);
  font-size: .72rem;
  font-weight: 950;
}

#profileMount .mini-profile .profile-gifts-grid,
#roomsMount .mini-profile .profile-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 7px;
}

#profileMount .mini-profile .profile-gift-card,
#roomsMount .mini-profile .profile-gift-card,
#profileMount .mini-profile .profile-gifts-grid > .profile-gift-card,
#roomsMount .mini-profile .profile-gifts-grid > .profile-gift-card {
  position: relative;
  min-height: 74px;
  padding: 8px 5px 7px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 13px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.10), transparent 42%),
    rgba(8,13,24,.74);
  border: 1px solid rgba(148,163,184,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  cursor: pointer;
  overflow: hidden;
}

#profileMount .mini-profile .profile-gift-card:hover,
#roomsMount .mini-profile .profile-gift-card:hover {
  border-color: rgba(96,165,250,.26);
  background:
    radial-gradient(circle at 50% 18%, rgba(96,165,250,.15), transparent 45%),
    rgba(10,16,29,.82);
}

#profileMount .mini-profile .profile-gift-card.has-arrival-replay,
#roomsMount .mini-profile .profile-gift-card.has-arrival-replay {
  border-color: rgba(45,212,191,.28);
  background:
    radial-gradient(circle at 82% 12%, rgba(45,212,191,.24), transparent 34%),
    radial-gradient(circle at 24% 18%, rgba(168,85,247,.16), transparent 42%),
    rgba(8,13,24,.78);
}

#profileMount .mini-profile .gift-replay-badge,
#roomsMount .mini-profile .gift-replay-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ccfbf1;
  background:
    linear-gradient(135deg, rgba(20,184,166,.95), rgba(124,58,237,.86));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow:
    0 0 0 3px rgba(45,212,191,.08),
    0 7px 16px rgba(45,212,191,.20);
  font-size: .56rem;
  z-index: 2;
}

#profileMount .mini-profile .profile-gift-card.is-hidden,
#roomsMount .mini-profile .profile-gift-card.is-hidden {
  opacity: .52;
  filter: grayscale(.35);
}

#profileMount .mini-profile .profile-gift-card.is-gift-extra,
#roomsMount .mini-profile .profile-gift-card.is-gift-extra {
  display: none;
}

#profileMount .mini-profile .profile-gifts-panel.show-all .profile-gift-card.is-gift-extra,
#roomsMount .mini-profile .profile-gifts-panel.show-all .profile-gift-card.is-gift-extra {
  display: grid;
}

#profileMount .mini-profile .profile-gift-card .gift-art,
#roomsMount .mini-profile .profile-gift-card .gift-art {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

#profileMount .mini-profile .profile-gift-card .gift-img,
#roomsMount .mini-profile .profile-gift-card .gift-img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.42));
}

#profileMount .mini-profile .profile-gift-card .gift-emoji,
#roomsMount .mini-profile .profile-gift-card .gift-emoji {
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.42));
}

#profileMount .mini-profile .profile-gift-card .gift-name,
#roomsMount .mini-profile .profile-gift-card .gift-name {
  width: 100%;
  color: #f8fafc;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#profileMount .mini-profile .profile-gift-card .gift-meta,
#roomsMount .mini-profile .profile-gift-card .gift-meta {
  display: none;
}

#profileMount .mini-profile .profile-gifts-more,
#roomsMount .mini-profile .profile-gifts-more {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 1px solid rgba(96,165,250,.22);
  border-radius: 12px;
  color: #dbeafe;
  background:
    linear-gradient(135deg, rgba(37,99,235,.22), rgba(14,165,233,.10));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 18px rgba(0,0,0,.18);
  font-size: .76rem;
  font-weight: 950;
  cursor: pointer;
}

#profileMount .mini-profile .profile-gifts-more:hover,
#roomsMount .mini-profile .profile-gifts-more:hover {
  border-color: rgba(147,197,253,.34);
  background:
    linear-gradient(135deg, rgba(37,99,235,.32), rgba(14,165,233,.16));
}

#profileMount .mini-profile .profile-gifts-empty,
#roomsMount .mini-profile .profile-gifts-empty {
  padding: 10px;
  border-radius: 12px;
  color: #93a4bd;
  background: rgba(15,23,42,.42);
  border: 1px dashed rgba(147,197,253,.16);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 900px) {
  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .profile-story-card,
  #roomsMount .mini-profile .profile-story-card,
  #profileMount .mini-profile .info-card,
  #roomsMount .mini-profile .info-card {
    padding: 12px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(15,23,42,.68), rgba(5,10,20,.82));
    border: 1px solid rgba(148,163,184,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  #profileMount .mini-profile .facts-grid,
  #roomsMount .mini-profile .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #profileMount .mini-profile .fact-item,
  #roomsMount .mini-profile .fact-item {
    min-height: 58px;
    padding: 8px;
    gap: 7px;
    border-radius: 16px;
    background: rgba(2,6,23,.38);
    border: 1px solid rgba(147,197,253,.10);
  }

  #profileMount .mini-profile .profile-photo-strip,
  #roomsMount .mini-profile .profile-photo-strip,
  #profileMount .mini-profile .profile-gifts-panel,
  #roomsMount .mini-profile .profile-gifts-panel {
    padding: 10px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 100% 0%, rgba(96,165,250,.14), transparent 34%),
      linear-gradient(180deg, rgba(15,23,42,.70), rgba(5,10,20,.86));
    border: 1px solid rgba(147,197,253,.13);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 12px 28px rgba(0,0,0,.22);
  }

  #profileMount .mini-profile .profile-photo-head,
  #roomsMount .mini-profile .profile-photo-head,
  #profileMount .mini-profile .profile-gifts-head,
  #roomsMount .mini-profile .profile-gifts-head {
    margin-bottom: 8px;
  }

  #profileMount .mini-profile .profile-photo-rail,
  #roomsMount .mini-profile .profile-photo-rail {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  #profileMount .mini-profile .profile-photo-card,
  #roomsMount .mini-profile .profile-photo-card {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  #profileMount .mini-profile .profile-gifts-grid,
  #roomsMount .mini-profile .profile-gifts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #profileMount .mini-profile .profile-gift-card,
  #roomsMount .mini-profile .profile-gift-card,
  #profileMount .mini-profile .profile-gifts-grid > .profile-gift-card,
  #roomsMount .mini-profile .profile-gifts-grid > .profile-gift-card {
    min-height: 92px;
    padding: 10px 6px 8px;
    border-radius: 17px;
    background:
      radial-gradient(circle at 50% 18%, rgba(255,255,255,.13), transparent 38%),
      linear-gradient(180deg, rgba(15,23,42,.72), rgba(5,10,20,.86));
    border-color: rgba(148,163,184,.12);
  }

  #profileMount .mini-profile .profile-gift-card .gift-art,
  #roomsMount .mini-profile .profile-gift-card .gift-art {
    width: 46px;
    height: 46px;
  }

  #profileMount .mini-profile .profile-gift-card .gift-img,
  #roomsMount .mini-profile .profile-gift-card .gift-img {
    max-width: 46px;
    max-height: 46px;
  }

  #profileMount .mini-profile .profile-gift-card .gift-emoji,
  #roomsMount .mini-profile .profile-gift-card .gift-emoji {
    font-size: 1.95rem;
  }
}

#profileMount .mini-profile .profile-head-extra,
#roomsMount .mini-profile .profile-head-extra {
  display: none;
}

@media (min-width: 1024px) {
  #main {
    width: 100%;
    margin-inline: auto;
    padding: 12px 14px;
    gap: 14px;
    align-items: flex-start;
  }

  #main:has(#profileView:not(.hidden)),
  #main:has(#roomsView:not(.hidden)) {
    padding: 12px 14px;
    gap: 14px;
  }

  #chatAndInput {
    flex: 1 1 70%;
    min-width: 0;
  }

  #onlineUsers {
    position: sticky;
    top: 20px;
    flex: 0 0 30%;
    min-width: 300px;
    height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: visible;
    background: #14161d;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
    backdrop-filter: none;
  }

  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .profile-gifts-panel,
  #roomsMount .mini-profile .profile-gifts-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #profileMount .mini-profile .fact-values,
  #roomsMount .mini-profile .fact-values,
  #profileMount .mini-profile .fact-chip,
  #roomsMount .mini-profile .fact-chip {
    min-width: 0;
    max-width: 100%;
  }

  #onlineUsers::before {
    display: none;
  }

  #onlineUsers h3 {
    position: relative;
    z-index: 1;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    color: #dbeafe;
    font-size: .82rem;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #171d28, #111722);
    border-bottom: 1px solid rgba(148,163,184,.12);
  }

  #onlineUsers h3 span {
    font-size: .9rem;
  }

  #onlineUsers h3 strong {
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    font-size: .78rem;
    box-shadow:
      0 0 0 1px rgba(147,197,253,.22),
      0 10px 22px rgba(37,99,235,.34);
  }

  #onlineUsers .users-grid {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
  }

  #onlineUsers .users-grid::-webkit-scrollbar {
    width: 6px;
  }

  #onlineUsers .users-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(96,165,250,.34);
  }

  #onlineUsers .user-card {
    height: 98px;
    min-height: 98px;
    padding: 8px 5px 7px;
    gap: 4px;
    border-radius: 10px;
    background: #171a22;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
  }

  #profileMount .mini-profile .m-head .mood-input,
  #roomsMount .mini-profile .m-head .mood-input {
    min-height: 44px;
    align-self: center;
  }

  #onlineUsers .user-card:hover {
    transform: translateY(-1px);
    border-color: rgba(148,163,184,.25);
    background: #1b202b;
    box-shadow: none;
  }

  #onlineUsers .avatar-wrap,
  #onlineUsers .avatar-wrap.avatar-wrap {
    width: 58px;
    height: 58px;
  }

  #onlineUsers .user-avatar,
  #onlineUsers .c-user-avatar,
  #onlineUsers .avatar-wrap img {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-color: rgba(148,163,184,.28);
    box-shadow: none;
  }

  #onlineUsers .username {
    font-size: .68rem;
    min-height: 15px;
    line-height: 1.08;
  }

  #onlineUsers .pop-score-compact {
    width: 62px;
    padding: 3px 4px;
    border-radius: 999px;
    background: rgba(15,23,42,.54);
  }

  #onlineUsers .pop-score-compact .pop-score-label {
    display: none;
  }

  #onlineUsers .pop-score-compact .pop-score-value {
    font-size: .62rem;
  }

  #profileView .profile-page,
  #roomsView .profile-page {
    align-items: stretch;
    padding: 0;
  }

  #profileMount,
  #roomsMount {
    display: block;
  }

  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    width: 100%;
    max-width: none;
    padding: 8px;
    gap: 8px;
    border-radius: 12px;
    background: #14161d;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
    backdrop-filter: none;
  }

  #profileMount .mini-profile .m-head,
  #roomsMount .mini-profile .m-head {
    grid-template-columns: 120px minmax(140px, 1fr) minmax(120px, auto) 96px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "avatar name meta pop"
      "avatar mood mood mood";
    min-height: 190px;
    padding: 84px clamp(28px, 4vw, 72px) 10px;
    gap: 8px 14px;
    align-items: center;
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(18,23,33,.94), rgba(12,17,26,.96));
    border: 1px solid rgba(148,163,184,.13);
    overflow: visible;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 10px 22px rgba(0,0,0,.18);
  }

  #profileMount .mini-profile .profile-cover,
  #roomsMount .mini-profile .profile-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: .18;
    background:
      linear-gradient(180deg, rgba(12,18,28,.42), rgba(12,18,28,.94)),
      var(--profile-cover) center/cover no-repeat;
  }

  #profileMount .mini-profile .profile-cover::after,
  #roomsMount .mini-profile .profile-cover::after {
    background:
      linear-gradient(180deg, rgba(8,13,22,.04), rgba(8,13,22,.72));
  }

  #profileMount .mini-profile .m-head::before,
  #roomsMount .mini-profile .m-head::before {
    display: none;
  }

  #profileMount .mini-profile .m-head::after,
  #roomsMount .mini-profile .m-head::after {
    display: none;
  }

  #profileMount .mini-profile .m-head > *,
  #roomsMount .mini-profile .m-head > * {
    z-index: 2;
  }

  #profileMount .mini-profile .profile-cover,
  #roomsMount .mini-profile .profile-cover {
    z-index: 0;
  }

  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn,
  #profileMount .mini-profile .m-ava,
  #roomsMount .mini-profile .m-ava {
    --profile-avatar-radius: 14px;
    width: 120px;
    height: 120px;
    border-radius: var(--profile-avatar-radius);
  }

  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn {
    position: relative;
    align-self: center;
    justify-self: start;
    margin-top: 0;
    filter: none;
    padding: 0;
    border: 1px solid rgba(148,163,184,.22);
    background:
      linear-gradient(180deg, rgba(13,20,32,.82), rgba(8,13,22,.92));
    box-shadow:
      0 8px 16px rgba(0,0,0,.26);
    overflow: visible;
  }

  #profileMount .mini-profile .m-avatar-btn .m-ava,
  #roomsMount .mini-profile .m-avatar-btn .m-ava {
    width: 100%;
    height: 100%;
    display: block;
  }

  #profileMount .mini-profile .m-avatar-btn::before,
  #roomsMount .mini-profile .m-avatar-btn::before {
    display: none;
  }

  #profileMount .mini-profile .m-uname,
  #roomsMount .mini-profile .m-uname {
    grid-area: name;
    align-self: center;
    justify-self: start;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    gap: 9px;
    text-align: left;
    justify-content: flex-start;
    filter: none;
  }

  #profileMount .mini-profile .m-name,
  #roomsMount .mini-profile .m-name {
    font-size: clamp(1.12rem, 1.25vw, 1.42rem);
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 4px 18px rgba(0,0,0,.44);
  }

  #profileMount .mini-profile .m-head .m-meta,
  #roomsMount .mini-profile .m-head .m-meta {
    grid-area: meta;
    align-self: center;
    justify-self: center;
    width: auto;
    min-width: 0;
    min-height: 32px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #profileMount .mini-profile .m-head .pop-chip,
  #roomsMount .mini-profile .m-head .pop-chip {
    grid-area: pop;
    justify-self: stretch;
    align-self: center;
    min-width: 0;
    width: 100%;
    height: 52px;
    margin-right: 0;
    margin-left: 0;
    padding: 5px 8px;
    border-radius: 12px;
    color: #f8fafc;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 44%),
      linear-gradient(180deg, rgba(24,25,33,.96), rgba(10,11,16,.98));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 10px 18px rgba(0,0,0,.24);
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
  }

  #profileMount .mini-profile .m-head .pop-chip::after,
  #roomsMount .mini-profile .m-head .pop-chip::after {
    content: "";
    position: absolute;
    inset: -40% -60%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%);
    transform: translateX(-55%);
    opacity: 0;
  }

  #profileMount .mini-profile .m-head .pop-chip.is-counting,
  #roomsMount .mini-profile .m-head .pop-chip.is-counting {
    transform: translateY(-1px) scale(1.025);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 12px 24px rgba(0,0,0,.30),
      0 0 24px rgba(254,44,85,.14),
      0 0 22px rgba(37,244,238,.10);
  }

  #profileMount .mini-profile .m-head .pop-chip.is-counting::after,
  #roomsMount .mini-profile .m-head .pop-chip.is-counting::after {
    opacity: 1;
    animation: popStatSweep 1.25s ease-out both;
  }

  #profileMount .mini-profile .m-head .pop-chip .pop-chip-value,
  #roomsMount .mini-profile .m-head .pop-chip .pop-chip-value {
    color: #ffffff;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 1.34rem;
    font-weight: 900;
    line-height: .9;
    letter-spacing: 0;
    text-shadow:
      .8px .8px 0 rgba(37,244,238,.52),
      -.8px -.8px 0 rgba(254,44,85,.46),
      0 7px 14px rgba(0,0,0,.38);
  }

  #profileMount .mini-profile .m-head .pop-chip small,
  #roomsMount .mini-profile .m-head .pop-chip small {
    color: rgba(226,232,240,.62);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    line-height: 1;
  }

  @keyframes popStatSweep {
    from { transform: translateX(-55%); }
    to { transform: translateX(55%); }
  }

  #profileMount .mini-profile .m-head .room-roles,
  #roomsMount .mini-profile .m-head .room-roles {
    gap: 6px;
    justify-content: flex-start;
    width: auto;
  }

  #profileMount .mini-profile .m-head .role-chip,
  #roomsMount .mini-profile .m-head .role-chip {
    height: 34px;
    min-width: 34px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #profileMount .mini-profile .m-head .badge-ico,
  #roomsMount .mini-profile .m-head .badge-ico {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #profileMount .mini-profile .m-head .role-chip img,
  #roomsMount .mini-profile .m-head .role-chip img {
    width: 34px;
    height: 34px;
  }

  #profileMount .mini-profile .m-head .mood-wrap,
  #roomsMount .mini-profile .m-head .mood-wrap {
    grid-area: mood;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 14px;
    position: relative;
    --mood-pointer-x: 50%;
    overflow: visible;
    background:
      radial-gradient(circle at 50% -14px, rgba(96,165,250,.20), transparent 46px),
      linear-gradient(180deg, rgba(19,30,50,.96), rgba(8,13,22,.96));
    border: 1px solid rgba(147,197,253,.22);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      0 10px 20px rgba(0,0,0,.20),
      0 0 22px rgba(31,111,235,.08);
  }

  #profileMount .mini-profile .m-head .mood-wrap::before,
  #roomsMount .mini-profile .m-head .mood-wrap::before {
    content: "";
    position: absolute;
    top: -21px;
    left: var(--mood-pointer-x);
    width: 26px;
    height: 16px;
    transform: translateX(-50%);
    pointer-events: none;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background:
      linear-gradient(180deg, rgba(50,86,140,.98), rgba(19,30,50,.98));
    box-shadow:
      0 -5px 14px rgba(96,165,250,.16);
    opacity: 1;
  }

  #profileMount .mini-profile .m-head .mood-wrap::after,
  #roomsMount .mini-profile .m-head .mood-wrap::after {
    content: "";
    position: absolute;
    top: -28px;
    left: var(--mood-pointer-x);
    width: 38px;
    height: 38px;
    transform: translateX(-50%);
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(96,165,250,.18), transparent 66%);
    filter: blur(1px);
  }

  #profileMount .mini-profile .m-head .mood-wrap > *,
  #roomsMount .mini-profile .m-head .mood-wrap > * {
    position: relative;
    z-index: 1;
  }

  #profileMount .mini-profile .m-head .mood-wrap .mood-trigger,
  #roomsMount .mini-profile .m-head .mood-wrap .mood-trigger {
    position: absolute;
    left: var(--mood-pointer-x);
    top: -66px;
    transform: translateX(-50%);
    z-index: 3;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #profileMount .mini-profile .m-head .mood-wrap .mood-trigger img,
  #roomsMount .mini-profile .m-head .mood-wrap .mood-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.45));
  }

  #profileMount .mini-profile .m-head .mood-input,
  #roomsMount .mini-profile .m-head .mood-input {
    min-height: 24px;
    align-self: center;
    font-size: .8rem;
    line-height: 1.15;
    font-weight: 850;
    color: #f8fbff;
    text-shadow: 0 2px 10px rgba(0,0,0,.42);
  }

  #profileMount .mini-profile .m-head .profile-head-extra,
  #roomsMount .mini-profile .m-head .profile-head-extra {
    grid-area: extra;
    align-self: center;
    justify-self: stretch;
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    padding-top: 1px;
  }

  #profileMount .mini-profile .m-head .profile-rank-line,
  #roomsMount .mini-profile .m-head .profile-rank-line {
    width: 100%;
  }

  #profileMount .mini-profile .m-head .profile-head-stats,
  #roomsMount .mini-profile .m-head .profile-head-stats {
    width: 100%;
  }

  #profileMount .mini-profile .m-head .profile-rank-line,
  #roomsMount .mini-profile .m-head .profile-rank-line,
  #profileMount .mini-profile .m-head .profile-head-stats,
  #roomsMount .mini-profile .m-head .profile-head-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    justify-content: center;
  }

  #profileMount .mini-profile .m-head .profile-rank-chip,
  #roomsMount .mini-profile .m-head .profile-rank-chip,
  #profileMount .mini-profile .m-head .profile-presence-chip,
  #roomsMount .mini-profile .m-head .profile-presence-chip {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(12,15,25,.68);
    border: 1px solid rgba(148,163,184,.16);
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
  }

  #profileMount .mini-profile .m-head .profile-rank-chip,
  #roomsMount .mini-profile .m-head .profile-rank-chip {
    color: #ffffff;
    background: linear-gradient(135deg, #5237ff, #1f6feb);
    border-color: rgba(147,197,253,.28);
  }

  #profileMount .mini-profile .m-head .profile-head-stats > span,
  #roomsMount .mini-profile .m-head .profile-head-stats > span {
    min-width: 86px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    align-content: center;
    padding: 4px 9px;
    border-radius: 12px;
    color: #e5e7eb;
    background:
      linear-gradient(180deg, rgba(37,43,60,.60), rgba(12,15,25,.76));
    border: 1px solid rgba(148,163,184,.13);
  }

  #profileMount .mini-profile .m-head .profile-head-stats b,
  #roomsMount .mini-profile .m-head .profile-head-stats b {
    color: #bfdbfe;
    font-size: .94rem;
    line-height: 1;
  }

  #profileMount .mini-profile .m-head .profile-head-stats small,
  #roomsMount .mini-profile .m-head .profile-head-stats small {
    color: #9aa8be;
    font-size: .52rem;
    font-weight: 800;
    line-height: 1;
  }

  #profileMount .mini-profile .m-head .profile-heart-btn,
  #roomsMount .mini-profile .m-head .profile-heart-btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff1f2;
    background: linear-gradient(135deg, rgba(225,29,72,.36), rgba(124,58,237,.22));
    border: 1px solid rgba(248,113,113,.22);
    font-size: .66rem;
    font-weight: 900;
    cursor: pointer;
  }

  #profileMount .mini-profile .m-head .profile-heart-btn.is-given,
  #profileMount .mini-profile .m-head .profile-heart-btn:disabled,
  #roomsMount .mini-profile .m-head .profile-heart-btn.is-given,
  #roomsMount .mini-profile .m-head .profile-heart-btn:disabled {
    cursor: default;
    opacity: .72;
  }

  #profileMount .mini-profile .m-toolbar,
  #roomsMount .mini-profile .m-toolbar {
    margin: 0;
  }

  #profileMount .mini-profile .tabbar,
  #roomsMount .mini-profile .tabbar {
    width: min(100%, 520px);
    margin-inline: auto;
    padding: 3px;
    gap: 3px;
    border-radius: 10px;
    background: #111722;
    border: 1px solid rgba(148,163,184,.12);
    box-shadow: none;
    backdrop-filter: none;
  }

  #profileMount .mini-profile .tabbar .tab-btn,
  #roomsMount .mini-profile .tabbar .tab-btn {
    min-height: 34px;
    border-radius: 8px;
    font-size: .84rem;
    letter-spacing: 0;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  #profileMount .mini-profile .tabbar .tab-btn:hover,
  #roomsMount .mini-profile .tabbar .tab-btn:hover {
    transform: none;
    color: #f8fafc;
    border-color: rgba(148,163,184,.20);
    background: #1a1d26;
  }

  #profileMount .mini-profile .tabbar .tab-btn.is-active,
  #profileMount .mini-profile .tabbar .tab-btn.active,
  #profileMount .mini-profile .tabbar .tab-btn[aria-selected="true"],
  #roomsMount .mini-profile .tabbar .tab-btn.is-active,
  #roomsMount .mini-profile .tabbar .tab-btn.active,
  #roomsMount .mini-profile .tabbar .tab-btn[aria-selected="true"] {
    color: #ffffff;
    background: #1f6feb;
    border-color: rgba(147,197,253,.28);
    box-shadow: none;
  }

  #profileMount .mini-profile .m-body > .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .m-body > .view[data-view-id="info"].is-active,
  #profileMount .mini-profile .view[data-view-id="info"].is-active,
  #roomsMount .mini-profile .view[data-view-id="info"].is-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 10px;
    align-items: start;
  }

  #profileMount .mini-profile .m-body > .view[data-view-id="info"].is-active > *,
  #roomsMount .mini-profile .m-body > .view[data-view-id="info"].is-active > *,
  #profileMount .mini-profile .view[data-view-id="info"].is-active > *,
  #roomsMount .mini-profile .view[data-view-id="info"].is-active > * {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }

  #profileMount .mini-profile .profile-story-card,
  #roomsMount .mini-profile .profile-story-card,
  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .vip-analytics-card,
  #roomsMount .mini-profile .vip-analytics-card,
  #profileMount .mini-profile .info-card,
  #roomsMount .mini-profile .info-card {
    grid-column: 1 / -1;
  }

  #profileMount .mini-profile .profile-photo-strip,
  #roomsMount .mini-profile .profile-photo-strip {
    grid-column: 1 / -1;
  }

  #profileMount .mini-profile .vip-gift-card,
  #roomsMount .mini-profile .vip-gift-card {
    grid-column: 1 / -1;
  }

  #profileMount .mini-profile .profile-gifts-panel,
  #roomsMount .mini-profile .profile-gifts-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: start;
    clear: both;
    contain: none;
    overflow: visible;
    position: relative;
    z-index: 0;
  }

  #profileMount .mini-profile .facts-card,
  #roomsMount .mini-profile .facts-card,
  #profileMount .mini-profile .profile-story-card,
  #roomsMount .mini-profile .profile-story-card,
  #profileMount .mini-profile .info-card,
  #roomsMount .mini-profile .info-card,
  #profileMount .mini-profile .profile-photo-strip,
  #roomsMount .mini-profile .profile-photo-strip,
  #profileMount .mini-profile .profile-gifts-panel,
  #roomsMount .mini-profile .profile-gifts-panel {
    padding: 10px;
    border-radius: 12px;
    background: #14161d;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
    backdrop-filter: none;
  }

  #profileMount .mini-profile .facts-grid,
  #roomsMount .mini-profile .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #profileMount .mini-profile .fact-item,
  #roomsMount .mini-profile .fact-item {
    min-height: 54px;
    padding: 8px;
    gap: 7px;
    border-radius: 10px;
    background: #10141c;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
  }

  #profileMount .mini-profile .fact-item:hover,
  #roomsMount .mini-profile .fact-item:hover {
    transform: none;
    border-color: rgba(148,163,184,.20);
    background: #171a22;
  }

  #profileMount .mini-profile .fact-icon,
  #roomsMount .mini-profile .fact-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 12px;
    color: #bfdbfe;
    background: #172033;
    border: 1px solid rgba(31,111,235,.20);
  }

  #profileMount .mini-profile .fact-label,
  #roomsMount .mini-profile .fact-label {
    font-size: .66rem;
    letter-spacing: .08em;
  }

  #profileMount .mini-profile .fact-chip,
  #roomsMount .mini-profile .fact-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .75rem;
    background: rgba(15,23,42,.76);
    border: 1px solid rgba(148,163,184,.16);
  }

  #profileMount .mini-profile .profile-gifts-head,
  #roomsMount .mini-profile .profile-gifts-head {
    margin-bottom: 14px;
  }

  #profileMount .mini-profile .profile-gifts-head span,
  #roomsMount .mini-profile .profile-gifts-head span,
  #profileMount .mini-profile .facts-title,
  #roomsMount .mini-profile .facts-title,
  #profileMount .mini-profile .profile-story-title,
  #roomsMount .mini-profile .profile-story-title {
    font-size: .96rem;
  }

  #profileMount .mini-profile .profile-gifts-head strong,
  #roomsMount .mini-profile .profile-gifts-head strong {
    min-width: 38px;
    height: 30px;
    border-radius: 999px;
    background: #1f6feb;
    border-color: rgba(147,197,253,.22);
    box-shadow: none;
  }

  #profileMount .mini-profile .profile-gifts-grid,
  #roomsMount .mini-profile .profile-gifts-grid {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 10px;
  }

  #profileMount .mini-profile .profile-gift-card,
  #roomsMount .mini-profile .profile-gift-card,
  #profileMount .mini-profile .profile-gifts-grid > .profile-gift-card,
  #roomsMount .mini-profile .profile-gifts-grid > .profile-gift-card {
    min-height: 116px;
    padding: 12px 10px;
    gap: 8px;
    border-radius: 12px;
    background: #10141c;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  #profileMount .mini-profile .profile-gift-card:hover,
  #roomsMount .mini-profile .profile-gift-card:hover {
    transform: translateY(-1px);
    border-color: rgba(148,163,184,.20);
    background: #171a22;
    box-shadow: none;
  }

  #profileMount .mini-profile .profile-gift-card .gift-art,
  #roomsMount .mini-profile .profile-gift-card .gift-art {
    width: 58px;
    height: 58px;
  }

  #profileMount .mini-profile .profile-gift-card .gift-img,
  #roomsMount .mini-profile .profile-gift-card .gift-img {
    max-width: 58px;
    max-height: 58px;
  }

  #profileMount .mini-profile .profile-gift-card .gift-emoji,
  #roomsMount .mini-profile .profile-gift-card .gift-emoji {
    font-size: 2.2rem;
  }

  #profileMount .mini-profile .profile-gift-card .gift-name,
  #roomsMount .mini-profile .profile-gift-card .gift-name {
    font-size: .82rem;
  }

  #profileMount .mini-profile .profile-gifts-more,
  #roomsMount .mini-profile .profile-gifts-more {
    min-height: 36px;
    margin-top: 10px;
    border-radius: 10px;
    background: #1f6feb;
    border-color: rgba(147,197,253,.22);
    box-shadow: none;
  }

  #profileMount .mini-profile .profile-gifts-more:hover,
  #roomsMount .mini-profile .profile-gifts-more:hover {
    transform: none;
    background: #2b7fff;
  }

  #profileMount .mini-profile .profile-photo-rail,
  #roomsMount .mini-profile .profile-photo-rail {
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  #profileMount .mini-profile .profile-photo-card,
  #roomsMount .mini-profile .profile-photo-card {
    border-radius: 10px;
    border-color: rgba(148,163,184,.14);
    scroll-snap-align: start;
  }
}

@media (min-width: 1500px) {
  #onlineUsers .users-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #main {
    height: calc(var(--app-vvh, 100dvh) - 46px);
    min-height: 0;
    max-height: calc(var(--app-vvh, 100dvh) - 46px);
    overflow: hidden;
    padding: 6px;
    gap: 6px;
  }

  #main:has(#profileView:not(.hidden)),
  #main:has(#roomsView:not(.hidden)) {
    padding: 3px;
    gap: 2px;
  }

  #onlineUsers {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  #profileMount .mini-profile,
  #roomsMount .mini-profile {
    padding: 4px;
    gap: 4px;
  }

  #profileMount .mini-profile .m-head,
  #roomsMount .mini-profile .m-head {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar name pop"
      "avatar meta pop"
      "mood mood mood";
    min-height: auto;
    gap: 5px 8px;
    align-items: center;
    padding: 7px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(19,25,35,.98), rgba(12,18,28,.98));
    border: 1px solid rgba(148,163,184,.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    overflow: visible;
  }

  #profileMount .mini-profile .profile-cover,
  #roomsMount .mini-profile .profile-cover {
    inset: 0;
    height: auto;
    border-radius: inherit;
    opacity: .34;
    background:
      linear-gradient(180deg, rgba(12,18,28,.42), rgba(12,18,28,.94)),
      var(--profile-cover) center/cover no-repeat;
  }

  #profileMount .mini-profile .m-avatar-btn,
  #roomsMount .mini-profile .m-avatar-btn,
  #profileMount .mini-profile .m-ava,
  #roomsMount .mini-profile .m-ava {
    --profile-avatar-radius: 18px;
    width: 70px;
    height: 70px;
    border-radius: var(--profile-avatar-radius);
  }

  #profileMount .mini-profile .m-uname,
  #roomsMount .mini-profile .m-uname {
    grid-area: name;
    min-width: 0;
    padding: 0;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  #profileMount .mini-profile .m-name,
  #roomsMount .mini-profile .m-name {
    max-width: 100%;
    font-size: 1.06rem;
    line-height: 1.05;
  }

  #profileMount .mini-profile .m-meta,
  #roomsMount .mini-profile .m-meta {
    grid-area: meta;
    justify-content: flex-start;
    align-items: center;
    align-self: start;
    gap: 4px;
    padding: 0;
    min-width: 0;
    overflow: visible;
    flex-wrap: wrap;
  }

  #profileMount .mini-profile .pop-chip,
  #roomsMount .mini-profile .pop-chip {
    grid-area: pop;
    justify-self: end;
    align-self: center;
    min-width: 62px;
    height: 42px;
    padding: 4px 7px;
    border-radius: 9px;
    background:
      linear-gradient(180deg, rgba(13,20,32,.82), rgba(8,13,22,.90));
    border-color: rgba(96,165,250,.14);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  #profileMount .mini-profile .pop-chip::after,
  #roomsMount .mini-profile .pop-chip::after {
    content: "";
    position: absolute;
    inset: -45% -70%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.18) 50%, transparent 62%);
    transform: translateX(-58%);
    opacity: 0;
  }

  #profileMount .mini-profile .pop-chip.is-counting,
  #roomsMount .mini-profile .pop-chip.is-counting {
    transform: scale(1.035);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 8px 16px rgba(0,0,0,.26),
      0 0 16px rgba(254,44,85,.12),
      0 0 14px rgba(37,244,238,.10);
  }

  #profileMount .mini-profile .pop-chip.is-counting::after,
  #roomsMount .mini-profile .pop-chip.is-counting::after {
    opacity: 1;
    animation: popStatSweep 1.15s ease-out both;
  }

  @keyframes popStatSweep {
    from { transform: translateX(-58%); }
    to { transform: translateX(58%); }
  }

  #profileMount .mini-profile .pop-chip .pop-chip-value,
  #roomsMount .mini-profile .pop-chip .pop-chip-value {
    font-size: .98rem;
  }

  #profileMount .mini-profile .pop-chip small,
  #roomsMount .mini-profile .pop-chip small {
    font-size: .51rem;
  }

  #profileMount .mini-profile .badge-ico,
  #roomsMount .mini-profile .badge-ico,
  #profileMount .mini-profile .role-chip img,
  #roomsMount .mini-profile .role-chip img {
    width: 22px;
    height: 22px;
  }

  #profileMount .mini-profile .role-chip,
  #roomsMount .mini-profile .role-chip {
    position: relative;
    height: 22px;
    min-width: 24px;
    width: 24px;
    gap: 0;
    overflow: visible;
  }

  #profileMount .mini-profile .room-roles,
  #roomsMount .mini-profile .room-roles {
    gap: 3px;
    min-width: 0;
    overflow: visible;
  }

  #profileMount .mini-profile .role-chip .cnt,
  #roomsMount .mini-profile .role-chip .cnt {
    position: absolute;
    right: -3px;
    bottom: -3px;
    min-width: 13px;
    height: 13px;
    display: inline-grid;
    place-items: center;
    margin-left: 0;
    padding: 0 3px;
    border-radius: 999px;
    background: rgba(8,13,24,.94);
    border: 1px solid rgba(148,163,184,.24);
    color: #f8fafc;
    font-size: .52rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,.45);
    text-shadow: none;
  }

  #profileMount .mini-profile .mood-wrap,
  #roomsMount .mini-profile .mood-wrap {
    grid-area: mood;
    min-height: 38px;
    padding: 4px 7px 4px 4px;
    border-radius: 12px;
    gap: 6px;
    background:
      linear-gradient(180deg, rgba(13,20,32,.92), rgba(8,13,22,.90));
    border: 1px solid rgba(96,165,250,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  #profileMount .mini-profile .mood-wrap .mood-trigger,
  #roomsMount .mini-profile .mood-wrap .mood-trigger {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  #profileMount .mini-profile .mood-wrap .mood-trigger img,
  #roomsMount .mini-profile .mood-wrap .mood-trigger img {
    width: 100%;
    height: 100%;
  }

  #profileMount .mini-profile .mood-input,
  #roomsMount .mini-profile .mood-input {
    min-height: 30px;
    font-size: .72rem;
    line-height: 1.15;
  }

  #profileMount .mini-profile:has(.v-dm.is-active) .m-head,
  #roomsMount .mini-profile:has(.v-dm.is-active) .m-head,
  #profileMount .mini-profile:has(.v-dm.is-active) .m-toolbar,
  #roomsMount .mini-profile:has(.v-dm.is-active) .m-toolbar {
    display: none;
  }

  #main:has(#profileView.is-dm-active:not(.hidden)),
  #profileView.is-dm-active .profile-page,
  #profileView.is-dm-active #profileMount,
  #profileView.is-dm-active #profileMount .mini-profile,
  #profileView.is-dm-active #profileMount .mini-profile .m-body,
  #profileView.is-dm-active #profileMount .mini-profile .v-dm.is-active {
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  #main:has(#profileView.is-dm-active:not(.hidden)) {
    height: var(--app-vvh, 100dvh) !important;
    min-height: var(--app-vvh, 100dvh) !important;
    max-height: var(--app-vvh, 100dvh) !important;
  }

  #profileView.is-dm-active #profileMount .mini-profile .dm-embed-log {
    overflow-y: auto !important;
  }
}

/* ===== PRIVATE MESSAGES: CLEAN CONVERSATION UI ===== */
#roomsMount .mini-profile .dm-embed,
#profileMount .mini-profile .dm-embed {
  --dm-accent: #3b82f6;
  --dm-accent-strong: #2563eb;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 4%, rgba(59, 130, 246, .1), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 31, .96), rgba(6, 10, 19, .97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.18);
}

#roomsMount .mini-profile .dm-embed-log,
#profileMount .mini-profile .dm-embed-log {
  gap: 8px;
  padding: 14px 12px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    rgba(10, 16, 28, .92);
  background-size: 100% 42px;
  scrollbar-gutter: stable;
}

#roomsMount .mini-profile .dm-row,
#profileMount .mini-profile .dm-row {
  gap: 8px;
  padding: 2px 4px;
  border-radius: 14px;
}

#roomsMount .mini-profile .dm-row:hover,
#profileMount .mini-profile .dm-row:hover { background: transparent; }

#roomsMount .mini-profile .dm-mini-avatar-wrap,
#profileMount .mini-profile .dm-mini-avatar-wrap {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-top: 17px;
  border: 2px solid rgba(148,163,184,.16);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0,0,0,.25);
}

#roomsMount .mini-profile .dm-row.me .dm-mini-avatar-wrap,
#profileMount .mini-profile .dm-row.me .dm-mini-avatar-wrap {
  border-color: rgba(96,165,250,.38);
}

#roomsMount .mini-profile .dm-mini-stack,
#profileMount .mini-profile .dm-mini-stack {
  max-width: min(72%, 580px);
  gap: 4px;
}

#roomsMount .mini-profile .dm-mini-head,
#profileMount .mini-profile .dm-mini-head {
  gap: 7px;
  min-height: 13px;
  padding: 0 5px;
}

#roomsMount .mini-profile .dm-mini-name,
#profileMount .mini-profile .dm-mini-name {
  max-width: 150px;
  color: #b8c7dc;
  font-size: .68rem;
  font-weight: 800;
}

#roomsMount .mini-profile .dm-meta,
#profileMount .mini-profile .dm-meta {
  color: rgba(148,163,184,.7);
  font-size: .6rem;
  font-weight: 700;
}

/* Značke i raspoloženje ostaju samo u headeru kontakta. */
#roomsMount .mini-profile .dm-mini-badge,
#profileMount .mini-profile .dm-mini-badge,
#roomsMount .mini-profile .dm-mini-mood,
#profileMount .mini-profile .dm-mini-mood,
#roomsMount .mini-profile .dm-mini-mood-text,
#profileMount .mini-profile .dm-mini-mood-text { display: none !important; }

#roomsMount .mini-profile .dm-bubble,
#profileMount .mini-profile .dm-bubble {
  padding: 9px 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 5px 16px 16px 16px;
  color: #e8eef8;
  background: linear-gradient(145deg, rgba(27,37,54,.98), rgba(18,26,40,.98));
  box-shadow: 0 7px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
  font-size: .88rem;
  line-height: 1.42;
}

#roomsMount .mini-profile .dm-row.me .dm-bubble,
#profileMount .mini-profile .dm-row.me .dm-bubble {
  border-color: rgba(147,197,253,.22);
  border-radius: 16px 5px 16px 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--dm-accent), var(--dm-accent-strong));
  box-shadow: 0 8px 22px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.14);
}

#roomsMount .mini-profile .dm-typing,
#profileMount .mini-profile .dm-typing { padding: 2px 10px; color: #9fb3cf; }

#roomsMount .mini-profile .dm-embed-foot,
#profileMount .mini-profile .dm-embed-foot {
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 15px;
  background: rgba(8,13,23,.9);
  box-shadow: 0 9px 28px rgba(0,0,0,.2);
}

#roomsMount .mini-profile .dm-embed-input,
#profileMount .mini-profile .dm-embed-input {
  height: 44px;
  padding: 0 14px;
  border-color: transparent;
  border-radius: 12px;
  background: rgba(20,29,44,.92);
  font-size: .9rem;
}

#roomsMount .mini-profile .dm-embed-input:focus,
#profileMount .mini-profile .dm-embed-input:focus {
  border-color: rgba(96,165,250,.62);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}

#roomsMount .mini-profile .dm-embed-send,
#profileMount .mini-profile .dm-embed-send {
  height: 44px;
  min-width: 92px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-strong));
  box-shadow: 0 7px 18px rgba(37,99,235,.24);
  transition: transform .16s ease, filter .16s ease;
}

#roomsMount .mini-profile .dm-embed-send:hover,
#profileMount .mini-profile .dm-embed-send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  #roomsMount .mini-profile .dm-embed,
  #profileMount .mini-profile .dm-embed {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #roomsMount .mini-profile .dm-contact-bar,
  #profileMount .mini-profile .dm-contact-bar {
    min-height: 58px;
    grid-template-columns: 34px 40px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 10px;
    background: rgba(8,13,23,.96);
    border-bottom-color: rgba(148,163,184,.12);
    backdrop-filter: blur(16px);
  }

  #roomsMount .mini-profile .dm-back-btn,
  #profileMount .mini-profile .dm-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: .8rem;
  }

  #roomsMount .mini-profile .dm-contact-avatar,
  #profileMount .mini-profile .dm-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  #roomsMount .mini-profile .dm-contact-main strong,
  #profileMount .mini-profile .dm-contact-main strong { font-size: .82rem; }

  #roomsMount .mini-profile .dm-contact-mood,
  #profileMount .mini-profile .dm-contact-mood {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  #roomsMount .mini-profile .dm-contact-mood img,
  #profileMount .mini-profile .dm-contact-mood img { width: 18px; height: 18px; }

  #roomsMount .mini-profile .dm-contact-mood span,
  #profileMount .mini-profile .dm-contact-mood span { font-size: .62rem; }

  #roomsMount .mini-profile .dm-contact-badge,
  #profileMount .mini-profile .dm-contact-badge { width: 24px; height: 24px; }

  #roomsMount .mini-profile .dm-embed-log,
  #profileMount .mini-profile .dm-embed-log {
    margin: 0;
    padding: 12px 8px;
    gap: 7px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #roomsMount .mini-profile .dm-row,
  #profileMount .mini-profile .dm-row { gap: 6px; padding: 1px 2px; }

  #roomsMount .mini-profile .dm-mini-avatar-wrap,
  #profileMount .mini-profile .dm-mini-avatar-wrap {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    margin-top: 16px;
  }

  #roomsMount .mini-profile .dm-mini-stack,
  #profileMount .mini-profile .dm-mini-stack { max-width: calc(84% - 34px); }

  #roomsMount .mini-profile .dm-mini-name,
  #profileMount .mini-profile .dm-mini-name { max-width: 110px; font-size: .62rem; }

  #roomsMount .mini-profile .dm-bubble,
  #profileMount .mini-profile .dm-bubble {
    padding: 8px 11px;
    border-radius: 5px 15px 15px 15px;
    font-size: .84rem;
    line-height: 1.38;
  }

  #roomsMount .mini-profile .dm-row.me .dm-bubble,
  #profileMount .mini-profile .dm-row.me .dm-bubble {
    border-radius: 15px 5px 15px 15px;
  }

  #roomsMount .mini-profile .dm-embed-foot,
  #profileMount .mini-profile .dm-embed-foot {
    gap: 6px;
    margin: 0;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
  }

  #roomsMount .mini-profile .dm-embed-input,
  #profileMount .mini-profile .dm-embed-input,
  #roomsMount .mini-profile .dm-embed-send,
  #profileMount .mini-profile .dm-embed-send { height: 42px; }

  #roomsMount .mini-profile .dm-embed-send,
  #profileMount .mini-profile .dm-embed-send {
    min-width: 68px;
    font-size: .76rem;
  }
}

/* ===== COMPACT APP-STYLE GIFT CATEGORIES ===== */
.v-gifts .vip-gift-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 5px;
}

.vip-gift-category-panel {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 2px 1px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
}

.vip-gift-category-panel::-webkit-scrollbar { display: none; }

.vip-gift-cat {
  width: 58px;
  min-width: 58px;
  height: 44px;
  min-height: 44px;
  padding: 4px 4px 3px;
  display: grid;
  grid-template-rows: 19px minmax(0, 1fr);
  place-items: center;
  gap: 2px;
  scroll-snap-align: start;
  border: 1px solid rgba(148,163,184,.11);
  border-radius: 12px;
  color: #9fb0c9;
  background: rgba(15,23,42,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.vip-gift-cat i { font-size: .88rem; line-height: 19px; }

.vip-gift-cat span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .52rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.vip-gift-cat:hover {
  color: #dbeafe;
  border-color: rgba(96,165,250,.25);
  background: rgba(30,41,59,.82);
  transform: translateY(-1px);
  box-shadow: none;
}

.vip-gift-cat.is-active {
  color: #fff;
  border-color: rgba(147,197,253,.32);
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 5px 13px rgba(37,99,235,.2), inset 0 1px 0 rgba(255,255,255,.13);
}

.vip-gift-card.is-composing-gift .vip-gift-category-panel { display: none; }

@media (max-width: 640px) {
  .v-gifts .vip-gift-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 4px;
  }

  .vip-gift-category-panel {
    display: flex;
    min-height: 45px;
    max-height: none;
    gap: 4px;
    padding: 1px 0 4px;
  }

  .vip-gift-cat {
    width: 52px;
    min-width: 52px;
    height: 41px;
    min-height: 41px;
    grid-template-rows: 17px minmax(0, 1fr);
    border-radius: 11px;
  }

  .vip-gift-cat i { font-size: .8rem; line-height: 17px; }
  .vip-gift-cat span { font-size: .49rem; }
}

/* ===== GIFT SHOP + COMPOSER: UNIFIED SPACING ===== */
.v-gifts .vip-gift-card {
  --gift-gap-xs: 6px;
  --gift-gap-sm: 8px;
  --gift-gap-md: 12px;
  --gift-gap-lg: 16px;
  --gift-radius-sm: 10px;
  --gift-radius-md: 14px;
  --gift-radius-lg: 18px;
  gap: var(--gift-gap-md);
  padding: var(--gift-gap-lg);
  border-radius: var(--gift-radius-lg);
  background:
    radial-gradient(circle at 90% 0, rgba(59,130,246,.09), transparent 30%),
    linear-gradient(180deg, rgba(16,23,37,.96), rgba(8,13,23,.98));
  border-color: rgba(148,163,184,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.16);
}

.v-gifts .vip-gift-shop-head {
  min-height: 44px;
  margin: 0;
  padding: 0 0 var(--gift-gap-md);
  gap: var(--gift-gap-md);
  border-bottom: 1px solid rgba(148,163,184,.1);
}

.v-gifts .vip-gift-title {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.v-gifts .vip-gift-subtitle {
  max-width: none;
  margin-top: 3px;
  color: #8fa1ba;
  font-size: .68rem;
  line-height: 1.35;
}

.v-gifts .vip-gift-balance {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 18px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.15);
}

.v-gifts .vip-gift-tabs {
  gap: var(--gift-gap-xs);
  margin: 0;
}

.v-gifts .vip-gift-tab,
.vip-gift-tab {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--gift-radius-sm);
  border-color: rgba(148,163,184,.12);
  color: #aebdd1;
  background: rgba(15,23,42,.62);
  font-size: .68rem;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.v-gifts .vip-gift-tab:hover { border-color: rgba(96,165,250,.26); }

.v-gifts .vip-gift-tab.is-active {
  color: #fff;
  border-color: rgba(147,197,253,.28);
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 5px 13px rgba(37,99,235,.17), inset 0 1px 0 rgba(255,255,255,.12);
}

.v-gifts .vip-gift-category-panel {
  min-height: 48px;
  margin: 0;
  padding-bottom: 4px;
}

.v-gifts .vip-gift-catalog {
  gap: 10px;
  padding: 0 2px 2px;
  max-height: none !important;
  height: auto;
  overflow: visible !important;
  scrollbar-width: none;
  align-content: start;
  align-items: start;
  grid-auto-rows: 132px;
}

/* Jedini vertikalni scroll na gift ekranu je glavni profile body. */
#roomsMount .mini-profile .m-body:has(> .v-gifts.is-active),
#profileMount .mini-profile .m-body:has(> .v-gifts.is-active) {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

#roomsMount .mini-profile .v-gifts.is-active,
#profileMount .mini-profile .v-gifts.is-active,
.v-gifts .vip-gift-card {
  height: auto;
  overflow: visible;
}

.v-gifts .vip-gift-catalog::-webkit-scrollbar { display: none; }

.v-gifts .vip-gift-btn {
  width: 100%;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  padding: 10px;
  grid-template-rows: 64px minmax(18px, auto) 22px;
  gap: var(--gift-gap-xs);
  border-radius: var(--gift-radius-md);
  border: 1px solid rgba(148,163,184,.12);
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.09), transparent 38%),
    linear-gradient(180deg, rgba(27,38,56,.82), rgba(14,22,35,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 7px 16px rgba(0,0,0,.11);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.v-gifts .vip-gift-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.34);
  background:
    radial-gradient(circle at 50% 8%, rgba(96,165,250,.13), transparent 40%),
    linear-gradient(180deg, rgba(30,43,64,.9), rgba(14,22,35,.98));
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.v-gifts .gift-choice-art {
  width: 64px;
  height: 64px;
  border-radius: var(--gift-radius-md);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.06);
}

.v-gifts .gift-choice-art img { width: 55px; height: 55px; }

.v-gifts .gift-choice-name {
  font-size: .72rem;
  line-height: 1.2;
}

.v-gifts .gift-choice-cost {
  min-height: 22px;
  padding: 4px 8px;
  font-size: .59rem;
}

.v-gifts .vip-gift-msg {
  min-height: 0;
  margin: 0;
  line-height: 1.3;
}

/* Poslije izbora ostaje čist, fokusiran korak za poruku i potvrdu. */
.v-gifts .vip-gift-card.is-composing-gift .vip-gift-tabs,
.v-gifts .vip-gift-card.is-composing-gift .vip-gift-category-panel,
.v-gifts .vip-gift-card.is-composing-gift .vip-gift-catalog {
  display: none !important;
}

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-selected {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: var(--gift-gap-lg);
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: var(--gift-gap-lg);
  border: 1px solid rgba(96,165,250,.15);
  border-radius: var(--gift-radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(59,130,246,.1), transparent 34%),
    linear-gradient(180deg, rgba(15,24,39,.96), rgba(9,15,26,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.v-gifts .vip-gift-compose-head {
  width: 100%;
  padding: 0 0 var(--gift-gap-md);
  gap: var(--gift-gap-md);
  border-bottom: 1px solid rgba(148,163,184,.1);
}

.v-gifts .vip-gift-back {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: var(--gift-radius-sm);
  color: #cbd5e1;
  background: rgba(30,41,59,.62);
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.v-gifts .vip-gift-back:hover {
  color: #fff;
  transform: translateX(-1px);
}

.v-gifts .vip-gift-preview { gap: var(--gift-gap-md); }

.v-gifts .vip-gift-preview-art {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: var(--gift-radius-md);
  border: 1px solid rgba(148,163,184,.1);
  background: rgba(255,255,255,.045);
}

.v-gifts .vip-gift-preview-art img { width: 52px; height: 52px; }

.v-gifts .vip-gift-preview-copy { min-width: 0; }

.v-gifts .vip-gift-preview-name {
  font-size: .88rem;
  line-height: 1.25;
}

.v-gifts .vip-gift-preview-meta {
  margin-top: 4px;
  color: #91a4bf;
  font-size: .66rem;
  line-height: 1.3;
}

.v-gifts .vip-gift-message-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.v-gifts .vip-gift-message-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gift-gap-sm);
  padding: 0 2px;
  color: #dbe7f7;
  font-size: .72rem;
  font-weight: 900;
}

.v-gifts .vip-gift-message-label small {
  color: #7f91aa;
  font-size: .6rem;
  font-weight: 750;
}

.v-gifts .vip-gift-message-count { color: #a9bbd2; }

.v-gifts .vip-gift-message {
  grid-column: auto;
  min-height: 124px;
  margin: 0;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: var(--gift-radius-md);
  color: #eef4fc;
  background: rgba(8,14,25,.72);
  font: inherit;
  font-size: .82rem;
  line-height: 1.45;
}

.v-gifts .vip-gift-message::placeholder { color: #66758b; }

.v-gifts .vip-gift-message:focus {
  border-color: rgba(96,165,250,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.v-gifts .vip-gift-selected .gift-wrap-toggle {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  gap: 9px;
  border: 1px solid rgba(148,163,184,.11);
  border-radius: var(--gift-radius-sm);
  color: #b9c8dc;
  background: rgba(15,23,42,.54);
  font-size: .7rem;
}

.v-gifts .vip-gift-selected .gift-wrap-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

.v-gifts .vip-gift-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gift-gap-md);
  padding-top: var(--gift-gap-md);
  border-top: 1px solid rgba(148,163,184,.1);
}

.v-gifts .vip-gift-send-note {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f91aa;
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.3;
}

.v-gifts .vip-gift-send-note i { color: #60a5fa; }

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-compose-actions .vip-gift-send {
  width: auto;
  min-width: 156px;
  min-height: 44px;
  padding: 0 17px;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 18px rgba(37,99,235,.2), inset 0 1px 0 rgba(255,255,255,.13);
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

.v-gifts .vip-gift-card.is-composing-gift .vip-gift-compose-actions .vip-gift-send:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

@media (max-width: 640px) {
  #roomsMount .mini-profile .m-body:has(> .v-gifts.is-active),
  #profileMount .mini-profile .m-body:has(> .v-gifts.is-active) {
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;
  }

  .v-gifts .vip-gift-category-panel {
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .v-gifts .vip-gift-catalog,
  .v-gifts .vip-gift-selected {
    touch-action: pan-y;
  }

  .v-gifts .vip-gift-card {
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .v-gifts .vip-gift-shop-head {
    min-height: 40px;
    padding-bottom: 10px;
  }

  .v-gifts .vip-gift-balance {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .v-gifts .vip-gift-tab,
  .vip-gift-tab { min-height: 32px; }

  .v-gifts .vip-gift-catalog { gap: 8px; padding-inline: 0; }

  .v-gifts .vip-gift-btn {
    height: 126px;
    min-height: 126px;
    max-height: 126px;
    padding: 9px;
    grid-template-rows: 60px minmax(18px, auto) 22px;
  }

  .v-gifts .vip-gift-catalog { grid-auto-rows: 126px; }

  .v-gifts .gift-choice-art { width: 60px; height: 60px; }
  .v-gifts .gift-choice-art img { width: 52px; height: 52px; }

  .v-gifts .vip-gift-card.is-composing-gift .vip-gift-selected {
    min-height: 0;
    padding: 12px;
    gap: 13px;
    border-radius: 14px;
  }

  .v-gifts .vip-gift-preview-art {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .v-gifts .vip-gift-preview-art img { width: 47px; height: 47px; }
  .v-gifts .vip-gift-message { min-height: 112px; }

  .v-gifts .vip-gift-compose-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .v-gifts .vip-gift-send-note { justify-content: center; }

  .v-gifts .vip-gift-card.is-composing-gift .vip-gift-compose-actions .vip-gift-send {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}

/* ===== MOBILE GIFT COMPOSER: FULL HEIGHT + KEYBOARD SAFE ===== */
@media (max-width: 640px) {
  body.gift-compose-active {
    height: 100%;
    overflow: hidden;
  }

  body.gift-compose-active #profileView:not(.hidden) .profile-header,
  body.gift-compose-active .mini-profile:has(.vip-gift-card.is-composing-gift) > .m-head,
  body.gift-compose-active .mini-profile:has(.vip-gift-card.is-composing-gift) > .m-toolbar,
  body.gift-compose-active .vip-gift-card.is-composing-gift > .vip-gift-shop-head {
    display: none !important;
  }

  body.gift-compose-active #main {
    height: calc(var(--app-vvh, 100dvh) - 46px) !important;
    min-height: 0 !important;
    max-height: calc(var(--app-vvh, 100dvh) - 46px) !important;
    overflow: hidden !important;
  }

  body.gift-compose-active #profileView:not(.hidden),
  body.gift-compose-active #roomsView:not(.hidden),
  body.gift-compose-active #profileView:not(.hidden) .profile-page,
  body.gift-compose-active #roomsView:not(.hidden) .profile-page,
  body.gift-compose-active #profileMount,
  body.gift-compose-active #roomsMount,
  body.gift-compose-active .mini-profile:has(.vip-gift-card.is-composing-gift),
  body.gift-compose-active .mini-profile:has(.vip-gift-card.is-composing-gift) > .m-body,
  body.gift-compose-active .v-gifts.is-active,
  body.gift-compose-active .vip-gift-card.is-composing-gift {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  body.gift-compose-active #chatAndInput {
    flex: 1 1 auto;
    width: auto !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  body.gift-compose-active .mini-profile:has(.vip-gift-card.is-composing-gift) > .m-body,
  body.gift-compose-active .v-gifts.is-active {
    flex: 1 1 auto !important;
  }

  body.gift-compose-active .vip-gift-card.is-composing-gift .vip-gift-selected {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    padding: 14px 12px max(12px, env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    gap: 12px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  body.gift-compose-active .vip-gift-compose-head {
    flex: 0 0 auto;
  }

  body.gift-compose-active .vip-gift-message-field {
    min-height: 0;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.gift-compose-active .vip-gift-message {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    resize: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.gift-compose-active .vip-gift-compose-actions {
    flex: 0 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.gift-keyboard-active .vip-gift-card.is-composing-gift .vip-gift-selected,
  body.gift-compose-active.keyboard-open .vip-gift-card.is-composing-gift .vip-gift-selected {
    padding: 8px 9px max(7px, env(safe-area-inset-bottom));
    gap: 7px;
  }

  body.gift-keyboard-active .vip-gift-compose-head,
  body.gift-compose-active.keyboard-open .vip-gift-compose-head {
    min-height: 42px;
    padding-bottom: 6px;
    gap: 8px;
  }

  body.gift-keyboard-active .vip-gift-back,
  body.gift-compose-active.keyboard-open .vip-gift-back {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.gift-keyboard-active .vip-gift-preview-art,
  body.gift-compose-active.keyboard-open .vip-gift-preview-art {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }

  body.gift-keyboard-active .vip-gift-preview-art img,
  body.gift-compose-active.keyboard-open .vip-gift-preview-art img {
    width: 35px;
    height: 35px;
  }

  body.gift-keyboard-active .vip-gift-preview-name,
  body.gift-compose-active.keyboard-open .vip-gift-preview-name {
    font-size: .76rem;
  }

  body.gift-keyboard-active .vip-gift-preview-meta,
  body.gift-compose-active.keyboard-open .vip-gift-preview-meta {
    margin-top: 2px;
    font-size: .57rem;
  }

  body.gift-keyboard-active .vip-gift-selected .gift-wrap-toggle,
  body.gift-keyboard-active .vip-gift-send-note,
  body.gift-compose-active.keyboard-open .vip-gift-selected .gift-wrap-toggle,
  body.gift-compose-active.keyboard-open .vip-gift-send-note {
    display: none;
  }

  body.gift-keyboard-active .vip-gift-message,
  body.gift-compose-active.keyboard-open .vip-gift-message {
    min-height: 58px;
    padding: 9px 10px;
    font-size: 16px;
  }

  body.gift-keyboard-active .vip-gift-compose-actions,
  body.gift-compose-active.keyboard-open .vip-gift-compose-actions {
    padding-top: 6px;
  }

  body.gift-keyboard-active .vip-gift-card.is-composing-gift .vip-gift-compose-actions .vip-gift-send,
  body.gift-compose-active.keyboard-open .vip-gift-card.is-composing-gift .vip-gift-compose-actions .vip-gift-send {
    min-height: 42px;
  }
}

/* Final ID form sizing override. */
.id-register-form.id-register-simple {
  width: min(100%, 620px);
  margin: 12px auto 0;
  padding: 16px;
  gap: 14px;
}

@media (max-width: 720px) {
  .id-register-form.id-register-simple {
    padding: 12px;
    gap: 11px;
  }
}

/* ===== CAFE / WAITER QR ORDERS ===== */
.cafe-body {
  min-height: 100dvh;
  margin: 0;
  color: #eaf2ff;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(168,85,247,.17), transparent 32rem),
    #07111f;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.cafe-app,
.cafe-entry,
.cafe-order-app {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.cafe-app { padding: 18px 0 28px; }

.cafe-topbar,
.cafe-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 22px;
  background: rgba(10, 18, 32, .82);
  box-shadow: 0 20px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
}

.cafe-topbar h1,
.cafe-order-head h1,
.cafe-entry h1,
.cafe-card h2 {
  margin: 0;
  letter-spacing: -.03em;
}

.cafe-topbar h1,
.cafe-entry h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); }

.cafe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fd8ff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cafe-top-actions,
.cafe-top-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cafe-top-actions a,
.cafe-entry-card,
.cafe-form button,
.cafe-inline-form button,
.cafe-mini-btn,
.cafe-drink-row button,
.cafe-table-row a,
.cafe-table-row button,
.cafe-order-actions button,
.guest-submit-bar button {
  color: #06111f;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  box-shadow: 0 12px 28px rgba(34,211,238,.18);
  font-weight: 900;
  cursor: pointer;
}

.cafe-top-actions a { padding: 11px 14px; }

.cafe-waiter-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 14px;
  margin-top: 14px;
}

.cafe-waiter-grid-compact {
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
}

.cafe-section-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 20px;
  background: rgba(10, 18, 32, .58);
  scrollbar-width: none;
}

.cafe-section-tabs::-webkit-scrollbar { display: none; }

.cafe-section-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15,23,42,.62);
  font-weight: 950;
  cursor: pointer;
}

.cafe-section-tabs button.is-active {
  color: #06111f;
  border-color: transparent;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.cafe-panel { display: none; margin-top: 14px; }
.cafe-panel.is-active { display: block; }

.cafe-card {
  min-width: 0;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 22px;
  background: rgba(10, 18, 32, .78);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  overflow: hidden;
}

.cafe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.cafe-card h2 { font-size: 1.12rem; }
.cafe-save-msg { color: #a7f3d0; font-size: .82rem; font-weight: 800; }

.cafe-form,
.cafe-inline-form {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.cafe-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cafe-form input,
.cafe-form select,
.cafe-inline-form input,
.cafe-drink-row input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: #eaf2ff;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, .55);
}

.cafe-form label span {
  display: block;
  margin: 0 0 6px;
  color: #9fb0c7;
  font-size: .74rem;
  font-weight: 900;
}

.cafe-form select {
  width: 100%;
}

.cafe-form-muted {
  border-top: 1px solid rgba(148,163,184,.1);
  background: rgba(15,23,42,.24);
}

.cafe-form button,
.cafe-inline-form button { min-height: 44px; padding: 0 14px; }

.cafe-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(148,163,184,.1);
}

.cafe-table-list,
.cafe-drink-list,
.cafe-order-list,
.cafe-cafe-list,
.cafe-stock-log-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.cafe-table-row,
.cafe-order,
.cafe-drink-row,
.cafe-cafe-row,
.cafe-stock-log-row {
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 16px;
  background: rgba(15, 23, 42, .62);
}

.cafe-cafe-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
}

.cafe-cafe-row.is-active {
  border-color: rgba(103,232,249,.48);
  background: rgba(8,145,178,.18);
}

.cafe-cafe-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cafe-cafe-row small,
.cafe-cafe-row em {
  color: #94a3b8;
  font-size: .76rem;
  font-style: normal;
}

.cafe-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.cafe-table-row input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  color: #eaf2ff;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  outline: 0;
  background: rgba(2,6,23,.48);
}

.cafe-table-row span {
  display: block;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  color: #94a3b8;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-table-row a,
.cafe-table-row button,
.cafe-mini-btn,
.cafe-order-actions button,
.cafe-drink-row button {
  min-height: 34px;
  padding: 0 11px;
}

.cafe-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cafe-package-grid button {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  color: #eaf2ff;
  background: rgba(15,23,42,.68);
  font-weight: 950;
  cursor: pointer;
}

.cafe-package-grid button small {
  color: #93c5fd;
  font-size: .72rem;
}

.cafe-package-grid button.is-active {
  color: #06111f;
  border-color: transparent;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.cafe-package-grid button.is-active small { color: rgba(6,17,31,.72); }

.cafe-stock-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px dashed rgba(103,232,249,.28);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(8,145,178,.1);
  font-weight: 900;
}

.cafe-stock-total strong {
  color: #a7f3d0;
  font-size: 1.15rem;
}

.cafe-stock-log-row {
  display: grid;
  gap: 4px;
  padding: 11px;
}

.cafe-stock-log-row strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cafe-stock-log-row em {
  color: #a7f3d0;
  font-style: normal;
}

.cafe-stock-log-row span,
.cafe-stock-log-row small {
  color: #94a3b8;
  font-size: .78rem;
}

.cafe-bill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 12px;
}

.cafe-bill-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 18px;
  background: rgba(15,23,42,.68);
}

.cafe-bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cafe-bill-head div {
  display: grid;
  gap: 2px;
}

.cafe-bill-head strong {
  font-size: 1.02rem;
}

.cafe-bill-head span {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 850;
}

.cafe-bill-head em {
  color: #a7f3d0;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.cafe-bill-order-list {
  display: grid;
  gap: 7px;
}

.cafe-bill-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  background: rgba(2,6,23,.28);
}

.cafe-bill-order-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cafe-bill-order-row strong,
.cafe-bill-order-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bill-order-row strong {
  font-size: .84rem;
}

.cafe-bill-order-row span {
  color: #94a3b8;
  font-size: .76rem;
}

.cafe-bill-order-row button,
.cafe-bill-pay-all {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-weight: 950;
  cursor: pointer;
}

.cafe-bill-order-row button {
  padding: 0 11px;
}

.cafe-bill-pay-all {
  min-height: 42px;
  width: 100%;
}

/* ===== CAFE BAR / TABLET SCREEN ===== */
.cafe-bar-app {
  width: min(1280px, calc(100% - 24px));
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 16px 0;
}

.cafe-bar-head,
.cafe-bar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 22px;
  background: rgba(10,18,32,.82);
  box-shadow: 0 18px 54px rgba(0,0,0,.3);
}

.cafe-bar-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -.035em;
}

.cafe-bar-head nav,
.cafe-bar-head a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cafe-bar-head a,
.cafe-bar-toolbar button,
.cafe-bar-done {
  color: #06111f;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-weight: 1000;
  cursor: pointer;
}

.cafe-bar-head a {
  min-height: 46px;
  padding: 0 15px;
}

.cafe-bar-toolbar {
  padding: 10px 12px;
}

.cafe-bar-toolbar strong {
  color: #a7f3d0;
  font-size: 1.05rem;
}

.cafe-bar-toolbar button {
  min-height: 42px;
  padding: 0 14px;
}

.cafe-bar-orders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.cafe-bar-order {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 218px;
  padding: 10px;
  border: 2px solid rgba(103,232,249,.24);
  border-radius: 24px;
  background: rgba(10,18,32,.84);
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
}

.cafe-bar-order-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}

.cafe-bar-order-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cafe-bar-order-head strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-bar-order-head span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 800;
}

.cafe-bar-person b {
  color: #eaf2ff;
}

.cafe-bar-person small {
  color: #8fd8ff;
  font-size: .72rem;
  font-weight: 950;
}

.cafe-lastname-toggle {
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(103,232,249,.22);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(8,145,178,.16);
  font-size: .68rem;
  font-weight: 950;
  cursor: pointer;
}

.cafe-lastname-toggle.is-revealed {
  color: #06111f;
  background: #a7f3d0;
  cursor: default;
}

.cafe-bar-order-head em {
  color: #a7f3d0;
  font-size: 1rem;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.cafe-bar-customer-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(103,232,249,.3);
  border-radius: 15px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-weight: 1000;
}

.cafe-bar-customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cafe-bar-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cafe-bar-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(8,145,178,.13);
  font-size: .9rem;
  font-weight: 950;
}

.cafe-bar-items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
}

.cafe-bar-items div {
  position: relative;
  flex: 0 0 70px;
  max-width: 70px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 42px minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 3px;
  min-height: 68px;
  padding: 5px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: rgba(15,23,42,.65);
}

.cafe-bar-items b,
.cafe-bar-items strong {
  display: grid;
  place-items: center;
  color: #06111f;
}

.cafe-bar-items b {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: 1rem;
}

.cafe-bar-items strong {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 21px;
  height: 21px;
  border: 2px solid rgba(7,17,31,.8);
  border-radius: 999px;
  background: #a7f3d0;
  padding: 0 4px;
  font-size: .68rem;
}

.cafe-bar-items span {
  width: 100%;
  overflow: hidden;
  font-size: .66rem;
  line-height: 1.05;
  font-weight: 950;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.cafe-bar-done {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.02rem;
}

.cafe-bar-done i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6,17,31,.12);
}

.cafe-bar-empty {
  min-height: 45dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(148,163,184,.22);
  border-radius: 26px;
  color: #94a3b8;
  background: rgba(15,23,42,.45);
  text-align: center;
}

.cafe-bar-empty i {
  color: #a7f3d0;
  font-size: 2.4rem;
}

.cafe-bar-empty strong {
  color: #eaf2ff;
  font-size: 1.5rem;
}

@media (max-width: 720px) {
  .cafe-bar-app {
    width: min(100% - 14px, 1280px);
    gap: 10px;
    padding-top: 8px;
  }

  .cafe-bar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cafe-bar-head a,
  .cafe-bar-toolbar button {
    justify-content: center;
  }

  .cafe-bar-orders {
    grid-template-columns: 1fr;
  }

  .cafe-bar-order {
    min-height: 260px;
  }
}

.cafe-drink-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) minmax(90px, .9fr) 90px 82px auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
}

.cafe-drink-row.is-off { opacity: .56; }

.cafe-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: .8rem;
  font-weight: 800;
}

.cafe-order {
  padding: 12px;
}

.cafe-order.new { border-color: rgba(103,232,249,.38); }

.cafe-order-top,
.cafe-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cafe-order-top span {
  color: #a7f3d0;
  font-weight: 950;
}

.cafe-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.cafe-order-items span,
.guest-cart-pill {
  border: 1px solid rgba(103,232,249,.22);
  border-radius: 999px;
  background: rgba(8,145,178,.15);
}

.cafe-order-items span {
  padding: 6px 9px;
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 800;
}

.cafe-order-actions small,
.cafe-empty {
  color: #94a3b8;
  font-size: .82rem;
}

.cafe-entry {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px 0;
  text-align: center;
}

.cafe-entry-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  color: #06111f;
  font-size: 2rem;
  font-weight: 1000;
}

.cafe-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(720px, 100%);
  margin: 10px auto 0;
}

.cafe-entry-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px 16px;
  color: #eaf2ff;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(10,18,32,.8);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.cafe-entry-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: 1.3rem;
}

.cafe-entry-card strong { font-size: 1.15rem; }
.cafe-entry-card span { color: #9fb0c7; font-size: .9rem; }

.cafe-entry-card-order {
  border-color: rgba(45,212,191,.42);
  background:
    radial-gradient(circle at 16% 10%, rgba(45,212,191,.22), transparent 38%),
    linear-gradient(135deg, rgba(15,118,110,.48), rgba(15,23,42,.86));
}

.cafe-entry-card-order i {
  color: #5eead4;
}

.cafe-order-app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
}

.cafe-order-head {
  position: sticky;
  top: 8px;
  z-index: 10;
  padding: 12px;
  border-radius: 20px;
}

.cafe-order-head h1 { font-size: 1.22rem; }
.cafe-order-head strong { color: #a7f3d0; font-size: 1.08rem; white-space: nowrap; }
.cafe-order-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cafe-order-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(248,113,113,.24);
  border-radius: 13px;
  color: #fecaca;
  background: linear-gradient(145deg, rgba(127,29,29,.22), rgba(15,23,42,.74));
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(127,29,29,.16);
  touch-action: manipulation;
}
.cafe-order-logout:active { transform: scale(.97); }

.cafe-login-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top left, rgba(45,212,191,.22), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(14,165,233,.16), transparent 28rem),
    #07111f;
}
.cafe-login-card {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 28px;
  color: #e8edf4;
  background: linear-gradient(145deg, rgba(15,23,42,.94), rgba(8,16,30,.92));
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
}
.cafe-login-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7f3d0;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
}
.cafe-login-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 8vw, 2.15rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.cafe-login-card p {
  margin: -4px 0 2px;
  color: #91a3bb;
  line-height: 1.45;
}
.cafe-login-id-fast {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(45,212,191,.32);
  border-radius: 18px;
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(14,165,233,.12));
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(20,184,166,.13);
}
.cafe-login-id-fast > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #042018;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: 1.25rem;
}
.cafe-login-id-fast span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.cafe-login-id-fast strong { font-size: 1rem; }
.cafe-login-id-fast small { color: #a9bdd3; line-height: 1.3; }
.cafe-login-google,
.cafe-login-facebook {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  color: #f8fafc;
  background: rgba(255,255,255,.075);
  text-decoration: none;
  font-weight: 900;
}
.cafe-login-google i,
.cafe-login-facebook i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
  font-size: .9rem;
}
.cafe-login-facebook {
  border-color: rgba(24,119,242,.26);
  background: rgba(24,119,242,.11);
}
.cafe-login-facebook i { background: #1877f2; }
.cafe-login-form {
  display: grid;
  gap: 10px;
}
.cafe-login-form label {
  display: grid;
  gap: 6px;
  color: #b9c6d8;
  font-size: .78rem;
  font-weight: 850;
}
.cafe-login-form input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(2,6,23,.58);
  padding: 0 13px;
  font-size: 1rem;
  outline: none;
}
.cafe-login-form input:focus {
  border-color: rgba(45,212,191,.55);
  box-shadow: 0 0 0 4px rgba(45,212,191,.1);
}
.cafe-login-form button,
.cafe-login-register {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}
.cafe-login-form button {
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  box-shadow: 0 16px 34px rgba(34,211,238,.2);
}
.cafe-login-form button:disabled { opacity: .72; cursor: wait; }
.cafe-login-register {
  color: #c7d2fe;
  border: 1px solid rgba(129,140,248,.22);
  background: rgba(99,102,241,.1);
}
.cafe-login-error {
  padding: 10px 12px;
  border: 1px solid rgba(248,113,113,.24);
  border-radius: 13px;
  color: #fecaca;
  background: rgba(127,29,29,.14);
  font-size: .85rem;
  font-weight: 800;
}

.guide-body {
  min-height: 100dvh;
  color: #e8edf4;
  background:
    radial-gradient(circle at 12% 0, rgba(45,212,191,.18), transparent 28rem),
    radial-gradient(circle at 95% 10%, rgba(14,165,233,.14), transparent 26rem),
    #07111f;
}
.guide-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 38px;
}
.guide-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.guide-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 13px;
  color: #cbd5e1;
  background: rgba(15,23,42,.62);
  text-decoration: none;
  font-weight: 850;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(15,23,42,.9), rgba(8,16,30,.84));
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}
.guide-hero h1 {
  max-width: 720px;
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.guide-hero p {
  max-width: 680px;
  color: #9fb0c8;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}
.guide-phone {
  justify-self: center;
  width: min(320px, 100%);
  padding: 14px;
  border: 1px solid rgba(103,232,249,.24);
  border-radius: 30px;
  background: #0b1627;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.025), 0 22px 55px rgba(0,0,0,.32);
}
.guide-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.guide-phone-top span { width: 38px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); }
.guide-phone-top b { color: #67e8f9; }
.guide-phone-top em { color: #a7f3d0; font-style: normal; font-weight: 900; }
.guide-icons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.guide-icons-row span {
  position: relative;
  display: grid;
  place-items: center;
  height: 72px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  font-size: 1.8rem;
}
.guide-icons-row b {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #04111f;
  background: #a7f3d0;
  font-size: .72rem;
}
.guide-phone button,
.guide-bill-demo button,
.guide-bar-demo button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-weight: 950;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.guide-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 24px;
  background: rgba(15,23,42,.68);
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}
.guide-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-size: 1.15rem;
}
.guide-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  letter-spacing: -.025em;
}
.guide-card p {
  margin: 0;
  color: #9fb0c8;
  line-height: 1.5;
}
.guide-choice-demo,
.guide-login-demo,
.guide-menu-demo,
.guide-flavor-demo,
.guide-bill-demo,
.guide-owner-demo,
.guide-install-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}
.guide-choice-demo span,
.guide-flavor-demo span,
.guide-owner-demo span,
.guide-install-demo,
.guide-login-demo button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 999px;
  color: #dce7f5;
  background: rgba(8,16,30,.72);
  font-weight: 850;
}
.guide-login-demo button {
  border-radius: 13px;
  border-color: rgba(148,163,184,.16);
}
.guide-menu-demo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-menu-demo span {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 72px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  font-size: 1.7rem;
}
.guide-menu-demo small { color: #b6c4d7; font-size: .68rem; font-weight: 850; }
.guide-bill-demo button {
  width: auto;
  min-height: 42px;
  padding: 0 12px;
}
.guide-table-demo {
  display: grid;
  grid-template-columns: repeat(6, 42px);
  gap: 7px;
}
.guide-table-demo span {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 13px;
  color: #94a3b8;
  background: rgba(148,163,184,.09);
  font-weight: 950;
}
.guide-table-demo .is-active { color: #06251e; background: #34d399; }
.guide-table-demo .is-pay { color: #231b03; background: #facc15; box-shadow: 0 0 24px rgba(250,204,21,.22); }
.guide-bar-demo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 18px;
  background: #0b1627;
}
.guide-bar-demo strong {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #07111f;
  background: #67e8f9;
}
.guide-bar-demo span { font-weight: 900; }
.guide-bar-demo em { grid-column: 1 / -1; color: #dce7f5; font-size: 1.25rem; font-style: normal; }
.guide-bar-demo button { grid-column: 1 / -1; }
.guide-chat-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.guide-chat-demo img { width: 48px; height: 48px; border-radius: 50%; }
.guide-chat-demo div { display: grid; gap: 3px; }
.guide-chat-demo span { color: #b6c4d7; }
.guide-install-demo { width: fit-content; }
.guide-flow {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(45,212,191,.18);
  border-radius: 24px;
  background: rgba(20,184,166,.08);
}
.guide-flow h2 { margin: 0 0 12px; }
.guide-flow div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.guide-flow span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #04111f;
  background: #a7f3d0;
  font-weight: 950;
}
.guide-flow i { color: #67e8f9; }
@media (max-width: 780px) {
  .guide-hero,
  .guide-grid { grid-template-columns: 1fr; }
  .guide-hero { padding: 18px; }
  .guide-menu-demo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.guest-cart-strip,
.guest-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 1px 3px;
}

.guest-cart-strip::-webkit-scrollbar,
.guest-cats::-webkit-scrollbar { display: none; }

.guest-cart-empty {
  color: #94a3b8;
  padding: 8px 2px;
  font-size: .9rem;
}

.guest-cart-pill {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #eaf2ff;
  font-weight: 850;
}

.guest-cart-pill i { margin-left: 6px; color: #bae6fd; }

.guest-cats button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15,23,42,.72);
  font-weight: 900;
}

.guest-cats button.is-active {
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.guest-menu {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.guest-drink {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 19px;
  color: #eaf2ff;
  background: rgba(10,18,32,.78);
  text-align: left;
}

.guest-drink.is-picked {
  border-color: rgba(103,232,249,.55);
  background: rgba(8,145,178,.18);
}

.guest-drink-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.guest-drink-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guest-drink-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-drink-main small { color: #94a3b8; }
.guest-drink-price { color: #a7f3d0; font-weight: 950; white-space: nowrap; }

.guest-drink em {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06111f;
  background: #facc15;
  font-size: .78rem;
  font-style: normal;
  font-weight: 1000;
}

.guest-submit-bar {
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: linear-gradient(to top, #07111f 70%, rgba(7,17,31,0));
}

.guest-submit-bar button {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
}

.guest-submit-bar button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

@media (max-width: 860px) {
  .cafe-waiter-grid { grid-template-columns: 1fr; }
  .cafe-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-drink-row { grid-template-columns: 1fr 1fr; }
  .cafe-table-row { grid-template-columns: 1fr 1fr; }
  .cafe-drink-row button,
  .cafe-check { min-height: 40px; }
}

@media (max-width: 560px) {
  .cafe-app,
  .cafe-entry,
  .cafe-order-app { width: min(100% - 18px, 1180px); }

  .cafe-topbar { align-items: stretch; flex-direction: column; }
  .cafe-top-actions a { justify-content: center; }
  .cafe-entry-grid { grid-template-columns: 1fr; }
  .cafe-table-row { grid-template-columns: 1fr; }
  .cafe-inline-form { grid-template-columns: 1fr; }
  .cafe-drink-row { grid-template-columns: 1fr; }
  .cafe-order-actions { align-items: stretch; flex-direction: column; }
  .cafe-order-logout span { display: none; }
  .cafe-order-logout { width: 38px; min-width: 38px; padding: 0; }

  .guest-drink {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 68px;
    border-radius: 17px;
  }

  .guest-drink-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* Bar POS cascade lock: keep the full-screen layout after legacy cafe rules. */
.cafe-bar-body { height: 100dvh; overflow: hidden; }

.cafe-bar-app {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: 68px 32px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
}

.cafe-bar-head {
  padding: 8px 10px;
  border-color: rgba(148,163,184,.13);
  border-radius: 16px;
  background: rgba(11,20,34,.94);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.cafe-bar-head h1 {
  font-size: clamp(1.02rem, 1.7vw, 1.38rem);
}

.cafe-bar-orders {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  padding: 0 2px 8px 0;
}

.cafe-bar-order {
  grid-template-rows: auto minmax(62px, auto) 42px;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 9px;
  border: 1px solid rgba(148,163,184,.15);
  border-left: 3px solid #38bdf8;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(16,27,44,.97), rgba(10,18,31,.97));
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.cafe-bar-order.is-waiting { border-left-color: #fbbf24; }
.cafe-bar-order.is-late { border-left-color: #fb7185; }

.cafe-bar-order-head {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 0 7px;
}

.cafe-bar-customer-avatar {
  width: 40px;
  height: 40px;
  border-width: 1px;
  border-radius: 11px;
}

.cafe-bar-items b {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.cafe-bar-done {
  min-height: 42px;
  gap: 8px;
  border-radius: 11px;
  color: #052014;
  background: linear-gradient(135deg, #5eead4, #86efac);
  font-size: .78rem;
}

.cafe-bar-done i { width: 24px; height: 24px; font-size: .67rem; }

.cafe-bar-empty {
  grid-column: 1 / -1;
  min-height: calc(100dvh - 124px);
  border-radius: 16px;
}

@media (max-width: 720px) {
  .cafe-bar-app {
    width: 100%;
    grid-template-rows: 60px 28px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .cafe-bar-head {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    padding: 6px 7px;
  }

  .cafe-bar-orders { grid-template-columns: 1fr; gap: 6px; }
  .cafe-bar-order { min-height: 0; }
}

/* Tablet POS: tri jednostavna, ravnopravna pregleda. */
.cafe-bar-body .cafe-bar-app,
.cafe-bar-body .cafe-bar-app.has-payment-requests {
  grid-template-rows:68px auto minmax(0,1fr)!important;
}
.cafe-bar-body .cafe-bar-controls {
  min-height:48px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:5px 7px!important;
}
.cafe-bar-body .cafe-bar-section-head{min-width:0;grid-column:1/-1}
.cafe-bar-main-tabs{
  width:min(620px,100%);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  padding:4px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:13px;
  background:rgba(5,12,22,.72);
}
.cafe-bar-main-tabs button{
  min-width:0;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 10px;
  border:0;
  border-radius:9px;
  color:#8290a3;
  background:transparent;
  font:inherit;
  font-size:.71rem;
  font-weight:900;
  cursor:pointer;
}
.cafe-bar-main-tabs button i{font-size:.84rem}
.cafe-bar-main-tabs button b{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 5px;
  box-sizing:border-box;
  border-radius:7px;
  color:#aebaca;
  background:rgba(148,163,184,.11);
  font-size:.59rem;
}
.cafe-bar-main-tabs button.is-active{
  color:#ecfeff;
  background:#172638;
  box-shadow:inset 0 0 0 1px rgba(103,232,249,.16);
}
.cafe-bar-main-tabs button.is-active i{color:#67e8f9}
.cafe-bar-main-tabs button.has-calls b{
  color:#241600;
  background:#fbbf24;
}
.cafe-bar-body #barOrders,
.cafe-bar-body #barPayments,
.cafe-bar-body #barTablesView{
  grid-row:3!important;
  min-height:0;
  overflow-y:auto;
  scrollbar-gutter:stable;
}
.cafe-bar-body #barOrders[hidden],
.cafe-bar-body #barPayments[hidden],
.cafe-bar-body #barTablesView[hidden],
.cafe-bar-body [data-bar-orders-tools][hidden]{display:none!important}
.cafe-bar-body #barPayments{
  max-height:none!important;
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:8px;
  padding:0 2px 10px 0;
  border:0;
  background:transparent;
}
.cafe-bar-body #barPayments>header{display:none}
.cafe-bar-body #barPaymentList{display:grid;gap:8px}
.cafe-bar-tables-view{padding:0 2px 10px 0}
.cafe-bar-tables-list{display:grid;gap:9px}
.cafe-bar-table-group{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  background:rgba(11,20,34,.82);
}
.cafe-bar-table-group>header{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 12px;
  box-sizing:border-box;
  border-bottom:1px solid rgba(148,163,184,.11);
}
.cafe-bar-table-group>header>span{min-width:0;display:grid;grid-template-columns:30px auto;align-items:center;column-gap:9px}
.cafe-bar-table-group>header>span i{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#67e8f9;background:rgba(6,182,212,.11)}
.cafe-bar-table-group>header>span strong{color:#edf6ff;font-size:.82rem}
.cafe-bar-table-group>header>span small{color:#75869a;font-size:.62rem}
.cafe-bar-table-group>header>div{display:grid;justify-items:end;gap:2px}
.cafe-bar-table-group>header>div strong{color:#dbeafe;font-size:.8rem}
.cafe-bar-table-group>header>div em{color:#fbbf24;font-size:.57rem;font-style:normal;font-weight:900;text-transform:uppercase}
.cafe-bar-table-group.is-calling{border-color:rgba(251,191,36,.28)}
.cafe-bar-table-orders{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(310px,1fr));
  gap:7px;
  padding:8px;
}
.cafe-bar-table-orders .cafe-bar-order{margin:0}
.cafe-bar-table-empty{grid-column:1/-1;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;color:#66778a;font-size:.69rem}
.cafe-bar-table-empty i{color:#34d399}

@media(max-width:720px){
  .cafe-bar-body .cafe-bar-app,
  .cafe-bar-body .cafe-bar-app.has-payment-requests{grid-template-rows:60px auto minmax(0,1fr)!important}
  .cafe-bar-body .cafe-bar-controls{grid-template-columns:1fr;padding:4px!important}
  .cafe-bar-body .cafe-bar-section-head{display:block!important}
  .cafe-bar-body .cafe-bar-section-head>small{display:none}
  .cafe-bar-main-tabs{width:100%;box-sizing:border-box}
  .cafe-bar-main-tabs button{height:38px;gap:5px;padding:0 5px;font-size:.64rem}
  .cafe-bar-main-tabs button i{font-size:.76rem}
  .cafe-bar-body .cafe-bar-filters{width:100%}
  .cafe-bar-table-orders{grid-template-columns:1fr;padding:6px}
  .cafe-bar-table-group>header{padding:7px 9px}
}
/* Premium DM Nudge */
.dm-embed-nudge{
  flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(250,204,21,.35);
  border-radius:12px;color:#facc15;background:linear-gradient(145deg,rgba(250,204,21,.14),rgba(249,115,22,.08));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 7px 22px rgba(249,115,22,.1);
  cursor:pointer;transition:.2s ease
}
.dm-embed-nudge:hover{transform:translateY(-2px);color:#fff;border-color:#facc15;box-shadow:0 0 24px rgba(250,204,21,.25)}
.dm-embed-nudge:active{transform:scale(.94)}
.nudge-confirm{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}
.nudge-confirm[hidden]{display:none}
.nudge-confirm-backdrop{position:absolute;inset:0;background:rgba(2,4,10,.82);backdrop-filter:blur(12px)}
.nudge-confirm-card{position:relative;width:min(440px,100%);overflow:hidden;padding:28px;border:1px solid transparent;border-radius:26px;
  color:#f8fafc;background:linear-gradient(#111522,#111522) padding-box,linear-gradient(135deg,rgba(250,204,21,.75),rgba(249,115,22,.35),rgba(139,92,246,.6)) border-box;
  box-shadow:0 34px 100px rgba(0,0,0,.65),0 0 55px rgba(249,115,22,.12);animation:nudgeCardIn .34s cubic-bezier(.2,.85,.25,1.25)}
.nudge-confirm-card:before{content:"";position:absolute;width:230px;height:230px;left:-90px;top:-120px;border-radius:50%;background:#f59e0b;filter:blur(80px);opacity:.13}
.nudge-confirm-x{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;font-size:24px;color:#94a3b8;background:rgba(255,255,255,.06);cursor:pointer}
.nudge-confirm-orbit{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 14px;border:1px solid rgba(250,204,21,.4);border-radius:21px;
  color:#111827;font-size:27px;background:linear-gradient(145deg,#fde047,#f97316);box-shadow:0 0 34px rgba(250,204,21,.26);transform:rotate(-6deg)}
.nudge-confirm-kicker{text-align:center;color:#fbbf24;font-size:10px;font-weight:900;letter-spacing:.2em}
.nudge-confirm h2{margin:5px 0 7px;text-align:center;font-size:27px;letter-spacing:-.04em}
.nudge-confirm-copy{margin:0 auto 20px;max-width:330px;text-align:center;color:#aab4c6;font-size:14px;line-height:1.5}
.nudge-charge-card{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;padding:14px;border:1px solid rgba(139,92,246,.24);border-radius:17px;background:rgba(139,92,246,.08)}
.nudge-charge-card.is-cafe{border-color:rgba(16,185,129,.28);background:rgba(16,185,129,.07)}
.nudge-charge-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#c4b5fd;background:rgba(139,92,246,.16);font-size:20px}
.nudge-charge-card.is-cafe .nudge-charge-icon{color:#6ee7b7;background:rgba(16,185,129,.15)}
.nudge-charge-card div{display:grid;min-width:0}.nudge-charge-card small{color:#7f8ca4;font-size:9px;font-weight:900;letter-spacing:.13em}
.nudge-charge-card strong{font-size:17px;margin:2px 0}.nudge-charge-card em{color:#9ba7ba;font-size:12px;font-style:normal;line-height:1.35}
.nudge-confirm-note{display:flex;gap:9px;align-items:flex-start;margin:14px 2px;color:#8f9bad;font-size:12px;line-height:1.45}.nudge-confirm-note i{margin-top:2px;color:#fbbf24}
.nudge-confirm-error{min-height:18px;color:#fb7185;text-align:center;font-size:12px;font-weight:700}
.nudge-confirm-send{width:100%;height:52px;border:0;border-radius:15px;color:#181100;background:linear-gradient(100deg,#fde047,#fb923c);font-weight:900;font-size:15px;cursor:pointer;box-shadow:0 14px 35px rgba(249,115,22,.2)}
.nudge-confirm-send:not(:disabled):hover{filter:brightness(1.08);transform:translateY(-1px)}.nudge-confirm-send:disabled{cursor:not-allowed;opacity:.5}
.nudge-confirm-send.is-loading i{animation:nudgeBoltSpin .5s linear infinite}
.nudge-toast{position:fixed;z-index:100002;left:50%;bottom:28px;display:flex;gap:10px;align-items:center;padding:13px 18px;border:1px solid rgba(250,204,21,.3);border-radius:14px;
  color:#fff;background:#151822;box-shadow:0 18px 50px #0008;opacity:0;transform:translate(-50%,18px);transition:.28s}.nudge-toast.is-show{opacity:1;transform:translate(-50%,0)}.nudge-toast i{color:#facc15}

.nudge-impact{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;overflow:hidden;color:#fff;background:radial-gradient(circle at center,#241331 0,#090b14 48%,#020307 100%);opacity:0;transform:scale(1.08);transition:.2s}
.nudge-impact.is-active{opacity:1;transform:scale(1);animation:nudgeScreenShake .58s cubic-bezier(.36,.07,.19,.97)}
.nudge-impact.is-leaving{opacity:0;transform:scale(1.05);transition:.42s ease}
.nudge-impact-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}.nudge-impact.is-active .nudge-impact-flash{animation:nudgeFlash .5s ease-out}
.nudge-impact-rays{position:absolute;width:120vmax;height:120vmax;background:repeating-conic-gradient(from 8deg,rgba(250,204,21,.08) 0deg 5deg,transparent 5deg 16deg);animation:nudgeRays 16s linear infinite}
.nudge-impact-content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;width:min(94vw,540px);text-align:center}
.nudge-impact-label{margin-bottom:25px;padding:8px 15px;border:1px solid rgba(250,204,21,.36);border-radius:999px;color:#fde047;background:rgba(250,204,21,.08);font-size:11px;font-weight:950;letter-spacing:.24em}
.nudge-impact-avatar{position:relative;display:grid;place-items:center;width:176px;height:176px;border-radius:50%;background:linear-gradient(135deg,#fde047,#f97316,#8b5cf6);padding:5px;filter:drop-shadow(0 0 35px rgba(250,204,21,.35))}
.nudge-impact-avatar:before,.nudge-impact-avatar:after{content:"";position:absolute;inset:-18px;border:2px solid rgba(250,204,21,.48);border-radius:50%;animation:nudgeRing 1.45s ease-out infinite}.nudge-impact-avatar:after{animation-delay:.45s}
.nudge-impact-avatar img{width:100%;height:100%;object-fit:cover;border:5px solid #0b0d16;border-radius:50%}
.nudge-impact-avatar span{position:absolute;right:0;bottom:7px;display:grid;place-items:center;width:48px;height:48px;border:4px solid #0b0d16;border-radius:50%;background:linear-gradient(145deg,#fde047,#f97316)}
.nudge-impact-avatar span:after{content:"⚡";font-size:23px}
.nudge-impact-name{max-width:90vw;margin-top:24px;font-size:clamp(30px,7vw,52px);font-weight:950;letter-spacing:-.045em;text-shadow:0 0 28px rgba(250,204,21,.28);overflow-wrap:anywhere}
.nudge-impact-copy{margin-top:7px;color:#b8c0d0;font-size:15px}.nudge-impact button{margin-top:27px;min-width:160px;height:47px;border:1px solid rgba(255,255,255,.18);border-radius:14px;color:#fff;background:rgba(255,255,255,.09);font-weight:800;cursor:pointer;backdrop-filter:blur(8px)}
.nudge-impact-particles{position:absolute;left:50%;top:50%;z-index:1}.nudge-impact-particles i{position:absolute;width:7px;height:7px;border-radius:2px;background:#fde047;box-shadow:0 0 12px #facc15;opacity:0}
.nudge-impact.is-active .nudge-impact-particles i{animation:nudgeParticle 1.1s calc(var(--i)*.025s) cubic-bezier(.12,.7,.25,1) forwards}
@keyframes nudgeCardIn{from{opacity:0;transform:translateY(22px) scale(.94)}to{opacity:1;transform:none}}
@keyframes nudgeBoltSpin{50%{transform:scale(1.35) rotate(8deg)}}
@keyframes nudgeScreenShake{0%,100%{transform:translate(0)}10%{transform:translate(-13px,7px) rotate(-.8deg)}20%{transform:translate(12px,-8px) rotate(.7deg)}35%{transform:translate(-9px,5px)}50%{transform:translate(8px,-4px)}70%{transform:translate(-4px,2px)}}
@keyframes nudgeFlash{0%{opacity:.9}30%,100%{opacity:0}}
@keyframes nudgeRays{to{transform:rotate(360deg)}}
@keyframes nudgeRing{0%{opacity:.8;transform:scale(.85)}100%{opacity:0;transform:scale(1.35)}}
@keyframes nudgeParticle{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(240deg) scale(.2)}}
@media(max-width:600px){
  .nudge-confirm{align-items:end;padding:10px}.nudge-confirm-card{padding:24px 18px calc(18px + env(safe-area-inset-bottom));border-radius:24px}
  .nudge-confirm h2{font-size:24px}.nudge-impact-avatar{width:142px;height:142px}
}
@media(prefers-reduced-motion:reduce){
  .nudge-impact.is-active,.nudge-impact-rays,.nudge-impact-avatar:before,.nudge-impact-avatar:after,.nudge-impact-particles i{animation:none!important}
}

/* MSN-style Nudge: otvori DM i protresi samo prozor razgovora. */
.mini-profile.is-msn-nudged{
  position:relative;
  z-index:5;
  animation:msnDmNudge .82s cubic-bezier(.36,.07,.19,.97) both!important;
}
#profileMount.is-msn-shaking{overflow:clip!important;overscroll-behavior:none!important}
#profileMount.is-msn-shaking .mini-profile{will-change:transform;transform-origin:center center}
.mini-profile.is-msn-nudged::after{
  content:"";
  position:absolute;
  z-index:999;
  inset:0;
  pointer-events:none;
  border:2px solid rgba(250,204,21,.75);
  border-radius:inherit;
  box-shadow:inset 0 0 24px rgba(250,204,21,.14),0 0 28px rgba(250,204,21,.26);
  animation:msnDmFlash .82s ease-out both;
}
.dm-msn-nudge-notice{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  align-self:center;
  width:min(94%,430px);
  min-height:82px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 22px;
  align-items:center;
  gap:12px;
  margin:10px auto;
  padding:12px 14px 12px 12px;
  border:1px solid rgba(250,204,21,.58);
  border-left:3px solid #facc15;
  border-radius:17px;
  color:#fff;
  background:radial-gradient(circle at 8% 15%,rgba(250,204,21,.2),transparent 42%),linear-gradient(125deg,rgba(42,31,8,.98),rgba(17,19,27,.98) 58%,rgba(43,20,54,.96));
  box-shadow:0 12px 28px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.08),0 0 24px rgba(250,204,21,.1);
  text-align:left;
  animation:dmNudgeNoticeIn .5s cubic-bezier(.18,.9,.22,1.25) both;
}
.dm-msn-nudge-notice::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.14) 45%,transparent 68%);transform:translateX(-120%);animation:dmNudgeNoticeShine 1.15s .25s ease-out both}
.dm-nudge-energy{display:grid;place-items:center;width:52px;height:52px;border:1px solid rgba(253,224,71,.7);border-radius:16px;color:#201500;background:linear-gradient(145deg,#fef08a,#facc15 55%,#f97316);box-shadow:0 0 0 5px rgba(250,204,21,.08),0 0 22px rgba(250,204,21,.3);font-size:22px;transform:rotate(-5deg)}
.dm-nudge-energy i{filter:drop-shadow(0 2px 1px rgba(255,255,255,.45))}
.dm-nudge-copy{display:flex;min-width:0;flex-direction:column;line-height:1.2}
.dm-nudge-kicker{margin-bottom:3px;color:#fde047;font-size:.57rem;font-weight:950;letter-spacing:.19em}
.dm-nudge-sender{color:#fff;font-size:.82rem;font-weight:950;overflow-wrap:anywhere;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.dm-nudge-detail{margin-top:4px;color:#cbd5e1;font-size:.66rem;font-weight:650;line-height:1.35}
.dm-nudge-mark{justify-self:end;color:rgba(250,204,21,.48);font-size:18px;filter:drop-shadow(0 0 8px rgba(250,204,21,.55))}
@keyframes dmNudgeNoticeIn{0%{opacity:0;transform:scale(.86) translateY(10px)}65%{transform:scale(1.025)}100%{opacity:1;transform:none}}
@keyframes dmNudgeNoticeShine{to{transform:translateX(120%)}}
@keyframes msnDmNudge{
  0%,100%{transform:translate3d(0,0,0) rotate(0)}
  8%{transform:translate3d(-13px,2px,0) rotate(-.45deg)}
  16%{transform:translate3d(13px,-2px,0) rotate(.45deg)}
  25%{transform:translate3d(-11px,1px,0) rotate(-.35deg)}
  35%{transform:translate3d(11px,-1px,0) rotate(.35deg)}
  47%{transform:translate3d(-8px,0,0) rotate(-.22deg)}
  60%{transform:translate3d(8px,0,0) rotate(.22deg)}
  74%{transform:translate3d(-4px,0,0)}
  88%{transform:translate3d(4px,0,0)}
}
@keyframes msnDmFlash{0%{opacity:1}100%{opacity:0}}
@media(max-width:640px){
  .dm-msn-nudge-notice{width:96%;min-height:72px;grid-template-columns:44px minmax(0,1fr) 14px;gap:9px;margin:6px auto;padding:9px 10px 9px 9px;border-radius:14px}
  .dm-nudge-energy{width:42px;height:42px;border-radius:13px;font-size:18px;box-shadow:0 0 0 3px rgba(250,204,21,.08),0 0 16px rgba(250,204,21,.25)}
  .dm-nudge-kicker{font-size:.5rem}.dm-nudge-sender{font-size:.73rem}.dm-nudge-detail{font-size:.59rem}.dm-nudge-mark{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .mini-profile.is-msn-nudged{animation:none!important}
  .mini-profile.is-msn-nudged::after{animation:none;opacity:.7}
  .dm-msn-nudge-notice,.dm-msn-nudge-notice::before{animation:none!important}
}

/* Veci, ujednaceni online avatari; gost ima isti okvir bez VIP svjetla. */
.online-directory .online-person-avatar-wrap{width:64px;height:64px}
.online-directory .online-person{min-height:130px}
.online-directory .online-person-avatar-wrap:not([class*="cody-avatar-neon-"])>.online-person-avatar,
#onlineUsers .online-avatar-shell:not([class*="cody-avatar-neon-"])>.online-avatar-img{
  border:1px solid rgba(148,163,184,.42)!important;
  border-radius:inherit!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 3px 8px rgba(0,0,0,.22)!important;
  filter:none!important;
}

@media(min-width:641px){
  #onlineUsers .online-avatar-shell{width:52px!important;height:52px!important;flex:0 0 52px!important}
  #onlineUsers .online-avatar-img{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}
  #onlineUsers .user-card.online-user-box{min-height:118px!important}
}
@media(max-width:640px){
  .online-directory .online-person-avatar-wrap{width:50px;height:50px}
  .online-directory .online-person{min-height:101px}
  #onlineUsers .online-avatar-shell,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"],
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]{width:40px!important;height:40px!important;flex:0 0 40px!important}
  #onlineUsers .online-avatar-img,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"]>img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]>img{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}
  #onlineUsers .user-card.online-user-box{height:88px!important;min-height:88px!important}
}




/* Jasniji signal da postoje neprocitane privatne poruke. */
#onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])){
  border-color:rgba(253,224,71,.7)!important;
  background:radial-gradient(circle at 18% 50%,rgba(250,204,21,.28),transparent 52%),linear-gradient(135deg,rgba(65,49,12,.98),rgba(27,27,25,.98))!important;
  animation:dm-unread-power 2.2s ease-in-out infinite!important;
}
#onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])) i{
  color:#2b2105!important;
  background:linear-gradient(145deg,#fef08a,#eab308)!important;
  box-shadow:0 0 0 2px rgba(250,204,21,.16),0 0 13px rgba(250,204,21,.38)!important;
  animation:dm-envelope-alert 2.2s ease-in-out infinite!important;
}
#onlineUsers #dmUnreadBadge:not([hidden]){
  background:linear-gradient(145deg,#fb7185,#e11d48)!important;
  animation:dm-badge-alert 2.2s ease-in-out infinite!important;
}
@keyframes dm-unread-power{
  0%,100%{border-color:rgba(250,204,21,.35);filter:brightness(1);box-shadow:inset 0 0 0 1px rgba(250,204,21,.08),0 0 0 rgba(250,204,21,0)}
  45%{border-color:rgba(254,240,138,.86);filter:brightness(1.14);box-shadow:inset 0 0 0 1px rgba(254,240,138,.24),0 0 19px rgba(250,204,21,.35)}
  58%{border-color:rgba(250,204,21,.5);filter:brightness(1.04);box-shadow:inset 0 0 0 1px rgba(250,204,21,.12),0 0 8px rgba(250,204,21,.18)}
}
@keyframes dm-envelope-alert{
  0%,34%,66%,100%{transform:rotate(0) scale(1)}
  42%{transform:rotate(-8deg) scale(1.08)}
  48%{transform:rotate(8deg) scale(1.1)}
  54%{transform:rotate(-5deg) scale(1.07)}
  60%{transform:rotate(3deg) scale(1.04)}
}
@keyframes dm-badge-alert{0%,32%,68%,100%{transform:scale(1)}46%{transform:scale(1.25)}56%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])),
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])) i,
  #onlineUsers #dmUnreadBadge:not([hidden]){animation:none!important}
}

/* Zavrsni dizajn posebne stranice "Ko je online". */
.online-directory{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:18px;
  overflow:auto;
}
.online-directory .online-hero{
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
  padding:20px 22px;
  overflow:hidden;
  border:1px solid rgba(74,222,128,.16);
  border-radius:18px;
  background:radial-gradient(circle at 12% 30%,rgba(34,197,94,.16),transparent 42%),linear-gradient(135deg,rgba(22,34,31,.98),rgba(17,22,31,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.18);
}
.online-directory .online-hero-copy{min-width:0;display:grid;gap:5px}
.online-directory .online-hero-kicker{display:flex;align-items:center;gap:6px;color:#86efac;font-size:.6rem;font-weight:950;text-transform:uppercase;letter-spacing:.12em}
.online-directory .online-hero-kicker i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 10px rgba(34,197,94,.8);animation:online-live-soft 2.2s ease-in-out infinite}
.online-directory .online-hero h2{margin:0;color:#fff;font-size:1.45rem;line-height:1.08;font-weight:950;letter-spacing:-.025em}
.online-directory .online-hero p{margin:0;color:#94a3b8;font-size:.72rem;line-height:1.4}
.online-directory .online-hero-count{flex:0 0 auto;min-width:82px;height:70px;display:grid;place-items:center;align-content:center;gap:2px;border:1px solid rgba(74,222,128,.18);border-radius:15px;background:linear-gradient(145deg,rgba(34,197,94,.18),rgba(8,15,18,.55));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.online-directory .online-hero-count strong{color:#bbf7d0;font-size:1.35rem;line-height:1;font-weight:950}
.online-directory .online-hero-count span{color:#86efac;font-size:.53rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.online-directory .online-band{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.online-directory .online-people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.online-directory .online-person{
  width:100%;
  min-width:0;
  min-height:82px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:11px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:14px;
  color:inherit;
  text-align:left;
  background:linear-gradient(145deg,rgba(30,37,49,.94),rgba(17,22,31,.97));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 7px 18px rgba(0,0,0,.13);
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.online-directory .online-person:hover{transform:translateY(-2px);border-color:rgba(74,222,128,.28);background:linear-gradient(145deg,rgba(31,48,45,.96),rgba(18,26,35,.98))}
.online-directory .online-person-avatar-wrap{grid-column:1;width:58px;height:58px;margin:0;padding:2px;border:1px solid rgba(74,222,128,.3);border-radius:16px;background:rgba(6,12,17,.75);box-shadow:0 8px 18px rgba(0,0,0,.2)}
.online-directory .online-person-avatar{width:100%;height:100%;border-radius:13px;object-fit:cover}
.online-directory .online-person-dot{right:1px;bottom:2px;width:11px;height:11px;border:2px solid #18202b;background:#22c55e;box-shadow:0 0 8px rgba(34,197,94,.55)}
.online-directory .online-person-badge{top:7px;right:7px;width:22px;height:22px;border-color:rgba(250,204,21,.35);background:rgba(10,14,20,.9)}
.online-directory .online-person-badge img{width:16px;height:16px}
.online-directory .online-person-body{min-width:0;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:4px}
.online-directory .online-person-name{width:100%;overflow:hidden;color:#f8fafc;font-size:.78rem;line-height:1.15;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.online-directory .online-person-room{width:100%;overflow:hidden;color:#94a3b8;font-size:.58rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.online-directory .online-person-room::before{content:"\f3c5";margin-right:5px;color:#4ade80;font-family:"Font Awesome 6 Free";font-size:.52rem;font-weight:900}
.online-directory .online-person .pop-score{min-width:0;margin:3px 0 0;padding:3px 7px 4px;border-color:rgba(244,114,182,.15);border-radius:7px;background:rgba(219,39,119,.08);box-shadow:none;align-items:flex-start}
.online-directory .online-person .pop-score-label{color:#f9a8d4;font-size:.42rem}
.online-directory .online-person .pop-score-value{max-width:70px;color:#fce7f3;font-size:.62rem}
.online-directory .online-empty,.online-directory .online-loading{grid-column:1/-1;padding:34px 18px;border:1px dashed rgba(148,163,184,.18);border-radius:14px;color:#94a3b8;text-align:center;background:rgba(255,255,255,.025)}
@keyframes online-live-soft{50%{opacity:.45;transform:scale(.82)}}

@media(max-width:640px){
  .online-directory{padding:9px}
  .online-directory .online-hero{min-height:88px;margin-bottom:8px;padding:13px 14px;border-radius:13px}
  .online-directory .online-hero h2{font-size:1.08rem}
  .online-directory .online-hero p{max-width:210px;font-size:.62rem}
  .online-directory .online-hero-count{min-width:58px;height:56px;border-radius:11px}
  .online-directory .online-hero-count strong{font-size:1.05rem}
  .online-directory .online-hero-count span{font-size:.46rem}
  .online-directory .online-people-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .online-directory .online-person{min-height:96px;display:flex;flex-direction:column;justify-content:flex-start;gap:3px;padding:6px 4px 5px;border:1px solid rgba(148,163,184,.1);border-radius:9px;text-align:center;background:rgba(31,41,55,.52);box-shadow:none}
  .online-directory .online-person-avatar-wrap{width:46px;height:46px;margin:0 auto;padding:0;border:1px solid rgba(75,85,99,.5);border-radius:50%;background:transparent;box-shadow:none}
  .online-directory .online-person-avatar{border-radius:50%}
  .online-directory .online-person-dot{right:1px;bottom:2px;width:10px;height:10px;border-width:2px}
  .online-directory .online-person-body{width:100%;align-items:center;gap:1px}
  .online-directory .online-person-name{font-size:.65rem;line-height:1.1;text-align:center}
  .online-directory .online-person-room{display:none}
  .online-directory .online-person-badge{top:3px;left:3px;right:auto;width:20px;height:20px;border-width:1px}
  .online-directory .online-person-badge img{width:14px;height:14px}
  .online-directory .online-person .pop-score{position:static;min-width:0;max-width:54px;margin:2px auto 0;padding:2px 5px 3px;border-radius:7px;align-items:center;background:rgba(219,39,119,.07)}
  .online-directory .online-person .pop-score-label{display:none}
  .online-directory .online-person .pop-score-value{font-size:.55rem}
}
@media(max-width:350px){
  .online-directory .online-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.online-directory .online-hero-kicker i{animation:none}.online-directory .online-person{transition:none}}

/* Online direktorij je prosirena verzija kartica iz desne kolone. */
.online-directory .online-people-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.online-directory .online-person{
  min-height:122px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  padding:9px 6px 7px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:10px;
  text-align:center;
  background:linear-gradient(180deg,rgba(31,41,55,.7),rgba(17,24,39,.84));
  box-shadow:none;
}
.online-directory .online-person:hover{transform:translateY(-1px);border-color:rgba(74,222,128,.26);background:linear-gradient(180deg,rgba(35,48,60,.82),rgba(18,27,38,.9))}
.online-directory .online-person-avatar-wrap{width:58px;height:58px;margin:0 auto;padding:0;border:1px solid rgba(75,85,99,.55);border-radius:50%;background:transparent;box-shadow:none}
.online-directory .online-person-avatar{border-radius:50%}
.online-directory .online-person-dot{right:2px;bottom:3px;width:11px;height:11px;border-width:2px}
.online-directory .online-person-badge{top:5px;left:5px;right:auto;width:22px;height:22px;border-width:1px}
.online-directory .online-person-badge img{width:16px;height:16px}
.online-directory .online-person-body{width:100%;min-width:0;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:2px}
.online-directory .online-person-name{width:100%;font-size:.7rem;line-height:1.1;text-align:center}
.online-directory .online-person-room{display:none}
.online-directory .online-person .pop-score{position:static;min-width:0;max-width:58px;margin:2px auto 0;padding:2px 6px 3px;border-radius:7px;align-items:center;background:rgba(219,39,119,.07);box-shadow:none}
.online-directory .online-person .pop-score-label{display:none}
.online-directory .online-person .pop-score-value{max-width:46px;font-size:.58rem}

@media(max-width:640px){
  .online-directory .online-people-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .online-directory .online-person{min-height:94px;gap:3px;padding:6px 3px 5px;border-radius:9px;background:rgba(31,41,55,.52)}
  .online-directory .online-person-avatar-wrap{width:45px;height:45px}
  .online-directory .online-person-name{font-size:.62rem}
  .online-directory .online-person-badge{top:3px;left:3px;width:19px;height:19px}
  .online-directory .online-person-badge img{width:14px;height:14px}
  .online-directory .online-person .pop-score{max-width:50px;padding:1px 5px 2px}
  .online-directory .online-person .pop-score-value{font-size:.52rem}
}
@media(max-width:350px){.online-directory .online-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Konacne velicine avatara nakon svih legacy pravila. */
@media(min-width:641px){
  .online-directory .online-person-avatar-wrap{width:64px!important;height:64px!important}
  .online-directory .online-person{min-height:130px!important}
  #onlineUsers .online-avatar-shell{width:52px!important;height:52px!important;flex:0 0 52px!important}
  #onlineUsers .online-avatar-img{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}
}
@media(max-width:640px){
  .online-directory .online-person-avatar-wrap{width:50px!important;height:50px!important}
  .online-directory .online-person{min-height:101px!important}
  #onlineUsers .online-avatar-shell,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"],
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]{width:40px!important;height:40px!important;flex:0 0 40px!important}
  #onlineUsers .online-avatar-img,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"]>img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]>img{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}
  #onlineUsers .user-card.online-user-box{height:88px!important;min-height:88px!important}
}

/* Tabovi na posebnoj stranici Online raja. */
.online-directory .online-directory-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0 0 12px;
  padding:5px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:15px;
  background:rgba(10,15,23,.72);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.online-directory .online-directory-tab{
  min-width:0;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:11px;
  color:#94a3b8;
  background:transparent;
  font-size:.72rem;
  font-weight:900;
  cursor:pointer;
  transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}
.online-directory .online-directory-tab:hover{color:#e2e8f0;background:rgba(255,255,255,.045)}
.online-directory .online-directory-tab i{font-size:.76rem}
.online-directory .online-directory-tab strong{min-width:23px;padding:3px 6px;border-radius:999px;color:#bbf7d0;background:rgba(34,197,94,.12);font-size:.59rem;line-height:1.2}
.online-directory .online-directory-tab.is-active{border-color:rgba(74,222,128,.22);color:#ecfdf5;background:linear-gradient(135deg,rgba(34,197,94,.17),rgba(20,31,38,.78));box-shadow:0 6px 18px rgba(0,0,0,.14),inset 0 1px rgba(255,255,255,.05)}
.online-directory .online-directory-tab.is-popular i{color:#facc15}
.online-directory .online-directory-tab.is-popular strong{color:#fde68a;background:rgba(250,204,21,.11)}
.online-directory .online-directory-tab.is-popular.is-active{border-color:rgba(250,204,21,.28);color:#fffbea;background:linear-gradient(135deg,rgba(250,204,21,.15),rgba(65,31,56,.48),rgba(20,25,34,.82));box-shadow:0 7px 20px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.06)}
.online-directory .online-person{position:relative}
.online-directory .online-popular-rank{position:absolute;z-index:4;top:7px;left:7px;display:flex;align-items:center;gap:3px;padding:3px 6px;border:1px solid rgba(250,204,21,.25);border-radius:999px;color:#fde68a;background:rgba(13,15,21,.9);box-shadow:0 4px 12px rgba(0,0,0,.25);font-size:.5rem;font-weight:950;line-height:1}
.online-directory .online-popular-rank i{font-size:.48rem}.online-directory .online-popular-rank b{font-size:.52rem}
.online-directory .online-popular-rank.is-rank-1{color:#fff4a8;border-color:rgba(250,204,21,.48);background:linear-gradient(135deg,rgba(120,83,8,.94),rgba(25,23,19,.96))}
.online-directory .online-popular-rank.is-rank-2{color:#e2e8f0;border-color:rgba(203,213,225,.38)}
.online-directory .online-popular-rank.is-rank-3{color:#fdba74;border-color:rgba(251,146,60,.35)}
.online-directory.is-popular-view .online-person-dot.is-offline{background:#64748b!important;box-shadow:none!important}
.online-directory.is-popular-view .online-person:has(.online-person-dot.is-offline){border-color:rgba(148,163,184,.1)}
@media(max-width:640px){
  .online-directory .online-directory-tabs{gap:5px;margin-bottom:8px;padding:4px;border-radius:12px}
  .online-directory .online-directory-tab{height:39px;gap:5px;padding:0 7px;border-radius:9px;font-size:.61rem}
  .online-directory .online-directory-tab i{font-size:.64rem}
  .online-directory .online-directory-tab strong{min-width:20px;padding:2px 5px;font-size:.51rem}
  .online-directory .online-popular-rank{top:3px;left:3px;padding:3px 5px}
}
@media(max-width:360px){
  .online-directory .online-directory-tab{font-size:.56rem}
  .online-directory .online-directory-tab strong{display:none}
}
@media(prefers-reduced-motion:reduce){.online-directory .online-directory-tab{transition:none}}

/* Nudge cinematic impact v2 */
.nudge-impact{
  isolation:isolate;
  background:
    radial-gradient(circle at 50% 48%,rgba(109,40,217,.3),transparent 25%),
    radial-gradient(circle at 50% 50%,#171028 0,#080912 43%,#010205 100%);
}
.nudge-impact-curtain,.nudge-impact-flash,.nudge-impact-lightning,.nudge-impact-grid,
.nudge-impact-rays,.nudge-impact-wave,.nudge-impact-particles{pointer-events:none}
.nudge-impact:before{
  content:"";position:absolute;inset:0;z-index:7;pointer-events:none;opacity:.18;
  background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(255,255,255,.045) 3px 4px);
  mix-blend-mode:screen
}
.nudge-impact-curtain{position:absolute;inset:0;z-index:20;background:#010103;transform-origin:top}
.nudge-impact.is-active .nudge-impact-curtain{animation:nudgeCurtain .82s cubic-bezier(.75,0,.2,1) forwards}
.nudge-impact-lightning{position:absolute;inset:-8% 0 -8% 51%;z-index:6;width:min(42vw,390px);transform:translateX(-50%) rotate(7deg);opacity:0;filter:drop-shadow(0 0 24px #facc15)}
.nudge-impact-lightning svg{width:100%;height:100%;overflow:visible}
.nudge-impact-lightning path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.nudge-bolt-glow{stroke:#f59e0b;stroke-width:25;opacity:.5;filter:blur(12px)}
.nudge-bolt-core{stroke:#fffde7;stroke-width:7;filter:drop-shadow(0 0 7px #fff)}
.nudge-impact.is-active .nudge-impact-lightning{animation:nudgeLightning 1.12s .14s ease-out both}
.nudge-impact-grid{position:absolute;z-index:0;left:50%;bottom:-22%;width:130vw;height:68vh;opacity:0;
  background-image:linear-gradient(rgba(168,85,247,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(168,85,247,.18) 1px,transparent 1px);
  background-size:56px 56px;transform:translateX(-50%) perspective(420px) rotateX(67deg);transform-origin:center bottom;mask-image:linear-gradient(to top,#000,transparent 82%)}
.nudge-impact.is-active .nudge-impact-grid{animation:nudgeGridIn 1.1s .35s ease-out forwards}
.nudge-impact-wave{position:absolute;z-index:1;left:50%;top:50%;width:1px;height:1px}
.nudge-impact-wave i{position:absolute;left:0;top:0;width:220px;height:220px;border:2px solid rgba(253,224,71,.72);border-radius:50%;opacity:0;transform:translate(-50%,-50%) scale(.25);box-shadow:0 0 35px rgba(250,204,21,.28),inset 0 0 25px rgba(250,204,21,.12)}
.nudge-impact.is-active .nudge-impact-wave i{animation:nudgeShockwave 1.15s .46s cubic-bezier(.12,.75,.22,1) forwards}
.nudge-impact.is-active .nudge-impact-wave i:nth-child(2){animation-delay:.58s}
.nudge-impact.is-active .nudge-impact-wave i:nth-child(3){animation-delay:.7s}
.nudge-impact-content{z-index:30;perspective:900px;pointer-events:none}
.nudge-impact-label{opacity:0;transform:translateY(-16px);box-shadow:0 0 28px rgba(250,204,21,.12)}
.nudge-impact.is-active .nudge-impact-label{animation:nudgeLabelIn .45s 1.02s ease-out forwards}
.nudge-impact-avatar-stage{position:relative;width:190px;height:190px;display:grid;place-items:center;transform-style:preserve-3d}
.nudge-impact-avatar{width:176px;height:176px;z-index:3;opacity:0;transform:translateZ(160px) scale(2.2) rotate(-10deg)}
.nudge-impact.is-active .nudge-impact-avatar{animation:nudgeAvatarSlam .82s .42s cubic-bezier(.16,.82,.22,1.12) forwards}
.nudge-impact-ghost{position:absolute;inset:7px;z-index:1;border-radius:50%;overflow:hidden;opacity:0;mix-blend-mode:screen}
.nudge-impact-ghost img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.nudge-impact.is-active .ghost-a{animation:nudgeGhostA .72s .48s ease-out}
.nudge-impact.is-active .ghost-b{animation:nudgeGhostB .72s .48s ease-out}
.ghost-a{filter:sepia(1) saturate(8) hue-rotate(320deg)}
.ghost-b{filter:sepia(1) saturate(8) hue-rotate(145deg)}
.nudge-impact-avatar span{transform:scale(0) rotate(-35deg)}
.nudge-impact.is-active .nudge-impact-avatar span{animation:nudgeBadgePop .42s 1.08s cubic-bezier(.2,1.6,.3,1) forwards}
.nudge-impact-name{opacity:0;transform:translateY(18px) scale(.88);filter:blur(9px)}
.nudge-impact.is-active .nudge-impact-name{animation:nudgeNameReveal .55s 1s cubic-bezier(.2,.9,.2,1) forwards}
.nudge-impact-copy{opacity:0;transform:translateY(12px)}
.nudge-impact-copy b{color:#fde047}
.nudge-impact.is-active .nudge-impact-copy{animation:nudgeSoftReveal .4s 1.2s ease-out forwards}
.nudge-impact button{opacity:0;transform:translateY(12px);transition:.18s}
.nudge-impact.is-active button{animation:nudgeSoftReveal .4s 1.36s ease-out forwards}
.nudge-impact button:hover{border-color:rgba(250,204,21,.55);background:rgba(250,204,21,.14);transform:translateY(-2px)}
.nudge-impact-actions{position:relative;z-index:50;display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(360px,88vw);margin-top:27px;pointer-events:auto}
.nudge-impact-actions button{position:relative;z-index:51;margin:0;min-width:0;height:52px;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}
.nudge-impact-actions button:active{transform:scale(.96)!important;filter:brightness(1.15)}
.nudge-impact-actions button[data-nudge-action="messages"]{
  border-color:rgba(250,204,21,.48);color:#171207;
  background:linear-gradient(110deg,#fde047,#fb923c);
  box-shadow:0 12px 34px rgba(249,115,22,.2)
}
.nudge-impact-actions button[data-nudge-action="messages"]:hover{color:#0b0b0d;background:linear-gradient(110deg,#fef08a,#fdba74)}
.nudge-impact-particles i:nth-child(3n+1){background:#fb923c;box-shadow:0 0 12px #f97316}
.nudge-impact-particles i:nth-child(3n+2){background:#c084fc;box-shadow:0 0 12px #a855f7}
.nudge-impact-particles i:nth-child(4n){width:3px;height:17px;border-radius:999px}
.nudge-impact.is-active .nudge-impact-particles i{animation-duration:1.35s;animation-delay:calc(.48s + var(--i)*.018s)}
@keyframes nudgeCurtain{0%{transform:scaleY(1)}35%{transform:scaleY(1)}100%{transform:scaleY(0)}}
@keyframes nudgeLightning{0%,7%{opacity:0;transform:translateX(-50%) translateY(-16%) rotate(7deg) scaleY(.7)}8%,14%{opacity:1}15%,20%{opacity:.12}21%,48%{opacity:1;transform:translateX(-50%) rotate(7deg) scaleY(1)}100%{opacity:0;transform:translateX(-50%) translateY(5%) rotate(7deg)}}
@keyframes nudgeGridIn{from{opacity:0;bottom:-35%}to{opacity:1;bottom:-22%}}
@keyframes nudgeShockwave{0%{opacity:.9;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(3.8)}}
@keyframes nudgeLabelIn{to{opacity:1;transform:none}}
@keyframes nudgeAvatarSlam{0%{opacity:0;transform:translateZ(160px) scale(2.2) rotate(-10deg)}52%{opacity:1;transform:translateZ(0) scale(.86) rotate(3deg)}74%{transform:scale(1.08) rotate(-1deg)}100%{opacity:1;transform:none}}
@keyframes nudgeGhostA{0%{opacity:.85;transform:translate(-60px,8px) scale(1.1)}100%{opacity:0;transform:translate(0) scale(1)}}
@keyframes nudgeGhostB{0%{opacity:.85;transform:translate(60px,-8px) scale(1.1)}100%{opacity:0;transform:translate(0) scale(1)}}
@keyframes nudgeBadgePop{to{transform:scale(1) rotate(0)}}
@keyframes nudgeNameReveal{to{opacity:1;transform:none;filter:none}}
@keyframes nudgeSoftReveal{to{opacity:1;transform:none}}
@media(max-width:600px){
  .nudge-impact-avatar-stage{width:156px;height:156px}.nudge-impact-avatar{width:142px;height:142px}
  .nudge-impact-lightning{width:52vw}.nudge-impact-grid{background-size:38px 38px}
  .nudge-impact-actions{width:min(340px,90vw)}
}
@media(prefers-reduced-motion:reduce){
  .nudge-impact-curtain{display:none}.nudge-impact-lightning{opacity:.2}
  .nudge-impact-label,.nudge-impact-avatar,.nudge-impact-name,.nudge-impact-copy,.nudge-impact button{opacity:1;transform:none;filter:none}
}

/* Realtime premium gift arrival */
.premium-gift-arrival{--gift-color:#facc15;position:fixed;inset:0;z-index:100010;display:grid;place-items:center;overflow:hidden;padding:20px;color:#fff;
  background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--gift-color) 24%,transparent),transparent 32%),linear-gradient(145deg,#090b14,#030408 72%);opacity:0;transition:.35s}
.premium-gift-arrival.is-active{opacity:1}
.premium-gift-arrival:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.025) 4px 5px)}
.premium-gift-aurora{position:absolute;inset:-45%;opacity:.35;background:conic-gradient(from 0deg,transparent,var(--gift-color),transparent 28%,#8b5cf6,transparent 57%,var(--gift-color),transparent);filter:blur(80px);animation:premiumGiftAurora 18s linear infinite}
.premium-gift-stars{position:absolute;inset:0;opacity:.6;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.5px),radial-gradient(circle,var(--gift-color) 0 1px,transparent 1.7px);background-size:47px 47px,73px 73px;background-position:0 0,20px 13px;animation:premiumGiftStars 14s linear infinite}
.premium-gift-close{position:absolute;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:20;width:44px;height:44px;border:1px solid rgba(255,255,255,.15);border-radius:50%;color:#fff;background:rgba(255,255,255,.07);font-size:26px;cursor:pointer;touch-action:manipulation}
.premium-gift-stage{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;width:min(520px,94vw);text-align:center}
.premium-gift-eyebrow{padding:8px 14px;border:1px solid color-mix(in srgb,var(--gift-color) 45%,transparent);border-radius:999px;color:var(--gift-color);background:color-mix(in srgb,var(--gift-color) 9%,transparent);font-size:10px;font-weight:950;letter-spacing:.2em;opacity:0}
.premium-gift-arrival.is-active .premium-gift-eyebrow{animation:premiumGiftReveal .5s .65s forwards}
.premium-gift-main-art{position:relative;display:grid;place-items:center;width:220px;height:220px;margin:17px 0 -4px;filter:drop-shadow(0 0 28px color-mix(in srgb,var(--gift-color) 68%,transparent));opacity:0;transform:translateY(-70vh) rotate(-24deg) scale(.3)}
.premium-gift-main-art:before,.premium-gift-main-art:after{content:"";position:absolute;inset:9%;z-index:-1;border:2px solid color-mix(in srgb,var(--gift-color) 55%,transparent);border-radius:50%;animation:premiumGiftHalo 2.2s ease-out infinite}
.premium-gift-main-art:after{animation-delay:.8s}
.premium-gift-main-art img{width:100%;height:100%;object-fit:contain}.premium-gift-main-art>i{font-size:120px;color:var(--gift-color)}
.premium-gift-arrival.is-active .premium-gift-main-art{animation:premiumGiftDrop 1s .15s cubic-bezier(.16,.78,.2,1.16) forwards}
.premium-gift-stage h2{margin:0;font-size:clamp(29px,7vw,46px);line-height:1.05;letter-spacing:-.045em;text-shadow:0 0 28px color-mix(in srgb,var(--gift-color) 45%,transparent);opacity:0;transform:translateY(15px)}
.premium-gift-arrival.is-active h2{animation:premiumGiftReveal .5s .82s forwards}
.premium-gift-from{display:flex;align-items:center;gap:11px;margin-top:15px;padding:8px 13px 8px 8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);backdrop-filter:blur(12px);opacity:0}
.premium-gift-arrival.is-active .premium-gift-from{animation:premiumGiftReveal .45s 1s forwards}
.premium-gift-avatar{width:44px;height:44px;padding:2px;border-radius:50%;background:linear-gradient(135deg,var(--gift-color),#8b5cf6)}
.premium-gift-avatar img{width:100%;height:100%;border:2px solid #090b14;border-radius:50%;object-fit:cover}
.premium-gift-from div:last-child{display:grid;text-align:left}.premium-gift-from small{color:#8f9bad;font-size:9px;text-transform:uppercase;letter-spacing:.1em}.premium-gift-from strong{font-size:14px}
.premium-gift-message{max-width:430px;margin:13px 0 0;color:#c4cada;font-size:14px;line-height:1.45;opacity:0}.premium-gift-arrival.is-active .premium-gift-message{animation:premiumGiftReveal .4s 1.14s forwards}
.premium-gift-value{display:flex;gap:7px;align-items:center;margin-top:10px;color:var(--gift-color);font-size:11px;font-weight:850;opacity:0}.premium-gift-arrival.is-active .premium-gift-value{animation:premiumGiftReveal .4s 1.25s forwards}
.premium-gift-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(360px,88vw);margin-top:19px;opacity:0}.premium-gift-arrival.is-active .premium-gift-actions{animation:premiumGiftReveal .4s 1.35s forwards}
.premium-gift-actions button{height:50px;border:1px solid rgba(255,255,255,.16);border-radius:14px;color:#fff;background:rgba(255,255,255,.08);font-weight:850;cursor:pointer;touch-action:manipulation}
.premium-gift-actions button:last-child{border-color:color-mix(in srgb,var(--gift-color) 55%,transparent);color:#090b14;background:linear-gradient(115deg,var(--gift-color),#fff1a8)}
.premium-gift-actions button:active{transform:scale(.96)}
.premium-gift-floaters{position:absolute;inset:0;z-index:3;pointer-events:none}
.premium-gift-floaters span{--angle:calc(var(--i)*32.72deg);position:absolute;left:50%;top:50%;display:grid;place-items:center;width:74px;height:74px;opacity:0;filter:drop-shadow(0 0 13px var(--gift-color))}
.premium-gift-floaters img{width:100%;height:100%;object-fit:contain}.premium-gift-floaters i{font-size:48px;color:var(--gift-color)}
.premium-gift-arrival.is-active .premium-gift-floaters span{animation:premiumGiftFloat calc(4.8s + var(--i)*.18s) calc(.7s + var(--i)*.06s) ease-in-out infinite}
.premium-gift-arrival.is-legendary .premium-gift-main-art{width:250px;height:250px}.premium-gift-arrival.is-legendary .premium-gift-aurora{opacity:.55}
.premium-gift-arrival.is-storm{background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--gift-color) 30%,transparent),transparent 27%),linear-gradient(145deg,#101426,#02030a 72%)}
.premium-gift-arrival.is-storm .premium-gift-aurora{animation-duration:6s;filter:blur(52px)}
.premium-gift-arrival.is-storm .premium-gift-floaters span{animation-duration:3.2s}
.premium-gift-arrival.is-royal{background:radial-gradient(circle at 50% 42%,rgba(250,204,21,.21),transparent 30%),linear-gradient(155deg,#21102c,#07040d 72%)}
.premium-gift-arrival.is-royal .premium-gift-stage h2{font-family:Georgia,serif;letter-spacing:-.025em}
.premium-gift-arrival.is-royal .premium-gift-main-art{filter:drop-shadow(0 0 38px #facc15)}
@keyframes premiumGiftAurora{to{transform:rotate(360deg)}}
@keyframes premiumGiftStars{to{background-position:47px 94px,93px 159px}}
@keyframes premiumGiftDrop{0%{opacity:0;transform:translateY(-70vh) rotate(-24deg) scale(.3)}65%{opacity:1;transform:translateY(15px) rotate(4deg) scale(1.12)}82%{transform:translateY(-8px) rotate(-2deg) scale(.96)}100%{opacity:1;transform:none}}
@keyframes premiumGiftReveal{to{opacity:1;transform:none}}
@keyframes premiumGiftHalo{0%{opacity:.8;transform:scale(.7)}100%{opacity:0;transform:scale(1.55)}}
@keyframes premiumGiftFloat{0%{opacity:0;transform:rotate(var(--angle)) translateX(20vw) rotate(calc(var(--angle)*-1)) scale(.4)}18%,78%{opacity:.72}50%{transform:rotate(calc(var(--angle) + 13deg)) translateX(min(42vw,390px)) rotate(calc((var(--angle) + 13deg)*-1)) translateY(-22px) scale(1)}100%{opacity:0;transform:rotate(calc(var(--angle) + 28deg)) translateX(20vw) rotate(calc((var(--angle) + 28deg)*-1)) scale(.45)}}
@media(max-width:600px){
  .premium-gift-main-art{width:166px;height:166px}.premium-gift-arrival.is-legendary .premium-gift-main-art{width:185px;height:185px}
  .premium-gift-floaters span{width:52px;height:52px}.premium-gift-floaters i{font-size:34px}
  .premium-gift-message{max-width:86vw}.premium-gift-actions{margin-top:15px}
}
@media(prefers-reduced-motion:reduce){
  .premium-gift-aurora,.premium-gift-stars,.premium-gift-main-art:before,.premium-gift-main-art:after,.premium-gift-floaters span{animation:none!important}
  .premium-gift-eyebrow,.premium-gift-main-art,.premium-gift-stage h2,.premium-gift-from,.premium-gift-message,.premium-gift-value,.premium-gift-actions{opacity:1;transform:none}
}

/* Social network help page */
.social-help-body{background:radial-gradient(circle at 15% -8%,rgba(45,212,191,.20),transparent 34rem),radial-gradient(circle at 87% 2%,rgba(244,114,182,.15),transparent 30rem),linear-gradient(135deg,#05070d 0%,#0b0e18 45%,#111827 100%)}
.social-help-shell{max-width:1240px}
.social-help-hero{overflow:hidden;border-color:rgba(255,255,255,.11);background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.035)),radial-gradient(circle at 80% 10%,rgba(45,212,191,.16),transparent 26rem)}
.social-help-hero h1{max-width:760px}.social-help-hero p{max-width:780px}
.social-help-toc{margin-top:22px;display:flex;flex-wrap:wrap;gap:9px}
.social-help-toc a{padding:10px 13px;border:1px solid rgba(255,255,255,.10);border-radius:999px;color:#dbeafe;text-decoration:none;background:rgba(255,255,255,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.social-help-toc a:hover{color:#06111f;background:linear-gradient(135deg,#67e8f9,#a7f3d0)}
.social-help-screen{width:min(360px,100%);justify-self:end;padding:15px;border:1px solid rgba(255,255,255,.13);border-radius:30px;background:linear-gradient(145deg,rgba(13,16,26,.96),rgba(20,24,37,.88)),radial-gradient(circle at 20% 15%,rgba(45,212,191,.18),transparent 14rem);box-shadow:0 28px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.10)}
.social-help-screen-top,.social-help-profile-card,.social-help-mini-tabs,.social-help-gift-row{display:flex;align-items:center}
.social-help-screen-top{justify-content:space-between;color:#dbeafe;font-size:.84rem}.social-help-screen-top span{width:42px;height:5px;border-radius:99px;background:rgba(255,255,255,.18)}.social-help-screen-top em{color:#86efac;font-style:normal;font-weight:800}
.social-help-profile-card{gap:12px;margin-top:15px;padding:13px;border-radius:22px;background:rgba(255,255,255,.07)}
.social-help-profile-card img,.social-help-chatshot img,.social-help-nudge-demo img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.social-help-profile-card div{min-width:0;flex:1}.social-help-profile-card strong{color:#fff;display:block}.social-help-profile-card small{color:#93a4b8}
.social-help-pop{padding:8px 10px;border-radius:999px;color:#052016;font-weight:900;background:linear-gradient(135deg,#facc15,#34d399)}
.social-help-mini-tabs{gap:7px;margin:13px 0}.social-help-mini-tabs span{flex:1;padding:9px 6px;border-radius:14px;text-align:center;color:#94a3b8;background:rgba(255,255,255,.05);font-size:.82rem}.social-help-mini-tabs .is-active{color:#06111f;background:#a7f3d0;font-weight:900}
.social-help-gift-row{gap:8px}.social-help-gift-row span{flex:1;min-height:62px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(255,255,255,.06);font-size:1.45rem;position:relative}.social-help-gift-row b{position:absolute;right:7px;bottom:6px;color:#86efac;font-size:.75rem}
.social-help-screen button,.social-help-nudge-demo button{width:100%;margin-top:13px;border:0;border-radius:16px;padding:12px;color:#06111f;font-weight:900;background:linear-gradient(135deg,#67e8f9,#a7f3d0);cursor:pointer}
.social-help-layout{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.social-help-card{min-height:0;padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035)),rgba(8,11,20,.82);box-shadow:0 18px 45px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)}.social-help-card.is-wide{grid-column:1/-1}
.social-help-card h2{margin:10px 0 8px;color:#fff;font-size:1.25rem}.social-help-card p,.social-help-card li{color:#aebbd0;line-height:1.55}.social-help-card ul{margin:12px 0 0;padding-left:19px}.social-help-card b{color:#f8fafc}
.social-help-chatshot{display:grid;gap:9px;margin:13px 0;padding:12px;border-radius:22px;background:rgba(0,0,0,.18)}.social-help-chatshot .msg{display:flex;align-items:end;gap:8px}.social-help-chatshot .msg span{max-width:78%;padding:10px 12px;border-radius:16px;color:#e5edf7;background:rgba(255,255,255,.08)}.social-help-chatshot .me{justify-content:flex-end}.social-help-chatshot .me span{color:#062016;background:linear-gradient(135deg,#67e8f9,#a7f3d0);font-weight:800}.social-help-chatshot .typing{color:#86efac;font-size:.84rem}
.social-help-gift-grid{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:10px;margin:16px 0}.social-help-gift-grid div{min-height:118px;display:grid;align-content:center;gap:6px;padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:22px;text-align:center;background:rgba(255,255,255,.055)}.social-help-gift-grid div.premium{border-color:rgba(250,204,21,.36);background:radial-gradient(circle at 50% 0,rgba(250,204,21,.22),transparent 80%),rgba(255,255,255,.055)}.social-help-gift-grid span{font-size:2rem}.social-help-gift-grid b{display:block}.social-help-gift-grid small{color:#99a8bd;line-height:1.35}
.social-help-pop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:15px 0}.social-help-pop-grid div{padding:14px;border-radius:21px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09)}.social-help-pop-grid i{color:#67e8f9;font-size:1.25rem}.social-help-pop-grid b,.social-help-pop-grid span{display:block;margin-top:8px}.social-help-pop-grid span{color:#aebbd0}
.social-help-note{padding:13px;border-radius:18px;border:1px solid rgba(103,232,249,.18);background:rgba(103,232,249,.07)}
.social-help-nudge-demo{max-width:420px;margin:15px auto;padding:22px;display:grid;place-items:center;gap:8px;border-radius:30px;color:#fff;text-align:center;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 15%,rgba(244,114,182,.32),transparent 14rem),linear-gradient(135deg,rgba(15,23,42,.96),rgba(88,28,135,.72));box-shadow:0 22px 54px rgba(0,0,0,.34)}.social-help-nudge-demo .pulse{position:absolute;inset:-35%;background:conic-gradient(from 180deg,transparent,rgba(103,232,249,.24),transparent,rgba(244,114,182,.22),transparent);animation:socialHelpSpin 5s linear infinite}.social-help-nudge-demo>*:not(.pulse){position:relative;z-index:1}.social-help-nudge-demo img{width:78px;height:78px;border:3px solid rgba(255,255,255,.65);box-shadow:0 0 0 8px rgba(255,255,255,.08)}.social-help-nudge-demo strong{font-size:1.25rem}.social-help-nudge-demo span{color:#dbeafe}.social-help-nudge-demo div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}.social-help-nudge-demo button{margin-top:8px}
@keyframes socialHelpSpin{to{transform:rotate(360deg)}}
@media(max-width:1040px){.social-help-gift-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.social-help-pop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.social-help-screen{justify-self:stretch}.social-help-layout{grid-template-columns:1fr}.social-help-card.is-wide{grid-column:auto}.social-help-gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-help-pop-grid{grid-template-columns:1fr}}
@media(max-width:430px){.social-help-gift-grid{grid-template-columns:1fr}}

.id-register-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 2px}
.id-register-stepper span{min-height:38px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.18);border-radius:14px;color:#94a3b8;background:rgba(15,23,42,.72);font-size:.78rem;font-weight:900}
.id-register-stepper span.is-active{color:#06111f;border-color:rgba(103,232,249,.55);background:linear-gradient(135deg,#67e8f9,#a7f3d0);box-shadow:0 10px 24px rgba(45,212,191,.18)}
.id-register-stepper span.is-done{color:#bbf7d0;border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.12)}
.id-register-next{grid-column:1/-1!important;background:linear-gradient(135deg,#22c55e,#67e8f9)!important;color:#04111f!important}
.id-register-hint{grid-column:1/-1;padding:10px 12px;border:1px solid rgba(103,232,249,.16);border-radius:14px;color:#9fb0c8;background:rgba(103,232,249,.065);font-size:.78rem;line-height:1.35}
.id-document-step{display:grid;gap:12px}
.id-document-step[hidden],.id-register-credentials[hidden]{display:none!important}

.cafe-login-body .cafe-login-card{
  width:min(440px,calc(100% - 22px));
  gap:16px;
  padding:24px;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% -8%,rgba(103,232,249,.20),transparent 18rem),
    linear-gradient(145deg,rgba(16,20,32,.96),rgba(5,8,14,.94));
  box-shadow:0 30px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.10);
}
.cafe-login-body .cafe-login-card:before{
  content:"";
  position:absolute;
  inset:12px;
  z-index:-1;
  border-radius:34px;
  background:linear-gradient(135deg,rgba(103,232,249,.26),rgba(167,243,208,.08),rgba(244,114,182,.14));
  filter:blur(26px);
  opacity:.65;
}
.cafe-login-mark{
  width:76px!important;
  height:76px!important;
  margin:2px auto 0!important;
  font-size:2.3rem!important;
  box-shadow:0 18px 45px rgba(45,212,191,.26),0 0 0 10px rgba(255,255,255,.035);
}
.cafe-login-body .cafe-login-card .cafe-kicker{text-align:center}
.cafe-login-body .cafe-login-card h1{text-align:center;font-size:clamp(2rem,9vw,2.85rem);line-height:.95}
.cafe-login-body .cafe-login-card p{max-width:330px;margin:0 auto;color:#aebbd0;text-align:center}
.cafe-login-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0}
.cafe-login-steps span{min-height:48px;display:grid;place-items:center;gap:3px;border:1px solid rgba(255,255,255,.08);border-radius:17px;color:#cbd5e1;background:rgba(255,255,255,.055);font-size:.76rem;font-weight:850}
.cafe-login-steps b{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;color:#052016;background:#a7f3d0;font-size:.78rem}
.cafe-login-body .cafe-login-id-fast{
  min-height:82px;
  grid-template-columns:58px minmax(0,1fr) 38px;
  padding:14px;
  border-radius:24px;
  color:#04111f;
  background:linear-gradient(135deg,#67e8f9,#a7f3d0 62%,#fef08a);
  box-shadow:0 20px 42px rgba(45,212,191,.24);
}
.cafe-login-body .cafe-login-id-fast:hover{transform:translateY(-2px);filter:saturate(1.08) brightness(1.03)}
.cafe-login-body .cafe-login-id-fast>i{
  width:58px;
  height:58px;
  color:#04111f;
  background:rgba(255,255,255,.50);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.cafe-login-body .cafe-login-id-fast strong{font-size:1.17rem;color:#04111f}
.cafe-login-body .cafe-login-id-fast small{color:rgba(4,17,31,.72);font-weight:850}
.cafe-login-body .cafe-login-id-fast em{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font-style:normal;background:rgba(4,17,31,.10)}
.cafe-login-mini-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#8fa1ba;font-size:.82rem;text-align:center}
.cafe-login-mini-note i{color:#86efac}

.id-register-form.id-register-simple{width:min(100%,480px);gap:12px}
.id-register-form.id-register-simple .id-register-credentials{grid-template-columns:1fr}
.id-register-form.id-register-simple .id-manual-name-fields{padding:0;border:0;background:transparent}
.id-register-form.id-register-simple .id-register-next,
.id-register-form.id-register-simple #idRegisterSubmit{min-height:54px;border-radius:18px;font-size:1rem}
.id-register-form.id-register-simple .id-document-upload{min-height:104px;border-radius:22px}
.id-register-form.id-register-simple .id-scan-status{border-radius:16px;font-size:.84rem}
.id-register-form.is-final-loading{position:relative;overflow:hidden}
.id-register-form.is-final-loading .id-document-step{filter:blur(2px);opacity:.28;pointer-events:none}
.id-final-loading{
  position:absolute;
  inset:10px;
  z-index:20;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  padding:22px;
  border:1px solid rgba(103,232,249,.22);
  border-radius:26px;
  text-align:center;
  color:#eaffff;
  background:
    radial-gradient(circle at 50% 18%,rgba(103,232,249,.24),transparent 14rem),
    radial-gradient(circle at 12% 90%,rgba(167,243,208,.15),transparent 12rem),
    rgba(5,8,14,.92);
  backdrop-filter:blur(14px);
  box-shadow:0 22px 60px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.08);
}
.id-final-loading[hidden]{display:none!important}
.id-final-loader{
  position:relative;
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
}
.id-final-loader>i{
  position:absolute;
  inset:0;
  border:2px solid transparent;
  border-top-color:#67e8f9;
  border-right-color:rgba(167,243,208,.72);
  border-radius:50%;
  animation:idFinalSpin 1.1s linear infinite;
}
.id-final-loader>i:nth-child(2){inset:12px;animation-duration:1.55s;animation-direction:reverse;border-top-color:#facc15;border-right-color:rgba(250,204,21,.35)}
.id-final-loader>i:nth-child(3){inset:24px;animation-duration:1.9s;border-top-color:#a7f3d0;border-right-color:rgba(103,232,249,.35)}
.id-final-loader span{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:18px;
  color:#04111f;
  background:linear-gradient(135deg,#67e8f9,#a7f3d0);
  box-shadow:0 0 34px rgba(45,212,191,.34);
}
.id-final-loading strong{font-size:1.35rem;letter-spacing:-.03em}
.id-final-loading small{color:#aebbd0;font-weight:750}
.id-final-progress{
  width:min(230px,82%);
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.09);
}
.id-final-progress span{
  display:block;
  width:42%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#67e8f9,#a7f3d0,#fef08a);
  animation:idFinalBar 1.35s ease-in-out infinite;
}
@keyframes idFinalSpin{to{transform:rotate(360deg)}}
@keyframes idFinalBar{0%{transform:translateX(-110%)}55%{transform:translateX(80%)}100%{transform:translateX(250%)}}

/* Premium shop with live effect preview */
.shop-shell{width:100%;max-width:1180px;margin:0 auto;padding:12px;color:#e8edf4}
.shop-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:28px;background:radial-gradient(circle at 80% 0,rgba(103,232,249,.16),transparent 20rem),linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035));box-shadow:0 20px 52px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)}
.shop-kicker{display:inline-flex;margin-bottom:7px;color:#67e8f9;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.16em}.shop-hero h1{margin:0;color:#fff;font-size:clamp(1.55rem,4.7vw,2.65rem);letter-spacing:-.055em;line-height:.98}.shop-hero p{max-width:560px;margin:8px 0 0;color:#9fb0c8;line-height:1.45}
.shop-wallet{min-width:106px;padding:12px 14px;display:grid;place-items:center;border:1px solid rgba(250,204,21,.24);border-radius:22px;background:radial-gradient(circle at 50% 0,rgba(250,204,21,.18),transparent 80%),rgba(255,255,255,.05)}.shop-wallet i{color:#facc15}.shop-wallet span{color:#fff;font-size:1.35rem;font-weight:950}.shop-wallet small{color:#aebbd0;font-size:.72rem}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.shop-tabs,.shop-filters{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.shop-tabs::-webkit-scrollbar,.shop-filters::-webkit-scrollbar{display:none}.shop-tabs button,.shop-filters button{min-height:40px;padding:0 13px;border:1px solid rgba(255,255,255,.10);border-radius:999px;color:#cbd5e1;background:rgba(255,255,255,.055);font-weight:850;white-space:nowrap;cursor:pointer}.shop-tabs button.is-active,.shop-filters button.is-active{color:#04111f;border-color:transparent;background:linear-gradient(135deg,#67e8f9,#a7f3d0)}
#shopList.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.shop-card{position:relative;min-height:0;display:grid;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:26px;text-align:left;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.03)),rgba(8,11,20,.84);box-shadow:0 16px 42px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.07);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.shop-card:hover{transform:translateY(-3px);border-color:rgba(103,232,249,.30);background:linear-gradient(145deg,rgba(103,232,249,.10),rgba(255,255,255,.035)),rgba(8,11,20,.9)}.shop-card.is-active-effect{border-color:rgba(34,197,94,.42);box-shadow:0 18px 46px rgba(34,197,94,.09),inset 0 1px 0 rgba(255,255,255,.08)}.shop-card .sh-badge{position:absolute;right:12px;top:12px;z-index:2;padding:6px 9px;border-radius:999px;color:#052016;background:#86efac;font-size:.72rem;font-weight:950}.shop-card .sh-badge.is-active{background:#facc15;color:#211707}
.shop-card-preview{min-height:126px;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:radial-gradient(circle at 50% 0,rgba(103,232,249,.11),transparent 74%),rgba(0,0,0,.18)}
.shop-card-preview *,.shop-card-preview *::before,.shop-card-preview *::after{animation:none!important;transition:none!important}
.shop-card-preview .shop-preview-avatar img,.shop-card-preview .shop-preview-name strong,.shop-card-preview .shop-preview-message span{filter:saturate(.92);transform:none!important}
.shop-preview-avatar img{width:82px;height:82px;object-fit:cover;border-radius:50%}.shop-preview-name,.shop-preview-message{display:flex;align-items:center;gap:10px;max-width:100%;padding:10px}.shop-preview-name img,.shop-preview-message img{width:42px;height:42px;border-radius:50%;object-fit:cover}.shop-preview-name strong{min-width:0;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.1rem}.shop-preview-message{align-items:flex-start}.shop-preview-message span{max-width:170px;font-size:.86rem}
.shop-card-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.shop-type-pill,.shop-price{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:900}.shop-type-pill{color:#bfdbfe;background:rgba(96,165,250,.10);border:1px solid rgba(96,165,250,.16)}.shop-price{color:#fde68a;background:rgba(250,204,21,.10);border:1px solid rgba(250,204,21,.20)}
.shop-card .sh-name{margin:0;color:#fff;font-size:1.05rem;font-weight:950;letter-spacing:-.025em}.shop-card .sh-desc{min-height:38px;margin:0;color:#9fb0c8;font-size:.84rem;line-height:1.42}.shop-actions{display:grid;grid-template-columns:1fr 1.1fr;gap:8px;margin-top:2px}.shop-preview-btn,.shop-main-btn{min-height:43px;border:1px solid rgba(255,255,255,.10);border-radius:15px;font-weight:950;cursor:pointer}.shop-preview-btn{color:#dbeafe;background:rgba(255,255,255,.06)}.shop-preview-btn:hover{border-color:rgba(103,232,249,.38);background:rgba(103,232,249,.10)}.shop-main-btn{color:#04111f;background:linear-gradient(135deg,#67e8f9,#a7f3d0);box-shadow:0 10px 24px rgba(45,212,191,.13)}.shop-main-btn.owned{color:#bbf7d0;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.30);box-shadow:none}.shop-main-btn.is-danger{color:#fecaca;background:rgba(239,68,68,.12);border-color:rgba(248,113,113,.22);box-shadow:none}.shop-main-btn:disabled{opacity:.72;cursor:not-allowed}
.shop-empty{grid-column:1/-1;min-height:180px;display:grid;place-items:center;align-content:center;gap:8px;border:1px dashed rgba(255,255,255,.14);border-radius:26px;color:#94a3b8;background:rgba(255,255,255,.035)}.shop-empty i{font-size:2rem;color:#67e8f9}.shop-empty strong{color:#fff}
.shop-preview-modal{position:fixed;inset:0;z-index:100020;display:none;place-items:center;padding:18px}.shop-preview-modal.is-open{display:grid}.shop-preview-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(8px)}.shop-preview-panel{position:relative;z-index:1;width:min(520px,96vw);max-height:min(720px,92dvh);overflow:auto;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:30px;color:#e8edf4;background:radial-gradient(circle at 50% 0,rgba(103,232,249,.18),transparent 22rem),linear-gradient(145deg,#111827,#060913);box-shadow:0 34px 100px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.09)}.shop-preview-close{position:absolute;right:12px;top:12px;width:40px;height:40px;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:#fff;background:rgba(255,255,255,.07);cursor:pointer}.shop-preview-kicker{display:inline-flex;margin-bottom:8px;color:#67e8f9;font-size:.7rem;font-weight:950;letter-spacing:.16em;text-transform:uppercase}.shop-preview-panel h2{margin:0 44px 6px 0;color:#fff;font-size:1.6rem;letter-spacing:-.04em}.shop-preview-panel p{margin:0;color:#aebbd0;line-height:1.45}.shop-preview-stage{min-height:230px;margin:16px 0;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:26px;background:radial-gradient(circle at 50% 12%,rgba(167,243,208,.13),transparent 16rem),rgba(255,255,255,.045)}
.shop-big-avatar img{width:132px;height:132px;border-radius:50%;object-fit:cover}.shop-big-name{display:grid;place-items:center;gap:10px;text-align:center}.shop-big-name img{width:78px;height:78px;border-radius:50%;object-fit:cover}.shop-big-name strong{font-size:1.55rem}.shop-big-name span{color:#94a3b8}.shop-big-chat{width:min(360px,100%);display:grid;gap:10px}.shop-big-row{display:flex;gap:10px;align-items:flex-start}.shop-big-row img{width:46px;height:46px;border-radius:50%;object-fit:cover}.shop-big-row div{display:grid;gap:6px}.shop-big-row strong{color:#fff}.shop-big-row span{display:inline-block;max-width:270px}
.shop-preview-foot{display:flex;justify-content:space-between;gap:10px;align-items:center}.shop-preview-foot span{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;color:#fde68a;background:rgba(250,204,21,.10);font-weight:950}.shop-preview-foot small{color:#94a3b8}
.shop-preview-stage{position:relative;isolation:isolate}.shop-preview-stage:before{content:"";position:absolute;inset:14px;z-index:-1;border-radius:28px;background:radial-gradient(circle at 50% 50%,rgba(103,232,249,.18),transparent 60%);filter:blur(18px);opacity:0}.shop-preview-modal.is-playing .shop-preview-stage:before{animation:shopPreviewGlow 1.8s ease both}
.shop-preview-orbit{position:absolute;inset:0;pointer-events:none;opacity:0}.shop-preview-orbit i{position:absolute;width:7px;height:7px;border-radius:50%;background:#67e8f9;box-shadow:0 0 16px #67e8f9}.shop-preview-orbit i:nth-child(1){left:18%;top:22%}.shop-preview-orbit i:nth-child(2){right:20%;top:28%;background:#facc15;box-shadow:0 0 16px #facc15}.shop-preview-orbit i:nth-child(3){left:25%;bottom:20%;background:#a7f3d0;box-shadow:0 0 16px #a7f3d0}.shop-preview-orbit i:nth-child(4){right:24%;bottom:23%;background:#c084fc;box-shadow:0 0 16px #c084fc}.shop-preview-modal.is-playing .shop-preview-orbit{animation:shopPreviewOrbit 1.4s ease both}
.shop-preview-modal.is-playing .shop-big-avatar,.shop-preview-modal.is-playing .shop-big-name,.shop-preview-modal.is-playing .shop-big-chat{animation:shopPreviewPop .62s cubic-bezier(.2,.85,.18,1.2) both}
.shop-preview-modal.is-playing .shop-big-name strong,.shop-preview-modal.is-playing .shop-big-row span,.shop-preview-modal.is-playing .shop-big-avatar img{animation-delay:.08s}
.shop-preview-foot button{min-height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(103,232,249,.22);border-radius:999px;color:#dbeafe;background:rgba(103,232,249,.08);font-weight:900;cursor:pointer}.shop-preview-foot button:hover{background:rgba(103,232,249,.15);border-color:rgba(103,232,249,.42)}
@keyframes shopPreviewPop{0%{opacity:0;transform:translateY(18px) scale(.86);filter:blur(5px)}65%{opacity:1;transform:translateY(-3px) scale(1.04);filter:blur(0)}100%{opacity:1;transform:none;filter:none}}
@keyframes shopPreviewGlow{0%{opacity:0;transform:scale(.72)}45%{opacity:1;transform:scale(1.08)}100%{opacity:.42;transform:scale(1)}}
@keyframes shopPreviewOrbit{0%{opacity:0;transform:scale(.6) rotate(-18deg)}30%{opacity:1}100%{opacity:0;transform:scale(1.25) rotate(36deg)}}
@media(max-width:760px){.shop-shell{padding:8px}.shop-hero{align-items:stretch;flex-direction:column;border-radius:22px}.shop-toolbar{align-items:stretch;flex-direction:column}#shopList.shop-grid{grid-template-columns:1fr}.shop-actions{grid-template-columns:1fr}.shop-preview-panel{border-radius:24px}.shop-preview-foot{align-items:flex-start;flex-direction:column}}

/* Shop live preview support: effects need real boxes so movement/glow is visible */
.shop-preview-modal .shop-effect-preview-live,
.shop-preview-modal .shop-big-name,
.shop-preview-modal .shop-big-chat,
.shop-preview-modal .shop-big-avatar {
  transform-style: preserve-3d;
  perspective: 900px;
}
.shop-preview-modal .shop-big-name strong,
.shop-preview-modal .shop-big-row span,
.shop-preview-modal .shop-big-avatar img {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  max-width: min(76vw, 360px);
  isolation: isolate;
  will-change: transform, filter, opacity, background-position, text-shadow;
}
.shop-preview-modal .shop-big-name strong {
  min-height: 48px;
  padding: 0 8px;
  overflow: visible;
  white-space: nowrap;
}
.shop-preview-modal .shop-big-row span {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 18px;
  overflow: visible;
  white-space: normal;
}
.shop-preview-modal .shop-big-avatar img {
  display: block;
  overflow: visible;
}
.shop-preview-modal.is-playing .shop-big-name strong::before,
.shop-preview-modal.is-playing .shop-big-name strong::after,
.shop-preview-modal.is-playing .shop-big-row span::before,
.shop-preview-modal.is-playing .shop-big-row span::after,
.shop-preview-modal.is-playing .shop-big-avatar img::before,
.shop-preview-modal.is-playing .shop-big-avatar img::after {
  pointer-events: none;
}

/* Shop effect device modes */
.shop-preview-modal .shop-preview-panel{
  width:min(840px,96vw);
}
.shop-device-preview-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(210px,.72fr);
  gap:12px;
  margin:16px 0;
}
.shop-device-preview{
  min-width:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:8px;
}
.shop-device-preview header{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 2px;
  color:#e5eefc;
  font-weight:950;
}
.shop-device-preview header i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  color:#67e8f9;
  background:rgba(103,232,249,.08);
}
.shop-device-preview header small{
  margin-left:auto;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  color:#9fb0c8;
  background:rgba(255,255,255,.045);
  font-size:.68rem;
}
.shop-device-preview .shop-preview-stage{
  min-height:220px;
  margin:0;
}
.shop-device-mobile .shop-preview-stage{
  min-height:220px;
  border-radius:28px;
  background:
    linear-gradient(180deg,rgba(15,23,42,.96),rgba(3,7,18,.98)),
    rgba(255,255,255,.04);
}
.shop-device-mobile .shop-preview-stage:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:8px;
  width:74px;
  height:4px;
  border-radius:999px;
  background:rgba(226,232,240,.18);
  transform:translateX(-50%);
}
.shop-device-mobile .shop-preview-orbit{display:none!important}
.shop-device-mobile,
.shop-device-mobile *,
.shop-device-mobile *::before,
.shop-device-mobile *::after{
  animation:none!important;
  transition:none!important;
}
.shop-device-mobile .shop-sample-mobile,
.shop-device-mobile .shop-sample-mobile *,
.shop-device-mobile .shop-sample-mobile *::before,
.shop-device-mobile .shop-sample-mobile *::after{
  animation:none!important;
  transition:none!important;
  transform:none!important;
  will-change:auto!important;
}
.shop-device-mobile .shop-big-name strong,
.shop-device-mobile .shop-big-row span,
.shop-device-mobile .shop-big-avatar img{
  filter:saturate(1.06) contrast(1.03);
}

/* Mobile runtime mode: keep bought effects stylish but static and cheap to render */
@media(max-width:720px){
  .shop-device-preview-grid{
    grid-template-columns:1fr;
  }
  .shop-device-preview .shop-preview-stage{
    min-height:190px;
  }
}
@media(max-width:720px), (prefers-reduced-motion: reduce){
  [class*="name-effect--"],
  [class*="avatar-frame--"],
  .c-msg-text[class*="msg-style--"],
  .msg-text[class*="msg-style--"],
  [class*="name-effect--"]::before,
  [class*="name-effect--"]::after,
  [class*="avatar-frame--"]::before,
  [class*="avatar-frame--"]::after,
  .c-msg-text[class*="msg-style--"]::before,
  .c-msg-text[class*="msg-style--"]::after,
  .msg-text[class*="msg-style--"]::before,
  .msg-text[class*="msg-style--"]::after{
    animation:none!important;
    transition:none!important;
    transform:none!important;
    will-change:auto!important;
  }
  [class*="name-effect--"]{
    background-size:100% 100%!important;
    filter:saturate(1.04) contrast(1.02)!important;
    text-shadow:0 1px 0 rgba(255,255,255,.08),0 0 10px rgba(125,211,252,.18),0 8px 18px rgba(0,0,0,.34)!important;
  }
  [class*="avatar-frame--"]{
    filter:saturate(1.04) contrast(1.02)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.34),0 0 0 3px rgba(148,163,184,.14),0 0 18px rgba(103,232,249,.13)!important;
  }
  .c-msg-text[class*="msg-style--"],
  .msg-text[class*="msg-style--"]{
    background-size:100% 100%!important;
    filter:saturate(1.02)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.08)!important;
  }
}
body.mobile-client [class*="name-effect--"],
body.mobile-client [class*="avatar-frame--"],
body.mobile-client .c-msg-text[class*="msg-style--"],
body.mobile-client .msg-text[class*="msg-style--"],
html.mobile-client [class*="name-effect--"],
html.mobile-client [class*="avatar-frame--"],
html.mobile-client .c-msg-text[class*="msg-style--"],
html.mobile-client .msg-text[class*="msg-style--"],
body.mobile-client [class*="name-effect--"]::before,
body.mobile-client [class*="name-effect--"]::after,
body.mobile-client [class*="avatar-frame--"]::before,
body.mobile-client [class*="avatar-frame--"]::after,
body.mobile-client .c-msg-text[class*="msg-style--"]::before,
body.mobile-client .c-msg-text[class*="msg-style--"]::after,
body.mobile-client .msg-text[class*="msg-style--"]::before,
body.mobile-client .msg-text[class*="msg-style--"]::after{
  animation:none!important;
  transition:none!important;
  transform:none!important;
  will-change:auto!important;
}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){
  [class*="name-effect--"]{
    text-rendering:geometricPrecision;
    backface-visibility:hidden;
    transform-style:preserve-3d;
  }
  .msg-header [class*="name-effect--"],
  .online-person-name[class*="name-effect--"],
  .username[class*="name-effect--"],
  .dm-mini-name[class*="name-effect--"]{
    filter:drop-shadow(0 8px 16px rgba(0,0,0,.22));
  }
  [class*="avatar-frame--"]{
    backface-visibility:hidden;
    transform-style:preserve-3d;
  }
  .avatar-wrap[class*="avatar-frame--"],
  .online-person-avatar-wrap[class*="avatar-frame--"],
  .dm-mini-avatar-wrap[class*="avatar-frame--"]{
    isolation:isolate;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.24));
  }
  .c-msg-text[class*="msg-style--"],
  .msg-text[class*="msg-style--"]{
    backface-visibility:hidden;
    transform-style:preserve-3d;
  }
  .shop-device-desktop .shop-preview-stage{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 54px rgba(0,0,0,.20);
  }
  .shop-device-desktop .shop-preview-stage:before{
    opacity:.28;
  }
}


/* Online sidebar user box - isolated from legacy .username/.avatar-wrap rules */
#onlineUsers .user-card.online-user-box{
  height:122px;
  min-height:122px;
  padding:8px 6px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  overflow:hidden;
}
#onlineUsers .online-avatar-shell{
  position:relative;
  width:auto;
  height:auto;
  display:grid;
  place-items:center;
  flex:0 0 52px;
  border-radius:50%;
}
#onlineUsers .online-avatar-img{
  width:52px;
  height:52px;
  display:block;
  object-fit:cover;
  border-radius:50%;
  border:2px solid rgba(191,219,254,.24);
  box-shadow:0 8px 18px rgba(0,0,0,.30);
}
#onlineUsers .online-user-name-line{
  width:100%;
  min-height:18px;
  margin-top:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
#onlineUsers .online-user-nick{
  display:block;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  line-height:1.15;
  font-size:.72rem;
  font-weight:900;
}
#onlineUsers .online-user-nick:not([class*="name-effect--"]){
  color:#dbeafe;
}
#onlineUsers .online-user-nick[class*="name-effect--"]{
  padding:0 2px;
}
#onlineUsers .online-user-meta{
  width:100%;
  min-height:22px;
  margin-top:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
#onlineUsers .online-user-pop{
  min-width:52px;
  max-width:68px;
  height:21px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:999px;
  color:#fce7f3;
  background:radial-gradient(circle at 12% 50%,rgba(244,114,182,.18),transparent 44%),linear-gradient(135deg,rgba(45,24,39,.96),rgba(21,24,32,.98));
  border:1px solid rgba(244,114,182,.22);
  box-shadow:0 5px 12px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.07);
  font-size:.64rem;
  font-weight:950;
  line-height:1;
}
#onlineUsers .online-user-pop i{
  width:auto;
  height:auto;
  flex:0 0 auto;
  display:inline-block;
  color:#fb7185;
  background:none;
  box-shadow:none;
  font-size:.56rem;
}
#onlineUsers .online-user-pop b{
  max-width:38px;
  overflow:hidden;
  text-overflow:ellipsis;
}
#onlineUsers .online-user-boost{
  width:17px;
  height:17px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  color:#052016;
  background:#67e8f9;
  box-shadow:0 3px 8px rgba(0,0,0,.18);
  font-size:.48rem;
}
#onlineUsers .user-card.online-user-box:hover{
  border-color:rgba(103,232,249,.30);
}
@media(max-width:760px){
  #onlineUsers .user-card.online-user-box{
    height:112px;
    min-height:112px;
    padding:7px 5px 6px;
  }
  #onlineUsers .online-avatar-shell{
    flex-basis:44px;
  }
  #onlineUsers .online-avatar-img{
    width:44px;
    height:44px;
  }
  #onlineUsers .online-user-name-line{
    min-height:16px;
    margin-top:5px;
  }
  #onlineUsers .online-user-nick{
    font-size:.64rem;
  }
  #onlineUsers .online-user-meta{
    min-height:19px;
    margin-top:4px;
    gap:3px;
  }
  #onlineUsers .online-user-pop{
    min-width:42px;
    max-width:56px;
    height:18px;
    padding:0 6px;
    font-size:.54rem;
  }
  #onlineUsers .online-user-pop i{
    font-size:.44rem;
  }
  #onlineUsers .online-user-boost{
    width:15px;
    height:15px;
    font-size:.44rem;
  }
}

/* Mobile stable YouTube player: small visible player, no aggressive sync */
@media(max-width:720px){
  body.yt-mobile-audio-active .yt-mini-bar{display:none!important}
  body.yt-mobile-video-active,
  body.yt-mobile-audio-active{
    --yt-mobile-player-h: 142px;
    --yt-mobile-player-top: 56px;
  }
  body.yt-mobile-audio-active .yt-chat-spot{
    display:block!important;
    position:fixed!important;
    top:var(--yt-mobile-player-top)!important;
    left:6px!important;
    right:6px!important;
    width:calc(100% - 12px)!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.10)!important;
    border-radius:13px!important;
    opacity:1!important;
    overflow:hidden!important;
    pointer-events:auto!important;
    background:#020617!important;
    box-shadow:0 10px 22px rgba(0,0,0,.30)!important;
    z-index:2147483000!important;
    transform:translateZ(0)!important;
    contain:layout paint!important;
  }
  body.yt-mobile-audio-active:not(.yt-mobile-player-started) .yt-chat-spot{
    display:none!important;
  }
  body.yt-mobile-audio-active .yt-mobile-play{
    display:none!important;
  }
  body.yt-mobile-audio-active .yt-chat-spot-head{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    height:27px;
    justify-content:flex-end;
    padding:2px 5px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(2,6,23,.76);
  }
  body.yt-mobile-audio-active .yt-chat-spot-head span{display:none!important}
  body.yt-mobile-audio-active .yt-chat-spot-head>div{display:flex;gap:6px}
  body.yt-mobile-audio-active .yt-chat-spot-head button{
    width:26px;
    height:23px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.10);
    border-radius:8px;
    color:#e5eefc;
    background:rgba(255,255,255,.07);
  }
  body.yt-mobile-audio-active .yt-chat-spot-head #ytSpotPlay{
    color:#07111f;
    background:linear-gradient(135deg,#86efac,#67e8f9);
  }
  body.yt-mobile-audio-active .yt-chat-spot #ytPlayer{
    display:none!important;
  }
  body.yt-mobile-audio-active .yt-chat-spot .yt-mobile-player,
  body.yt-mobile-audio-active .yt-chat-spot .yt-mobile-player iframe{
    display:block!important;
    width:100%!important;
    height:var(--yt-mobile-player-h)!important;
    opacity:1!important;
    pointer-events:auto!important;
    border:0!important;
    background:#020617!important;
  }
  body.yt-mobile-audio-active .yt-spot-queue{
    display:none!important;
  }
  body.yt-mobile-audio-active .yt-chat-spot-title{
    display:grid!important;
    gap:1px!important;
    padding:5px 8px 6px!important;
    background:rgba(2,6,23,.94)!important;
  }
  body.yt-mobile-audio-active .yt-chat-spot-title b{
    font-size:.72rem!important;
    line-height:1.1!important;
  }
  body.yt-mobile-audio-active .yt-chat-spot-title small{
    display:block!important;
    color:#67e8f9!important;
    font-size:.62rem!important;
  }
  body.yt-mobile-audio-active.yt-mobile-player-started #chatView{
    padding-top:calc(var(--yt-mobile-player-h) + 66px)!important;
  }
  body.yt-mobile-audio-active.yt-mobile-player-started #chat{
    padding-top:8px!important;
  }
  body.yt-mobile-audio-active:not(.yt-mobile-player-started) .yt-mini-bar{
    display:grid!important;
    min-height:34px;
    margin:5px 8px 4px;
    grid-template-columns:auto minmax(0,1fr) auto;
    border-radius:13px;
    background:linear-gradient(135deg,rgba(239,68,68,.14),rgba(15,23,42,.88));
  }
  body.yt-mobile-audio-active .yt-mini-bar>i{
    width:25px;
    height:25px;
    font-size:.78rem;
  }
  body.yt-mobile-audio-active .yt-mini-bar b{
    font-size:.76rem;
  }
  body.yt-mobile-audio-active .yt-mini-bar small{
    display:none;
  }
  body.yt-mobile-audio-active .yt-mini-bar::after{
    content:"Play";
    justify-self:end;
    padding:5px 9px;
    border-radius:999px;
    color:#07111f;
    background:linear-gradient(135deg,#86efac,#67e8f9);
    font-size:.68rem;
    font-weight:950;
  }
  body.keyboard-open.yt-mobile-audio-active .yt-chat-spot{
    display:block!important;
    position:fixed!important;
    top:6px!important;
    left:6px!important;
    right:6px!important;
    width:calc(100% - 12px)!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    opacity:1!important;
    pointer-events:auto!important;
    overflow:hidden!important;
  }
  body.keyboard-open.yt-mobile-audio-active .yt-chat-spot .yt-mobile-player,
  body.keyboard-open.yt-mobile-audio-active .yt-chat-spot .yt-mobile-player iframe{
    width:100%!important;
    height:var(--yt-mobile-player-h)!important;
  }
}

/* Final override: clean compact YouTube player in the chat/left column */
.yt-chat-spot.yt-sidebar-player {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  width: 100% !important;
  height: auto !important;
  flex: 0 0 auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  background: #020617 !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.46), 0 5px 13px rgba(0,0,0,.30), 0 0 0 1px rgba(96,165,250,.08) !important;
  backdrop-filter: none !important;
  transform: none !important;
  contain: layout paint !important;
}

.yt-chat-spot.yt-sidebar-player .yt-chat-spot-head,
.yt-chat-spot.yt-sidebar-player .yt-chat-spot-title,
.yt-chat-spot.yt-sidebar-player .yt-spot-queue,
.yt-mini-bar {
  display: none !important;
}

.yt-chat-spot.yt-sidebar-player::before,
.yt-chat-spot.yt-sidebar-player::after {
  display: none !important;
}

.yt-chat-spot.yt-sidebar-player iframe,
.yt-chat-spot.yt-sidebar-player #ytPlayer iframe,
.yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  pointer-events: auto !important;
}

.yt-chat-spot.yt-sidebar-player iframe,
.yt-chat-spot.yt-sidebar-player #ytPlayer,
.yt-chat-spot.yt-sidebar-player #ytPlayer iframe,
.yt-chat-spot.yt-sidebar-player .yt-mobile-player,
.yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  width: 100% !important;
  height: 136px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  background: #020617 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.yt-chat-spot.yt-sidebar-player .yt-mobile-player {
  display: none !important;
}

.yt-chat-spot.yt-sidebar-player:not([hidden]) ~ #chat {
  padding-top: 8px !important;
}

@media (max-width: 720px) {
  body.yt-mobile-video-active,
  body.yt-mobile-audio-active {
    --yt-mobile-player-h: 164px;
  }

  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player,
  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player,
  body.keyboard-open.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player,
  body.keyboard-open.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player,
  .yt-chat-spot.yt-sidebar-player {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 6px !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
  }

  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player #ytPlayer,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player #ytPlayer {
    display: none !important;
  }

  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
    display: block !important;
    width: 100% !important;
    height: var(--yt-mobile-player-h) !important;
  }

  body.yt-mobile-audio-active.yt-mobile-player-started #chatView,
  body.yt-mobile-video-active #chatView,
  #chatView:has(.yt-chat-spot.yt-sidebar-player:not([hidden])) {
    padding-top: 0 !important;
    background: #14161d !important;
  }

  body.yt-mobile-audio-active.yt-mobile-player-started #chat,
  body.yt-mobile-video-active #chatView #chat,
  .yt-chat-spot.yt-sidebar-player:not([hidden]) ~ #chat {
    padding-top: 6px !important;
    background: #14161d !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .yt-chat-spot.yt-sidebar-player::before,
  .yt-chat-spot.yt-sidebar-player::after {
    display: none !important;
  }
}

/* Desktop restore must stay last: do not let mobile compact player affect desktop */
@media (min-width: 721px) {
  #ytHeaderNowPlaying:not([hidden]){
    position:fixed;
    z-index:9700;
    top:var(--yt-header-top,6px);
    left:var(--yt-spot-left,auto);
    width:var(--yt-spot-width,420px);
    min-width:0;
    max-width:none;
    height:40px;
    margin:0;
    padding:0;
    border:1px solid rgba(244,114,182,.18);
    border-radius:11px;
    background:radial-gradient(circle at 8% 50%,rgba(244,114,182,.18),transparent 46%),linear-gradient(135deg,rgba(45,24,39,.96),rgba(21,24,32,.98));
    box-shadow:0 7px 20px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.065);
  }
  #ytHeaderNowPlaying .yt-header-now-playing{width:100%}
  #ytHeaderNowPlaying.is-space-limited{display:none!important}

  #chat {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(96,165,250,.72) transparent;
  }
  #chat::-webkit-scrollbar{width:8px}
  #chat::-webkit-scrollbar-track{background:transparent}
  #chat::-webkit-scrollbar-thumb{
    min-height:38px;
    border-radius:999px;
    background:linear-gradient(180deg,rgba(96,165,250,.82),rgba(59,130,246,.62));
  }
  #chat::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#7dd3fc,#3b82f6)}

  .yt-chat-spot.yt-sidebar-player {
    position: fixed !important;
    top: var(--yt-spot-top, 18px) !important;
    left: var(--yt-spot-left, auto) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 9800 !important;
    width: var(--yt-spot-width, clamp(390px, 34vw, 520px)) !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 20px !important;
    color: #e5eefc !important;
    background: linear-gradient(145deg,rgba(15,23,42,.98),rgba(3,7,18,.96)) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.07) !important;
    backdrop-filter: none !important;
    contain: none !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head {
    display: flex !important;
    order: 1 !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 9px !important;
    align-items: center !important;
    background: #121720 !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title {
    display: grid !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-live-indicator {
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin-right: 7px !important;
    padding: 0 6px !important;
    border-radius: 5px !important;
    color: #fca5a5 !important;
    background: rgba(239,68,68,.09) !important;
    font-size: .47rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }
  .yt-chat-spot.yt-sidebar-player .yt-live-indicator i {
    width: 5px !important;
    height: 5px !important;
    display: block !important;
    border-radius: 50% !important;
    background: #fb7185 !important;
    box-shadow: 0 0 7px rgba(251,113,133,.62) !important;
    animation: ytLiveDot 1.7s ease-in-out infinite !important;
  }
  @keyframes ytLiveDot {
    0%,100% { opacity:.48; transform:scale(.82); }
    50% { opacity:1; transform:scale(1); }
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title b {
    font-size: .84rem !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title small {
    font-size: .66rem !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-spot-queue {
    display: flex !important;
    order: 3 !important;
    min-height: 42px !important;
    padding: 7px 9px 9px !important;
    background: rgba(2,6,23,.28) !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-mobile-play,
  .yt-chat-spot.yt-sidebar-player .yt-mobile-player {
    display: none !important;
  }

  .yt-chat-spot.yt-sidebar-player iframe,
  .yt-chat-spot.yt-sidebar-player #ytPlayer,
  .yt-chat-spot.yt-sidebar-player #ytPlayer iframe {
    order: 1 !important;
    width: 100% !important;
    height: clamp(220px, 18vw, 292px) !important;
    display: block !important;
    pointer-events: auto !important;
    border-radius: 12px !important;
    background: #020617 !important;
  }

  .yt-chat-spot.yt-sidebar-player:not([hidden]) ~ #chat {
    padding-top: calc(clamp(220px, 18vw, 292px) + 30px) !important;
  }

  body.yt-mobile-video-active #chat {
    padding-top: calc(clamp(220px, 18vw, 292px) + 30px) !important;
  }

  .yt-mini-bar:not([hidden]) {
    display: grid !important;
  }
}
@media(max-width:720px){#ytHeaderNowPlaying{display:none!important}}

@media (min-width: 721px) and (max-width: 1120px) {
  .yt-chat-spot.yt-sidebar-player {
    top: var(--yt-spot-top, 26px) !important;
    left: var(--yt-spot-left, auto) !important;
    right: auto !important;
    width: var(--yt-spot-width, min(460px, 50vw)) !important;
    z-index: 9800 !important;
  }

  .yt-chat-spot.yt-sidebar-player iframe,
  .yt-chat-spot.yt-sidebar-player #ytPlayer,
  .yt-chat-spot.yt-sidebar-player #ytPlayer iframe {
    height: 230px !important;
  }

  .yt-chat-spot.yt-sidebar-player:not([hidden]) ~ #chat {
    padding-top: 278px !important;
  }
}

/* Absolute final mobile keyboard override: hide YouTube player while typing */
@media (max-width: 720px) {
  html.keyboard-open body #header,
  body.keyboard-open #header {
    display: flex !important;
    height: auto !important;
    min-height: 46px !important;
    padding: 5px 4px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  html.keyboard-open body #main,
  body.keyboard-open #main {
    height: calc(var(--app-vvh, 100dvh) - 46px) !important;
    min-height: 0 !important;
    max-height: calc(var(--app-vvh, 100dvh) - 46px) !important;
    padding-top: 6px !important;
  }

  html.keyboard-open body .yt-chat-spot.yt-sidebar-player,
  body.keyboard-open .yt-chat-spot.yt-sidebar-player {
    display: none !important;
  }

  html.typing-active body .yt-chat-spot.yt-sidebar-player,
  body.typing-active .yt-chat-spot.yt-sidebar-player {
    display: none !important;
  }

  html.keyboard-open body #chat,
  body.keyboard-open #chat {
    padding-top: 6px !important;
  }

}

@media (max-width: 720px) {
  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head {
    display: flex !important;
    height: 30px !important;
    justify-content: flex-end !important;
    padding: 3px 5px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(2,6,23,.78) !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head span {
    display: none !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head > div {
    display: flex !important;
    gap: 5px !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head button {
    width: 26px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    touch-action: manipulation !important;
    pointer-events: auto !important;
  }
}

/* No controls above the YouTube iframe */
.yt-chat-spot.yt-sidebar-player .yt-chat-spot-head {
  display: none !important;
}

/* Desktop polish: make the YouTube player feel attached to the chat/header grid */
@media (min-width: 721px) {
  .yt-chat-spot.yt-sidebar-player {
    overflow: visible !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg,#14161d,#10131b) !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,.035) inset,
      0 14px 34px rgba(0,0,0,.30) !important;
    backdrop-filter: none !important;
  }

  .yt-chat-spot.yt-sidebar-player::before {
    display:none!important;
  }

  .yt-chat-spot.yt-sidebar-player::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    border: 1px solid rgba(31,111,235,.10);
    pointer-events: none;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-head {
    display: none !important;
    order: 1 !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 9px !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255,255,255,.055) !important;
    background: #121720 !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title {
    display: grid !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title b {
    color: #edf2fb !important;
    font-size: .61rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-chat-spot-title small {
    display: none !important;
  }

  .yt-chat-spot.yt-sidebar-player > .yt-admin-next {
    position: absolute !important;
    left: -39px !important;
    top: 7px !important;
    z-index: 4 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(167,139,250,.28) !important;
    border-radius: 11px !important;
    color: #d8d2e8 !important;
    background: linear-gradient(145deg,rgba(49,44,64,.98),rgba(25,28,36,.99)) !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.055) !important;
  }
  .yt-chat-spot.yt-sidebar-player > .yt-admin-next::after {
    content: "" !important;
    position: absolute !important;
    right: -6px !important;
    top: 50% !important;
    width: 6px !important;
    height: 1px !important;
    background: rgba(167,139,250,.35) !important;
  }
  .yt-chat-spot.yt-sidebar-player > .yt-admin-next span{display:none!important}
  .yt-chat-spot.yt-sidebar-player > .yt-admin-next i{font-size:.76rem!important}
  .yt-chat-spot.yt-sidebar-player > .yt-admin-next:hover{
    color:#fff!important;
    border-color:rgba(196,181,253,.5)!important;
    background:linear-gradient(145deg,rgba(78,61,108,.98),rgba(35,31,47,.99))!important;
    transform:translateX(-1px)!important;
  }
  .yt-chat-spot.yt-sidebar-player > .yt-admin-next:disabled{
    opacity:.45!important;
    transform:none!important;
  }

  .yt-chat-spot.yt-sidebar-player iframe,
  .yt-chat-spot.yt-sidebar-player #ytPlayer,
  .yt-chat-spot.yt-sidebar-player #ytPlayer iframe {
    order: 1 !important;
    border-radius: 0 0 12px 12px !important;
    background: #0b0e14 !important;
  }

  .yt-chat-spot.yt-sidebar-player .yt-spot-queue {
    display: none !important;
  }
}

/* Final mobile YouTube placement: one stable rule for all mobile browsers */
body.yt-view-away .yt-chat-spot.yt-sidebar-player {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.mobile-client.yt-mobile-audio-active #chatView,
body.mobile-client.yt-mobile-video-active #chatView {
  padding-top: 0 !important;
  background: #14161d !important;
}

body.mobile-client.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player,
body.mobile-client.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  z-index: 12 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.mobile-client.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player #ytPlayer,
body.mobile-client.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player #ytPlayer {
  display: none !important;
}

body.mobile-client.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.mobile-client.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.mobile-client.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.mobile-client.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  display: block !important;
  width: 100% !important;
  height: clamp(128px, 34vw, 164px) !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.mobile-client.yt-mobile-audio-active #chat,
body.mobile-client.yt-mobile-video-active #chat {
  padding-top: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #14161d !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

@media (max-width: 720px) {
  body.yt-mobile-audio-active #chatView,
  body.yt-mobile-video-active #chatView,
  #chatView:has(.yt-chat-spot.yt-sidebar-player:not([hidden])) {
    padding-top: 0 !important;
    background: #14161d !important;
  }

  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    z-index: 12 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player #ytPlayer,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player #ytPlayer {
    display: none !important;
  }

  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.yt-mobile-audio-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.yt-mobile-video-active .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
    display: block !important;
    width: 100% !important;
    height: clamp(128px, 34vw, 164px) !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.yt-mobile-audio-active #chat,
  body.yt-mobile-video-active #chat {
    padding-top: 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #14161d !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player,
  body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player,
  html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player,
  body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    transform: none !important;
  }

  html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
  body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
  html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
  body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
  body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Absolute final keyboard behavior: hide the player visually, keep iframe alive */
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transform: none !important;
}

html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Preserve the mobile YouTube rendering surface while its 1px wrapper is hidden. */
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.keyboard-open body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.keyboard-open.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
html.typing-active body.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player,
body.typing-active.mobile-client .yt-chat-spot.yt-sidebar-player .yt-mobile-player iframe {
  width: min(100vw, 480px) !important;
  height: clamp(128px, 34vw, 164px) !important;
  min-width: 280px !important;
  min-height: 128px !important;
  pointer-events: none !important;
}

/* Absolute final click guard: keep YouTube alive away from chat, but never clickable through pages. */
body.yt-view-away .yt-chat-spot.yt-sidebar-player,
body.yt-view-away .yt-chat-spot.yt-sidebar-player *,
body.yt-view-away .yt-chat-spot.yt-sidebar-player iframe,
body.yt-view-away #ytPlayer,
body.yt-view-away #ytPlayer *,
body.yt-view-away #ytPlayer iframe,
body.yt-view-away #ytMobilePlayer,
body.yt-view-away #ytMobilePlayer *,
body.yt-view-away #ytMobilePlayer iframe {
  pointer-events: none !important;
}

body.yt-view-away .yt-chat-spot.yt-sidebar-player {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
}

/* Final mobile online nickname fitting: short names spread, long names compress, never wrap. */
@media (max-width: 760px) {
  #onlineUsers .online-user-name-line {
    width: calc(100% + 10px) !important;
    max-width: calc(100% + 10px) !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #onlineUsers .online-user-nick {
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: clamp(8px, 2.4vw, 10.5px) !important;
    line-height: 1.1 !important;
    transform: none !important;
    transform-origin: center !important;
    letter-spacing: 0 !important;
  }

  #onlineUsers .online-user-nick.is-compressed,
  #onlineUsers .online-user-nick.is-expanded {
    transform: scaleX(var(--online-nick-scale, 1)) !important;
    letter-spacing: var(--online-nick-spacing, 0) !important;
  }
}

/* Final consistent VIP avatar glow: same look in chat, online, profile and previews. */
[class*="cody-avatar-neon-"]::before {
  content: none !important;
  display: none !important;
}

[class*="cody-avatar-neon-"]:not(img){position:relative!important;isolation:isolate}
[class*="cody-avatar-neon-"]:not(img)::after{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  inset:-2px!important;
  display:block!important;
  pointer-events:none!important;
  border:1px solid color-mix(in srgb,var(--cody-avatar-glow) 56%,#fff)!important;
  border-radius:50%!important;
  opacity:.5;
  box-shadow:
    0 0 4px color-mix(in srgb,var(--cody-avatar-glow) 30%,transparent),
    0 0 8px color-mix(in srgb,var(--cody-avatar-glow) 12%,transparent)!important;
  animation:none!important;
}

[class*="cody-avatar-neon-"] > img,
[class*="cody-avatar-neon-"] img,
img[class*="cody-avatar-neon-"] {
  border: 1px solid color-mix(in srgb, var(--cody-avatar-glow) 58%, #fff) !important;
  border-radius: inherit !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 0 1px color-mix(in srgb,var(--cody-avatar-glow) 24%,transparent),
    0 0 5px color-mix(in srgb,var(--cody-avatar-glow) 32%,transparent)!important;
  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,.3))!important;
  transition:box-shadow .22s ease,border-color .22s ease,filter .22s ease !important;
}

button:hover [class*="cody-avatar-neon-"] > img,
button:hover [class*="cody-avatar-neon-"] img,
button:hover img[class*="cody-avatar-neon-"],
.msg:hover [class*="cody-avatar-neon-"] > img,
.msg:hover img[class*="cody-avatar-neon-"] {
  border-color:color-mix(in srgb,var(--cody-avatar-glow) 68%,#fff) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.13),
    0 0 0 1px color-mix(in srgb,var(--cody-avatar-glow) 32%,transparent),
    0 0 7px color-mix(in srgb,var(--cody-avatar-glow) 40%,transparent)!important;
}

/* Final mobile online avatar glow alignment. */
@media (max-width: 760px) {
  [class*="cody-avatar-neon-"] > img,
  [class*="cody-avatar-neon-"] img,
  img[class*="cody-avatar-neon-"] {
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.09),
      0 0 0 1px color-mix(in srgb,var(--cody-avatar-glow) 22%,transparent),
      0 0 4px color-mix(in srgb,var(--cody-avatar-glow) 28%,transparent)!important;
    filter:drop-shadow(0 2px 3px rgba(0,0,0,.25)) !important;
  }

  [class*="cody-avatar-neon-"]:not(img)::after{
    inset:-1px!important;
    box-shadow:0 0 4px color-mix(in srgb,var(--cody-avatar-glow) 26%,transparent),0 0 7px color-mix(in srgb,var(--cody-avatar-glow) 10%,transparent)!important;
  }

  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"],
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"] {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    display: grid !important;
    place-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"] > img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"] > img,
  #onlineUsers .online-avatar-img {
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"] > img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"] > img {
    width: 42px !important;
    height: 42px !important;
  }
}

/* Final mobile online sidebar: compact cards with balanced name and popularity. */
@media (max-width: 640px) {
  #onlineUsers {
    flex: 0 0 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    border-radius: 9px !important;
  }

  #onlineUsers .online-tabs {
    gap: 2px !important;
    padding: 3px 2px 1px !important;
  }

  #onlineUsers .online-tab {
    height: 24px !important;
    padding: 0 3px !important;
    border-radius: 7px !important;
  }

  #onlineUsers .users-grid {
    gap: 3px !important;
    padding: 2px !important;
  }

  #onlineUsers .user-card.online-user-box {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 84px !important;
    min-height: 84px !important;
    padding: 3px 2px !important;
    gap: 0 !important;
    border-radius: 8px !important;
  }

  #onlineUsers .online-avatar-shell,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"],
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"] {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    margin: 0 auto !important;
  }

  #onlineUsers .online-avatar-img,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"] > img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"] > img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  #onlineUsers .online-user-name-line {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 16px !important;
    height: 16px !important;
    margin: 2px 0 1px !important;
    padding: 0 1px !important;
  }

  #onlineUsers .online-user-nick,
  #onlineUsers .online-user-nick[class*="cody-name-"],
  #onlineUsers .online-user-nick[class*="name-effect--"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    font-size: var(--online-nick-font-size, 9px) !important;
    line-height: 16px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #onlineUsers .online-user-nick.is-compressed {
    transform: scaleX(var(--online-nick-scale, 1)) !important;
    transform-origin: center center !important;
  }

  #onlineUsers .online-user-meta {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    gap: 2px !important;
  }

  #onlineUsers .online-user-pop {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 16px !important;
    padding: 0 4px !important;
    gap: 3px !important;
    border-radius: 5px !important;
    font-size: 8px !important;
    box-shadow: none !important;
  }

  #onlineUsers .online-user-pop i {
    font-size: 7px !important;
  }

  #onlineUsers .online-user-pop b {
    max-width: none !important;
  }

  #onlineUsers .online-user-boost {
    width: 14px !important;
    height: 14px !important;
    font-size: 7px !important;
  }

  #onlineUsers .role-badge {
    top: 2px !important;
    left: 2px !important;
    width: 17px !important;
    height: 17px !important;
  }

  #onlineUsers .role-badge .ol-badge-ico {
    width: 13px !important;
    height: 13px !important;
  }

  #onlineUsers .online-indicator {
    top: 4px !important;
    right: 4px !important;
    width: 7px !important;
    height: 7px !important;
  }
}

/* Zavrsni header stil: jedno mjesto za desktop i mobilna pravila. */
body.mobile-client #header{
  position:relative!important;
  isolation:isolate!important;
  background:linear-gradient(180deg,rgba(16,20,28,.99),rgba(10,13,19,.99))!important;
  border-bottom:1px solid rgba(148,163,184,.12)!important;
  box-shadow:0 5px 18px rgba(2,6,23,.3)!important;
}
body.mobile-client #header::after{display:none!important}
body.mobile-client #header .brand-logo{border-color:rgba(134,239,172,.72)!important;background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.46),transparent 20%),linear-gradient(145deg,#4ade80,#16a34a 54%,#064e3b)!important;box-shadow:0 0 0 3px rgba(34,197,94,.08),0 0 14px rgba(34,197,94,.2),inset 0 1px rgba(255,255,255,.32)!important}

/* Zajednicka ozbiljna kartica za Notifikacije, Sobe i Online. */
#header .header-nav-stat{position:relative;box-sizing:border-box;width:auto;min-width:88px;height:36px;display:flex;align-items:center;justify-content:flex-start;padding:3px 8px 3px 39px;overflow:hidden;border:1px solid rgba(148,163,184,.14);border-radius:10px;color:#e5e7eb;background:linear-gradient(145deg,rgba(31,37,47,.98),rgba(20,24,32,.99));box-shadow:inset 0 1px rgba(255,255,255,.045)}
#header .header-stat-chip{position:absolute;left:4px;top:50%;width:29px;height:29px;display:grid;place-items:center;border-radius:8px;color:#b8c2d0;background:#303946;transform:translateY(-50%)}
#header .header-stat-chip i{color:inherit!important;font-size:.68rem!important;filter:none!important;text-shadow:none!important}
#header .header-stat-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1}
#header .header-stat-label{color:#8491a3;font-size:.48rem;font-weight:950;line-height:1;text-transform:uppercase;letter-spacing:.06em}
#header .header-stat-copy>strong{position:static;display:block;max-width:72px;min-width:0;height:auto;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;color:#e7ebf1;background:transparent;box-shadow:none;font-size:.68rem;font-weight:950;line-height:1;text-overflow:ellipsis;white-space:nowrap}
#header .is-rooms .header-stat-chip i{color:#9db0ca!important}
#header .is-online .header-stat-chip i{color:#83b5a7!important}
#header .is-online .header-stat-copy>strong{color:#b9d8cf}
#header .is-notification.has-notifications{border-color:rgba(202,161,78,.38);background:linear-gradient(145deg,rgba(44,38,28,.98),rgba(22,24,30,.99));animation:headerNoticePulse 2.8s ease-in-out infinite}
#header .is-notification.has-notifications .header-stat-chip{color:#f8e7b7;background:#765b28}
#header .is-notification.has-notifications .header-stat-copy>strong{color:#fff0c2}
@keyframes headerNoticePulse{0%,100%{box-shadow:inset 0 1px rgba(255,255,255,.05),0 0 0 rgba(180,126,35,0)}50%{box-shadow:inset 0 1px rgba(255,255,255,.07),0 0 13px rgba(180,126,35,.17)}}
@keyframes headerNoticeBell{0%,72%,100%{transform:rotate(0)}78%{transform:rotate(11deg)}84%{transform:rotate(-9deg)}90%{transform:rotate(5deg)}}
#header .is-notification.has-notifications .header-stat-chip i{animation:headerNoticeBell 2.8s ease-in-out infinite;transform-origin:50% 15%}

@media(min-width:641px){
  /* Desna grupa koristi stvarnu sirinu svog sadržaja. Fiksnih 30% je bilo
     manje od zbira dugmadi i izazivalo je preklapanje. */
  #header .header-actions{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    flex:0 1 auto!important;
    justify-content:flex-end!important;
    gap:4px!important;
    margin-left:auto!important;
    padding:0!important;
  }
  #header .header-actions>#notificationCenter,
  #header .header-actions>button,
  #header .header-actions>details{
    flex:0 0 auto!important;
    margin:0!important;
  }

  /* Muzika na desktopu prati isti jezik statusne kartice kao Online. */
  #header #btnYoutubeRoom{
    box-sizing:border-box!important;
    width:86px!important;
    min-width:86px!important;
    height:36px!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:6px!important;
    padding:3px 7px 3px 4px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:10px!important;
    color:#e1dcf2!important;
    background:linear-gradient(145deg,rgba(42,37,57,.94),rgba(23,25,33,.98))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
  }
  #header #btnYoutubeRoom>i{
    width:28px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border-radius:8px!important;
    color:#d8c9f2!important;
    background:#40384f!important;
    font-size:.78rem!important;
    line-height:1!important;
    filter:none!important;
    grid-column:1!important;
    grid-row:1 / 3!important;
  }
  #header #btnYoutubeRoom>span{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#a99fba!important;
    font-size:.47rem!important;
    font-weight:950!important;
    line-height:1!important;
    letter-spacing:.045em!important;
    text-align:left!important;
    text-overflow:ellipsis!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
    grid-column:2!important;
    grid-row:1!important;
    align-self:end!important;
  }
  #header #btnYoutubeRoom #ytQueueBadge{
    position:static!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    display:block!important;
    place-items:initial!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    color:#e7e1f1!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:.68rem!important;
    font-weight:950!important;
    line-height:1!important;
    text-align:left!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    grid-column:2!important;
    grid-row:2!important;
    align-self:start!important;
  }
  #header #btnYoutubeRoom #ytQueueBadge[hidden]{display:block!important}

  /* Desktop notifikacije koriste isti osnovni statusni element kao Online. */
  #header #notificationCenter{position:relative!important;width:100px!important;min-width:100px!important;height:36px!important;flex:0 0 100px!important}
  #header #btnNotifications{
    position:relative!important;box-sizing:border-box!important;width:100px!important;min-width:100px!important;height:36px!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    padding:3px 8px 3px 39px!important;overflow:hidden!important;border:1px solid rgba(148,163,184,.14)!important;
    border-radius:10px!important;color:#e5e7eb!important;background:linear-gradient(145deg,rgba(31,37,47,.98),rgba(20,24,32,.99))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
  }
  #header #btnNotifications .notification-stat-chip{
    position:absolute!important;left:4px!important;top:50%!important;width:29px!important;height:29px!important;
    display:grid!important;place-items:center!important;border:0!important;border-radius:8px!important;
    color:#b8c2d0!important;background:#303946!important;box-shadow:none!important;transform:translateY(-50%)!important;
  }
  #header #btnNotifications .notification-stat-chip i{color:inherit!important;font-size:.68rem!important;filter:none!important;text-shadow:none!important}
  #header #btnNotifications .notification-stat-copy{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;line-height:1!important}
  #header #btnNotifications .notification-stat-label{display:block!important;color:#8491a3!important;font-size:.45rem!important;font-weight:950!important;line-height:1!important;letter-spacing:.015em!important;text-transform:uppercase!important;white-space:nowrap!important}
  #header #btnNotifications #notificationBadge{position:static!important;display:block!important;max-width:42px!important;height:auto!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;color:#e7ebf1!important;background:transparent!important;box-shadow:none!important;font-size:.68rem!important;font-weight:950!important;line-height:1!important;text-align:left!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  #header #btnNotifications #notificationBadge[hidden]{display:block!important}
  #header #btnNotifications.has-notifications{border-color:rgba(250,204,21,.24)!important;background:radial-gradient(circle at 12% 50%,rgba(250,204,21,.15),transparent 42%),linear-gradient(180deg,rgba(48,38,15,.92),rgba(25,25,29,.96))!important;box-shadow:inset 0 1px rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.14)!important}
  #header #btnNotifications.has-notifications .notification-stat-chip{color:#382304!important;background:linear-gradient(145deg,#facc15,#d97706)!important;box-shadow:0 5px 12px rgba(217,119,6,.18)!important}
  #header #btnNotifications.has-notifications .notification-stat-label{color:#fde68a!important}
  #header #btnNotifications.has-notifications #notificationBadge{color:#fff7d6!important}
  #header #btnNotifications:hover{filter:brightness(1.08)!important}
  #header #notificationPanel{right:0!important;top:42px!important}

  /* Soba, Muzika i Online koriste isti statusni sistem kao Obavijesti. */
  #header #btnSobe,
  #header #btnYoutubeRoom,
  #header #btnOnlineAll{
    width:96px!important;
    min-width:96px!important;
    height:36px!important;
    border:1px solid rgba(148,163,184,.14)!important;
    border-radius:10px!important;
    background:linear-gradient(145deg,rgba(31,37,47,.98),rgba(20,24,32,.99))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
  }
  #header #btnSobe .header-stat-chip,
  #header #btnOnlineAll .header-stat-chip,
  #header #btnYoutubeRoom>i{
    width:29px!important;
    height:29px!important;
    border-radius:8px!important;
    box-shadow:none!important;
  }
  #header #btnSobe .header-stat-chip{color:#bfdbfe!important;background:linear-gradient(145deg,#365b86,#263b58)!important}
  #header #btnSobe .header-stat-label{color:#93b4d8!important}
  #header #btnSobe .header-stat-copy>strong{max-width:48px!important;color:#dbeafe!important}
  #header #btnYoutubeRoom>i{color:#e9ddff!important;background:linear-gradient(145deg,#5b4775,#3c314d)!important}
  #header #btnYoutubeRoom>span{color:#b9a7cf!important}
  #header #btnYoutubeRoom #ytQueueBadge{color:#eee8f7!important}
  #header #btnOnlineAll .header-stat-chip{color:#d1fae5!important;background:linear-gradient(145deg,#28705e,#21483f)!important}
  #header #btnOnlineAll .header-stat-label{color:#86b9aa!important}
  #header #btnOnlineAll .header-stat-copy>strong,
  #header #btnOnlineAll #headerOnlineCount{
    position:static!important;
    display:block!important;
    max-width:48px!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    color:#c9eee2!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:.68rem!important;
    font-weight:950!important;
    line-height:1!important;
    text-align:left!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  #header #btnOnlineAll .header-stat-chip i{animation:none!important}

  #header #btnProfile{
    position:relative!important;
    box-sizing:border-box!important;
    width:100px!important;
    min-width:100px!important;
    height:36px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:flex-start!important;
    padding:3px 8px 5px 39px!important;
    overflow:hidden!important;
    border:1px solid rgba(148,163,184,.14)!important;
    border-radius:10px!important;
    color:#e5e7eb!important;
    background:linear-gradient(145deg,rgba(31,37,47,.98),rgba(20,24,32,.99))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
  }
  #header #btnProfile::before{
    content:"Profil"!important;
    position:absolute!important;
    left:39px!important;
    top:7px!important;
    display:block!important;
    color:#86a99e!important;
    font-size:.45rem!important;
    font-weight:950!important;
    line-height:1!important;
    letter-spacing:.025em!important;
    text-transform:uppercase!important;
  }
  #header #btnProfile .header-avatar{
    position:absolute!important;
    left:4px!important;
    top:3px!important;
    width:29px!important;
    height:29px!important;
    min-width:29px!important;
    margin:0!important;
    border:1px solid rgba(167,243,208,.38)!important;
    border-radius:8px!important;
    object-fit:cover!important;
    box-shadow:0 0 0 1px rgba(34,197,94,.06)!important;
  }
  #header #btnProfile #profileNameLabel{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:52px!important;
    overflow:hidden!important;
    color:#d5eee6!important;
    font-size:.68rem!important;
    font-weight:950!important;
    line-height:1!important;
    text-align:left!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  #header .header-more{
    position:relative!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  #header .header-more>.header-more-btn{
    position:relative!important;
    box-sizing:border-box!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    padding:3px!important;
    overflow:hidden!important;
    border:1px solid rgba(148,163,184,.14)!important;
    border-radius:10px!important;
    color:#e5e7eb!important;
    background:linear-gradient(145deg,rgba(31,37,47,.98),rgba(20,24,32,.99))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
  }
  #header .header-more>.header-more-btn::before{
    display:none!important;
    content:none!important;
  }
  #header .header-more>.header-more-btn>i{
    position:static!important;
    width:29px!important;
    height:29px!important;
    flex:0 0 29px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border-radius:8px!important;
    color:#d8dee8!important;
    background:linear-gradient(145deg,#46505f,#303743)!important;
    font-size:.72rem!important;
  }
  #header .header-more>.header-more-btn>span{
    display:none!important;
  }
}

@media(max-width:640px){
  /* Mobilni header v4: sve je jedna ravnopravna kontrolna traka. */
  body.mobile-client #header,#header{
    --mh-cell:clamp(28px,8.3vw,34px);
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100vw!important;
    min-height:48px!important;
    height:48px!important;
    display:flex!important;
    align-items:center!important;
    gap:2px!important;
    padding:5px 6px!important;
    overflow:visible!important;
    background:radial-gradient(circle at 0 50%,rgba(34,197,94,.15),transparent 20%),linear-gradient(180deg,#121923,#090e15)!important;
    border:0!important;
    border-bottom:1px solid rgba(148,163,184,.12)!important;
    box-shadow:0 5px 16px rgba(0,0,0,.28)!important;
  }
  body.mobile-client #header::after,#header::after{content:""!important;position:absolute!important;left:0!important;bottom:-1px!important;width:38%!important;height:1px!important;display:block!important;background:linear-gradient(90deg,#4ade80,rgba(45,212,191,.5),transparent)!important;box-shadow:none!important}
  body.mobile-client #header .brand-logo,#header .brand-logo{
    width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;margin:0 3px 0 0!important;
    border:1px solid rgba(134,239,172,.76)!important;border-radius:50%!important;color:#fff!important;
    background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.5),transparent 19%),linear-gradient(145deg,#4ade80,#16a34a 55%,#064e3b)!important;
    box-shadow:0 0 0 3px rgba(34,197,94,.07),0 0 13px rgba(34,197,94,.2),inset 0 1px rgba(255,255,255,.34)!important;
  }
  #header #welcome{display:none!important}

  /* Kredit i popularnost dijele dvije fleksibilne celije iste sirine kao akcije. */
  #header #playerStats:not([hidden]){width:0!important;min-width:0!important;max-width:none!important;height:36px!important;flex:2 1 0!important;display:flex!important;align-items:center!important;gap:0!important;margin:0!important}
  #header #playerStats .player-stat,#header #playerStats .player-stat-pop{
    position:relative!important;box-sizing:border-box!important;width:0!important;min-width:0!important;max-width:none!important;height:36px!important;flex:1 1 0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;padding:0!important;
    border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;
  }
  #header #playerStats .stat-chip{position:static!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  #header #playerStats .player-stat-credit .stat-chip i{color:#d5b966!important}
  #header #playerStats .player-stat-pop .stat-chip i{color:#d48ba7!important}
  #header #playerStats .stat-chip i{font-size:.72rem!important}
  #header #playerStats .stat-copy{width:100%!important;min-width:0!important;height:8px!important;display:block!important;padding:0!important;text-align:center!important}
  #header #playerStats .stat-label{display:none!important}
  #header #playerStats .stat-copy strong{display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important;color:#cbd3dd!important;font-size:5.5px!important;line-height:8px!important;text-align:center!important;text-overflow:ellipsis!important;white-space:nowrap!important}

  /* Sve navigacijske celije ravnomjerno dijele preostalu sirinu. */
  #header .header-actions{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:36px!important;
    flex:1 1 0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  #header .header-actions>#notificationCenter,#header .header-actions>button,#header .header-actions>details{box-sizing:border-box!important;width:0!important;min-width:var(--mh-cell)!important;max-width:none!important;height:36px!important;flex:1 1 0!important;margin:0!important}
  #header .header-actions>#btnSobe{order:1!important}
  #header .header-actions>#btnOnlineAll{order:2!important}
  #header .header-actions>#btnYoutubeRoom{order:3!important}
  #header .header-actions>#notificationCenter{order:4!important}
  #header .header-actions>#playerStats{order:5!important}
  #header .header-actions>#btnProfile{order:6!important}
  #header .header-actions>.header-more{order:7!important}
  #header .header-actions>#notificationCenter:has(#btnNotifications[style*="display: none"]){display:none!important}
  #header .header-actions .btn,#header .header-actions .notification-btn,#header .header-actions .header-more-btn,#header #btnSobe,#header #btnYoutubeRoom,#header #btnOnlineAll,#header #btnProfile{
    position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;
    display:grid!important;place-items:center!important;padding:0!important;gap:0!important;border:0!important;border-radius:9px!important;color:#bfc8d4!important;background:transparent!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important;
  }
  #header .header-actions .btn:active,#header .header-actions .header-more-btn:active{background:rgba(148,163,184,.1)!important;transform:scale(.9)!important}

  /* Novi set ikonica ima jedinstven ritam i velicinu. */
  #header .header-stat-chip{position:static!important;width:27px!important;height:27px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
  #header .header-stat-chip i,#header #btnYoutubeRoom>i,#header .header-more-btn>i{width:27px!important;height:27px!important;display:grid!important;place-items:center!important;margin:0!important;color:#bfc8d4!important;font-size:1.08rem!important;line-height:1!important;filter:none!important;text-shadow:none!important}
  #header #btnNotifications .header-stat-chip i{color:#c8bea4!important}
  #header #btnSobe .header-stat-chip i{color:#aebbd0!important}
  #header #btnYoutubeRoom>i{color:#b5afc8!important}
  #header #btnOnlineAll .header-stat-chip i{color:#95c5b7!important}

  /* Svi prateci brojevi su isti mikro-badge. */
  #header .header-stat-copy{display:contents!important}
  #header .header-stat-label,#header #btnSobe .header-stat-copy,#header #btnYoutubeRoom>span,#header #btnProfile>#profileNameLabel,#header .header-more-btn>span{display:none!important}
  #header .header-action-count,#header .header-stat-copy>.header-action-count,#header #notificationBadge,#header #ytQueueBadge,#header #headerOnlineCount{
    position:absolute!important;z-index:4!important;top:0!important;right:0!important;box-sizing:border-box!important;width:auto!important;min-width:14px!important;max-width:25px!important;height:14px!important;display:grid!important;place-items:center!important;
    margin:0!important;padding:0 3px!important;overflow:hidden!important;border:2px solid #0d1219!important;border-radius:999px!important;color:#fff!important;background:#e41e3f!important;box-shadow:none!important;
    font-size:7px!important;font-weight:950!important;line-height:1!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  #header .header-action-count[hidden],#header #notificationBadge[hidden],#header #ytQueueBadge[hidden],#header #headerOnlineCount[hidden]{display:none!important}
  #header #btnNotifications #notificationBadge,#header #btnOnlineAll #headerOnlineCount{top:1px!important;right:calc(50% - 18px)!important}
  @keyframes mobileNoticeBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.48;transform:scale(.88)}}
  #header #btnNotifications.has-notifications #notificationBadge{animation:mobileNoticeBlink 1.65s ease-in-out infinite!important;transform-origin:center!important}

  /* Profil je jedina slikovna celija. */
  #header #btnProfile .header-avatar{width:30px!important;height:30px!important;min-width:30px!important;margin:0!important;border:2px solid rgba(134,239,172,.48)!important;box-shadow:0 0 0 2px rgba(34,197,94,.05)!important}
  #header #btnSobe::after{display:none!important;content:none!important}
  #header .header-more{position:relative!important}
  #header .header-more>summary{list-style:none!important}
  #header .header-more-panel{right:0!important;left:auto!important;top:38px!important;max-width:calc(100vw - 12px)!important}
  #header .notification-center{
    width:0!important;
    min-width:var(--mh-cell)!important;
    max-width:none!important;
    height:36px!important;
    flex:1 1 0!important;
  }

  /* Aktivni radio koristi dvije celije, bez povecanja headera. */
  #header #roomRadioHeader:not([hidden]),#header #ytHeaderQueue:not([hidden]){box-sizing:border-box!important;width:calc(var(--mh-cell)*2 + 2px)!important;min-width:calc(var(--mh-cell)*2 + 2px)!important;max-width:calc(var(--mh-cell)*2 + 2px)!important;height:34px!important;flex:0 0 calc(var(--mh-cell)*2 + 2px)!important;margin:0!important}
  #header:has(#roomRadioHeader:not([hidden])) #playerStats,#header:has(#ytHeaderQueue:not([hidden])) #playerStats{display:none!important}
}
@media(max-width:360px){#header{padding-inline:4px;gap:3px 4px}#header .header-actions{gap:2px}}
@media(prefers-reduced-motion:reduce){#header .is-notification.has-notifications,#header .is-notification.has-notifications::after,#header .is-notification.has-notifications .header-stat-chip i,#header #btnNotifications.has-notifications #notificationBadge{animation:none!important}}

/* Jednostavno dodavanje pjesme: pretraga, izbor i kratak status reda. */
.yt-room-simple{width:min(540px,94vw);grid-template-rows:auto auto minmax(0,1fr) auto;gap:0;border-radius:22px}
.yt-room-simple .yt-room-head{min-height:62px;padding:12px 16px}
.yt-room-simple .yt-room-head strong{font-size:1.15rem}
.yt-add-guide{display:flex;align-items:flex-start;gap:11px;margin:14px 14px 12px;padding:12px;border:1px solid rgba(250,204,21,.18);border-radius:15px;background:rgba(250,204,21,.07)}
.yt-add-guide>i{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;color:#fde68a;background:rgba(250,204,21,.12)}
.yt-add-guide p{margin:0;color:#b8c5d8;font-size:.78rem;line-height:1.48}
.yt-add-guide p strong{display:block;margin-bottom:2px;color:#fff;font-size:.82rem}
.yt-room-simple .yt-search{min-height:0;margin:0 14px;overflow:auto}
.yt-room-simple .yt-search form{grid-template-columns:minmax(0,1fr) auto;gap:7px}
.yt-room-simple .yt-search input{height:48px;border-radius:14px;font-size:.9rem}
.yt-room-simple .yt-search form button{min-width:82px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#ef4444,#dc2626);font-weight:900}
.yt-add-feedback{display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 12px;border-radius:12px;font-size:.78rem;font-weight:800}
.yt-add-feedback[hidden]{display:none!important}
.yt-add-feedback.is-success{color:#bbf7d0;border:1px solid rgba(74,222,128,.2);background:rgba(34,197,94,.09)}
.yt-add-feedback.is-error{color:#fecaca;border:1px solid rgba(248,113,113,.24);background:rgba(127,29,29,.16)}
.yt-result.is-unplayable{border-color:rgba(248,113,113,.2);opacity:.72}
.yt-result.is-unplayable>b{color:#fca5a5}
.yt-room-simple .yt-results{max-height:min(330px,42dvh);margin-bottom:4px}
.yt-room-simple .yt-result{min-height:58px;border-radius:13px}
.yt-room-simple .yt-result b{color:#fecaca;background:rgba(239,68,68,.14)}
.yt-simple-status{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;margin:10px 14px 14px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08);color:#91a2ba}
.yt-simple-status>span{font-size:.68rem;font-weight:850;white-space:nowrap}
.yt-simple-status>span i{margin-right:4px;color:#f87171}
.yt-simple-status>strong{min-width:0;overflow:hidden;color:#eaf0fa;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
.yt-simple-status>em{font-size:.68rem;font-style:normal;white-space:nowrap}
.yt-simple-status>em b{color:#fde68a}
.yt-legacy-hooks{display:none!important}
@media(max-width:640px){
  .yt-room-panel{align-items:end;padding:8px}
  .yt-room-simple{width:100%;max-height:calc(100dvh - 16px);border-radius:20px}
  .yt-add-guide{margin:11px 11px 10px;padding:10px}
  .yt-room-simple .yt-search{margin:0 11px}
  .yt-room-simple .yt-search form button{min-width:48px;padding:0 12px}
  .yt-room-simple .yt-search form button span{display:none}
  .yt-room-simple .yt-results{max-height:42dvh}
  .yt-room-simple .yt-result{grid-template-columns:64px minmax(0,1fr) auto}
  .yt-room-simple .yt-result b{grid-column:auto;justify-self:auto;padding:7px}
  .yt-simple-status{margin:8px 11px 10px;padding:9px 4px}
}

/* Desktop online kartica: popularnost kao uredna donja traka unutar kartice. */
@media (min-width: 761px) {
  #onlineUsers .user-card.online-user-box .online-user-meta {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    gap: 5px;
  }

  #onlineUsers .user-card.online-user-box .online-user-pop {
    position: relative;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 22px;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 7px 0 5px;
    border: 1px solid rgba(244,114,182,.22);
    border-radius: 8px;
    color: #fce7f3;
    background:
      radial-gradient(circle at 12% 50%,rgba(244,114,182,.18),transparent 44%),
      linear-gradient(135deg,rgba(45,24,39,.94),rgba(21,24,32,.97));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.07),
      0 4px 10px rgba(0,0,0,.16);
    overflow: hidden;
  }

  #onlineUsers .user-card.online-user-box .online-user-pop i {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    display: inline-block;
    color: #fb7185;
    background: none;
    box-shadow: none;
    font-size: .56rem;
  }

  #onlineUsers .user-card.online-user-box .online-user-pop b {
    min-width: 0;
    max-width: none;
    overflow: hidden;
    color: #fff1f7;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .015em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #onlineUsers .user-card.online-user-box .online-user-pop::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24%;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(251,113,133,.62));
    pointer-events: none;
  }
}

/* Header vrijednosti: kredit kao novac, popularnost kao društvena vrijednost. */
.player-stat-credit {
  border-color: rgba(250,204,21,.24);
  background:
    radial-gradient(circle at 12% 50%,rgba(250,204,21,.15),transparent 42%),
    linear-gradient(180deg,rgba(48,38,15,.92),rgba(25,25,29,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.14);
}
.player-stat-credit .stat-chip {
  color:#382304;
  background:linear-gradient(145deg,#fef08a,#f59e0b);
  box-shadow:0 0 0 3px rgba(250,204,21,.10),0 0 10px rgba(250,204,21,.18);
}
.player-stat-credit .stat-label{color:#fde68a}
.player-stat-credit .stat-copy strong{color:#fff7d6}

.player-stat-pop {
  border-color:rgba(244,114,182,.24);
  background:
    radial-gradient(circle at 12% 50%,rgba(244,114,182,.16),transparent 42%),
    linear-gradient(180deg,rgba(48,24,39,.92),rgba(25,25,31,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.14);
}
.player-stat-pop .stat-chip {
  color:#fff1f7;
  background:linear-gradient(145deg,#fb7185,#db2777);
  box-shadow:0 0 0 3px rgba(244,114,182,.10),0 0 10px rgba(244,114,182,.20);
}
.player-stat-pop .stat-label{color:#f9a8d4}
.player-stat-pop .stat-copy strong{color:#fff1f7}

@media (min-width: 900px) {
  .player-stat-credit{min-width:82px}
  .player-stat-pop{min-width:102px}
  .player-stat .stat-label{display:block;font-size:.52rem;letter-spacing:.055em}
  .player-stat .stat-copy strong{font-size:.7rem}
}

@media (max-width: 640px) {
  .player-stat-credit,
  .player-stat-pop{box-shadow:none}
  .player-stat-credit .stat-copy strong{color:#fde68a}
  .player-stat-pop .stat-copy strong{color:#f9a8d4}
}

/* Mobilni glavni meni: jedan završni raspored, nezavisan od ćelija headera. */
@media(max-width:640px){
  #header details.header-more{position:static!important}
  #header details.header-more .header-more-panel{
    position:fixed!important;z-index:10050!important;top:52px!important;right:8px!important;left:auto!important;
    box-sizing:border-box!important;width:min(330px,calc(100vw - 16px))!important;max-width:none!important;
    max-height:calc(var(--app-vvh,100dvh) - 60px)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;padding:8px!important;overflow-x:hidden!important;overflow-y:auto!important;
    border:1px solid rgba(148,163,184,.2)!important;border-radius:15px!important;background:#121923!important;
    box-shadow:0 22px 55px rgba(0,0,0,.58)!important
  }
  #header details.header-more:not([open]) .header-more-panel{display:none!important}
  #header details.header-more[open] .header-more-panel{display:grid!important}
  #header details.header-more .header-more-panel>.btn,
  #header details.header-more .header-more-panel>#authButtons>.btn{
    box-sizing:border-box!important;width:100%!important;min-width:0!important;height:46px!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
    padding:0 12px!important;overflow:hidden!important;border:1px solid rgba(148,163,184,.13)!important;
    border-radius:11px!important;color:#d9e2ec!important;background:#19222e!important;box-shadow:none!important;
    font-size:.76rem!important;text-align:left!important
  }
  #header details.header-more .header-more-panel>.btn>i:first-child,
  #header details.header-more .header-more-panel>#authButtons>.btn>i:first-child{
    width:24px!important;height:24px!important;display:grid!important;place-items:center!important;flex:0 0 24px!important;
    color:#7dd3c7!important;background:transparent!important;font-size:.88rem!important
  }
  #header details.header-more .header-more-panel>.btn>span,
  #header details.header-more .header-more-panel>#authButtons>.btn>span{
    display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
  }
}

/* Radio uživo u zajedničkom muzičkom prozoru. */
#roomRadioPlayer{display:none}
.room-radio-panel{margin:14px;display:grid;place-items:center;gap:9px;padding:22px 16px;border:1px solid rgba(248,113,113,.16);border-radius:18px;text-align:center;background:radial-gradient(circle at 50% 20%,rgba(239,68,68,.16),transparent 55%),rgba(255,255,255,.025)}
.room-radio-panel[hidden]{display:none!important}
.room-radio-live{display:flex;align-items:center;gap:6px;color:#fca5a5;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}
.room-radio-live span{width:7px;height:7px;border-radius:50%;background:#ef4444;box-shadow:0 0 10px #ef4444;animation:room-radio-pulse 1.5s ease infinite}
.room-radio-art{width:72px;height:72px;display:grid;place-items:center;border-radius:24px;color:#fff;background:linear-gradient(145deg,#ef4444,#7c3aed);box-shadow:0 16px 34px rgba(124,58,237,.22);font-size:1.55rem}
.room-radio-panel>strong{max-width:100%;overflow:hidden;color:#fff;font-size:1.05rem;text-overflow:ellipsis;white-space:nowrap}.room-radio-panel>small{color:#94a3b8;font-size:.72rem}
.room-radio-panel>button{min-width:160px;height:42px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:4px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#ef4444,#db2777);font-weight:900;cursor:pointer;box-shadow:0 9px 22px rgba(219,39,119,.2)}
@keyframes room-radio-pulse{50%{opacity:.38;transform:scale(.82)}}


/* Radio preuzima isto mjesto u chatu gdje je inače YouTube player. */
.room-radio-spot{min-height:174px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px;border-radius:16px;background:radial-gradient(circle at 16% 25%,rgba(239,68,68,.22),transparent 42%),linear-gradient(145deg,#211827,#10141d);box-shadow:0 16px 34px rgba(0,0,0,.46),0 5px 13px rgba(0,0,0,.3),0 0 0 1px rgba(244,114,182,.09)}
.room-radio-spot[hidden]{display:none!important}
.room-radio-spot-art{position:relative;width:64px;height:64px;display:grid;place-items:center;border-radius:21px;color:#fff;background:linear-gradient(145deg,#ef4444,#7c3aed);box-shadow:0 14px 30px rgba(124,58,237,.24);font-size:1.35rem}
.room-radio-spot-art span{position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:#fef2f2;box-shadow:0 0 9px #fff;animation:room-radio-pulse 1.5s ease infinite}
.room-radio-spot-copy{min-width:0;display:grid;gap:4px}.room-radio-spot-copy small{color:#fca5a5;font-size:.6rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.room-radio-spot-copy strong{overflow:hidden;color:#fff;font-size:1rem;text-overflow:ellipsis;white-space:nowrap}.room-radio-spot-copy em{color:#94a3b8;font-size:.68rem;font-style:normal}
.room-radio-spot>button{width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:50%;color:#fff;background:linear-gradient(145deg,#ef4444,#db2777);box-shadow:0 9px 22px rgba(219,39,119,.24);cursor:pointer}
.yt-chat-spot.is-radio-mode>#ytPlayer,.yt-chat-spot.is-radio-mode>#ytMobilePlayer,.yt-chat-spot.is-radio-mode>#ytMobilePlay,.yt-chat-spot.is-radio-mode>.yt-chat-spot-head,.yt-chat-spot.is-radio-mode>#ytSpotQueue{display:none!important}
.yt-chat-spot.is-radio-mode:not([hidden])~#chat{padding-top:190px!important}
@media(max-width:720px){.yt-chat-spot.yt-sidebar-player{box-shadow:0 10px 22px rgba(0,0,0,.42),0 3px 9px rgba(0,0,0,.25),0 0 0 1px rgba(96,165,250,.07)!important}.room-radio-spot{min-height:128px;padding:13px;gap:10px;border-radius:12px;box-shadow:0 10px 22px rgba(0,0,0,.42),0 3px 9px rgba(0,0,0,.25),0 0 0 1px rgba(244,114,182,.08)}.room-radio-spot-art{width:50px;height:50px;border-radius:16px}.room-radio-spot>button{width:40px;height:40px}.yt-chat-spot.is-radio-mode{height:auto!important;min-height:128px!important}.yt-chat-spot.is-radio-mode:not([hidden])~#chat{padding-top:146px!important}}

/* ===== QR STO: host, potvrda uređaja i naručivanje bez logina ===== */
.cafe-table-access-button{
  min-width:0;height:40px;display:flex;align-items:center;gap:8px;padding:0 10px;
  border:1px solid rgba(94,234,212,.2);border-radius:12px;color:#dffaf6;background:rgba(20,184,166,.09);cursor:pointer
}
.cafe-table-access-button>i{color:#5eead4}
.cafe-table-access-button>span{min-width:0;display:grid;gap:2px;text-align:left}
.cafe-table-access-button small,.cafe-table-access-button b{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cafe-table-access-button small{color:#e8f5f3;font-size:.68rem;font-weight:850}
.cafe-table-access-button b{color:#78a89f;font-size:.57rem;text-transform:uppercase;letter-spacing:.04em}
.cafe-order-icon-app.is-table-locked{grid-template-rows:auto minmax(0,1fr)!important}
.cafe-order-icon-app.is-table-locked>.guest-order-tabs,
.cafe-order-icon-app.is-table-locked>.guest-tab-panel,
.cafe-order-icon-app.is-table-locked>.guest-submit-bar{display:none!important}
.cafe-table-entry-gate{grid-row:2;min-height:0;overflow-y:auto;padding:8px 2px}
.cafe-table-entry-gate[hidden]{display:none!important}
.cafe-table-entry-loading,.cafe-table-entry-error,.cafe-table-entry-waiting{
  width:100%;min-height:100%;box-sizing:border-box;display:grid;align-content:center;justify-items:center;gap:11px;
  padding:22px;text-align:center;border:1px solid rgba(148,163,184,.16);border-radius:22px;
  color:#dce8f2;background:radial-gradient(circle at 50% 5%,rgba(20,184,166,.13),transparent 38%),#0d1724
}
.cafe-table-entry-gate [hidden]{display:none!important}
.cafe-entry-method{display:flex;flex-direction:column;gap:4px;width:min(100%,430px);margin:8px auto 0;padding:11px 13px;border-radius:14px;background:rgba(15,23,42,.055);text-align:left}
.cafe-entry-method.is-primary{background:rgba(16,185,129,.09)}
.cafe-entry-method b{display:flex;align-items:center;gap:8px;color:#172033;font-size:13px}
.cafe-entry-method b i{width:18px;color:#0f9f73;text-align:center}
.cafe-entry-method span{color:#667085;font-size:12px;line-height:1.4}
.cafe-entry-security-note{display:flex!important;align-items:center;justify-content:center;gap:7px;margin:11px auto 0!important;color:#667085!important;font-size:11px!important}
.cafe-entry-security-note i{color:#0f9f73}
.cafe-entry-network-note{display:flex!important;align-items:center;justify-content:center;gap:7px;width:min(100%,430px);margin:9px auto!important;padding:9px 11px;border-radius:12px;background:rgba(59,130,246,.075);color:#526174!important;font-size:11px!important;line-height:1.35!important}
.cafe-entry-network-note i{color:#2777d3}
.cafe-awaiting-host{display:flex;align-items:center;gap:12px;margin:14px;padding:14px;border-radius:15px;background:rgba(245,158,11,.1)}
.cafe-awaiting-host>i{color:#d48a05;font-size:20px}
.cafe-awaiting-host div{display:flex;flex-direction:column;gap:3px}
.cafe-awaiting-host strong{font-size:13px;color:#273142}
.cafe-awaiting-host span{font-size:12px;color:#667085;line-height:1.35}
.cafe-pending-members{margin:12px;padding:13px;border-radius:16px;background:rgba(16,185,129,.075)}
.cafe-pending-members>div:first-child{display:flex;flex-direction:column;gap:3px;margin-bottom:9px}
.cafe-pending-members small{font-size:9px;font-weight:800;color:#0f9f73;letter-spacing:.08em}
.cafe-pending-members strong{font-size:14px;color:#172033}
.cafe-pending-members span,.cafe-pending-members p{font-size:11px;color:#667085}
#tablePendingMembers{display:grid;gap:6px}
.cafe-pending-member{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-radius:11px;background:#fff}
.cafe-pending-member span{display:flex;align-items:center;gap:7px;min-width:0}
.cafe-pending-member b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273142;font-size:12px}
.cafe-pending-member button{flex:none;border:0;border-radius:9px;padding:7px 9px;background:#109b70;color:#fff;font-size:11px;font-weight:800}
.cafe-table-entry-loading>i{color:#5eead4;font-size:1.5rem}
.cafe-table-entry-loading strong{font-size:1.05rem}.cafe-table-entry-loading span{color:#8fa1b5;font-size:.8rem}
.cafe-entry-status-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;color:#99f6e4;background:rgba(20,184,166,.15);font-size:1.25rem}
.cafe-table-entry-waiting>small{color:#5eead4;font-size:.63rem;font-weight:950;letter-spacing:.09em}
.cafe-table-entry-waiting h2{max-width:390px;margin:0;color:#fff;font-size:clamp(1.25rem,6vw,1.75rem);line-height:1.08}
.cafe-table-entry-waiting>p{max-width:430px;margin:0;color:#9eb0c3;font-size:.82rem;line-height:1.5}
.cafe-table-join-qr{width:216px;min-height:216px;display:grid;place-items:center;padding:10px;box-sizing:border-box;border-radius:17px;background:#fff;box-shadow:0 15px 35px rgba(0,0,0,.35)}
.cafe-table-join-qr img,.cafe-table-join-qr canvas{display:block!important;max-width:100%!important;height:auto!important}
.cafe-table-wait-state{display:flex;align-items:center;gap:8px;color:#a9b8c8;font-size:.75rem}.cafe-table-wait-state i{width:8px;height:8px;border-radius:50%;background:#f59e0b;box-shadow:0 0 12px rgba(245,158,11,.65);animation:cafe-table-wait 1.5s ease infinite}
@keyframes cafe-table-wait{50%{opacity:.35;transform:scale(.75)}}
.cafe-table-entry-help{width:min(430px,100%);text-align:left}.cafe-table-entry-help summary{padding:10px;color:#a7f3d0;font-size:.75rem;font-weight:850;cursor:pointer}
.cafe-table-entry-help ol{display:grid;gap:7px;margin:0;padding:0;list-style:none}.cafe-table-entry-help li{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:9px;padding:8px;border-radius:10px;color:#9eafc0;background:rgba(3,9,16,.42);font-size:.72rem;line-height:1.4}.cafe-table-entry-help li>b{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;color:#99f6e4;background:rgba(20,184,166,.12)}
.cafe-table-entry-error>i{color:#fca5a5;font-size:1.5rem}.cafe-table-entry-error>span{color:#aab8c8;font-size:.8rem}.cafe-table-entry-error>button{height:42px;padding:0 16px;border:0;border-radius:11px;color:#062a25;background:#5eead4;font-weight:900}
.cafe-table-confirmation-moment{position:fixed;z-index:15000;inset:0;display:grid;align-content:center;justify-items:center;gap:9px;padding:24px;box-sizing:border-box;text-align:center;color:#f0fdfa;background:radial-gradient(circle at 50% 43%,rgba(16,185,129,.22),transparent 28%),rgba(3,9,16,.9);backdrop-filter:blur(12px);opacity:0;transform:scale(1.025);transition:opacity .24s ease,transform .24s ease}.cafe-table-confirmation-moment[hidden]{display:none!important}.cafe-table-confirmation-moment.is-showing{opacity:1;transform:scale(1)}
.cafe-confirmation-check{position:relative;width:78px;height:78px;display:grid;place-items:center;margin-bottom:8px;border-radius:50%;color:#04352d;background:linear-gradient(145deg,#99f6e4,#34d399);box-shadow:0 0 0 10px rgba(52,211,153,.08),0 20px 45px rgba(16,185,129,.25);font-size:1.7rem}.is-showing .cafe-confirmation-check{animation:cafe-confirm-pop .62s cubic-bezier(.2,1.5,.45,1) both}.cafe-table-confirmation-moment>small{color:#5eead4;font-size:.65rem;font-weight:950;letter-spacing:.11em}.cafe-table-confirmation-moment>strong{font-size:clamp(1.45rem,7vw,2rem);letter-spacing:-.025em}.cafe-table-confirmation-moment>p{margin:0;color:#a8bac8;font-size:.82rem}
.cafe-confirmation-burst,.cafe-join-burst{position:absolute;left:50%;top:50%;width:10px;height:10px;pointer-events:none}.cafe-confirmation-burst i,.cafe-join-burst i{--bx:0px;--by:-105px;position:absolute;width:8px;height:8px;border-radius:50%;background:#5eead4;opacity:0}.cafe-confirmation-burst i:nth-child(2),.cafe-join-burst i:nth-child(2){--bx:88px;--by:-53px;background:#fbbf24}.cafe-confirmation-burst i:nth-child(3),.cafe-join-burst i:nth-child(3){--bx:90px;--by:58px;background:#60a5fa}.cafe-confirmation-burst i:nth-child(4),.cafe-join-burst i:nth-child(4){--bx:0px;--by:108px;background:#f472b6}.cafe-confirmation-burst i:nth-child(5),.cafe-join-burst i:nth-child(5){--bx:-90px;--by:58px;background:#a78bfa}.cafe-confirmation-burst i:nth-child(6),.cafe-join-burst i:nth-child(6){--bx:-88px;--by:-53px;background:#34d399}.is-showing .cafe-confirmation-burst i,.cafe-join-card.is-success .cafe-join-burst i{animation:cafe-confirm-burst .82s .12s ease-out both}
@keyframes cafe-confirm-pop{0%{opacity:0;transform:scale(.35) rotate(-18deg)}65%{transform:scale(1.12) rotate(3deg)}100%{opacity:1;transform:scale(1) rotate(0)}}@keyframes cafe-confirm-burst{0%{opacity:0;transform:translate(0,0) scale(.4)}25%{opacity:1}100%{opacity:0;transform:translate(var(--bx),var(--by)) scale(1.15)}}
.cafe-table-access-panel{position:fixed;z-index:12000;inset:0;display:grid;place-items:end center;padding:12px;box-sizing:border-box}.cafe-table-access-panel[hidden]{display:none!important}
.cafe-table-access-backdrop{position:absolute;inset:0;border:0;background:rgba(1,5,11,.72);backdrop-filter:blur(4px)}
.cafe-table-access-panel>section{position:relative;width:min(480px,100%);display:grid;gap:14px;padding:18px;box-sizing:border-box;border:1px solid rgba(148,163,184,.2);border-radius:23px;color:#e8f1f5;background:#111b28;box-shadow:0 25px 65px rgba(0,0,0,.58)}
.cafe-table-access-panel>section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(148,163,184,.13)}.cafe-table-access-panel h2{margin:2px 0 0;font-size:1.08rem}.cafe-table-access-panel header small{color:#5eead4;font-size:.6rem;font-weight:950;letter-spacing:.08em}.cafe-table-access-panel header button{width:36px;height:36px;border:0;border-radius:10px;color:#b8c5d2;background:rgba(148,163,184,.1)}
.cafe-host-scan-note{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:rgba(20,184,166,.08)}.cafe-host-scan-note>i{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;color:#99f6e4;background:rgba(20,184,166,.14)}.cafe-host-scan-note>span{display:grid;gap:4px}.cafe-host-scan-note strong{font-size:.82rem}.cafe-host-scan-note small{color:#94a6b8;font-size:.72rem;line-height:1.4}
.cafe-host-share-block{display:grid;justify-items:center;gap:11px;padding:15px;border:1px solid rgba(94,234,212,.16);border-radius:17px;text-align:center;background:linear-gradient(145deg,rgba(20,184,166,.11),rgba(8,145,178,.035))}
.cafe-host-share-block>div:first-child{display:grid;justify-items:center;gap:4px}.cafe-host-share-block>div:first-child small{color:#5eead4;font-size:.58rem;font-weight:950;letter-spacing:.09em}.cafe-host-share-block>div:first-child strong{color:#f0fdfa;font-size:.94rem}.cafe-host-share-block>div:first-child span{max-width:330px;color:#93a7b8;font-size:.72rem;line-height:1.4}
.cafe-host-share-qr{width:210px;min-height:210px;display:grid;place-items:center;padding:10px;box-sizing:border-box;border-radius:16px;color:#0f766e;background:#fff;box-shadow:0 14px 32px rgba(0,0,0,.28)}
.cafe-host-share-qr img,.cafe-host-share-qr canvas{display:block!important;max-width:100%!important;height:auto!important}.cafe-host-share-qr>i{font-size:1.3rem}
.cafe-host-share-block>p{display:flex;align-items:center;gap:7px;margin:0;color:#8da0b2;font-size:.67rem}.cafe-host-share-block>p>i{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 9px rgba(52,211,153,.55)}.cafe-host-share-block>p.is-error{color:#fca5a5}.cafe-host-share-block>button{height:38px;padding:0 12px;border:1px solid rgba(148,163,184,.16);border-radius:10px;color:#b9c8d6;background:rgba(5,12,20,.42);font-size:.7rem;font-weight:850}
.cafe-host-method-divider{display:flex;align-items:center;gap:9px;margin:10px 0;color:#718397;font-size:.62rem;text-transform:uppercase}.cafe-host-method-divider::before,.cafe-host-method-divider::after{content:"";height:1px;flex:1;background:rgba(148,163,184,.12)}
.cafe-table-guest-explanation{display:grid;justify-items:center;gap:8px;padding:15px;text-align:center;border-radius:15px;background:rgba(20,184,166,.07)}.cafe-table-guest-explanation>i{color:#5eead4;font-size:1.25rem}.cafe-table-guest-explanation>p{margin:0;color:#96a8ba;font-size:.76rem;line-height:1.5}
.cafe-table-access-panel footer{display:flex;align-items:baseline;justify-content:center;gap:6px;color:#8497aa}.cafe-table-access-panel footer span{color:#fff;font-size:1.2rem;font-weight:950}.cafe-table-access-panel footer small{font-size:.7rem}
.cafe-table-session-state{display:flex!important;align-items:center;gap:6px;margin-top:6px;color:#8293a6!important;font-size:.68rem!important;font-weight:800}.cafe-table-session-state.is-occupied{color:#6ee7b7!important}
.cafe-table-clear-session{color:#fde68a!important;border-color:rgba(245,158,11,.25)!important;background:rgba(245,158,11,.08)!important}
.waiter-table-chip.is-occupied{border-color:rgba(94,234,212,.24)!important;color:#99f6e4!important;background:rgba(20,184,166,.09)!important}
.cafe-join-body{min-height:100dvh;display:grid;place-items:center;padding:16px;box-sizing:border-box;background:radial-gradient(circle at 50% 0,rgba(20,184,166,.18),transparent 35%),#07111f}
.cafe-join-card{position:relative;width:min(430px,100%);display:grid;justify-items:center;gap:11px;padding:27px;box-sizing:border-box;overflow:hidden;text-align:center;border:1px solid rgba(148,163,184,.18);border-radius:25px;color:#e9f2f7;background:#101a27;box-shadow:0 28px 75px rgba(0,0,0,.45)}.cafe-join-mark{position:relative;width:62px;height:62px;display:grid;place-items:center;border-radius:19px;color:#99f6e4;background:rgba(20,184,166,.15);font-size:1.35rem}.cafe-join-card>small{color:#5eead4;font-size:.63rem;font-weight:950;letter-spacing:.09em}.cafe-join-card h1{margin:0;font-size:1.55rem}.cafe-join-card p{margin:0;color:#9aabbd;font-size:.82rem;line-height:1.5}.cafe-join-progress{display:flex;align-items:center;gap:8px;margin-top:7px;padding:10px 13px;border-radius:11px;color:#b8c6d4;background:rgba(3,9,16,.4);font-size:.75rem}.cafe-join-progress>i{color:#5eead4}.cafe-join-card>a{height:43px;display:flex;align-items:center;gap:8px;margin-top:5px;padding:0 15px;border-radius:11px;color:#052b26;background:#5eead4;text-decoration:none;font-size:.78rem;font-weight:950}.cafe-join-card.is-success{border-color:rgba(52,211,153,.35);background:radial-gradient(circle at 50% 10%,rgba(52,211,153,.2),transparent 40%),#101a27}.cafe-join-card.is-success .cafe-join-mark{color:#052e26;background:#6ee7b7;animation:cafe-confirm-pop .62s cubic-bezier(.2,1.5,.45,1) both}.cafe-join-card.is-error .cafe-join-mark{color:#fff;background:#ef646f}
@media(max-width:430px){.cafe-table-access-button{width:42px;padding:0;justify-content:center}.cafe-table-access-button>span{display:none}.cafe-table-entry-waiting{padding:17px 12px}.cafe-table-join-qr{width:204px;min-height:204px}.cafe-table-access-panel{padding:6px}.cafe-table-access-panel>section{padding:15px;border-radius:20px}}
@media(prefers-reduced-motion:reduce){.cafe-table-confirmation-moment,.cafe-confirmation-check,.cafe-confirmation-burst i,.cafe-join-burst i,.cafe-join-card.is-success .cafe-join-mark{animation:none!important;transition:none!important}}

/* Kompaktni radio player u headeru. */
.room-radio-header{min-width:0;max-width:260px;height:36px;display:grid;grid-template-columns:auto minmax(0,1fr) 30px;align-items:center;gap:7px;margin-left:4px;padding:3px 4px 3px 8px;border:1px solid rgba(244,114,182,.18);border-radius:11px;background:radial-gradient(circle at 10% 50%,rgba(239,68,68,.15),transparent 48%),linear-gradient(135deg,rgba(42,24,38,.94),rgba(21,24,32,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.room-radio-header[hidden]{display:none!important}
.room-radio-header-live{display:flex;align-items:center;gap:4px;color:#fca5a5;font-size:.51rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.room-radio-header-live i{width:6px;height:6px;border-radius:50%;background:#ef4444;box-shadow:0 0 8px #ef4444;animation:room-radio-pulse 1.5s ease infinite}
.room-radio-header>div{min-width:0;display:grid;gap:2px}.room-radio-header strong,.room-radio-header small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-radio-header strong{color:#fff;font-size:.68rem}.room-radio-header small{color:#94a3b8;font-size:.54rem}
.room-radio-header>button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;color:#fff;background:linear-gradient(145deg,#ef4444,#db2777);font-size:.66rem;cursor:pointer;box-shadow:0 5px 12px rgba(219,39,119,.2)}
@media(max-width:900px){.room-radio-header{max-width:170px}.room-radio-header-live{display:none}}
@media(max-width:640px){.room-radio-header{width:74px;max-width:74px;height:30px;margin:0;padding:2px 3px 2px 5px;grid-template-columns:minmax(0,1fr) 26px;gap:3px;border-radius:8px}.room-radio-header>div small{display:none}.room-radio-header strong{font-size:.55rem}.room-radio-header>button{width:26px;height:26px;border-radius:7px;font-size:.58rem}}

/* Radio soba nikada ne smije ponovo prikazati stari YouTube box. */
body.room-radio-mode .yt-chat-spot,
body.room-radio-mode .yt-mini-bar,
body.room-radio-mode .yt-queue-peek,
body.room-radio-mode .yt-header-queue{display:none!important}

/* Kredit i popularnost prate isti vizuelni jezik kao header player. */
@media(min-width:641px){
  .player-stats{gap:5px}
  .player-stat{height:36px;min-width:96px;padding:3px 8px 3px 40px;justify-content:flex-start;border-radius:11px}
  .player-stat-pop{min-width:112px}
  .player-stat .stat-chip{left:4px;width:30px;height:30px;border-radius:9px;box-shadow:none}
  .player-stat .stat-chip i{font-size:.7rem}
  .player-stat .stat-copy{gap:2px;align-items:flex-start}
  .player-stat .stat-label{display:block;font-size:.5rem;line-height:1;font-weight:950;letter-spacing:.06em}
  .player-stat .stat-copy strong{font-size:.7rem;line-height:1;font-weight:950}
  .player-stat-credit{background:radial-gradient(circle at 10% 50%,rgba(250,204,21,.16),transparent 48%),linear-gradient(135deg,rgba(47,38,17,.94),rgba(21,24,32,.96))}
  .player-stat-pop{background:radial-gradient(circle at 10% 50%,rgba(244,114,182,.17),transparent 48%),linear-gradient(135deg,rgba(45,24,39,.94),rgba(21,24,32,.96))}
  .player-stat-credit .stat-chip{background:linear-gradient(145deg,#facc15,#d97706);box-shadow:0 5px 12px rgba(217,119,6,.18)}
  .player-stat-pop .stat-chip{background:linear-gradient(145deg,#fb7185,#db2777);box-shadow:0 5px 12px rgba(219,39,119,.2)}
}
@media(max-width:640px){
  .player-stats{gap:3px}
  .player-stat,.player-stat-pop{width:auto;min-width:52px;height:30px;padding:2px 4px 2px 31px;border:1px solid rgba(255,255,255,.08);border-radius:8px}
  .player-stat .stat-chip{left:2px;width:26px;height:26px;border-radius:7px}
  .player-stat .stat-chip i{font-size:.58rem}
  .player-stat .stat-copy strong{font-size:.58rem}
  .player-stat-credit{background:linear-gradient(135deg,rgba(47,38,17,.92),rgba(21,24,32,.94))}
  .player-stat-pop{background:linear-gradient(135deg,rgba(45,24,39,.92),rgba(21,24,32,.94))}
}

/* Dugmad desne kolone koriste isti kompaktni jezik kao header playeri. */
#onlineUsers .online-tabs{gap:5px;padding:7px 7px 0}
#onlineUsers .online-tab{
  position:relative;
  height:36px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  justify-content:stretch;
  gap:7px;
  padding:3px 7px 3px 3px;
  overflow:hidden;
  border-radius:11px;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
#onlineUsers .online-tab i{
  position:relative;
  z-index:1;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#fff;
  font-size:.68rem;
}
#onlineUsers .online-tab span{position:relative;z-index:1;align-self:center;color:#e5edf8;font-size:.67rem;font-weight:950}
#onlineUsers .online-tab strong{position:relative;z-index:1;align-self:center;min-width:20px;height:20px;padding:0 6px;border:0;font-size:.6rem;font-weight:950}
#onlineUsers .online-tab strong[hidden]{display:none!important}
#onlineUsers .online-tab[data-online-tab="online"]{
  border-color:rgba(74,222,128,.22);
  background:radial-gradient(circle at 9% 50%,rgba(34,197,94,.19),transparent 48%),linear-gradient(135deg,rgba(18,48,32,.96),rgba(17,24,30,.97));
}
#onlineUsers .online-tab[data-online-tab="online"] i{color:#d1fae5;background:linear-gradient(145deg,#28705e,#21483f);box-shadow:none}
#onlineUsers .online-tab[data-online-tab="online"] strong{color:#dcfce7;background:rgba(22,163,74,.28);box-shadow:inset 0 0 0 1px rgba(134,239,172,.2)}
#onlineUsers .online-tab[data-online-tab="messages"]{
  border-color:rgba(250,204,21,.24);
  background:radial-gradient(circle at 9% 50%,rgba(234,179,8,.2),transparent 48%),linear-gradient(135deg,rgba(52,42,17,.96),rgba(24,25,29,.97));
}
#onlineUsers .online-tab[data-online-tab="messages"] i{color:#2b2105;background:linear-gradient(145deg,#fde047,#eab308);box-shadow:0 5px 13px rgba(234,179,8,.25)}
#onlineUsers .online-tab[data-online-tab="messages"] strong{color:#fff;background:linear-gradient(145deg,#fb7185,#e11d48);box-shadow:0 4px 11px rgba(225,29,72,.3)}
#onlineUsers .online-tab.is-active{filter:brightness(1.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 5px 14px rgba(0,0,0,.14)}
#onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])){
  animation:dm-tab-attention 2.4s ease-in-out infinite;
}
@keyframes dm-tab-attention{
  0%,100%{border-color:rgba(250,204,21,.24);filter:brightness(1)}
  50%{border-color:rgba(253,224,71,.58);filter:brightness(1.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 12px rgba(234,179,8,.16)}
}

@media(max-width:640px){
  #onlineUsers .online-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    margin:4px 4px 1px;
    padding:2px;
    border:1px solid rgba(148,163,184,.12);
    border-radius:10px;
    background:linear-gradient(135deg,rgba(28,33,43,.97),rgba(14,18,25,.98));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 5px 12px rgba(0,0,0,.12);
  }
  #onlineUsers .online-tab{
    width:100%;
    height:29px;
    display:grid;
    grid-template-columns:1fr;
    place-items:center;
    gap:0;
    padding:0;
    border:0;
    border-radius:7px;
    overflow:visible;
    background:transparent;
    box-shadow:none;
    filter:none;
  }
  #onlineUsers .online-tab:first-child::after{
    content:"";
    position:absolute;
    top:6px;
    right:-1px;
    width:1px;
    height:17px;
    background:rgba(148,163,184,.13);
  }
  #onlineUsers .online-tab i{
    width:25px;
    height:25px;
    border-radius:7px;
    font-size:.57rem;
    background:transparent;
    box-shadow:none;
    transition:background .18s ease,color .18s ease,transform .18s ease;
  }
  #onlineUsers .online-tab[data-online-tab="online"]{border:0;background:transparent}
  #onlineUsers .online-tab[data-online-tab="messages"]{border:0;background:transparent}
  #onlineUsers .online-tab[data-online-tab="online"] i{color:#4ade80;background:transparent;box-shadow:none}
  #onlineUsers .online-tab[data-online-tab="messages"] i{color:#facc15;background:transparent;box-shadow:none}
  #onlineUsers .online-tab[data-online-tab="online"].is-active{background:rgba(34,197,94,.13);box-shadow:inset 0 0 0 1px rgba(74,222,128,.16)}
  #onlineUsers .online-tab[data-online-tab="messages"].is-active{background:rgba(234,179,8,.13);box-shadow:inset 0 0 0 1px rgba(250,204,21,.17)}
  #onlineUsers .online-tab.is-active i{transform:scale(1.06)}
  #onlineUsers .online-tab span{display:none}
  #onlineUsers .online-tab strong{
    position:absolute;
    z-index:3;
    top:-3px;
    right:auto;
    left:auto;
    right:-1px;
    min-width:14px;
    height:14px;
    margin:0;
    padding:0 3px;
    font-size:.45rem;
    box-shadow:0 0 0 2px #171a20,0 2px 6px rgba(0,0,0,.22);
  }
  #onlineUsers .online-tab strong[hidden]{display:none!important}
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])) i{
    animation:dm-icon-soft-pulse 2.4s ease-in-out infinite;
  }
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])){animation:none}
}
@keyframes dm-icon-soft-pulse{
  0%,100%{color:#facc15;text-shadow:none}
  50%{color:#fef08a;text-shadow:0 0 8px rgba(250,204,21,.55)}
}
@media(prefers-reduced-motion:reduce){
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])),
  #onlineUsers .online-tab[data-online-tab="messages"]:has(#dmUnreadBadge:not([hidden])) i,
  #onlineUsers #dmUnreadBadge:not([hidden]){animation:none!important}
}

/* Finalno povecanje avatara u online prikazima. */
@media(min-width:641px){
  .online-directory .online-person-avatar-wrap{width:64px!important;height:64px!important}
  .online-directory .online-person{min-height:130px!important}
  #onlineUsers .online-avatar-shell{width:52px!important;height:52px!important;flex:0 0 52px!important}
  #onlineUsers .online-avatar-img{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}
}
@media(max-width:640px){
  .online-directory .online-person-avatar-wrap{width:50px!important;height:50px!important}
  .online-directory .online-person{min-height:101px!important}
  #onlineUsers .online-avatar-shell,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"],
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]{width:40px!important;height:40px!important;flex:0 0 40px!important}
  #onlineUsers .online-avatar-img,
  #onlineUsers .online-avatar-shell[class*="cody-avatar-neon-"]>img,
  #onlineUsers .avatar-wrap.online-avatar-shell[class*="cody-avatar-neon-"]>img{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}
  #onlineUsers .user-card.online-user-box{height:88px!important;min-height:88px!important}
}

/* Online raja: identicna kartica desnoj koloni, rasporedjena u puni grid. */
.online-directory{width:100%!important;max-width:none!important;height:100%;margin:0!important;padding:8px!important}
.online-directory .online-hero{display:none!important}
.online-directory .online-directory-tabs{display:flex;width:100%;gap:4px;margin:0 0 7px;padding:0 0 6px;border:0;border-bottom:1px solid rgba(148,163,184,.12);border-radius:0;background:transparent;box-shadow:none;overflow-x:auto;scrollbar-width:none}
.online-directory .online-directory-tabs::-webkit-scrollbar{display:none}
.online-directory .online-directory-tab{width:auto;height:34px;flex:0 1 auto;gap:6px;padding:0 10px;border:0;border-radius:8px;color:#8f9bad;background:transparent;box-shadow:none}
.online-directory .online-directory-tab.is-active{border:0;color:#f8fafc;background:#252b36;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)}
.online-directory .online-directory-tab.is-popular.is-active{color:#fff7cc;background:#302b20;box-shadow:inset 0 0 0 1px rgba(250,204,21,.12)}
.online-directory .online-directory-tab.is-admin i{color:#fb7185}.online-directory .online-directory-tab.is-admin.is-active{color:#ffe4e6;background:#352027;box-shadow:inset 0 0 0 1px rgba(251,113,133,.15)}
.online-directory .online-directory-tab.is-moderator i{color:#60a5fa}.online-directory .online-directory-tab.is-moderator.is-active{color:#dbeafe;background:#1d293b;box-shadow:inset 0 0 0 1px rgba(96,165,250,.15)}
.online-directory .online-directory-tab.is-vip i{color:#c084fc}.online-directory .online-directory-tab.is-vip.is-active{color:#f3e8ff;background:#30223b;box-shadow:inset 0 0 0 1px rgba(192,132,252,.15)}
.online-directory .online-directory-tab strong{min-width:18px;padding:2px 5px;color:#b8c2d1;background:rgba(255,255,255,.06)}
.online-directory .online-band{width:100%!important}
.online-directory .online-people-grid{width:100%!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(78px,88px))!important;gap:6px!important;align-items:start!important;justify-content:space-between!important}
.online-directory .online-person.user-card.online-user-box{position:relative;box-sizing:border-box;width:100%!important;min-width:0!important;height:122px!important;min-height:122px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;margin:0!important;padding:8px 6px 7px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:10px!important;color:inherit;text-align:center!important;background:#171a22!important;box-shadow:none!important}
.online-directory .online-person.user-card.online-user-box:hover{transform:translateY(-1px)!important;border-color:rgba(148,163,184,.25)!important;background:#1b202b!important;box-shadow:none!important}
.online-directory .online-avatar-shell{position:relative!important;inset:auto!important;transform:none!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;display:grid!important;place-items:center!important;flex:0 0 52px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important}
.online-directory .online-avatar-img{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;display:block!important;object-fit:cover!important;border:2px solid rgba(191,219,254,.24)!important;border-radius:50%!important;box-shadow:0 8px 18px rgba(0,0,0,.30)!important}
.online-directory .online-user-name-line{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:18px!important;height:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;margin:5px 0 2px!important;padding:0 2px!important;overflow:hidden!important}
.online-directory .online-user-nick{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;color:#dbeafe;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important;line-height:18px!important;font-size:.7rem!important;font-weight:900!important}
.online-directory .online-user-meta{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:20px!important;height:20px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;margin:0!important;padding:0 3px!important}
.online-directory .online-user-pop{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:0 6px!important;border:1px solid rgba(244,114,182,.22)!important;border-radius:7px!important;color:#fce7f3!important;background:radial-gradient(circle at 12% 50%,rgba(244,114,182,.18),transparent 44%),linear-gradient(135deg,rgba(45,24,39,.94),rgba(21,24,32,.97))!important;box-shadow:inset 0 1px rgba(255,255,255,.07)!important;font-size:.62rem!important;font-weight:950!important;line-height:1!important}
.online-directory .online-user-pop i{width:auto;height:auto;display:inline-block;flex:0 0 auto;color:#fb7185;background:none;box-shadow:none;font-size:.56rem}
.online-directory .online-user-pop b{min-width:0;max-width:100%;overflow:hidden;color:#fff1f7;text-overflow:ellipsis;white-space:nowrap}
.online-directory .online-user-boost{width:16px;height:16px;display:inline-grid;place-items:center;flex:0 0 16px;border-radius:50%;color:#052016;background:#67e8f9;font-size:.45rem}
.online-directory .online-indicator{position:absolute!important;z-index:4!important;top:5px!important;right:5px!important;bottom:auto!important;left:auto!important;width:8px!important;height:8px!important;border:1px solid #20252e!important;border-radius:50%!important;background:#22c55e!important;box-shadow:0 0 7px rgba(34,197,94,.55)!important}
.online-directory .online-indicator.is-offline{background:#64748b!important;box-shadow:none!important}
.online-directory .role-badge{position:absolute!important;z-index:4!important;top:3px!important;left:3px!important;right:auto!important;width:18px!important;height:18px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.online-directory .role-badge .ol-badge-ico{width:15px!important;height:15px!important;object-fit:contain!important}
.online-directory .online-popular-rank,.online-directory .online-person-room,.online-directory .pop-score{display:none!important}
@media(max-width:640px){
  .online-directory{padding:5px!important}.online-directory .online-directory-tabs{margin-bottom:5px;padding-bottom:5px}
  .online-directory .online-directory-tab{height:32px;flex:0 0 auto;padding:0 8px;font-size:.57rem}
  .online-directory .online-people-grid{grid-template-columns:repeat(auto-fill,minmax(70px,78px))!important;gap:4px!important;justify-content:space-between!important}
  .online-directory .online-person.user-card.online-user-box{height:88px!important;min-height:88px!important;padding:3px 2px!important;border-radius:8px!important}
  .online-directory .online-avatar-shell{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px!important}
  .online-directory .online-avatar-img{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}
  .online-directory .online-user-name-line{height:16px!important;min-height:16px!important;margin:2px 0 1px!important;padding:0 1px!important}
  .online-directory .online-user-nick{font-size:var(--online-nick-font-size,9px)!important;line-height:16px!important;letter-spacing:0!important}
  .online-directory .online-user-nick.is-compressed{transform:scaleX(var(--online-nick-scale,1))!important;transform-origin:center}
  .online-directory .online-user-meta{height:17px!important;min-height:17px!important;gap:2px!important;padding:0 2px!important}
  .online-directory .online-user-pop{height:16px!important;padding:0 4px!important;gap:3px!important;border-radius:5px!important;font-size:8px!important;box-shadow:none!important}
  .online-directory .online-user-pop i{width:auto;height:auto;display:inline-block;flex:0 0 auto;color:#fb7185;background:none;box-shadow:none;font-size:7px}
  .online-directory .online-user-boost{width:14px;height:14px;flex-basis:14px;font-size:7px}
  .online-directory .role-badge{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.online-directory .role-badge .ol-badge-ico{width:13px!important;height:13px!important}
  .online-directory .online-indicator{top:4px!important;right:4px!important;width:7px!important;height:7px!important}
}

/* Profil dana: isti kompaktni online layout, ali jasno istaknut bez teške animacije. */
#onlineUsers .user-card.online-user-box.is-featured-profile{
  order:-1000;
  border-color:rgba(250,204,21,.4)!important;
  background:radial-gradient(circle at 50% 0,rgba(250,204,21,.13),transparent 48%),linear-gradient(155deg,#211f19,#171b23)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 6px 18px rgba(120,83,8,.13)!important;
}
#onlineUsers .user-card.online-user-box.is-featured-profile::before{
  content:"";
  position:absolute;
  z-index:2;
  top:0;
  left:18%;
  width:64%;
  height:2px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,transparent,#facc15,transparent);
}
#onlineUsers .featured-profile-badge{
  box-sizing:border-box;
  position:static;
  width:auto;
  min-width:0;
  height:16px;
  flex:0 1 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:0 5px 0 4px;
  overflow:hidden;
  border:1px solid rgba(250,204,21,.28);
  border-radius:5px;
  color:#fde68a;
  background:linear-gradient(145deg,rgba(120,83,8,.26),rgba(66,49,10,.16));
  box-shadow:inset 0 1px rgba(255,255,255,.05);
  font-size:.42rem;
  font-weight:950;
  line-height:1;
  letter-spacing:.025em;
  white-space:nowrap;
}
#onlineUsers .featured-profile-badge i{flex:0 0 auto;font-size:.54rem;color:#facc15}
#onlineUsers .featured-profile-badge span{min-width:0;overflow:hidden;text-overflow:ellipsis}
#onlineUsers .user-card.is-featured-profile .online-user-meta{gap:3px!important}
#onlineUsers .user-card.is-featured-profile.is-offline-user{opacity:1}
#onlineUsers .user-card.is-featured-profile.is-offline-user .online-user-nick::after{
  content:" · offline";
  color:#94a3b8;
  font-size:.72em;
  font-weight:700;
}
.room-featured-profile-btn{border-color:rgba(250,204,21,.24)!important;color:#fde68a!important;background:rgba(161,98,7,.13)!important}
.room-featured-profile-btn.is-remove{border-color:rgba(148,163,184,.18)!important;color:#cbd5e1!important;background:rgba(71,85,105,.12)!important}
@media(max-width:640px){
  #onlineUsers .featured-profile-badge{width:15px;min-width:15px;height:15px;flex:0 0 15px;padding:0;border-radius:4px}
  #onlineUsers .featured-profile-badge span{display:none}
}

/* DM na stvarnom telefonu: ne oslanjaj se samo na CSS širinu uređaja.
   Neki telefoni u landscape/desktop-view modu prijavljuju više od 640px. */
body.mobile-client:has(#profileView.is-dm-active:not(.hidden)) #header{
  display:none!important;
}
body.mobile-client:has(#profileView.is-dm-active:not(.hidden)) #main{
  height:var(--app-vvh,100dvh)!important;
  min-height:var(--app-vvh,100dvh)!important;
  max-height:var(--app-vvh,100dvh)!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
}
body.mobile-client #profileView.is-dm-active .profile-header,
body.mobile-client #profileMount .mini-profile:has(.v-dm.is-active) .m-head,
body.mobile-client #profileMount .mini-profile:has(.v-dm.is-active) .m-toolbar{
  display:none!important;
}
body.mobile-client #profileView.is-dm-active,
body.mobile-client #profileView.is-dm-active .profile-page,
body.mobile-client #profileView.is-dm-active #profileMount,
body.mobile-client #profileView.is-dm-active #profileMount .mini-profile,
body.mobile-client #profileView.is-dm-active #profileMount .mini-profile .m-body,
body.mobile-client #profileView.is-dm-active #profileMount .mini-profile .v-dm.is-active{
  box-sizing:border-box!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
}

@media (hover:none) and (pointer:coarse){
  body:has(#profileView.is-dm-active:not(.hidden)) #header,
  #profileView.is-dm-active .profile-header,
  #profileMount .mini-profile:has(.v-dm.is-active) .m-head,
  #profileMount .mini-profile:has(.v-dm.is-active) .m-toolbar{
    display:none!important;
  }
  body:has(#profileView.is-dm-active:not(.hidden)) #main{
    height:var(--app-vvh,100dvh)!important;
    min-height:var(--app-vvh,100dvh)!important;
    max-height:var(--app-vvh,100dvh)!important;
    padding:0!important;
    gap:0!important;
    overflow:hidden!important;
  }
  #profileView.is-dm-active,
  #profileView.is-dm-active .profile-page,
  #profileView.is-dm-active #profileMount,
  #profileView.is-dm-active #profileMount .mini-profile,
  #profileView.is-dm-active #profileMount .mini-profile .m-body,
  #profileView.is-dm-active #profileMount .mini-profile .v-dm.is-active{
    box-sizing:border-box!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:hidden!important;
  }
}
@media(max-width:310px){.online-directory .online-people-grid{grid-template-columns:repeat(auto-fill,minmax(66px,74px))!important}}

/* Diskretna oznaka profila koji je trenutno otvoren. */
#userList .user-card.is-open-profile{
  border-color:rgba(94,234,212,.42)!important;
  box-shadow:
    0 0 0 1px rgba(45,212,191,.08),
    inset 0 0 0 1px rgba(94,234,212,.05),
    0 8px 18px rgba(0,0,0,.16)!important;
}

/* Camera/gallery chooser and unfiltered photo preview. */
.photo-capture-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #364152;border-radius:18px;background:#111827;color:#f8fafc;box-shadow:0 24px 80px #0008;overflow:auto}
.photo-capture-dialog::backdrop{background:rgba(0,0,0,.72)}
.photo-capture-dialog header,.photo-capture-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.photo-capture-dialog button{min-height:44px;padding:10px 16px;border:1px solid #475569;border-radius:12px;background:#243247;color:#fff;font:inherit;cursor:pointer}
.photo-capture-dialog button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.photo-capture-dialog button:disabled{opacity:.5;cursor:wait}
.photo-capture-dialog [data-apply]{background:#2563eb;margin-left:auto}
.photo-capture-dialog>img{display:block;width:100%;max-height:65dvh;object-fit:contain}
.photo-source-options{display:flex;gap:12px;padding:8px 16px 20px}
.photo-source-options button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:72px}

/* Tap to build a hookah mix. */
.hookah-picker-sheet { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.hookah-mix-controls { display: grid; gap: 10px; }
.hookah-mix-controls p { margin: 0; color: #9eabba; font-size: .78rem; }
.hookah-mix-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hookah-mix-chip, .hookah-mix-empty { min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; border-radius: 11px; font-size: .7rem; text-align: center; overflow-wrap: anywhere; }
.hookah-mix-chip { border: 1px solid #4ed6bd; background: #183e3c; color: #b7fff0; cursor: pointer; }
.hookah-mix-empty { border: 1px dashed #465265; color: #8b9aad; }
#hookahFlavorSearch { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #344453; border-radius: 12px; background: #101925; color: #fff; font: inherit; }
#hookahFlavorGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hookah-flavor { min-height: 94px; transition: border-color .15s, background .15s, transform .15s; }
.hookah-flavor:active { transform: scale(.96); }
.hookah-flavor.is-muted { opacity: .5; }
.hookah-flavor:focus-visible, .hookah-mix-chip:focus-visible, #hookahFlavorSearch:focus-visible { outline: 2px solid #76d8c7; outline-offset: 2px; }
.hookah-flavor > strong { font-size: .75rem; line-height: 1.25; }
.hookah-flavor > span > i { color: #76d8c7; font-size: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .hookah-flavor { transition: none; } }

.hookah-flavor > span { width: 100%; height: 76px; display: grid; place-items: center; }
.hookah-flavor > span > img { width: 100%; height: 76px; object-fit: contain; }
.hookah-flavor > small { font-size: .58rem; color: #9eabba; }
.hookah-flavor { min-height: 134px; }

/* Fixed-size selected items with one flavor visible at a time. */
.cafe-guest-body .guest-cart-icons { gap: 6px; padding: 3px 1px 5px; }
.cafe-guest-body .guest-cart-icons .guest-cart-pill,
.cafe-guest-body .guest-cart-icons .guest-cart-pill.is-hookah {
  position: relative; width: 128px; min-width: 128px; height: 48px;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 1fr;
  gap: 7px; padding: 5px 8px; border: 1px solid rgba(94,234,212,.5);
  background: linear-gradient(135deg, #183f42, #162a38); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.cafe-guest-body .guest-cart-icons .guest-cart-pill > img { width: 30px; height: 30px; object-fit: contain; grid-row: 1; grid-column: 1; }
.cafe-guest-body .guest-cart-icons .guest-cart-pill > .guest-cart-qty {
  position: absolute; top: -2px; left: -1px; padding: 3px 4px; min-width: 19px;
  border-radius: 6px; background: #86efac; color: #09251d; font-size: .65rem; line-height: 1;
}
.cafe-guest-body .guest-cart-icons .guest-cart-pill > .guest-cart-label {
  grid-column: 2; grid-row: 1; display: grid; gap: 4px; min-width: 0; max-width: 100%;
  overflow: hidden; white-space: nowrap; text-align: left;
}
.guest-cart-label > b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .73rem; line-height: 1.15; color: #f0fdfa; }
.cafe-guest-body .guest-cart-icons .guest-cart-pill .guest-cart-flavor { display: flex; align-items: center; gap: 3px; min-width: 0; font-size: .65rem; line-height: 1.15; color: #8ee9dc; }
.guest-cart-flavor > em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.guest-cart-flavor > sup { flex: none; font-size: .55rem; color: #bad0cf; position: static; }

/* Host sharing is available with a left swipe or the visible hint. */
.host-share-swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; width: 100%; margin: 0 0 6px; padding: 5px 10px; border: 1px solid rgba(94,234,212,.22); border-radius: 10px; color: #99f6e4; background: rgba(20,184,166,.08); font-size: .7rem; cursor: pointer; touch-action: pan-y; }
.host-share-swipe-hint[hidden] { display: none; }
.cafe-table-access-panel > section { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; animation: host-share-slide .22s ease-out; }
#tableHostControls { display: flex; flex-direction: column; gap: 14px; }
#tableHostControls > .cafe-host-share-block { order: 0; }
#tableHostApprovalControls { order: 1; }
#tableHostScanControls { order: 2; }
@keyframes host-share-slide { from { opacity: .5; transform: translateX(35px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .cafe-table-access-panel > section { animation: none; } }

/* Keep vertical scrolling native while reserving horizontal page gestures. */
.cafe-order-icon-app .guest-menu,
.cafe-order-icon-app .guest-menu *,
.cafe-order-icon-app .cafe-order-head,
.cafe-order-icon-app .cafe-order-head *,
.cafe-order-icon-app .guest-bill-panel,
.cafe-order-icon-app .guest-bill-panel *,
.cafe-order-icon-app .guest-order-tabs { touch-action: pan-y pinch-zoom; }

.cafe-table-access-panel, .cafe-table-access-panel * { touch-action: pan-y pinch-zoom; }
.table-share-back { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 1px solid rgba(94,234,212,.25); border-radius: 10px; color: #99f6e4; background: rgba(20,184,166,.08); font-size: .75rem; cursor: pointer; }

/* Staff controls require both page and API authorization for this cafe. */
.cafe-guest-body:not(.is-current-cafe-staff) #waiterTablesButton,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterOrdersButton,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterStockButton,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterTablesPanel,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterOrdersPanel,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterStockPanel,
.cafe-guest-body:not(.is-current-cafe-staff) #waiterTableSwitcher { display: none !important; }
