/* ===================================================================
   NPanel CLOUD CONTROL SUITE - MODERN UNIFIED STYLING
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #0f1218;
  --mute: #64748b;
  --bd: #e4e7ec;
  --soft: #f8fafc;
  --acc: #ff6a1f;
  --acc2: #ff9a3d;
  --ok: #0ca678;
  --sh: 0 1px 3px rgba(16,18,24,.03), 0 10px 24px -14px rgba(16,18,24,.08);

  /* Compatibility Tokens */
  --cp-orange: #ff6a1f;
  --cp-orange-glow: rgba(255, 106, 31, 0.25);
  --cp-orange-hover: #ff8a3d;
  --cp-navy: #0f1218;
  --cp-bg: var(--bg);
  --cp-surface: var(--card);
  --cp-surface-elevated: var(--card);
  --cp-border: var(--bd);
  --cp-border-hover: #cbd5e1;
  --cp-text-primary: var(--ink);
  --cp-text-secondary: #475569;
  --cp-text-muted: var(--mute);
  --cp-card-bg: var(--card);
  --cp-text: var(--ink);
  --cp-input-bg: var(--soft);
  --cp-bg-secondary: var(--soft);
  --cp-card-shadow: var(--sh);
  --cp-card-hover-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  --cp-success: var(--ok);
  --cp-success-bg: rgba(12, 166, 120, 0.12);
  --cp-warning: #f59e0b;
  --cp-warning-bg: rgba(245, 158, 11, 0.12);
  --cp-danger: #ef4444;
  --cp-danger-bg: rgba(239, 68, 68, 0.12);
  --cp-info: #0ea5e9;
  --cp-info-bg: rgba(14, 165, 233, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #08090c;
  --card: #0e1015;
  --ink: #f8fafc;
  --mute: #8d93a3;
  --bd: #1a1c24;
  --soft: #13141b;
  --sh: none;

  --cp-bg: var(--bg);
  --cp-surface: var(--card);
  --cp-surface-elevated: #151720;
  --cp-border: var(--bd);
  --cp-border-hover: rgba(255, 106, 31, 0.35);
  --cp-text-primary: var(--ink);
  --cp-text-secondary: #94a3b8;
  --cp-text-muted: #a1a1aa;
  --cp-card-bg: var(--card);
  --cp-text: #ffffff;
  --cp-input-bg: var(--soft);
  --cp-bg-secondary: var(--soft);
  --cp-card-shadow: none;
  --cp-card-hover-shadow: 0 15px 35px -5px rgba(255, 106, 31, 0.15);
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}

svg.i {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* ================= MODERN TOPBAR (EDGE-TO-EDGE, STUCK AT TOP) ================= */
.top, .cp-topbar {
  position: sticky !important; top: 0 !important; z-index: 100 !important;
  display: flex !important; align-items: center !important; gap: 14px !important;
  height: 68px !important; margin: 0 !important; width: 100% !important; border-radius: 0 !important;
  padding: 0 32px !important;
  background: color-mix(in srgb, var(--card) 92%, transparent) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important; -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid var(--bd) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}
.cp-topbar::after, .top::before { display: none !important; }

.tt1 { min-width: auto; }
.tt1 b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--ink); }

.srch {
  flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 44px;
  padding: 0 10px 0 14px; border-radius: 14px; background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--bd); color: var(--mute); transition: box-shadow .2s, background .2s;
}
.srch:focus-within {
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px color-mix(in srgb, var(--acc) 12%, transparent);
}
.srch:focus-within > span:first-child { color: var(--acc); }
.srch input { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; outline: 0; min-width: 0; }
kbd { font: 700 11px inherit; border-radius: 6px; padding: 2px 6px; color: var(--mute); background: var(--card); box-shadow: inset 0 0 0 1px var(--bd), 0 1px 0 var(--bd); }

.ib {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  border: 0; background: var(--soft); box-shadow: inset 0 0 0 1px var(--bd); color: var(--ink); cursor: pointer;
  transition: transform .2s, box-shadow .2s, color .2s, background .2s; flex-shrink: 0;
}
.ib:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); }
.ib.out { color: #ef4444; }
.ib.out:hover { background: #ef444414; box-shadow: inset 0 0 0 1.5px #ef4444; color: #ef4444; }
.nd {
  position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff2d87; box-shadow: 0 0 0 2px var(--soft); animation: ping2 2s infinite;
}
@keyframes ping2 { 0% { box-shadow: 0 0 0 2px var(--soft), 0 0 0 2px #ff2d8788; } 70%, 100% { box-shadow: 0 0 0 2px var(--soft), 0 0 0 8px transparent; } }

.cr {
  display: flex; gap: 7px; align-items: center; height: 44px; padding: 0 18px 0 14px; border: 0;
  border-radius: 14px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff;
  font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 10px 24px -10px var(--acc);
  transition: transform .2s, filter .2s;
}
.cr:hover { transform: translateY(-1px); filter: brightness(1.05); }

.live {
  display: flex; gap: 9px; align-items: center; height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--bd); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.live small { color: var(--mute); font-weight: 700; font-size: 11.5px; }
.eq { display: flex; gap: 2.5px; align-items: flex-end; height: 16px; }
.eq i { width: 3.5px; border-radius: 2px; background: linear-gradient(var(--acc2), var(--acc)); animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; }
.eq i:nth-child(2) { height: 80%; animation-delay: -.3s; }
.eq i:nth-child(3) { height: 55%; animation-delay: -.6s; }
.eq i:nth-child(4) { height: 95%; animation-delay: -.9s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.eq i { transform-origin: bottom; }

.usr {
  display: flex; gap: 10px; align-items: center; height: 44px; padding: 0 12px 0 4px; border: 0;
  border-radius: 15px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--bd); color: var(--ink);
  cursor: pointer; text-align: left; transition: box-shadow .2s;
}
.usr:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
.usr .rg { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--acc), #ff2d87, #8b3dff, var(--acc)); flex-shrink: 0; }
.usr .rg span { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--acc), #ff3d71); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; border: 2px solid var(--card); }
.usr b { display: block; font-size: 13px; line-height: 1.15; font-weight: 700; }
.usr small { color: var(--mute); font-size: 11px; font-weight: 600; }

.rel { position: relative; }
.menu {
  position: absolute; right: 0; top: 54px; min-width: 220px; background: var(--card);
  border-radius: 18px; padding: 8px; display: none; box-shadow: inset 0 0 0 1px var(--bd), 0 24px 50px -16px rgba(0,0,0,.3);
  z-index: 150; animation: pop .2s;
}
.menu.on { display: block; }
.menu.wide { min-width: 310px; }
.menu a, .menu .mi {
  display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink);
  text-decoration: none; font-size: 13px; font-weight: 700; border: 0; background: none; width: 100%;
  cursor: pointer; text-align: left; transition: background .15s;
}
.menu a:hover, .menu .mi:hover { background: var(--soft); }
.menu a svg { color: var(--acc); }
.menu .mh { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 10px; font-size: 12.5px; font-weight: 800; }
.menu .mh button { border: 0; background: none; color: var(--acc); font-weight: 700; font-size: 11.5px; cursor: pointer; }
.menu .nt { display: flex; gap: 11px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.menu .nt:hover { background: var(--soft); }
.menu .nt i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.menu .nt small { display: block; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.menu hr { border: 0; height: 1px; background: var(--bd); margin: 6px 4px; }
.menu .out { color: #ef4444; }
.menu .out svg { color: #ef4444; }

/* ================= MODERN SIDEBAR ================= */
.side, .cp-left-nav {
  width: 276px !important; min-width: 276px !important;
  position: sticky !important; top: 0 !important; height: 100vh !important;
  display: flex !important; flex-direction: column !important; overflow: auto !important;
  padding: 22px 16px 18px !important; color: #9aa1b2 !important;
  background: radial-gradient(380px 300px at 0 0, rgba(255,106,31,.24), transparent 70%), #07080b !important;
  border-right: 1px solid #ffffff12 !important; border-top: none !important; border-bottom: none !important;
  z-index: 45 !important;
}
.side::-webkit-scrollbar, .cp-left-nav::-webkit-scrollbar { display: none; }

.logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 23px; letter-spacing: -.04em; padding: 0 8px 22px; text-decoration: none; }
.logo i { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--acc), var(--acc2)); display: grid; place-items: center; box-shadow: 0 10px 26px -8px var(--acc); }
.logo b { color: var(--acc); }
.tag { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent); letter-spacing: .06em; margin-left: auto; }

/* ================= PREMIUM USER PROFILE CARD IN SIDEBAR ================= */
.me {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 18px; color: #fff; margin-bottom: 12px; cursor: pointer; text-decoration: none;
  background: radial-gradient(120px 60px at 0% 50%, rgba(255, 106, 31, 0.18), transparent 70%),
              linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.me:hover {
  transform: translateY(-1.5px);
  border-color: rgba(255, 106, 31, 0.45);
  background: radial-gradient(140px 70px at 0% 50%, rgba(255, 106, 31, 0.28), transparent 70%),
              linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 12px 28px -8px rgba(255, 106, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.av-box { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.av {
  width: 100%; height: 100%; border-radius: 13px;
  background: linear-gradient(135deg, var(--acc), #ff2d87);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 6px 16px -4px rgba(255, 106, 31, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.dot-status {
  position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; border: 2px solid #07080b; box-shadow: 0 0 8px #10b981;
}
.me-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.me-name-row { display: flex; align-items: center; gap: 6px; }
.me-name-row b {
  display: block; font-size: 13.5px; font-weight: 800; line-height: 1.2; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 105px;
}
.tag-role {
  font-size: 9px; font-weight: 800; padding: 1.5px 6px; border-radius: 99px;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 106, 31, 0.16); color: var(--acc2);
  border: 1px solid rgba(255, 106, 31, 0.35); flex-shrink: 0;
}
.me-status {
  display: flex; gap: 6px; align-items: center; color: #5eead4; font-size: 11.5px; font-weight: 600; line-height: 1;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ok); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.me-arrow {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9aa1b2; margin-left: auto; flex-shrink: 0; transition: all 0.2s;
}
.me-arrow svg { width: 13px; height: 13px; stroke-width: 2.2; }
.me:hover .me-arrow {
  background: rgba(255, 106, 31, 0.2); border-color: rgba(255, 106, 31, 0.4);
  color: #fff; transform: translateX(2px);
}

.side h4, .cp-left-nav h4 { font-size: 11px; letter-spacing: .12em; color: #6b7284; font-weight: 800; padding: 18px 14px 8px; text-transform: uppercase; }
.nav a { display: flex; gap: 13px; align-items: center; padding: 11px 14px; margin-bottom: 3px; border-radius: 14px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 700; position: relative; transition: background .2s, color .2s, transform .2s; cursor: pointer; }
.nav a:hover { background: #ffffff12; color: #fff; transform: translateX(3px); }
.nav a.on { background: linear-gradient(90deg, var(--acc), #ff8a3d) !important; color: #fff !important; box-shadow: 0 12px 26px -12px var(--acc) !important; }
.nav a.on:hover { transform: none; }
.nav .bg { margin-left: auto; font-size: 11px; font-weight: 800; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 99px; background: #ffffff18; color: #fff; }
.nav a.on .bg { background: #00000030; }

.plan { margin-top: auto; padding: 16px; border-radius: 20px; border: 1px solid #ffffff17; background: linear-gradient(160deg, #ffffff0d, #ffffff04); color: #fff; }
.plan b { font-size: 13px; display: flex; justify-content: space-between; }
.plan small { display: block; color: #8e95a6; font-size: 12px; margin: 6px 0 10px; font-weight: 600; }
.plan .bar { background: #ffffff1a; }
.plan button { width: 100%; margin-top: 14px; border: 0; border-radius: 12px; padding: 10px; background: #fff; color: #111; font-weight: 800; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.plan button:hover { background: var(--acc); color: #fff; }

.bar { height: 6px; border-radius: 9px; background: var(--bd); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* ================= APP CONTAINER & MAIN CONTENT (INDEX GRID ARCHITECTURE) ================= */
.app {
  display: grid !important;
  grid-template-columns: 276px minmax(0, 1fr) !important;
  min-height: 100vh !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.col {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#hb {
  display: flex !important;
  align-items: center !important; justify-content: center !important;
  width: 40px !important; height: 40px !important; border-radius: 13px !important;
  border: 1px solid var(--bd) !important; background: var(--soft) !important;
  color: var(--ink) !important; cursor: pointer !important; padding: 0 !important;
  flex-shrink: 0 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
#hb:hover, #hb:active {
  background: var(--card) !important; border-color: var(--acc) !important; color: var(--acc) !important;
  transform: scale(0.96) !important;
}
#hb svg.i {
  width: 20px !important; height: 20px !important; stroke-width: 2.3 !important; stroke-linecap: round !important;
  display: block !important; margin: auto !important;
}

/* ================= COLLAPSED MINI SIDEBAR (PC DESKTOP) ================= */
#hb {
  cursor: pointer !important;
}
#hb svg.i {
  width: 20px !important; height: 20px !important; stroke: currentColor !important; stroke-width: 2.3 !important; stroke-linecap: round !important;
  display: block !important; margin: auto !important;
}

/* Sidebar bottom actions in expanded mode */
.side-bottom-actions {
  margin-top: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 12px 6px 4px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.side-bottom-actions .sb-act {
  flex: 1 !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  padding: 0 !important;
  position: relative !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  text-decoration: none !important;
  outline: none !important;
}
.side-bottom-actions .sb-act:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}
.side-bottom-actions .sb-act.out:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}
.side-bottom-actions .sb-act svg.i {
  width: 19px !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-width: 2.1 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  display: block !important;
  margin: auto !important;
}

@media (min-width: 961px) {
  #hb {
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    width: 42px !important; height: 42px !important; border-radius: 13px !important;
    border: 1px solid var(--bd) !important; background: var(--soft) !important;
    color: var(--ink) !important; padding: 0 !important;
    flex-shrink: 0 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  #hb:hover, #hb:active {
    background: var(--card) !important; border-color: var(--acc) !important; color: var(--acc) !important;
    transform: scale(0.96) !important;
  }

  body.side-collapsed .app,
  body.side-collapsed #cpanel-view-container {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    transition: grid-template-columns 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  body.side-collapsed .side,
  body.side-collapsed .cp-left-nav {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    padding: 18px 8px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    background: #08090c !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.22s !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }

  /* Logo in collapsed mode */
  body.side-collapsed .side .logo {
    padding: 0 0 16px !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side .logo span,
  body.side-collapsed .side .logo .tag {
    display: none !important;
  }
  body.side-collapsed .side .logo i {
    margin: 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    display: grid !important;
    place-items: center !important;
  }

  /* Profile avatar in collapsed mode */
  body.side-collapsed .side .me {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 auto 12px !important;
    justify-content: center !important;
    border-radius: 14px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: radial-gradient(120px 60px at 0% 50%, rgba(255, 106, 31, 0.18), transparent 70%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side .me .me-info,
  body.side-collapsed .side .me .me-arrow {
    display: none !important;
  }
  body.side-collapsed .side .me .av-box {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.side-collapsed .side .me:hover::after {
    content: "Account Profile";
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f1218;
    color: #fff;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    animation: tipFade 0.15s ease-out;
  }

  /* Section dividers */
  body.side-collapsed .side h4 {
    height: 1px !important;
    padding: 0 !important;
    margin: 10px auto !important;
    font-size: 0 !important;
    color: transparent !important;
    background: rgba(255, 255, 255, 0.08) !important;
    width: 42px !important;
    border: 0 !important;
  }

  /* Navigation links: perfectly centered icon boxes */
  body.side-collapsed .side .nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 4px !important;
  }
  body.side-collapsed .side .nav a {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 auto 3px !important;
    display: grid !important;
    place-items: center !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border-radius: 14px !important;
    position: relative !important;
    color: #8d93a3 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side .nav a svg.i {
    width: 22px !important;
    height: 22px !important;
    margin: auto !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    display: block !important;
    grid-area: 1 / 1 !important;
    flex-shrink: 0 !important;
  }
  body.side-collapsed .side .nav a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    transform: none !important;
  }
  body.side-collapsed .side .nav a.on {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--acc), #ff8a3d) !important;
    box-shadow: 0 8px 20px -6px var(--acc) !important;
    border-color: transparent !important;
  }
  body.side-collapsed .side .nav a span,
  body.side-collapsed .side .nav a .bg {
    display: none !important;
  }

  /* Hide Storage Quota box in collapsed mode */
  body.side-collapsed .side .plan {
    display: none !important;
  }

  /* Bottom actions column in collapsed mode */
  body.side-collapsed .side .side-bottom-actions {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 14px 0 0 !important;
    margin: auto auto 0 auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side .side-bottom-actions .sb-act {
    width: 48px !important;
    height: 48px !important;
    flex: none !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #8d93a3 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body.side-collapsed .side .side-bottom-actions .sb-act:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    transform: none !important;
  }
  body.side-collapsed .side .side-bottom-actions .sb-act.out:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
  }
  body.side-collapsed .side .side-bottom-actions .sb-act svg.i {
    width: 20px !important;
    height: 20px !important;
    margin: auto !important;
  }

  /* Tooltips for nav links & bottom actions */
  body.side-collapsed .side .nav a:hover::after,
  body.side-collapsed .side .side-bottom-actions .sb-act:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f1218;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    animation: tipFade 0.15s ease-out;
  }
  body.side-collapsed .side .nav a:hover::before,
  body.side-collapsed .side .side-bottom-actions .sb-act:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #0f1218;
    z-index: 10000;
    pointer-events: none;
  }
}
@keyframes tipFade {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
