:root {
  --sobbah-dark-bg: #011624;
  --sobbah-night-sky: #032b49;
  --sobbah-navy: #0b5b8c;
  --sobbah-navy-dark: #074366;
  --sobbah-gold: #f59e0b;
  --sobbah-gold-dark: #b45309;
  --sobbah-green: #22c55e;
  --sobbah-green-dark: #15803d;
  --sobbah-red: #ef4444;
  --sobbah-text: #1e293b;
  --sobbah-muted: #64748b;
  --sobbah-border: #cbd5e1;
  --sobbah-card-bg: #ffffff;
  --sea-900: #0b3b5c; --sea-700: #0f5b8f; --sea-500: #1493c9; --sea-300: #6fd3f2;
}

* { box-sizing: border-box; }

body, body.sobbah-theme {
  margin: 0;
  color: var(--sobbah-text);
  font-family: "Trebuchet MS", "Ubuntu", Verdana, "Segoe UI", sans-serif;
  background: #011624 linear-gradient(180deg, #05263d 0%, #021726 400px, #010e18 100%) no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. Retro Utility Bar (HoloCMS / Sobbah v63 Top Bar) */
.top-utility-bar {
  background: #000e18;
  border-bottom: 1px solid #0a2d48;
  color: #94a3b8;
  font-size: 11px;
  padding: 5px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.top-utility-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-util-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-greeting {
  color: #e2e8f0;
  font-weight: 500;
}
.user-greeting b {
  color: #fde047;
}
.guest-greeting {
  color: #cbd5e1;
}
.guest-greeting b {
  color: #38bdf8;
}
.top-util-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.util-currency-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.util-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pill-credits {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid #d97706;
  color: #fef08a;
}
.pill-pixels {
  background: rgba(219, 39, 119, 0.2);
  border: 1px solid #db2777;
  color: #fbcfe8;
}
.pill-diamonds {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid #0284c7;
  color: #bae6fd;
}
.pill-hc.is-hc {
  background: linear-gradient(180deg, #b45309, #78350f);
  border: 1px solid #f59e0b;
  color: #fffbeb;
}
.pill-hc.no-hc {
  background: rgba(100, 116, 139, 0.2);
  border: 1px dashed #64748b;
  color: #94a3b8;
}
.pill-hc.no-hc:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fef08a;
}
.util-user-actions, .util-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}
.util-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}
.util-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.util-staff {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.util-staff:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff !important;
  border-color: #f59e0b;
  text-decoration: none;
}
.util-logout {
  color: #f87171 !important;
}
.util-sep {
  color: #334155;
}
.util-btn {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}
.util-login {
  background: #0b5b8c;
  color: #fff;
  border: 1px solid #1474ae;
}
.util-reg {
  background: #16a34a;
  color: #fff;
  border: 1px solid #22c55e;
}

/* 2. HoloCMS Header Banner (Night Skyline & 3D Big Button) */
.sobbah-header-banner {
  background: #042138 radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%);
  border-bottom: 2px solid #000e18;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  position: relative;
}
.sobbah-header-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px;
  flex-wrap: wrap;
  gap: 14px;
}
.sobbah-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sobbah-logo-link {
  text-decoration: none;
}
.sobbah-logo-3d {
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}
.logo-letter {
  font-family: "Arial Black", Impact, "Ubuntu", sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  text-shadow:
    1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    0 2px 0 #000, 0 3px 0 #07486e, 0 4px 0 #07486e, 0 5px 0 #000,
    0 6px 4px rgba(0,0,0,0.6);
  display: inline-block;
  transform: skewX(-4deg);
}
.logo-badge-tag {
  font-family: "Arial Black", sans-serif;
  font-size: 11px;
  font-weight: 900;
  background: #dc2626;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 1px #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  vertical-align: super;
}

.sobbah-online-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  color: #cbd5e1;
  width: fit-content;
}
.online-dot-glow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 2px #fff;
  display: inline-block;
}
.online-counter-text b {
  color: #fff;
}
.sobbah-online-box.is-offline {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}
.online-dot-glow.is-offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 2px #fff;
}

.sobbah-header-cta {
  display: flex;
  align-items: center;
}
.sobbah-big-green-btn {
  display: inline-block;
  background: linear-gradient(180deg, #74ca34 0%, #43a047 48%, #2e7d32 52%, #1b5e20 100%);
  border: 2px solid #0b1a0d;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 8px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.06s ease;
}
.sobbah-big-green-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.sobbah-big-green-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.sobbah-big-red-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 48%, #b91c1c 52%, #7f1d1d 100%);
  border: 2px solid #450a0a;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  padding: 2px;
  cursor: not-allowed;
  opacity: 0.88;
  user-select: none;
}
.hbr-bevel {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}
.hbr-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 4px #ef4444);
}
.hbr-label {
  font-family: "Trebuchet MS", "Arial Black", sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}
.hbg-bevel {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hbg-label {
  font-family: "Trebuchet MS", "Arial Black", sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}
.hbg-arrow {
  font-weight: 900;
  font-size: 16px;
  color: #fde047;
  text-shadow: 0 1px 2px #000;
}

/* 3. HoloCMS Tabs & Sub-Nav */
.sobbah-main-nav {
  padding: 0 16px;
  margin-top: 8px;
}
.sobbah-tabs-in {
  padding: 0;
}
.nav-tabs-group {
  display: flex;
  gap: 5px;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.main-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #0e3b5e 0%, #06233a 100%);
  border: 1px solid #1c527a;
  border-bottom: none;
  color: #93c5fd;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.12s ease-in-out;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.main-tab:hover {
  background: linear-gradient(180deg, #155283 0%, #0b375b 100%);
  color: #ffffff;
}
.main-tab.on {
  background: #e2e8f0;
  border-color: #cbd5e1 #cbd5e1 #e2e8f0;
  color: #0f172a;
  font-weight: 900;
  box-shadow: inset 0 3px 0 #0284c7;
  z-index: 2;
}

.sobbah-sub-nav {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  padding: 8px 18px;
}
.sobbah-sub-in {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.sobbah-sub-in a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sobbah-sub-in a:hover {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.sobbah-sub-in a.sub-on {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.35);
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

/* 4. Content & Habblet Boxes (.card) */
main.main-content-wrap {
  padding-top: 20px;
  padding-bottom: 40px;
}
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.hero {
  background: linear-gradient(135deg, #0b5b8c 0%, #032b49 100%);
  border: 1px solid #1c7cb8;
  border-radius: 8px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #fde047;
  text-shadow: 0 1px 2px #000;
}
.hero p {
  margin: 0 0 16px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
}

.card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}
.card > h2 {
  margin: 0;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #0b5b8c 0%, #064064 100%);
  border-top: 1px solid #1a82be;
  border-bottom: 2px solid #03273e;
  border-radius: 5px 5px 0 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.card.blue > h2 {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  border-top: 1px solid #38bdf8;
  border-bottom: 2px solid #0c4a6e;
}
.card.gold > h2 {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border-top: 1px solid #fde047;
  border-bottom: 2px solid #78350f;
  color: #ffffff;
}
.card.green > h2 {
  background: linear-gradient(180deg, #10b981 0%, #059669 50%, #047857 100%);
  border-top: 1px solid #6ee7b7;
  border-bottom: 2px solid #064e3b;
}
.card.red > h2 {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border-top: 1px solid #fca5a5;
  border-bottom: 2px solid #7f1d1d;
}
.card.purple > h2 {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  border-top: 1px solid #c4b5fd;
  border-bottom: 2px solid #4c1d95;
}
.card.orange > h2 {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  border-top: 1px solid #fdba74;
  border-bottom: 2px solid #7c2d12;
}
.card.cyan > h2 {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  border-top: 1px solid #67e8f9;
  border-bottom: 2px solid #164e63;
}
.card.dark > h2, .card.charcoal > h2 {
  background: linear-gradient(180deg, #475569 0%, #334155 50%, #1e293b 100%);
  border-top: 1px solid #94a3b8;
  border-bottom: 2px solid #0f172a;
}
.card-content {
  padding: 14px;
}
.card > div:not(.card-content) {
  padding: 14px;
}
.card > form {
  padding: 14px;
}

/* HoloCMS Two Columns Layout on me.php */
.holo-two-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 768px) {
  .holo-two-cols {
    grid-template-columns: 1fr;
  }
}

/* Sobbah ID Plate / Stage */
.sobbah-plate-stage {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, #dbeafe 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 14px;
  position: relative;
  margin-bottom: 14px;
}
.sobbah-plate-podium {
  width: 100px;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.sobbah-plate-avatar-img {
  height: 120px;
  image-rendering: pixelated;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.sobbah-podium-disc {
  position: absolute;
  bottom: 2px;
  width: 76px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 40%, #e2b97f 0%, #b8864b 60%, #7d5428 100%);
  border: 1.5px solid #5a3c1c;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  z-index: 1;
}
.sobbah-speech-bubble {
  flex: 1;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 10px 14px;
  position: relative;
  font-size: 13px;
  font-weight: bold;
  color: #1e293b;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
  line-height: 1.4;
}
.speech-quote {
  color: #94a3b8;
  font-size: 16px;
}
.speech-pointer {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #000;
}
.speech-pointer::after {
  content: '';
  position: absolute;
  left: 3px;
  top: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid #ffffff;
}

.sobbah-plate-currencies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hpc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}
.hpc-ico {
  font-size: 20px;
}
.hpc-info b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.hpc-info small {
  font-size: 11px;
  color: #64748b;
}

.sobbah-plate-meta {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.meta-lbl {
  color: #64748b;
  font-weight: bold;
}
.meta-val {
  font-weight: 600;
}

.sobbah-plate-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.sobbah-enter-action {
  font-size: 14px !important;
  padding: 10px 20px !important;
  font-weight: 900 !important;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  border: 1px solid #14532d !important;
  color: #fff !important;
  text-shadow: 0 1px 2px #000 !important;
}

/* Badges Grid HoloCMS */
.holo-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.holo-badge-slot {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.badge-code-label {
  font-size: 10px;
  font-weight: bold;
  color: #64748b;
  margin-top: 3px;
  display: block;
}

/* Room rows */
.room-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px dashed #e2e8f0;
}
.room-row:last-child {
  border-bottom: none;
}
.room-ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.muted {
  color: var(--sobbah-muted);
  font-size: 12px;
}

/* HoloCMS Buttons */
.btn {
  display: inline-block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #0b2238;
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 100%);
  color: #1e293b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 3px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: all 0.1s ease;
}
.btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  color: #0f172a;
}
.btn.small {
  padding: 5px 12px;
  font-size: 12px;
}
.btn.cta {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-color: #14532d;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.btn.cta:hover {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
}
.btn.gold {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-color: #78350f;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.btn.gold:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
}
.btn.sea {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #075985;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.btn.sea:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
}
.btn.ghost {
  background: transparent;
  border: 1px solid #64748b;
  color: #334155;
  text-shadow: none;
  box-shadow: none;
}
.btn.ghost:hover {
  background: #f1f5f9;
}

/* Form inputs HoloCMS */
form.frm label {
  display: block;
  margin: 8px 0 3px;
  font-weight: 700;
  font-size: 13px;
}
form.frm input[type=text], form.frm input[type=password], form.frm input[type=email],
form.frm select, form.frm textarea, .room-create-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
form.frm input:focus, form.frm select:focus, form.frm textarea:focus, .room-create-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

/* Alerts */
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert.ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Footer HoloCMS */
.sobbah-footer {
  background: #000c14;
  border-top: 1px solid #082d49;
  padding: 24px 0 36px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
.sobbah-footer-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer-links a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  margin: 0 4px;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #ffffff;
}
.footer-copyright {
  max-width: 600px;
  line-height: 1.5;
}

/* ---------- hotel grafico: shell di gioco autentica Sobbah ---------- */
.hotel-shell {
  background: #0b1a2d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 24px;
}
#game-stage {
  position: relative;
  width: 100%;
}
#game-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #081626;
  overflow: hidden;
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Badge Stanza in Alto a Sinistra */
.sobbah-room-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 24, 40, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-info {
  display: flex;
  flex-direction: column;
}
.badge-info b {
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.3px;
}
.badge-sub {
  font-size: 12px;
  color: #94a3b8;
}
.badge-users {
  margin-left: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Strumenti in Alto a Destra (Borsellino e Bottoni) */
.sobbah-top-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sobbah-purse {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 24, 40, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.purse-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.stage-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 35, 60, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.stage-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.stage-btn.muted {
  opacity: 0.55;
}

/* Barra Chat Pillola Fluttuante al Centro */
.sobbah-chat-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: 90%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 24, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}
.chat-mode-btn {
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 0;
  border-radius: 16px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-mode-btn.shout {
  background: #f97316;
}
#chat-in {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
}
#chat-in:focus {
  outline: none;
  box-shadow: 0 0 0 2px #38bdf8;
}
.chat-actions {
  display: flex;
  gap: 4px;
}
.chat-act-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-act-btn:hover {
  background: #0284c7;
}

/* Barra Strumenti Dock Inferiore Azzurro Hotel (Modern Luxury Glassmorphism) */
.sobbah-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(7, 20, 36, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  flex-wrap: wrap;
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dock-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.dock-item.on {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(14, 165, 233, 0.2));
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dock-me {
  flex-direction: row;
  gap: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 5px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.dock-me:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(2, 132, 199, 0.15));
  border-color: #38bdf8;
}
.dock-me-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d2746;
  border: 1px solid rgba(56, 189, 248, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.dock-sep {
  width: 1px;
  height: 28px;
  background: rgba(56, 189, 248, 0.2);
  margin: 0 6px;
}

/* Finestre Fluttuanti Azzurro Hotel (Modern Luxury UI) */
.sobbah-win {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  width: 660px;
  max-width: 95%;
  max-height: 85%;
  background: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1e293b;
}
.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0d2746 0%, #081628 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  color: #fff;
  cursor: grab;
  user-select: none;
}
.win-bar:active {
  cursor: grabbing;
}
.win-title {
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.win-x {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid #7f1d1d;
  border-radius: 4px;
  color: #fff;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.win-x:hover {
  filter: brightness(1.15);
}
.win-tabs {
  display: flex;
  background: #23272d;
  border-bottom: 2px solid #14171b;
  padding: 6px 8px 0;
  gap: 4px;
}
.win-tab {
  background: #333a44;
  border: 1px solid #1a1e23;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  color: #94a3b8;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.win-tab:hover {
  background: #3d4653;
  color: #ffffff;
}
.win-tab.on {
  background: #eef2f5;
  color: #0f172a;
  border-color: #cbd5e1;
  border-bottom: 1px solid #eef2f5;
  font-weight: bold;
}
.win-content {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  background: #eef2f5;
  color: #1e293b;
}

/* Navigatore: Lista Stanze */
.room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.room-item:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.room-item.is-current {
  border-color: #0284c7;
  background: #e0f2fe;
}
.room-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.room-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.room-details b {
  font-size: 13px;
  color: #0b5b8c;
}
.room-desc {
  font-size: 11px;
  color: #64748b;
}
.room-occ-bar {
  height: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
  width: 90px;
}
.room-occ-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
}
.room-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.room-count {
  font-size: 11px;
  color: #64748b;
  font-weight: bold;
}
.room-create-box {
  background: #1e344d;
  border: 1px solid #284768;
  border-radius: 10px;
  padding: 18px;
}
.room-create-box .form-group {
  margin: 12px 0;
}
.room-create-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #cbd5e1;
}
.room-create-box input, .room-create-box select {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #284768;
  border-radius: 8px;
  background: #0d1b2a;
  color: #fff;
  font-size: 14px;
}

/* Room Studio nel Navigatore */
#win-nav {
  width: 760px;
  max-width: 96vw;
}
.room-studio-container {
  display: flex;
  gap: 16px;
  height: 395px;
}
.room-studio-left {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.room-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}
.room-model-card {
  background: #1e344d;
  border: 2px solid #284768;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.room-model-card:hover {
  background: #254466;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.room-model-card.active {
  background: #1e3d61;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 4px 12px rgba(56, 189, 248, 0.25);
}
.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.room-card-title {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-card-size {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.room-card-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-studio-right {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #112233;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 12px;
}
.room-preview-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.room-preview-title {
  font-weight: 800;
  font-size: 13.5px;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-preview-canvas-wrap {
  width: 100%;
  height: 155px;
  background: #07121e;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}
.room-preview-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.room-preview-badges {
  display: flex;
  gap: 8px;
}
.room-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #1b3552;
  color: #94a3b8;
  border: 1px solid #284c75;
  border-radius: 6px;
  padding: 3px 8px;
}
.room-preview-desc {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  min-height: 32px;
}
.room-create-form {
  margin-top: 6px;
  border-top: 1px solid #1e3a5f;
  padding-top: 8px;
}
.room-create-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
}
.room-create-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  background: #0d1b2a;
  border: 2px solid #284768;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}
.room-create-input:focus {
  border-color: #38bdf8;
  outline: none;
}

/* Catalogo */
.cat-layout {
  display: flex;
  height: 390px;
}
.cat-sidebar {
  width: 175px;
  background: #dde3ea;
  border-right: 1px solid #cbd5e1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}
.cat-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.cat-tab-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.cat-tab-btn.on {
  background: #0b5b8c;
  color: #fff;
}
.cat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #eef2f5;
}
.cat-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  background: #eef2f5;
}
.cat-item-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.cat-item-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
}
.cat-item-card.sel {
  border-color: #f59e0b;
  background: #fef3c7;
  box-shadow: 0 0 0 2px #f59e0b;
}
.cat-item-card.cat-item-credit {
  border-color: #eab308;
  background: linear-gradient(180deg, #ffffff, #fef9c3);
}
.cat-item-card.cat-item-credit:hover {
  border-color: #f59e0b;
  background: #fef08a;
}
.btn-gold {
  background: linear-gradient(180deg, #f59e0b, #d97706) !important;
  border: 1px solid #b45309 !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
  border-color: #d97706 !important;
  transform: translateY(-1px);
}
.cat-card-title {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  color: #0f172a;
}
.cat-card-price {
  font-size: 11px;
  font-weight: 800;
  color: #d97706;
  margin-top: 2px;
}
.cat-preview-pane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  padding: 10px 14px;
}
.cat-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
}
.cat-preview-meta b {
  display: block;
  font-size: 14px;
  color: #0b5b8c;
}

/* Inventario */
.inv-wrapper {
  display: flex;
  height: 360px;
  gap: 12px;
}
.inv-grid-box {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding: 8px;
  background: #dde3ea;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.inv-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.inv-stack-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  border-radius: 10px;
  padding: 1px 5px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  pointer-events: none;
  border: 1px solid #d97706;
}
.inv-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
}
.inv-card.sel {
  border-color: #f59e0b;
  background: #fef3c7;
  box-shadow: 0 0 0 2px #f59e0b;
}
.inv-card small {
  display: block;
  font-size: 10px;
  color: #334155;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-preview-pane {
  width: 180px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

/* Scheda Mobile in Stanza (Furni Card) */
.furni-card {
  position: absolute;
  bottom: 76px;
  right: 18px;
  z-index: 18;
  background: #16283d;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  min-width: 220px;
}
.furni-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: grab;
  user-select: none;
}
.furni-card-header:active {
  cursor: grabbing;
}
.furni-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.furni-card-info {
  flex: 1;
}
.furni-card-info b {
  display: block;
  font-size: 13px;
  color: #fff;
}
.furni-card-info small {
  color: #94a3b8;
  font-size: 11px;
}
.fc-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}
.furni-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Scheda Utente in Stanza (User Profile Card) */
.user-card {
  position: absolute;
  bottom: 76px;
  right: 18px;
  z-index: 18;
  background: #16283d;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  width: 360px;
  max-width: calc(100vw - 36px);
  color: #fff;
}
.user-card .fc-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.user-card .fc-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.user-card-columns {
  display: flex;
  gap: 10px;
  align-items: stretch;
  cursor: grab;
  user-select: none;
}
.user-card-columns:active {
  cursor: grabbing;
}
.user-card-avatar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: #0d1b2a;
  border: 1.5px solid #284768;
  border-radius: 8px;
  padding: 8px 6px;
  min-width: 190px;
}
.user-card-thumb-full {
  width: 72px;
  height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 6px;
}
.user-card-thumb-full img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.user-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.user-card-info b {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.user-card-motto {
  color: #94a3b8;
  font-size: 10.5px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.user-card-hr {
  border: 0;
  height: 1px;
  background: #284768;
  margin: 10px 0 8px 0;
  width: 100%;
}
.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0;
  width: 100%;
}
.user-card-actions .btn {
  flex: 1 1 calc(50% - 6px);
  text-align: center;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Chat Log & Toast */
.chat-log {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.log-line {
  background: #1e344d;
  border-radius: 6px;
  padding: 6px 10px;
  color: #e2e8f0;
}
.log-line.me {
  background: #143657;
  border-left: 3px solid #38bdf8;
}
.log-line.shout {
  background: #382516;
  border-left: 3px solid #f97316;
  font-weight: 700;
}
.log-line.sys {
  background: #192738;
  color: #38bdf8;
  font-style: italic;
}
.log-time {
  font-size: 11px;
  color: #64748b;
  margin-right: 6px;
}
.game-toast {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  background: rgba(10, 24, 40, 0.94);
  backdrop-filter: blur(8px);
  color: #ffd166;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 20px;
  border: 1.5px solid #ffd166;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 22;
}
.net {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}
.net.on {
  background: #22c55e;
  color: #fff;
}
.net.off {
  background: #f59e0b;
  color: #000;
}
.game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 34, 0.94);
  color: #fff;
  z-index: 30;
}
.loading-box {
  background: #10263f;
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.loadbar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}
.loadbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  border-radius: 8px;
  transition: width 0.2s;
}

/* ---------- avatar creator ---------- */
.avatar-creator { max-width: 100%; }
.av-layout { display: flex; gap: 16px; flex-wrap: wrap; }
.av-stage { flex: 0 0 340px; text-align: center; }
#av-preview { width: 256px; max-width: 100%; border-radius: 14px; border: 3px solid var(--sea-700); background: #0a334e; image-rendering: pixelated; }
.av-panel { flex: 1; min-width: 280px; }
.av-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.av-cats { max-height: 110px; overflow-y: auto; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px; }
.av-item { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.av-item canvas { image-rendering: pixelated; }
.av-item:hover { border-color: var(--sea-500); }
.av-item.sel { border-color: #ffb703; background: #fff8e1; box-shadow: 0 0 0 2px #ffd166; }
.av-item.locked { opacity: .55; }
.av-item small { font-size: 10px; color: var(--muted); }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.swatch.sel { box-shadow: 0 0 0 3px #ffb703; }
@media (max-width: 900px) { .hotel-side { max-width: none; } .hotel-status { margin-left: 0; } }
@media (max-width: 700px) { .hero h1 { font-size: 25px; } .top-right { margin-left: 0; } }

/* ---------- Single Session Overlay (Stile WhatsApp Web / Sobbah) ---------- */
.sobbah-session-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 15, 26, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease-out;
}
.session-dialog {
  background: linear-gradient(180deg, #0e2942 0%, #081a2b 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #f0f9ff;
}
.session-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.18);
  border: 2px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.session-dialog h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
}
.session-dialog p {
  font-size: 14px;
  color: #bae6fd;
  margin: 0;
  line-height: 1.5;
}
.session-dialog p b {
  color: #38bdf8;
}
.session-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}
.session-actions .btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.session-actions .btn-primary {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 2px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.session-actions .btn-primary:hover {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5);
}
.session-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}
.session-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}
.session-footer-hint {
  margin-top: 4px;
  color: #64748b;
  font-size: 11.5px;
}
.session-locked canvas,
.session-locked .sobbah-chat-bar,
.session-locked .sobbah-dock,
.session-locked .sobbah-top-tools {
  pointer-events: none !important;
  filter: blur(1.5px);
  opacity: 0.7;
}

/* =========================================================
   SOBBAH AVATAR CREATOR STYLES
   ========================================================= */
.h-editor-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .h-editor-wrap {
    flex-direction: column;
  }
}

.h-editor-preview-card {
  flex: 0 0 320px;
  background: linear-gradient(180deg, #162a42 0%, #0c1a2b 100%);
  border: 2px solid #284768;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h-avatar-stage {
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at 50% 40%, #1f4268 0%, #0b1828 75%);
  border-radius: 10px;
  border: 1px solid #2b4c73;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.h-stage-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  filter: blur(20px);
}

.h-avatar-img {
  position: relative;
  z-index: 2;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  transform: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.h-avatar-pedestal {
  position: absolute;
  bottom: 24px;
  width: 110px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.3) 0%, rgba(0,0,0,0.4) 60%, transparent 80%);
  border-radius: 50%;
  z-index: 1;
}

.h-stage-controls {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h-ctrl-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.h-btn-row {
  display: flex;
  gap: 6px;
}

.h-btn-icon {
  flex: 1;
  background: #1e3650;
  border: 1px solid #335478;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s;
}

.h-btn-icon:hover {
  background: #2b4c73;
  border-color: #38bdf8;
}

.h-btn-icon.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.h-btn-small {
  flex: 1;
  background: #1e3650;
  border: 1px solid #335478;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.h-btn-small:hover {
  background: #2b4c73;
  border-color: #38bdf8;
}

.h-btn-small.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.h-figure-code-box {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #233e5c;
}

.h-figure-code-box label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.h-code-input-wrap {
  display: flex;
  gap: 6px;
}

.h-code-input {
  flex: 1;
  background: #0a1726;
  border: 1px solid #233e5c;
  color: #7dd3fc;
  font-family: monospace;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-btn-copy {
  background: #1e3650;
  border: 1px solid #335478;
  border-radius: 6px;
  padding: 0 10px;
  cursor: pointer;
  color: #fff;
  transition: all 0.12s;
}

.h-btn-copy:hover {
  background: #0284c7;
  border-color: #38bdf8;
}

/* Pannello Destro */
.h-editor-controls-card {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, #132438 0%, #0e1a29 100%);
  border: 2px solid #284768;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.h-tabs-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
  border-bottom: 2px solid #1e3650;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.h-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.h-tabs {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.h-tab-btn {
  background: #192d44;
  border: 1px solid #2a4768;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.h-tab-btn:hover {
  background: #243f60;
  color: #fff;
}

.h-tab-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  border-bottom-color: transparent;
  color: #fff;
  box-shadow: 0 -2px 8px rgba(56, 189, 248, 0.3);
}

.h-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.h-sec-header h3 {
  margin: 0;
  font-size: 18px;
  color: #f8fafc;
}

.h-sec-actions {
  display: flex;
  gap: 8px;
}

.h-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
}

.h-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #fff;
}

.h-panel-box {
  margin-bottom: 16px;
  background: #0b1726;
  border: 1px solid #1e3650;
  border-radius: 10px;
  padding: 12px;
}

.h-panel-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.h-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #254466 #0b1726;
}

.h-items-grid::-webkit-scrollbar {
  width: 6px;
}
.h-items-grid::-webkit-scrollbar-thumb {
  background: #254466;
  border-radius: 3px;
}

.h-item-card {
  background: #172a3f;
  border: 2px solid #233e5c;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.h-item-card:hover {
  background: #1e3650;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.h-item-card.selected {
  background: #0c4a6e;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.h-item-icon-wrap {
  width: 56px;
  height: 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e3b5c 0%, #091624 80%);
  border-radius: 8px;
  border: 1px solid #1c3857;
  flex-shrink: 0;
}

.h-item-thumb {
  position: absolute;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
}

.h-item-icon-wrap.thumb-head .h-item-thumb {
  width: 44px;
  height: 44px;
  top: 6px;
  left: 6px;
}

.h-item-icon-wrap.thumb-chest .h-item-thumb {
  width: 64px;
  height: 110px;
  top: -46px;
  left: -4px;
}

.h-item-icon-wrap.thumb-legs .h-item-thumb {
  width: 64px;
  height: 110px;
  top: -68px;
  left: -4px;
}

.h-item-icon-wrap.thumb-shoes .h-item-thumb {
  width: 64px;
  height: 110px;
  top: -85px;
  left: -4px;
}

.h-item-icon-wrap.thumb-neck .h-item-thumb {
  width: 64px;
  height: 110px;
  top: -46px;
  left: -4px;
}

.h-none-icon {
  font-size: 24px;
}

.h-item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

/* Palette Colori Swatch */
.h-palette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.h-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 0;
}

.h-swatch:hover {
  transform: scale(1.15);
  border-color: #fff;
  z-index: 2;
}

.h-swatch.active {
  transform: scale(1.18);
  border-color: #fff;
  box-shadow: 0 0 10px #38bdf8, 0 0 0 2px #0284c7;
}

.h-swatch .h-check {
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.h-empty-palette {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

.h-save-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.h-btn-save {
  flex: 2;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 2px solid #34d399;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.15s;
}

.h-btn-save:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

.h-btn-play {
  flex: 1;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid #fbbf24;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.15s;
}

.h-btn-play:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  color: #fff;
}

.h-editor-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  transition: opacity 0.4s;
}

.h-editor-status.info {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid #0284c7;
  color: #7dd3fc;
}

.h-editor-status.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.h-editor-status.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   LATERAL BADGES IN IN-GAME USER CARD
   ========================================================================== */
.user-card {
  max-width: 400px !important;
  min-width: 256px;
}
.user-card-badges-side {
  width: 104px;
  flex-shrink: 0;
  background: #0d1b2a;
  border: 1.5px solid #284768;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.uc-badges-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #93c5fd;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-align: center;
}
.uc-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 6px;
  justify-content: center;
}
.uc-badge-slot {
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px dashed #334e68;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
  cursor: pointer;
}
.uc-badge-slot.has-badge {
  border: 1.5px solid #38bdf8;
  background: rgba(2, 132, 199, 0.15);
}
.uc-badge-slot.uc-group-slot {
  grid-column: span 2;
  width: 100%;
  height: 38px;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}
.uc-badge-slot.uc-group-slot.has-badge {
  border: 1.5px solid #fbbf24;
}
.uc-badge-slot img, .uc-badge-slot svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.uc-badge-slot:hover {
  transform: scale(1.06);
  border-color: #ffd166;
}

/* ==========================================================================
   SOBBAH MESSENGER (CONSOLE) MODAL
   ========================================================================== */
#win-messenger {
  width: 420px;
  max-width: 95vw;
}
.messenger-content {
  min-height: 320px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}
.msg-search-bar {
  padding: 8px 10px;
  background: #0d1b2a;
  border-bottom: 1px solid #1e3a5f;
}
.msg-search-bar input {
  width: 100%;
  background: #16283d;
  border: 1px solid #284768;
  border-radius: 6px;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  box-sizing: border-box;
}
.msg-friends-list, .msg-requests-list {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg-friend-item, .msg-request-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16283d;
  border: 1px solid #243b55;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.15s;
}
.msg-friend-item:hover {
  background: #1c324e;
  border-color: #38bdf8;
}
.msg-friend-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0b1726;
  border: 1px solid #284768;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-friend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.msg-friend-info {
  flex: 1;
  min-width: 0;
}
.msg-friend-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-friend-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}
.msg-friend-item.online .msg-friend-status {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.msg-friend-motto {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.msg-unread-pill {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 10px;
  padding: 1px 6px;
}

/* Chat 1-on-1 */
.msg-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0d1b2a;
  border-bottom: 1px solid #1e3a5f;
}
.msg-chat-partner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-partner-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #16283d;
  overflow: hidden;
}
.msg-partner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.msg-partner-info b {
  font-size: 13px;
  display: block;
}
.msg-partner-info .online-status {
  font-size: 10px;
  color: #22c55e;
}
.msg-chat-messages {
  flex: 1;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0b1726;
}
.msg-bubble {
  max-width: 75%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.35;
  word-break: break-word;
}
.msg-bubble.me {
  align-self: flex-end;
  background: #0284c7;
  color: #fff;
  border-bottom-right-radius: 2px;
}
.msg-bubble.them {
  align-self: flex-start;
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-bottom-left-radius: 2px;
}
.msg-bubble-time {
  font-size: 9px;
  opacity: 0.7;
  display: block;
  text-align: right;
  margin-top: 3px;
}
.msg-chat-input-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #0d1b2a;
  border-top: 1px solid #1e3a5f;
}
.msg-chat-input-bar input {
  flex: 1;
  background: #16283d;
  border: 1px solid #284768;
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
}

/* ==========================================================================
   BADGE SELECTOR MODAL
   ========================================================================== */
#win-badges {
  width: 440px;
  max-width: 95vw;
}
.badges-win-content {
  padding: 14px;
}
.equipped-badges-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  background: #0d1b2a;
  border: 1.5px solid #284768;
  border-radius: 10px;
  padding: 10px;
}
.equipped-slot {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #16283d;
  border: 1.5px dashed #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}
.equipped-slot.occupied {
  border: 1.5px solid #ffd166;
  background: rgba(255, 209, 102, 0.1);
}
.equipped-slot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.equipped-slot:hover {
  transform: scale(1.08);
}
.all-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
}
.badge-inv-card {
  background: #16283d;
  border: 1px solid #284768;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.badge-inv-card:hover {
  background: #1e3a5f;
  border-color: #38bdf8;
  transform: translateY(-2px);
}
.badge-inv-card.equipped {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.15);
}
.badge-inv-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.badge-inv-card small {
  font-size: 10px;
  margin-top: 4px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.fav-group-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d1b2a;
  border: 1px solid #334e68;
  border-radius: 8px;
  padding: 10px 14px;
}
.fav-group-badge-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ==========================================================================
   SOBBAH HOME / PROFILE WIDGETS & GROUPS
   ========================================================================== */
.home-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-header {
  background: linear-gradient(135deg, #102a45 0%, #0d1b2a 100%);
  border: 2px solid #284768;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.home-profile-banner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.home-avatar-view {
  width: 76px;
  height: 90px;
  background: radial-gradient(circle, #2563eb 0%, #0f172a 80%);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-avatar-view img {
  height: 110px;
  margin-top: 10px;
  image-rendering: pixelated;
}
.home-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.home-widget {
  background: #16283d;
  border: 2px solid #284768;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.home-widget-head {
  background: #102033;
  padding: 10px 14px;
  border-bottom: 1.5px solid #284768;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
}
.home-widget-body {
  padding: 14px;
  flex: 1;
}
.home-sticky-note {
  background: #fef08a !important;
  color: #713f12 !important;
  border-color: #facc15 !important;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.35);
  transform: rotate(-1deg);
}
.home-sticky-note .home-widget-head {
  background: rgba(250, 204, 21, 0.4);
  border-bottom: 1px dashed #ca8a04;
  color: #854d0e;
}
.home-sticky-note .home-widget-body {
  color: #713f12;
  font-size: 13px;
  line-height: 1.45;
}
.guestbook-entry {
  background: #0f1d2e;
  border: 1px solid #243b55;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.guestbook-author {
  font-size: 12px;
  font-weight: bold;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
}
.guestbook-msg {
  font-size: 12.5px;
  color: #e2e8f0;
  margin-top: 4px;
}

/* Group Badge Designer */
.group-designer-box {
  background: #0d1b2a;
  border: 2px solid #284768;
  border-radius: 12px;
  padding: 18px;
}
.group-preview-large {
  width: 100px;
  height: 110px;
  margin: 0 auto 16px;
  background: #16283d;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.group-preview-large img, .group-preview-large svg {
  width: 80px;
  height: 80px;
}
.badge-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #334e68;
  cursor: pointer;
  transition: transform 0.15s;
}
.badge-swatch.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px #fff;
}

/* =========================================================================
 * TRAX SOUNDMACHINE STUDIO STYLES
 * ========================================================================= */
.trax-win-content {
  padding: 14px;
  background: #0f1d2d;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trax-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #162638;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #284768;
}
.trax-controls-left, .trax-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trax-bpm-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trax-matrix-container {
  display: flex;
  gap: 8px;
  background: #09131d;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #203a53;
  overflow-x: auto;
}
.trax-tracks-labels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
}
.trax-track-lbl {
  width: 90px;
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  padding: 0 8px;
  border-radius: 6px;
  box-sizing: border-box;
}
.lbl-beat { background: #1e3a8a; color: #93c5fd; }
.lbl-bass { background: #064e3b; color: #6ee7b7; }
.lbl-lead { background: #78350f; color: #fde047; }
.lbl-fx { background: #831843; color: #f9a8d4; }

.trax-grid-scroll {
  flex: 1;
  overflow-x: auto;
}
.trax-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(56px, 1fr));
  gap: 6px;
}
.trax-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px;
  border-radius: 6px;
  transition: background 0.1s;
}
.trax-col.active-playhead {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.trax-col-head {
  height: 20px;
  background: #1c3249;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.trax-block {
  height: 38px;
  background: #132233;
  border: 1px solid #244260;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s, border-color 0.15s;
  padding: 2px;
  text-align: center;
}
.trax-block:hover {
  border-color: #38bdf8;
  transform: scale(1.04);
}
.trax-block.has-loop {
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

.trax-palette-box {
  background: #132233;
  border: 1px solid #284768;
  border-radius: 8px;
  padding: 10px;
}
.trax-palette-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.trax-palette-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trax-palette-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.trax-palette-row-title {
  width: 90px;
  font-size: 11px;
  color: #94a3b8;
}
.trax-sample-btn {
  background: #1c3249;
  border: 1px solid #2b4c6f;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.trax-sample-btn:hover {
  background: #254160;
  border-color: #38bdf8;
}
.trax-sample-btn.on {
  background: #f59e0b;
  color: #0f172a;
  border-color: #d97706;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}

/* =========================================================================
 * JUKEBOX STYLES
 * ========================================================================= */
.jukebox-win-content {
  padding: 14px;
  background: #0f1d2d;
}
.jukebox-now-playing-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #162638 0%, #0d1b2a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.jb-disk-anim {
  width: 60px;
  height: 60px;
  position: relative;
  flex-shrink: 0;
}
.jb-vinyl {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #334155 10%, #0f172a 11%, #1e293b 40%, #0f172a 70%);
  border-radius: 50%;
  border: 3px solid #f59e0b;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}
.jb-vinyl-inner {
  width: 20px;
  height: 20px;
  background: #f59e0b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
}
.jb-disk-anim.spinning .jb-vinyl {
  animation: jb-spin 2.5s linear infinite;
}
@keyframes jb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.jb-track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.jb-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}
.jb-title {
  font-size: 15px;
  color: #fde047;
}
.jb-author {
  font-size: 11px;
  color: #94a3b8;
}
.jb-controls {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.jb-playlist-list {
  max-height: 150px;
  overflow-y: auto;
  background: #09131d;
  border: 1px solid #203a53;
  border-radius: 8px;
}
.jb-playlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #1a2c3f;
  transition: background 0.15s;
}
.jb-playlist-row:last-child {
  border-bottom: none;
}
.jb-playlist-row:hover {
  background: #142436;
}
.jb-playlist-row.is-playing {
  background: #15324b;
  border-left: 3px solid #10b981;
}
.jb-row-icon {
  font-size: 16px;
}
.jb-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.jb-row-info b {
  font-size: 12px;
  color: #e2e8f0;
}
.jb-row-actions {
  display: flex;
  gap: 4px;
}

/* =========================================================================
 * TRAX BURN & LOAD MODALS
 * ========================================================================= */
.trax-overlay-dialog {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 20, 32, 0.85);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.trax-burn-modal {
  background: #132437;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  width: 520px;
  max-width: 95%;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.trax-modal-header {
  background: #0d1b2a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #284768;
  color: #ffd166;
  font-size: 14px;
}
.trax-modal-x {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}
.trax-modal-x:hover { color: #ef4444; }
.trax-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trax-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trax-form-group label {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
}
.trax-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: #09131d;
  border: 1px solid #203a53;
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
}
.trax-device-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trax-device-card {
  background: #09131d;
  border: 1.5px solid #203a53;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.trax-device-card input[type="radio"] { margin-top: 3px; }
.trax-device-card.active, .trax-device-card:has(input:checked) {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
}
.dev-card-content { flex: 1; }
.dev-title { font-weight: bold; font-size: 12px; color: #fff; }
.dev-desc { font-size: 10px; color: #94a3b8; margin: 2px 0 4px; }
.dev-tag { font-size: 9px; padding: 1px 6px; border-radius: 4px; background: #1e3a8a; color: #93c5fd; display: inline-block; font-weight: bold; }

.trax-copy-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.trax-copy-card {
  background: #09131d;
  border: 1.5px solid #203a53;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  gap: 8px;
}
.trax-copy-card input[type="radio"] { margin-top: 3px; }
.trax-copy-card.active, .trax-copy-card:has(input:checked) {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}
.copy-title { font-weight: bold; font-size: 12px; color: #38bdf8; }
.copy-desc { font-size: 10.5px; color: #94a3b8; margin-top: 3px; line-height: 1.35; }

.trax-cost-summary {
  background: #0d1b2a;
  border: 1px solid #284768;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cost-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cbd5e1; }
.trax-modal-footer {
  background: #0d1b2a;
  padding: 10px 14px;
  border-top: 1px solid #284768;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.trax-discs-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trax-disc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #09131d;
  border: 1px solid #203a53;
  border-radius: 8px;
}
.trax-disc-row.is-master { border-left: 3px solid #fbbf24; }
.trax-disc-row.is-read { border-left: 3px solid #64748b; opacity: 0.85; }

/* =========================================================================
 * SOBBAH HOMES & GROUPS BLOG MULTI-ROW DRAG & GUIDES SYSTEM
 * ========================================================================= */
.home-board-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}
.home-edit-toolbar {
  background: #0f1d2d;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: sticky;
  top: 10px;
  z-index: 100;
}
.home-edit-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-toggle-btn {
  background: #16283d;
  border: 1.5px solid #284768;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.home-toggle-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  font-weight: bold;
}

/* Imaginary Dashed Guide Grid */
.home-canvas-board {
  position: relative;
  min-height: 840px;
  width: 100%;
  border-radius: 16px;
  padding: 18px;
  box-sizing: border-box;
  transition: background 0.3s;
  background-color: #0b1522;
}
.home-canvas-board.show-grid-guides {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.25) 1px, transparent 1px);
  outline: 2px dashed #38bdf8;
  outline-offset: -2px;
}
.home-canvas-board.show-grid-guides::before {
  content: '📐 Griglia: Guide tratteggiate attive (Snap 32px)';
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: #38bdf8;
  background: rgba(11, 21, 34, 0.88);
  padding: 3px 10px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: bold;
  border: 1px solid #0284c7;
  z-index: 5;
}
.home-canvas-board.mode-free::before {
  content: '✨ Modalità Libera: Trascina ovunque liberamente';
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: #a78bfa;
  background: rgba(11, 21, 34, 0.88);
  padding: 3px 10px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: bold;
  border: 1px solid #7c3aed;
  z-index: 5;
}

/* Draggable Widget */
.home-widget.draggable {
  position: absolute;
  z-index: 10;
  cursor: default;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.home-widget.draggable .home-widget-head {
  cursor: grab;
  user-select: none;
}
.home-widget.is-dragging {
  z-index: 99 !important;
  opacity: 0.92;
  box-shadow: 0 16px 36px rgba(0,0,0,0.8), 0 0 16px rgba(56,189,248,0.5) !important;
  border-color: #38bdf8 !important;
}
.home-widget.is-dragging .home-widget-head {
  cursor: grabbing !important;
}

/* Widget Widths */
.widget-w-sm { width: 280px; }
.widget-w-md { width: 360px; }
.widget-w-lg { width: 480px; }
.widget-w-full { width: calc(100% - 36px); }

/* Canvas Themes */
.theme-default { background: #0b1522; }
.theme-sunset { background: radial-gradient(circle at 80% 20%, #4a1525, #1f0b18); }
.theme-mint { background: radial-gradient(circle at 20% 80%, #0d3632, #071918); }
.theme-neon { background: radial-gradient(circle at 50% 10%, #2e0854, #0f051d); }
.theme-gold { background: radial-gradient(circle at 50% 50%, #3d2b07, #191203); }
.theme-hc { background: radial-gradient(circle at 20% 20%, #0b3d1f, #051a0d); }

/* Trax Music Widget */
.trax-widget-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trax-player-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #0d1b2a;
  border: 1px solid #284768;
  border-radius: 6px;
  gap: 8px;
  transition: all 0.15s;
}
.trax-player-track.is-active {
  border-color: #ffd166;
  background: #15263a;
}
.trax-badge-disc {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.disc-cd { background: #1e3a8a; color: #93c5fd; }
.disc-dvd { background: #581c87; color: #d8b4fe; }
.disc-dvd_dual { background: #831843; color: #fbcfe8; }




/* ==========================================================================
   SOBBAH DYNAMIC SKY & OMINO BEACH HORIZON (DAY / SUNSET / NIGHT / RAIN)
   Inspired by omino_sobbah_1x.png pixel art aesthetic
   ========================================================================== */

/* 1. Header Sky Backdrop & Celestial Bodies */
.sobbah-header-banner {
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease;
}
.sobbah-sky-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  transition: all 0.8s ease;
}
.sobbah-header-in, .sobbah-main-nav, .sobbah-sub-nav {
  position: relative;
  z-index: 2;
}

/* Day Mode (07:00 - 17:00) */
.sobbah-header-banner.sky-day .sobbah-sky-backdrop {
  background: linear-gradient(180deg, #38bdf8 0%, #60a5fa 45%, #93c5fd 100%);
}
.sobbah-header-banner.sky-day .sky-celestial-body {
  position: absolute;
  top: 18px;
  right: 120px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fef08a;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 35px #fbbf24, 0 0 70px rgba(251, 191, 36, 0.4);
  animation: sunPulse 4s ease-in-out infinite alternate;
}
@keyframes sunPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.06); filter: brightness(1.15); }
}

/* Sunset Mode (17:00 - 20:00) */
.sobbah-header-banner.sky-sunset .sobbah-sky-backdrop {
  background: linear-gradient(180deg, #4338ca 0%, #a21caf 30%, #ea580c 65%, #facc15 100%);
}
.sobbah-header-banner.sky-sunset .sky-celestial-body {
  position: absolute;
  top: 42px;
  right: 150px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fb923c;
  border: 3px solid #c2410c;
  box-shadow: 0 0 45px #f97316, 0 0 90px rgba(234, 88, 12, 0.5);
  animation: sunsetGlow 3s ease-in-out infinite alternate;
}
@keyframes sunsetGlow {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Night Mode (20:00 - 07:00) */
.sobbah-header-banner.sky-night .sobbah-sky-backdrop {
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #1e1b4b 100%);
}
.sobbah-header-banner.sky-night .sky-celestial-body {
  position: absolute;
  top: 16px;
  right: 130px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 12px 10px 0 0 #f8fafc, 12px 10px 25px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-15deg);
}

/* Pixel Clouds */
.sky-clouds {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  image-rendering: pixelated;
}
.sky-cloud.c1 {
  width: 140px; height: 32px; top: 20px; left: -160px;
  animation: driftCloud 38s linear infinite;
}
.sky-cloud.c2 {
  width: 100px; height: 26px; top: 55px; left: -120px;
  animation: driftCloud 55s linear infinite 14s;
  opacity: 0.6;
}
.sky-cloud.c3 {
  width: 170px; height: 38px; top: 12px; left: -190px;
  animation: driftCloud 45s linear infinite 25s;
  opacity: 0.8;
}
@keyframes driftCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 300px)); }
}

/* Pixel Stars */
.sky-stars {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 40px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 280px 25px, #93c5fd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 420px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 580px 35px, #fde047, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 720px 65px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 860px 20px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 980px 85px, #93c5fd, rgba(0,0,0,0));
  background-repeat: repeat-x;
  animation: starTwinkle 3s ease-in-out infinite alternate;
}
.sobbah-header-banner.sky-night .sky-stars {
  display: block;
}
@keyframes starTwinkle {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* Pixel Rain */
.sky-rain {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(105deg, rgba(147, 197, 253, 0.45) 0px, rgba(147, 197, 253, 0.45) 2px, transparent 2px, transparent 20px);
  animation: rainFall 0.4s linear infinite;
  pointer-events: none;
}
.sobbah-header-banner.weather-rain .sky-rain {
  display: block;
}
@keyframes rainFall {
  0% { transform: translateY(-50px) translateX(0); }
  100% { transform: translateY(50px) translateX(15px); }
}

/* 2. Omino Beach & Sea Panorama (Spiaggia e Mare Omino Style) */
.sobbah-beach-sea-panorama {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin-top: 35px;
  border-top: 3px solid #0284c7;
  background: #0284c7 linear-gradient(180deg, #0369a1 0%, #075985 60%, #0c4a6e 100%);
  image-rendering: pixelated;
}
.sea-wave-layer {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background-repeat: repeat-x;
}
.sea-wave-layer.wave-back {
  background: radial-gradient(circle at 16px 0, #38bdf8 8px, transparent 9px) repeat-x;
  background-size: 32px 18px;
  opacity: 0.6;
  animation: waveMotion 4s linear infinite reverse;
}
.sea-wave-layer.wave-mid {
  top: 8px;
  background: radial-gradient(circle at 16px 0, #7dd3fc 10px, transparent 11px) repeat-x;
  background-size: 36px 20px;
  opacity: 0.8;
  animation: waveMotion 3s linear infinite;
}
.sea-wave-layer.wave-front {
  top: 18px;
  background: radial-gradient(circle at 20px 0, #ffffff 12px, transparent 13px) repeat-x;
  background-size: 40px 22px;
  opacity: 0.95;
  animation: waveMotion 2.2s linear infinite reverse;
}
@keyframes waveMotion {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}
.beach-sand-shore {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42px;
  background: #eab308 linear-gradient(180deg, #fef08a 0%, #facc15 30%, #eab308 70%, #ca8a04 100%);
  border-top: 3px solid #fef9c3;
  box-shadow: inset 0 2px 4px rgba(202, 138, 4, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
}
.shore-omino-marker {
  position: relative;
  top: -8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #facc15;
  padding: 3px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.shore-omino-sprite {
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.shore-omino-caption {
  font-size: 11px;
  color: #fef08a;
  font-weight: bold;
}
