:root {
  /* Premium Light Theme (Shared) */
  --bg-shell: #f3f4f6;     
  --bg-panel: #ffffff;     
  --bg-elevated: #f9fafb;  
  
  --border-subtle: #f3f4f6;
  --border-strong: #e5e7eb;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-dim: #9ca3af;

  /* Colors */
  --color-accent: #2563eb;
  
  /* Typography */
  --sans: 'Inter', -apple-system, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans); font-size: 14px;
  color: var(--text-primary); background: var(--bg-shell);
  height: 100vh; overflow-y: auto; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }

/* TOPBAR for Hub */
.topbar {
  height: 64px; border-bottom: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  background: transparent;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-accent); }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }

.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); box-shadow: var(--shadow-sm); }
.user-info { display: flex; flex-direction: column; text-align: right; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 12px; color: var(--text-secondary); }
.btn-ghost { padding: 8px; border-radius: var(--radius-sm); color: var(--text-secondary); transition: all 0.1s; margin-left: 8px; }
.btn-ghost:hover { background: #e5e7eb; color: var(--text-primary); }

/* HUB WRAPPER */
.hub-wrapper { display: flex; flex-direction: column; align-items: center; padding-top: 80px; }

.hub-header { text-align: center; margin-bottom: 48px; }
.hub-title { font-size: 32px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 12px; }
.hub-sub { font-size: 16px; color: var(--text-secondary); }

/* CARD GRID */
.hub-group { width: 100%; max-width: 1000px; padding: 0 24px; margin-bottom: 48px; }
.hub-group-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-strong); padding-bottom: 12px; margin-bottom: 24px; display: flex; align-items: center; gap: 8px;}
.utility-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; }

.card-grid { display: flex; flex-wrap: wrap; gap: 32px; width: 100%; justify-content: center; }

@keyframes slideInFade {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.ws-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  width: 180px; overflow: hidden; text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  animation: slideInFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ws-card:nth-child(1) { animation-delay: 0.05s; }
.ws-card:nth-child(2) { animation-delay: 0.1s; }
.ws-card:nth-child(3) { animation-delay: 0.15s; }
.ws-card:nth-child(4) { animation-delay: 0.2s; }
.ws-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.ws-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.card-art { height: 70px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-strong); }
.sce-bg { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.pge-bg { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.admin-bg { background: linear-gradient(135deg, #475569 0%, #334155 100%); }

.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; margin-bottom: 4px; }
.card-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 12px; flex: 1; }

.card-meta { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; }
.status { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; color: var(--text-secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.pulse .dot { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); animation: pulse 2s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); } 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
