/* User portal — teller-style shell, muted gateway gold */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --sidebar-width: 282px;
  --sidebar-mini-width: 86px;
  --star-gold: #e8c66a;
  --star-gold-soft: #d4c08a;
  --star-gold-dim: rgba(232, 198, 106, 0.10);
  --star-gold-line: rgba(232, 198, 106, 0.16);
  --star-gold-line-strong: rgba(232, 198, 106, 0.26);
  --ug-bg: #101010;
  --ug-bg-mid: #141414;
  --ug-fg: #ececec;
  --ug-muted: #a3a3a3;
  --sb-bg: #121212;
  --sb-text: #f3eee4;
  --sb-muted: #b8ae98;
  --sb-border: rgba(232, 198, 106, 0.12);
  --sb-gold: #e8c66a;
  --sb-gold-light: #ead7a0;
  --sb-ease: cubic-bezier(.22, 1, .36, 1);
  --sb-spring: cubic-bezier(.34, 1.35, .64, 1);
}

html {
  color-scheme: dark;
  background: var(--ug-bg);
}
html.light,
html:not(.dark) {
  color-scheme: light;
  --ug-bg: #f6f1e8;
  --ug-bg-mid: #efe8d8;
  --ug-fg: #2a2418;
  --ug-muted: #6f6758;
  --sb-text: #2a2418;
  --sb-muted: #6f6758;
  --sb-border: rgba(154, 135, 88, 0.18);
  --star-gold-dim: rgba(201, 178, 122, 0.12);
  --star-gold-line: rgba(201, 178, 122, 0.22);
  --star-gold-line-strong: rgba(201, 178, 122, 0.34);
}

html.dark body,
html:not(.light) body {
  background:
    radial-gradient(ellipse at 18% -10%, rgba(255, 255, 255, 0.03), transparent 46%),
    linear-gradient(180deg, #141414 0%, #101010 100%) !important;
  color: #ececec;
}
html.light body,
html:not(.dark) body {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(232, 198, 106, 0.08), transparent 42%),
    linear-gradient(180deg, #f6f1e8 0%, #efe8d8 100%) !important;
  color: #1c1917;
}

#universe-canvas,
#constellationCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
html.light #universe-canvas,
html:not(.dark) #universe-canvas,
html.light #constellationCanvas,
html:not(.dark) #constellationCanvas {
  opacity: 0;
  visibility: hidden;
}

.shell { position: relative; z-index: 1; min-height: 100vh; }
body .main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 18px 28px 72px;
  min-height: 100vh;
  transition: margin-left .45s var(--sb-ease), width .45s var(--sb-ease);
}
body.sidebar-mini { --sidebar-width: var(--sidebar-mini-width); }
.side.mini { width: var(--sidebar-mini-width) !important; }
body.sidebar-mini .main {
  margin-left: var(--sidebar-mini-width) !important;
  width: calc(100% - var(--sidebar-mini-width)) !important;
}

html.light .side,
html:not(.dark) .side {
  background: linear-gradient(180deg, #f3eee4 0%, #ebe4d4 100%) !important;
  border-right-color: rgba(154, 135, 88, 0.18) !important;
}

.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  padding: 0 17px 18px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, #161616 0%, #121212 52%, #101010 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 16px rgba(0,0,0,.12);
  z-index: 1200;
  overflow: visible;
  transition: width .45s var(--sb-spring), transform .45s var(--sb-spring);
}
.side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 14% 19%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 11%, rgba(255,255,255,.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 43%, rgba(255,255,255,.16) 0 1px, transparent 1.5px);
}
.side > * { position: relative; z-index: 1; }

.brand {
  min-height: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid var(--sb-border);
}
.brand-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center; border-radius: 14px;
}
.brand-mark img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}
.brand b {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
}
html.light .brand b,
html:not(.dark) .brand b { color: #2a2418; }
.brand .brand-hub {
  background: linear-gradient(135deg, #ead7a0 0%, #e8c66a 55%, #c9b27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--star-gold-soft);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.nav-list { display: flex; flex-direction: column; gap: 5px; margin-top: 21px; }
.nav-item {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 13px;
  color: var(--sb-muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: .91rem;
  font-weight: 500;
  transition: color .28s ease, background .28s ease, border-color .28s ease, transform .28s var(--sb-ease);
}
.nav-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 99px;
  background: var(--star-gold);
  box-shadow: 0 0 8px rgba(232, 198, 106, 0.18);
  transform: translateY(-50%);
  transition: height .28s var(--sb-ease);
}
.nav-item .ic {
  width: 24px; min-width: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sb-muted);
  font-size: 21px;
  transition: transform .28s var(--sb-spring), color .28s ease;
}
.nav-item:hover {
  color: var(--sb-text);
  background: rgba(255,255,255,.04);
  border-color: var(--star-gold-line);
  transform: translateX(3px);
}
.nav-item:hover .ic { transform: scale(1.1); color: var(--star-gold-soft); }
.nav-item.active {
  color: var(--sb-text);
  font-weight: 600;
  background: var(--star-gold-dim);
  border-color: var(--star-gold-line-strong);
}
.nav-item.active::before { height: 22px; }
.nav-item.active .ic { color: var(--star-gold); }
html.light .nav-item.active,
html:not(.dark) .nav-item.active { color: #2a2418; }
html.light .nav-item.active .ic,
html:not(.dark) .nav-item.active .ic { color: #9a8758; }
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  background: rgba(232, 198, 106, 0.22);
  color: #f6eed8;
  border: 1px solid var(--star-gold-line-strong);
}
html.light .nav-badge,
html:not(.dark) .nav-badge { color: #2a2418; }

.sidebar-text { white-space: nowrap; opacity: 1; overflow: hidden; transition: opacity .18s ease, max-width .3s ease; }
.side.mini { padding-left: 12px; padding-right: 12px; }
.side.mini .sidebar-text { opacity: 0; max-width: 0; pointer-events: none; }
.side.mini .brand, .side.mini .brand-left { justify-content: center; padding-left: 0; padding-right: 0; }
.side.mini .nav-item { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.side.mini .nav-item::before { left: -12px; }
.side.mini .account-btn { justify-content: center; padding: 9px 0; gap: 0; background: transparent; border-color: transparent; }
.side.mini .account-btn .user-info,
.side.mini .account-btn .menu-dots { display: none; }
.side.mini .account-btn .avatar { margin: 0 auto; }
.side:not(.mini) .account-dropdown { left: 0; right: auto; width: 100%; min-width: 0; bottom: calc(100% - 6px); }
.side.mini .account-dropdown { left: calc(100% + 14px); right: auto; bottom: 78px; width: 248px; min-width: 248px; }
.side.mini .nav-item:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 13px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--sb-text);
  background: #171410;
  border: 1px solid var(--star-gold-line);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2000;
}
html.light .side.mini .nav-item:hover::after,
html:not(.dark) .side.mini .nav-item:hover::after {
  background: #fff; color: #2a2418; border-color: var(--star-gold-line-strong);
}

.sidebar-edge-toggle {
  position: absolute;
  right: -20px; bottom: 24px;
  width: 20px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--star-gold-soft);
  background: #1a1612;
  border: 1px solid var(--star-gold-line-strong);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  z-index: 20;
}
html.light .sidebar-edge-toggle,
html:not(.dark) .sidebar-edge-toggle {
  background: #f3eee4; color: #6f6758;
}
.sidebar-edge-toggle i { font-size: 11px; }

.account-menu-wrap {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sb-border);
}
.account-btn {
  width: 100%;
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  color: var(--sb-text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--star-gold-line);
  border-radius: 17px;
  cursor: pointer;
  text-align: left;
}
html.light .account-btn,
html:not(.dark) .account-btn {
  background: #fff;
  border-color: var(--star-gold-line-strong);
  color: #2a2418;
}
.account-btn .avatar {
  width: 39px; height: 39px; flex: 0 0 39px;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--star-gold-line-strong);
}
.account-btn .user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.account-btn .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 650; }
.account-btn .user-handle { margin-top: 2px; color: var(--sb-muted); font-size: .69rem; }
.account-btn .menu-dots { color: var(--star-gold); font-size: 18px; }

.account-dropdown {
  position: absolute;
  left: 0;
  bottom: calc(100% - 6px);
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 11px;
  background: #171410;
  border: 1px solid var(--star-gold-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  z-index: 3000;
}
html.light .account-dropdown,
html:not(.dark) .account-dropdown {
  background: #fff;
  border-color: var(--star-gold-line-strong);
}
.account-dropdown.show { display: flex; }
.dropdown-header {
  padding: 4px 8px 6px;
  color: var(--star-gold);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.dropdown-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 3px;
  border-radius: 12px;
  background: var(--star-gold-dim);
}
.dropdown-user-card .avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--star-gold-line);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  color: var(--sb-text);
  text-decoration: none;
  font-size: .79rem;
  border-radius: 10px;
}
.dropdown-item i { width: 18px; color: var(--star-gold); font-size: 17px; }
.dropdown-item:hover { background: var(--star-gold-dim); }
.dropdown-divider { height: 1px; margin: 5px 0; background: var(--sb-border); }

.logout-confirm-overlay {
  position: fixed; inset: 0; z-index: 50000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(16, 14, 12, 0.62);
  backdrop-filter: blur(8px);
}
.logout-confirm-overlay.show { display: flex; }
.logout-confirm-card {
  width: 100%; max-width: 360px;
  padding: 22px;
  border-radius: 20px;
  background: #171410;
  border: 1px solid var(--star-gold-line-strong);
  color: var(--ug-fg);
}
html.light .logout-confirm-card,
html:not(.dark) .logout-confirm-card { background: #fff; }
.logout-confirm-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.logout-confirm-card p { margin: 0 0 20px; font-size: 0.88rem; color: var(--ug-muted); }
.logout-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.logout-confirm-actions .btn-cancel,
.logout-confirm-actions .btn-logout {
  border: 0; border-radius: 12px; min-height: 40px; padding: 0 16px;
  font-size: 0.84rem; font-weight: 650; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center; cursor: pointer;
}
.logout-confirm-actions .btn-cancel {
  background: rgba(255,255,255,.08);
  color: inherit;
  border: 1px solid var(--star-gold-line);
}
.logout-confirm-actions .btn-logout {
  background: linear-gradient(135deg, #d4c08a, #c9b27a);
  color: #2a2418;
}

.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,6,4,.55);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }
.sidebar-float-toggle {
  position: fixed; top: 18px; left: 18px; z-index: 990;
  width: 44px; height: 44px;
  display: none; place-items: center;
  color: var(--star-gold-soft);
  background: #171410;
  border: 1px solid var(--star-gold-line-strong);
  border-radius: 13px;
  cursor: pointer;
}
html.light .sidebar-float-toggle,
html:not(.dark) .sidebar-float-toggle { background: #fff; color: #6f6758; }

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -18px -28px 18px;
  padding: 12px 28px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.user-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.user-topbar__title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  color: #ececec;
}
html.light .user-topbar__title,
html:not(.dark) .user-topbar__title {
  color: #1c1917;
}
html.light .user-topbar,
html:not(.dark) .user-topbar {
  background: rgba(246, 241, 232, 0.9);
  border-bottom-color: rgba(201, 178, 122, 0.22);
}
.user-topbar__search {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  position: relative;
  z-index: 100;
}
.user-nav-chip {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ececec;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  flex: 0 0 auto;
  position: relative;
  white-space: nowrap;
}
html.light .user-nav-chip,
html:not(.dark) .user-nav-chip {
  background: #f4eee3;
  border-color: rgba(201, 178, 122, 0.32);
  color: #6f6758;
}
.user-nav-chip--icon {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 0;
}
.user-nav-chip--icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
}
.teller-theme-toggle,
#theme-toggle-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 36px !important;
  line-height: 1 !important;
  cursor: pointer;
  border: 1px solid rgba(232, 198, 106, 0.22);
  background: rgba(232, 198, 106, 0.10);
  color: #d4c08a;
  transition: transform 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.22s ease;
}
.teller-theme-toggle:hover,
#theme-toggle-btn:hover {
  border-color: rgba(232, 198, 106, 0.4);
  background: rgba(232, 198, 106, 0.18);
  color: #ead7a0;
  transform: scale(1.08);
}
.teller-theme-toggle i {
  font-size: 0.8rem;
  pointer-events: none;
  line-height: 1;
}
html.light .teller-theme-toggle,
html:not(.dark) .teller-theme-toggle,
html.light #theme-toggle-btn,
html:not(.dark) #theme-toggle-btn {
  background: #f4eee3;
  border-color: rgba(201, 178, 122, 0.42);
  color: #8a7540;
}
.user-nav-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}
.user-icon-btn,
.user-chip-btn {
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ececec;
  cursor: pointer;
  box-sizing: border-box;
}
.user-icon-btn { width: 36px; min-width: 36px; padding: 0; }
.user-chip-btn { padding: 0 12px; font-size: 12px; font-weight: 600; }
html.light .user-icon-btn,
html.light .user-chip-btn,
html:not(.dark) .user-icon-btn,
html:not(.dark) .user-chip-btn {
  background: #f4eee3;
  border-color: rgba(201, 178, 122, 0.32);
  color: #6f6758;
}

.glass-panel, .glass-feed-panel, .glass-panel-dark {
  background: rgba(28, 28, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
html.light .glass-panel,
html.light .glass-feed-panel,
html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(201, 178, 122, 0.22);
  box-shadow: 0 8px 22px rgba(42, 36, 24, 0.05);
}
.glass-nav {
  background: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .glass-nav,
html:not(.dark) .glass-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(201, 178, 122, 0.2);
}
.search-input {
  background: #1c1c1c !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f3f3f3 !important;
  caret-color: #f3f3f3;
}
.search-input::placeholder { color: #9a9a9a !important; }
.search-input:focus {
  border-color: rgba(232, 198, 106, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(232, 198, 106, 0.12);
  outline: none;
}
.user-search-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
body.sidebar-mini .user-search-backdrop {
  left: var(--sidebar-mini-width);
}
@media (max-width: 1023px) {
  .user-search-backdrop { left: 0; }
}
.user-nav-chip .count-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c9b27a;
  color: #fff;
}
@keyframes cookie-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(12deg); }
  75% { transform: rotate(-8deg); }
}
.cookie-pending img {
  animation: cookie-shake 0.65s ease-in-out infinite;
  transform-origin: center;
}
.cookie-pending-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #c45c5c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
html.light .search-input,
html:not(.dark) .search-input {
  background: #ffffff !important;
  color: #1c1917 !important;
  caret-color: #1c1917;
  border: 1px solid rgba(201, 178, 122, 0.35) !important;
}
html.light .search-input::placeholder,
html:not(.dark) .search-input::placeholder { color: #8a8498 !important; }
html.light .search-input:focus,
html:not(.dark) .search-input:focus {
  border-color: #c9b27a !important;
  box-shadow: 0 0 0 3px rgba(201, 178, 122, 0.18);
}
.search-card-dropdown {
  background: rgba(22, 22, 22, 0.96);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html.light .search-card-dropdown,
html:not(.dark) .search-card-dropdown {
  background: #fff !important;
  color: #1c1917 !important;
}

#feedStream { display: flex; flex-direction: column; gap: 10px; padding: 0; }
html.dark .feed-post-card {
  background: rgba(28, 28, 28, 0.82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
html.dark .feed-post-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}
html.light .feed-post-card,
html:not(.dark) .feed-post-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 178, 122, 0.22);
  color: #1c1917;
}
.filter-chip.active,
.chat-tab.active {
  background: var(--star-gold-dim) !important;
  color: var(--star-gold) !important;
  border-color: var(--star-gold-line-strong) !important;
}
.chat-tab.active { background: transparent !important; border-bottom-color: var(--star-gold) !important; }

@media (max-width: 1023px) {
  body .main { margin-left: 0 !important; width: 100% !important; padding: 18px 16px 80px; }
  .user-topbar { margin: -18px -16px 16px; padding: 12px 16px 12px 68px; }
  .side { width: 282px !important; transform: translateX(-105%); }
  .side.mobile-open { transform: translateX(0); }
  .sidebar-edge-toggle { display: none; }
  .sidebar-float-toggle { display: grid; }
  .side.mini { width: 282px !important; }
  .side.mini .sidebar-text { opacity: 1; max-width: 999px; pointer-events: auto; }
  .side.mini .nav-item { justify-content: flex-start; gap: 14px; padding: 10px 13px; }
  .side.mini .nav-item:hover::after { display: none; }
  .side.mini .brand { justify-content: flex-start; }
  .side.mini .account-btn { justify-content: flex-start; padding: 9px 10px; }
}

.ud-page-skeleton {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  z-index: 1100;
  padding: 18px 28px;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(ellipse at 18% -10%, rgba(255, 255, 255, 0.03), transparent 46%),
    linear-gradient(180deg, #141414 0%, #101010 100%);
  overflow: hidden;
}
html.ud-skel-profile .ud-page-skeleton { overflow: auto; }
body.sidebar-mini .ud-page-skeleton { left: var(--sidebar-mini-width); }
html.light .ud-page-skeleton,
html:not(.dark) .ud-page-skeleton {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(232, 198, 106, 0.08), transparent 42%),
    linear-gradient(180deg, #f6f1e8 0%, #efe8d8 100%);
}
html.ud-skel-pending .ud-page-skeleton,
.ud-page-skeleton.is-on { display: flex; }
.ud-skel-feed,
.ud-skel-profile-layout {
  display: none;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
}
html.ud-skel-pending:not(.ud-skel-profile) .ud-skel-feed { display: flex; }
html.ud-skel-profile .ud-skel-profile-layout { display: flex; }
.ud-skel-profile-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 28, 28, 0.82);
}
html.light .ud-skel-profile-card,
html:not(.dark) .ud-skel-profile-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(201, 178, 122, 0.22);
}
.ud-skel-cover {
  height: 180px;
  background: linear-gradient(90deg, rgba(201, 178, 122, 0.1) 0%, rgba(232, 198, 106, 0.26) 45%, rgba(201, 178, 122, 0.1) 100%);
  background-size: 220% 100%;
  animation: ud-skel-shine 1.15s ease-in-out infinite;
}
.ud-skel-profile-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ud-skel-avatar-lg {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  margin-top: -56px;
  border: 4px solid rgba(20, 20, 20, 0.9);
  background: linear-gradient(90deg, rgba(201, 178, 122, 0.12) 0%, rgba(232, 198, 106, 0.28) 45%, rgba(201, 178, 122, 0.12) 100%);
  background-size: 220% 100%;
  animation: ud-skel-shine 1.15s ease-in-out infinite;
}
html.light .ud-skel-avatar-lg,
html:not(.dark) .ud-skel-avatar-lg { border-color: #fff; }
.ud-skel-stats {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}
.ud-skel-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ud-skel-pkg {
  height: 210px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(201, 178, 122, 0.1) 0%, rgba(232, 198, 106, 0.24) 45%, rgba(201, 178, 122, 0.1) 100%);
  background-size: 220% 100%;
  animation: ud-skel-shine 1.15s ease-in-out infinite;
}
@media (max-width: 768px) {
  .ud-skel-cover { height: 140px; }
  .ud-skel-avatar-lg { width: 88px; height: 88px; margin-top: -44px; }
  .ud-skel-pkg-grid { grid-template-columns: 1fr; }
}
.ud-skel-hero {
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}
.ud-skel-card {
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 28, 28, 0.82);
}
html.light .ud-skel-card,
html:not(.dark) .ud-skel-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(201, 178, 122, 0.22);
}
.ud-skel-row { display: flex; align-items: center; gap: 12px; }
.ud-skel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
}
.ud-skel-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ud-skel-line,
.ud-skel-hero,
.ud-skel-avatar {
  background: linear-gradient(90deg, rgba(201, 178, 122, 0.12) 0%, rgba(232, 198, 106, 0.28) 45%, rgba(201, 178, 122, 0.12) 100%);
  background-size: 220% 100%;
  animation: ud-skel-shine 1.15s ease-in-out infinite;
}
.ud-skel-line {
  height: 12px;
  border-radius: 999px;
  width: 100%;
}
.ud-skel-line.w40 { width: 40%; }
.ud-skel-line.w55 { width: 55%; }
.ud-skel-line.w70 { width: 70%; }
.ud-skel-line.h18 { height: 18px; }
.ud-skel-block {
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(201, 178, 122, 0.08) 0%, rgba(232, 198, 106, 0.2) 45%, rgba(201, 178, 122, 0.08) 100%);
  background-size: 220% 100%;
  animation: ud-skel-shine 1.15s ease-in-out infinite;
}
@keyframes ud-skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 1023px) {
  .ud-page-skeleton { left: 0; padding: 18px 16px 18px 16px; padding-top: 72px; }
}
