/* Shared customer dashboard shell; the Admin console keeps its own styling. */
.customer-dashboard { grid-template-columns: 232px minmax(0, 1fr); }
.customer-dashboard .sidebar { background: #191919; padding: 18px 12px; }
.customer-dashboard .sidebar-brand { padding: 0 9px 22px; }
.customer-dashboard .brand-caption { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.customer-dashboard .nav { display: grid; align-content: start; gap: 14px; }
.customer-dashboard .sidebar-group { display: grid; gap: 3px; }
.customer-dashboard .sidebar-label { padding: 0 10px 5px; color: #85858b; font-size: 11px; letter-spacing: .02em; text-transform: none; }
.customer-dashboard .nav a { min-height: 38px; border-radius: 9px; padding: 9px 10px; color: rgba(255,255,255,.62); transition: background 140ms ease, color 140ms ease; }
.customer-dashboard .nav a:hover { transform: none; background: rgba(255,255,255,.055); color: rgba(255,255,255,.94); }
.customer-dashboard .nav a.active { background: rgba(255,255,255,.1); color: rgba(255,255,255,.96); }
.customer-dashboard .nav a.active .nav-icon { color: #c4b5fd; }
.customer-dashboard .nav-icon { color: rgba(255,255,255,.58); }
.customer-dashboard .sidebar-bottom { padding: 14px 9px 0; }
.customer-dashboard .main { min-width: 0; }
.customer-dashboard .topbar { height: 64px; padding: 0 24px; gap: 20px; background: rgba(24,24,24,.94); backdrop-filter: none; }
.customer-dashboard .topbar-title { flex: 0 0 auto; }
.customer-dashboard .topbar-brand { font-size: 14px; }
.customer-dashboard .topbar-links { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); margin: 0 auto; color: rgba(255,255,255,.62); font-size: 12px; }
.customer-dashboard .topbar-links a { padding: 7px 2px; border-radius: 6px; }
.customer-dashboard .topbar-links a:hover { color: rgba(255,255,255,.96); }
.customer-dashboard .topbar-links a.current { color: rgba(255,255,255,.96); }
.customer-dashboard .topbar-tools { display: flex; align-items: center; gap: 9px; }
.customer-dashboard .search-trigger { display: flex; align-items: center; gap: 20px; min-width: 170px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #202020; color: rgba(255,255,255,.54); font-size: 11px; font-weight: 450; box-shadow: none; }
.customer-dashboard .search-trigger:hover, .customer-dashboard .icon-button:hover, .customer-dashboard .avatar-button:hover { transform: none; background: #292929; }
.customer-dashboard kbd { padding: 2px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; color: rgba(255,255,255,.55); font: inherit; }
.customer-dashboard .icon-button, .customer-dashboard .avatar-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.7); box-shadow: none; }
.customer-dashboard .avatar-button { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #303036; color: #fff; font-size: 12px; }
.customer-dashboard .user-menu-wrap { position: relative; }
.customer-dashboard .user-menu { position: absolute; top: 42px; right: 0; z-index: 40; width: 190px; padding: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #252525; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.customer-dashboard .user-menu a, .customer-dashboard .user-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.78); text-align: left; font-size: 12px; font-weight: 450; box-shadow: none; }
.customer-dashboard .user-menu a:hover, .customer-dashboard .user-menu button:hover { transform: none; background: rgba(255,255,255,.07); }
.customer-dashboard .user-menu-identity { overflow: hidden; padding: 8px 10px 10px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.52); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-dashboard .content { width: 100%; max-width: none; padding: 26px clamp(20px, 2.3vw, 38px); }
.customer-dashboard .page-header h1 { font-size: 28px; font-weight: 550; }
.customer-dashboard .metric, .customer-dashboard .card { border-radius: 14px; background: #232323; }
.customer-dashboard .metric { padding: 18px; }
.customer-dashboard .card { padding: 20px; }
.customer-dashboard .metric strong { font-size: 24px; }
.customer-dashboard .user-main .empty { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #232323; }
.customer-dashboard .dashboard-skeleton { min-height: 116px; }
.customer-dashboard .dashboard-skeleton strong { display: inline-block; width: 92px; height: 24px; border-radius: 5px; background: rgba(255,255,255,.09); }
.customer-dashboard .loading-note { color: rgba(255,255,255,.55); }
.customer-dashboard .error-state { color: rgba(255,255,255,.78); }
.customer-dashboard .wallet-columns { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); margin-bottom: 12px; }
.customer-dashboard .wallet-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.customer-dashboard .wallet-plan-list { display: grid; gap: 7px; margin-top: 14px; }
.customer-dashboard .wallet-plan-list > div { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--border); font-size: 12px; }
.customer-dashboard .profile-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.customer-dashboard .profile-heading h3 { margin: 0 0 3px; }
.customer-dashboard .profile-avatar { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: #303036; font-size: 18px; }
.customer-dashboard .profile-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 28px; padding-top: 12px; }
.customer-dashboard .profile-details p { margin: 5px 0 12px; }
.global-search-results { display: grid; gap: 4px; margin-top: 10px; }
.global-search-result { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 7px; font-size: 12px; }
.global-search-result:hover { background: rgba(255,255,255,.06); }
.theme-light { color-scheme: light; --bg: #f5f5f6; --bg2: #fff; --surface: #fff; --elevated: #fff; --hover: #efeff1; --text: #202024; --muted: #606068; --tertiary: #777780; --border: rgba(0,0,0,.1); --border-hover: rgba(0,0,0,.18); }
.theme-light body, .theme-light .customer-dashboard .sidebar { background: #f4f4f5; color: #202024; }
.theme-light .customer-dashboard .sidebar { background: #ededee; }
.theme-light .customer-dashboard .topbar { background: #fff; }
.theme-light .customer-dashboard .nav a, .theme-light .customer-dashboard .topbar-links { color: #55555c; }
.theme-light .customer-dashboard .nav a.active { background: #dedee2; color: #202024; }
.theme-light .customer-dashboard .metric, .theme-light .customer-dashboard .card { background: #fff; }
.theme-light .customer-dashboard .search-trigger { background: #f6f6f7; color: #5e5e66; }

@media (max-width: 1080px) {
  .customer-dashboard .topbar-links { gap: 12px; }
  .customer-dashboard .topbar-links a:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
  .customer-dashboard { display: block; }
  .customer-dashboard .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 244px; transform: translateX(-102%); transition: transform 220ms var(--ease); box-shadow: 18px 0 50px rgba(0,0,0,.35); }
  .customer-dashboard .sidebar.open { transform: none; }
  .customer-dashboard .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 14; }
  .customer-dashboard .sidebar-overlay.open { display: block; }
  .customer-dashboard .topbar { height: 60px; padding: 0 14px; gap: 10px; }
  .customer-dashboard .topbar-title { display: flex; flex: 1; align-items: center; }
  .customer-dashboard .menu-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; margin-right: 8px; }
  .customer-dashboard .topbar-links, .customer-dashboard .search-trigger span, .customer-dashboard .search-trigger kbd, .customer-dashboard .icon-button { display: none; }
  .customer-dashboard .search-trigger { min-width: 36px; width: 36px; height: 34px; justify-content: center; padding: 0; font-size: 0; }
  .customer-dashboard .search-trigger::before { content: '⌕'; font-size: 19px; }
  .customer-dashboard .topbar-tools { gap: 5px; }
  .customer-dashboard .content { padding: 20px 15px; }
  .customer-dashboard .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-dashboard .wallet-columns { grid-template-columns: 1fr; }
  .customer-dashboard .wallet-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .customer-dashboard { display: block; }
  .customer-dashboard .sidebar { width: 244px; }
  .customer-dashboard .topbar { height: 60px; padding: 0 14px; gap: 10px; }
  .customer-dashboard .topbar-title { flex: 1; }
  .customer-dashboard .topbar-links, .customer-dashboard .search-trigger span, .customer-dashboard .search-trigger kbd, .customer-dashboard .icon-button { display: none; }
  .customer-dashboard .search-trigger { min-width: 36px; width: 36px; height: 34px; justify-content: center; padding: 0; font-size: 0; }
  .customer-dashboard .search-trigger::before { content: '⌕'; font-size: 19px; }
  .customer-dashboard .topbar-tools { gap: 5px; }
  .customer-dashboard .content { padding: 20px 15px; }
  .customer-dashboard .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-dashboard .wallet-columns { grid-template-columns: 1fr; }
  .customer-dashboard .wallet-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-dashboard .profile-details { grid-template-columns: 1fr; }
}
