/* ═══════════════════════════════════════════════════════════════════════════
   PanelOps — Shell Components v11 (Sidebar · Topbar · User menu · Quick nav)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-darker) 140%);
  border-right: 1px solid var(--surface-border);
  display: flex; flex-direction: column; z-index: var(--z-sidebar);
  transition: width var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.35), rgba(6,182,212,0.2), transparent);
  opacity: .8; pointer-events: none;
}
[data-theme="light"] .sidebar { background: linear-gradient(180deg, #ffffff 0%, #f2f5fb 150%); }
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-header {
  padding: 10px 18px; height: var(--topbar-height); flex-shrink: 0;
  border-bottom: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-container { display: flex; align-items: center; text-decoration: none; gap: 10px; position: relative; }
.sidebar-logo { width: 148px; height: auto; max-height: 34px; object-fit: contain; transition: opacity var(--transition-normal), filter var(--transition-normal); filter: drop-shadow(0 0 0 transparent); }
.logo-container:hover .sidebar-logo { filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.55)); }
[data-theme="light"] .logo-container:hover .sidebar-logo { filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.35)); }
.sidebar.collapsed .sidebar-logo { opacity: 0; pointer-events: none; }
.sidebar-collapse-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--surface-border);
  background: var(--hover-soft); color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease-out); opacity: 0;
}
.sidebar:hover .sidebar-collapse-btn { opacity: 1; }
.sidebar-collapse-btn:hover { color: var(--text-white); border-color: var(--primary); background: var(--primary-light); }
.sidebar-collapse-btn i { width: 14px; height: 14px; }
.sidebar.collapsed .sidebar-collapse-btn { opacity: 0; }

.sidebar-nav { flex: 1; padding: 10px 10px 16px; overflow-y: auto; overflow-x: hidden; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--surface-border-strong); }
.nav-section { margin-bottom: 6px; }
.nav-section-title {
  padding: 14px 12px 6px; font-size: .62rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: opacity var(--transition-normal);
}
.nav-section-title::after { content: ''; flex: 1; height: 1px; background: var(--surface-border); opacity: .5; }
.sidebar.collapsed .nav-section-title { opacity: 0; height: 14px; padding: 7px 0 0; }
.sidebar.collapsed .nav-section-title::after { display: none; }
.sidebar.collapsed .nav-label, .sidebar.collapsed .nav-badge { display: none; }

.nav-item {
  display: flex; align-items: center; gap: 12px; position: relative;
  padding: 9px 12px; margin: 2px 0; border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer; text-decoration: none;
  font-size: .85rem; font-weight: 500; white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-item i { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease-spring); }
.nav-item:hover { background: var(--hover-soft); color: var(--text-white); }
.nav-item:hover i { transform: scale(1.12); }
.nav-item:active { transform: scale(0.985); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-light), rgba(99,102,241,0.03));
  color: var(--primary); font-weight: 650;
}
[data-theme="light"] .nav-item.active { color: var(--primary-hover); }
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 4px 4px 0;
  background: var(--gradient-primary); box-shadow: 0 0 12px rgba(99,102,241,.6);
}
.nav-item.active::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(99,102,241,0.08), transparent 60%);
}
.nav-item .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  font-size: .62rem; font-weight: 800; padding: 1.5px 7px; border-radius: var(--radius-full);
  background: var(--gradient-primary); color: #fff; letter-spacing: .04em; line-height: 1.5;
  animation: po-scale-in .3s var(--ease-spring) both;
}
.nav-badge.soft { background: var(--accent-light); color: var(--accent); }
.sidebar.collapsed .nav-item { justify-content: center; padding: 11px 0; }
.sidebar.collapsed .nav-item i { width: 20px; height: 20px; }
.sidebar.collapsed .nav-item.active::before { left: -10px; }

/* Tooltips when collapsed */
.sidebar.collapsed .nav-item::marker { content: none; }

.sidebar-footer { padding: 12px 12px 14px; border-top: 1px solid var(--surface-border); flex-shrink: 0; }
.user-info {
  display: flex; align-items: center; gap: 11px; padding: 8px 8px;
  border-radius: var(--radius-sm); transition: background var(--transition-fast); position: relative;
}
.user-info:hover { background: var(--hover-soft); }
.user-avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-primary); color: #fff; font-weight: 700; font-size: .84rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px rgba(99,102,241,.45);
}
.user-avatar::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--success); border: 2px solid var(--surface);
  animation: po-pulse-ring 2.4s infinite;
}
.user-details { flex: 1; min-width: 0; overflow: hidden; }
.user-name { font-size: .82rem; font-weight: 650; color: var(--text-white); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.user-role { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.sidebar-logout {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; flex-shrink: 0;
  color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease-out); text-decoration: none;
}
.sidebar-logout:hover { background: var(--danger-bg); color: var(--danger); transform: scale(1.06); }
.sidebar-logout i { width: 15px; height: 15px; }
.sidebar-footer .user-details, .sidebar-footer .sidebar-logout { transition: opacity var(--transition-normal); }
.sidebar.collapsed .user-details, .sidebar.collapsed .sidebar-logout { display: none; }
.sidebar.collapsed .user-info { justify-content: center; padding: 8px 0; }
.sidebar-mode-chip {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 8px 10px;
  padding: 5px 10px; border-radius: var(--radius-full);
  background: var(--hover-soft); border: 1px dashed var(--surface-border-strong);
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.sidebar-mode-chip i { width: 11px; height: 11px; color: var(--accent); }
.sidebar.collapsed .sidebar-mode-chip { display: none; }

/* Mobile */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-102%); box-shadow: none; width: min(var(--sidebar-width), 84vw); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar.mobile-open::after { background: linear-gradient(180deg, transparent, rgba(99,102,241,.4), transparent); }
  .sidebar-collapse-btn { display: none; }
  .sidebar-backdrop {
    position: fixed; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(3px);
    z-index: calc(var(--z-sidebar) - 1); opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* ─── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0; height: var(--topbar-height);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 22px; z-index: var(--z-topbar);
  transition: left var(--transition-normal), border-color var(--transition-normal);
}
[data-theme="light"] .topbar { background: rgba(255,255,255,0.8); }
.topbar.sidebar-collapsed { left: var(--sidebar-collapsed); }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.topbar-toggle {
  background: none; border: 1px solid transparent; color: var(--text-secondary); cursor: pointer;
  padding: 8px; border-radius: var(--radius-xs); transition: all var(--transition-fast); display: inline-flex;
}
.topbar-toggle:hover { background: var(--hover-soft); color: var(--text-white); border-color: var(--surface-border); }
.topbar-toggle:active { transform: scale(.92); }
.topbar-toggle i { width: 18px; height: 18px; }

/* Search / quick nav */
.topbar-search { position: relative; width: min(380px, 38vw); }
.topbar-search input {
  width: 100%; padding: 8px 64px 8px 36px; height: 38px;
  background: var(--surface-light); border: 1px solid var(--surface-border); border-radius: var(--radius-full);
  color: var(--text-primary); font-size: .84rem; outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-sm); background: var(--surface); }
.topbar-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 15px; height: 15px; pointer-events: none; transition: color var(--transition-fast); }
.topbar-search:focus-within > i { color: var(--primary); }
.topbar-search .search-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.quicknav {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 400;
  display: none; max-height: 380px; overflow-y: auto; animation: po-fade-in-down .18s var(--ease-out) both;
}
.quicknav.show { display: block; }
.quicknav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px;
  color: var(--text-secondary); text-decoration: none; font-size: .83rem; font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.quicknav-item i { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.quicknav-item .qn-section { margin-left: auto; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.quicknav-item:hover, .quicknav-item.qn-active { background: var(--primary-light); color: var(--text-white); }
.quicknav-item:hover i, .quicknav-item.qn-active i { color: var(--primary); }
.quicknav-empty { padding: 18px; text-align: center; color: var(--text-muted); font-size: .8rem; }

/* Icon buttons */
.topbar-btn {
  position: relative; background: none; border: 1px solid transparent; color: var(--text-secondary); cursor: pointer;
  padding: 8px; border-radius: var(--radius-xs); transition: all var(--transition-fast);
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
}
.topbar-btn i { width: 17px; height: 17px; }
.topbar-btn:hover { background: var(--hover-soft); color: var(--text-white); border-color: var(--surface-border); transform: translateY(-1px); }
.topbar-btn:active { transform: translateY(0) scale(.94); }
.topbar-btn.text-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.topbar-btn .notification-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; border: 1.5px solid var(--bg-canvas); }
.topbar-notif-count {
  position: absolute; top: -2px; right: -4px; min-width: 16px; text-align: center;
  background: linear-gradient(135deg, #ef4444, #f87171); color: #fff;
  font-size: .62rem; font-weight: 800; padding: 1px 5px; border-radius: 10px; line-height: 1.35;
  border: 2px solid var(--bg-canvas); animation: po-scale-in .25s var(--ease-spring) both;
}
.topbar-btn .notification-dot { border-color: var(--bg-canvas); }

/* Notification dropdown (topbar) */
.topbar-dropdown-wrap { position: relative; }
.topbar-notif-menu {
  position: absolute; right: -8px; top: calc(100% + 10px); width: 360px; max-width: 92vw;
  background: var(--glass-bg); border: 1px solid var(--surface-border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  z-index: 500; overflow: hidden; display: none;
  animation: po-fade-in-down .2s var(--ease-out) both; transform-origin: top right;
}
.notif-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--surface-border); background: var(--hover-soft); }
.notif-menu-head .notif-menu-title { font-weight: 700; color: var(--text-white); font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.notif-menu-title i { width: 14px; height: 14px; color: var(--primary); }
.notif-menu-list { max-height: 300px; overflow-y: auto; }
.notif-menu-foot { padding: 8px; border-top: 1px solid var(--surface-border); text-align: center; background: var(--hover-soft); }
.notif-menu-foot a { font-size: .78rem; font-weight: 650; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.notif-menu-foot a:hover { color: var(--accent); }
.notif-dropdown-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--surface-border); transition: background .14s ease; text-decoration: none; color: inherit; }
.notif-dropdown-item:last-child { border-bottom: none; }
.notif-dropdown-item:hover { background: var(--hover-soft); }
.notif-dropdown-item.unread { background: linear-gradient(90deg, var(--primary-light), transparent 65%); }
.notif-dropdown-item .notif-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.notif-dropdown-item .notif-ico i { width: 14px; height: 14px; }
.notif-dropdown-item .notif-body { flex: 1; min-width: 0; }
.notif-dropdown-item .notif-title { font-size: .8rem; font-weight: 650; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-dropdown-item .notif-msg { font-size: .74rem; color: var(--text-secondary); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-dropdown-item .notif-time { font-size: .66rem; color: var(--text-muted); margin-top: 3px; }
.notif-ico--danger { background: var(--danger-bg); color: var(--danger); }
.notif-ico--warning { background: var(--warning-bg); color: var(--warning); }
.notif-ico--success { background: var(--success-bg); color: var(--success); }
.notif-ico--info { background: var(--primary-light); color: var(--primary); }
.notif-menu-empty { padding: 26px 14px; text-align: center; color: var(--text-muted); font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.notif-menu-empty i { width: 20px; height: 20px; opacity: .6; }

/* User chip in topbar */
.topbar-user { position: relative; }
.topbar-user-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px;
  background: var(--surface-light); border: 1px solid var(--surface-border); border-radius: var(--radius-full);
  cursor: pointer; color: var(--text-primary); font-family: inherit; font-size: .8rem; font-weight: 600;
  transition: all var(--transition-fast); height: 38px;
}
.topbar-user-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.topbar-user-btn .avatar-sm {
  width: 29px; height: 29px; border-radius: 50%; background: var(--gradient-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 800; flex-shrink: 0;
}
.topbar-user-btn .user-chip-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-btn > i { width: 14px; height: 14px; color: var(--text-muted); transition: transform var(--transition-fast); }
.topbar-user.open .topbar-user-btn > i.chev { transform: rotate(180deg); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 248px;
  background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 500; overflow: hidden;
  display: none; animation: po-fade-in-down .18s var(--ease-out) both; transform-origin: top right;
}
.topbar-user.open .user-menu { display: block; }
.user-menu-head { padding: 14px 16px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; gap: 12px; background: var(--hover-soft); }
.user-menu-head .avatar-md { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 16px -6px rgba(99,102,241,.6); }
.user-menu-head .um-name { font-weight: 700; color: var(--text-white); font-size: .85rem; line-height: 1.25; }
.user-menu-head .um-mail { font-size: .72rem; color: var(--text-muted); }
.user-menu-body { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.user-menu-body a, .user-menu-body button {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; width: 100%;
  border: none; background: none; border-radius: 7px; cursor: pointer; text-align: left;
  color: var(--text-secondary); font-size: .8rem; font-weight: 550; text-decoration: none;
  font-family: inherit; transition: all .14s ease;
}
.user-menu-body a i, .user-menu-body button i { width: 15px; height: 15px; color: var(--text-muted); }
.user-menu-body a:hover, .user-menu-body button:hover { background: var(--primary-light); color: var(--text-white); }
.user-menu-body a:hover i, .user-menu-body button:hover i { color: var(--primary); }
.user-menu-body .um-danger:hover { background: var(--danger-bg); color: var(--danger); }
.user-menu-body .um-danger:hover i { color: var(--danger); }
.user-menu-divider { height: 1px; background: var(--surface-border); margin: 4px 6px; }

/* Theme toggle spin feedback */
#themeToggle { transition: transform .35s var(--ease-spring), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
#themeToggle:hover { background: var(--hover-soft); color: var(--text-white); border-color: var(--surface-border); }
#themeToggle.po-theme-spin { transform: rotate(180deg) scale(.9); }
[data-theme="light"] #sunIcon { display: none; }
[data-theme="light"] #moonIcon { display: inline-block; }
[data-theme="dark"] #sunIcon { display: inline-block; }
[data-theme="dark"] #moonIcon { display: none; }

@media (max-width: 1024px) {
  .topbar { left: 0; padding: 0 14px; }
  .topbar-search { display: none; }
  .topbar-user-btn .user-chip-name, .topbar-user-btn > i.chev { display: none; }
  .topbar-user-btn { padding: 4px; }
}
@media (min-width: 1025px) { .topbar-mobile-only { display: none !important; } }
@media (max-width: 640px) { .topbar-user { display: none; } }

/* ─── Toast stack (global container polish) ────────────────────────────────── */
#globalToastContainer { top: 14px; right: 14px; gap: 10px; max-width: min(380px, 94vw); }

/* ─── PanelOps brand modal (upgrade / quota) ───────────────────────────────── */
.po-modal { display: none; position: fixed; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(6px); z-index: var(--z-modal); align-items: center; justify-content: center; padding: 18px; }

/* ─── Legacy `.modal-backdrop` pattern (mail-server suite: SSL / DNS / Logs) ─
   The JS on those pages only toggles the `.hidden` class — the overlay chrome
   itself was never styled, so modals rendered in page flow (invisible below the
   fold). These rules make .modal-backdrop a true centered overlay and neutralize
   the card padding so .modal-header/.modal-body/.modal-footer align flush.      */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: po-fade-in .18s var(--ease-out) both;
}
.modal-backdrop > .modal {
  display: block !important; /* inner card in this pattern — override overlay semantics */
  position: relative; margin: auto; width: 100%;
  max-height: 92vh; overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: po-modal-pop .32s var(--ease-spring) both;
}
.modal-backdrop > .modal .modal-header,
.modal-backdrop > .modal .modal-body,
.modal-backdrop > .modal .modal-footer { padding-left: 22px; padding-right: 22px; }
.modal-backdrop > .modal .modal-header { padding-top: 18px; }
.modal-backdrop > .modal .modal-footer { padding-bottom: 18px; }
@media (max-width: 640px) {
  .modal-backdrop { padding: 10px; }
  .modal-backdrop > .modal { max-height: 94vh; }
}

.po-modal-card {
  position: relative; max-width: 470px; width: 100%; text-align: center;
  background: linear-gradient(180deg, rgba(99,102,241,0.10), var(--surface) 45%);
  border: 1px solid var(--surface-border-strong); border-radius: var(--radius-lg);
  padding: 36px 32px 30px; box-shadow: var(--shadow-lg);
  animation: po-modal-pop .32s var(--ease-spring) both;
}
@keyframes po-modal-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.po-modal-icon {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent); border: 1px solid var(--surface-border-strong);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.po-modal-icon::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--surface-border-strong); animation: po-spin 14s linear infinite; }
.po-modal-icon i { width: 26px; height: 26px; }
.po-modal-title { font-size: 1.28rem; font-weight: 800; color: var(--text-white); margin-bottom: 8px; letter-spacing: -0.02em; }
.po-modal-msg { color: var(--text-secondary); font-size: .86rem; line-height: 1.55; margin-bottom: 22px; }
.po-modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── Page-level extras ────────────────────────────────────────────────────── */
.section-title { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 700; color: var(--text-white); margin: 4px 0 16px; }
.section-title i { width: 17px; height: 17px; color: var(--accent); }
.section-title .section-line { flex: 1; height: 1px; background: var(--surface-border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Quick stat inline */
.inline-stat { display: inline-flex; flex-direction: column; }
.inline-stat .is-value { font-size: 1.05rem; font-weight: 750; color: var(--text-white); line-height: 1.2; }
.inline-stat .is-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 600; }

/* Copy feedback pop */
.po-copied { animation: po-copied-pop .4s var(--ease-spring) both; }
@keyframes po-copied-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
