/* Hyf — Stylesheet (laad tokens.css eerst) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--sky); text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--midnight);
  line-height: var(--line-height-tight);
}
h2 { font-size: var(--text-xl);  margin-bottom: var(--space-4); }
h3 { font-size: var(--text-md);  margin-bottom: var(--space-3); margin-top: var(--space-5); }

code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--color-bg-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  color: var(--midnight);
  border: 1px solid var(--color-border);
}

/* ─── App shell ──────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar (DNA gradient — website-agah stijl) ───────────────── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--ocean) 45%, var(--sky) 80%, var(--sidebar-accent-end) 100%);
  border-right: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: var(--z-raised);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 90%, rgba(102,180,52,.15) 0%, transparent 60%);
  pointer-events: none;
}

.sidebar-logo {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  position: relative;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand-text  { display: flex; flex-direction: column; }
.sidebar-brand-name  {
  font-size: var(--text-md);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sidebar-brand-sub {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--sun);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0.9;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3);
  position: relative;
}

.nav-section {
  margin-top: var(--space-4);
}
.nav-section:first-child {
  margin-top: 0;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.45);
  padding: var(--space-3) var(--space-2) var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.nav-section-label:hover {
  color: rgba(255,255,255,.65);
}
.nav-section-chevron {
  font-size: 9px;
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.18s ease;
  margin-right: 2px;
}
.nav-section[data-open="false"] .nav-section-chevron {
  transform: rotate(-90deg);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-bottom: 1px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-item:hover {
  background: rgba(255,255,255,.12);
  color: #FFFFFF;
  text-decoration: none;
}
.nav-item.is-active {
  background: rgba(102,180,52,.22);
  color: var(--leaf);
  font-weight: 600;
}
.nav-item--sub {
  padding-left: calc(var(--space-3) + 14px);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
}
.nav-item--sub::before {
  content: '';
  position: absolute;
  left: calc(var(--space-3) + 5px);
  top: 50%;
  width: 5px;
  height: 1px;
  background: rgba(255,255,255,.3);
}
.nav-item--sub { position: relative; }

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  position: relative;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(102,180,52,.2);
  color: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(102,180,52,.4);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-logout-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
  cursor: pointer;
}
.sidebar-logout-btn:hover { color: rgba(255,255,255,.75); background: none; }

/* ─── Main area ──────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.topbar-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--midnight);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
button, .btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: var(--leaf, #66b434);
  color: #FFFFFF;
  transition: filter var(--transition-fast), transform .1s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.01em;
}
button:hover, .btn-primary:hover, a.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.btn-secondary, button.btn-secondary, a.btn-secondary {
  background: #FFFFFF;
  color: var(--midnight);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover, button.btn-secondary:hover, a.btn-secondary:hover {
  background: var(--color-bg-subtle);
  color: var(--midnight);
  text-decoration: none;
}
.btn-primary-ocean, button.btn-primary-ocean {
  background: var(--ocean);
  color: #FFFFFF;
  border-color: var(--ocean);
}
.btn-primary-ocean:hover { filter: brightness(1.1); }
.btn-ghost, button.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-bg-subtle); color: var(--midnight); }
.btn-danger, button.btn-danger {
  background: rgba(220,38,38,.08);
  color: #dc2626;
  border-color: rgba(220,38,38,.25);
}
.btn-danger:hover { background: rgba(220,38,38,.15); }

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.badge.active,   .badge--active   { background: var(--color-status-active-bg);   color: var(--color-status-active-text);   border-color: rgba(22,163,74,.2); }
.badge.pending,  .badge--pending  { background: var(--color-status-warn-bg);     color: var(--color-status-warn-text);     border-color: rgba(217,119,6,.2); }
.badge.error,    .badge--error    { background: var(--color-status-error-bg);    color: var(--color-status-error-text);    border-color: rgba(220,38,38,.2); }
.badge.inactive, .badge--inactive { background: var(--color-status-inactive-bg); color: var(--color-status-inactive-text); }
.badge.info,     .badge--info     { background: var(--color-status-info-bg);     color: var(--color-status-info-text);     border-color: rgba(48,127,226,.2); }
.badge--green    { background: var(--color-status-active-bg); color: var(--color-status-active-text); border-color: rgba(22,163,74,.2); }
.badge--red      { background: var(--color-status-error-bg);  color: var(--color-status-error-text);  border-color: rgba(220,38,38,.2); }
.badge--warning  { background: var(--color-status-warn-bg);   color: var(--color-status-warn-text);   border-color: rgba(217,119,6,.2); }
.badge--ocean    { background: rgba(36,48,98,.08); color: var(--ocean); border-color: rgba(36,48,98,.2); }

/* ─── Chips ──────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: #FFFFFF;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border-strong);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover { background: var(--color-bg-subtle); color: var(--midnight); text-decoration: none; }
.chip.chip--active { background: var(--leaf); color: #FFFFFF; border-color: var(--leaf); font-weight: 600; }

/* ─── Tables ─────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xs);
}
th {
  background: var(--color-bg-subtle);
  color: var(--midnight);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1.5px solid var(--color-border);
}
td {
  padding: 10px 14px;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(36,48,98,.025); }
tfoot td {
  background: var(--color-bg-subtle);
  font-weight: 600;
  border-top: 1.5px solid var(--color-border);
  color: var(--midnight);
}

/* ─── Forms ──────────────────────────────────────────────────────── */
form { margin: 0; }
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: var(--space-1);
}
input[type="radio"],
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  max-width: none;
  height: auto;
  padding: 0;
  accent-color: var(--ocean);
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  max-width: 380px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--midnight);
  background: #FFFFFF;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}
textarea { height: auto; padding: 8px 12px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(48,127,226,.14);
}
input::placeholder, textarea::placeholder { color: var(--color-text-tertiary); }

.form-group    { margin-bottom: var(--space-4); }
.form-label    { display:block; font-size:var(--text-sm); font-weight:500; color:var(--midnight); margin-bottom:var(--space-1); }
.form-control  { display:block; width:100%; max-width:100%; height:36px; padding:0 12px;
                 border:1.5px solid var(--color-border-strong); border-radius:var(--radius-md);
                 font:inherit; font-size:var(--text-sm); color:var(--midnight); background:#FFFFFF;
                 transition:border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-control:focus { outline:none; border-color:var(--leaf); box-shadow:0 0 0 3px rgba(102,180,52,.18); }
textarea.form-control { height:auto; padding:8px 12px; }
.form-hint     { font-size:var(--text-xs); color:var(--color-text-tertiary); margin-top:4px; }

/* ─── Stat cards ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  min-height: 110px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.stat-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); }
.stat-card--wide       { grid-column: span 2; }
.stat-card--chart      { grid-column: 1 / -1; }
.stat-card--placeholder { border: 1.5px dashed var(--color-border-strong); background: transparent; box-shadow: none; }
.stat-card--accent {
  background: linear-gradient(135deg, rgba(102,180,52,.09) 0%, rgba(102,180,52,.05) 100%);
  border-color: rgba(102,180,52,.30);
}
.stat-card--accent .stat-label { color: rgba(15,20,48,.6); }
.stat-card--accent .big-value  { color: var(--midnight); }
.stat-card--accent .big-unit   { color: var(--color-text-secondary); }

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.stat-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.big-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  color: var(--midnight);
}
.big-value.muted { color: var(--color-text-tertiary); font-size: var(--text-xl); font-weight: 500; }
.big-unit {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0;
}
.stat-sub {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: auto;
  padding-top: var(--space-2);
  line-height: var(--line-height-normal);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 3px 0;
}
.stat-row-label { color: var(--color-text-secondary); flex: 1; font-size: var(--text-xs); font-weight: 500; }
.stat-row-value { font-weight: 500; font-size: var(--text-sm); color: var(--midnight); }
.stat-row-time  { color: var(--color-text-tertiary); font-size: var(--text-xs); margin-left: auto; }

.phase-bar {
  flex: 1; height: 4px; background: var(--color-bg-subtle);
  border-radius: var(--radius-full); overflow: hidden; min-width: 50px; max-width: 80px;
}
.phase-bar-fill { height: 100%; background: var(--sky); border-radius: var(--radius-full); }

/* ─── Section card ───────────────────────────────────────────────── */
.section-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.section-card h3 { font-size: var(--text-md); font-weight: 600; color: var(--midnight); margin: 0 0 var(--space-4); }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-normal);
}
.alert--error   { background: var(--color-status-error-bg);  border-left-color: #dc2626; color: #dc2626; }
.alert--info    { background: var(--color-status-info-bg);   border-left-color: var(--sky); color: var(--ocean); }
.alert--success { background: var(--color-status-active-bg); border-left-color: #16a34a; color: #16a34a; }

/* ─── Live badge ─────────────────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-status-active-bg);
  color: var(--color-status-active-text);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22,163,74,.2);
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  margin-right: 5px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.stat-stale { font-size: var(--text-xs); color: var(--color-text-tertiary); font-style: italic; }
.balance-fail {
  background: var(--color-status-error-bg); color: #dc2626;
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500;
}

/* ─── Charts ─────────────────────────────────────────────────────── */
.range-tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.range-tab {
  background: #FFFFFF;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border-strong);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.range-tab:hover { color: var(--ocean); border-color: var(--ocean); background: rgba(0,48,135,.05); }
.range-tab.is-active { background: var(--sun); color: var(--midnight); border-color: var(--sun); font-weight: 600; }
.chart-wrap { position: relative; height: 260px; width: 100%; margin: var(--space-3) 0; }

/* ─── Broker cards ───────────────────────────────────────────────── */
.producer-group {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.producer-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4);
}
.producer-balance {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  margin-bottom: var(--space-4); flex-wrap: wrap;
}
.balance-item { flex: 1; min-width: 130px; }
.balance-item--strong {
  background: #FFFFFF; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong);
}
.balance-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary); margin-bottom: var(--space-1);
}
.balance-value { font-size: var(--text-lg); font-weight: 600; color: var(--midnight); }
.balance-arrow { font-size: var(--text-lg); color: var(--color-text-tertiary); }
.balance-eq    { font-size: var(--text-xl); color: var(--sun); font-weight: 700; }

/* ─── Portal dashboard ───────────────────────────────────────────── */
.portal-head {
  display: flex; align-items: baseline; gap: var(--space-4);
  flex-wrap: wrap; margin-bottom: var(--space-5);
}
.portal-head h2 { margin: 0; font-size: var(--text-lg); }
.portal-head-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ─── Misc utility ───────────────────────────────────────────────── */
.muted { color: var(--color-text-tertiary); }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5); margin: var(--space-5) 0;
}
.empty-state {
  text-align: center; padding: var(--space-10) var(--space-5);
  color: var(--color-text-secondary);
}
.empty-state p { font-size: var(--text-sm); }

/* ─── Auth pages (fallback voor oude base.html) ──────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--color-bg-page); padding: var(--space-5);
}
.auth-card {
  background: #FFFFFF; border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  width: 100%; max-width: 420px; box-shadow: var(--shadow-md);
}
.auth-logo {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-6); font-size: var(--text-lg); font-weight: 700;
  color: var(--midnight); letter-spacing: -0.01em;
}
.auth-card h2 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-1); }
.auth-subtitle { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.auth-field { margin-bottom: var(--space-4); }
.auth-field label { margin-bottom: var(--space-1); }
.auth-field input { max-width: 100%; width: 100%; }

/* ─── Radio role cards ───────────────────────────────────────────── */
.role-option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md); cursor: pointer; margin-bottom: var(--space-2);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.role-option:hover { border-color: var(--ocean); background: rgba(0,48,135,.04); }
.role-option input[type="radio"] { margin-top: 3px; accent-color: var(--ocean); flex-shrink: 0; }
.role-option-title { font-size: var(--text-sm); font-weight: 600; color: var(--midnight); margin-bottom: 3px; }
.role-option-desc  { font-size: var(--text-xs); color: var(--color-text-secondary); line-height: var(--line-height-normal); }

/* ─── Asset Management ───────────────────────────────────────────── */
.conn-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.conn-dot--online  { background: var(--color-success); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.conn-dot--stale   { background: var(--color-warning); }
.conn-dot--offline { background: var(--color-error); }

.asset-row { cursor: pointer; }
.asset-row:hover td { background: rgba(102,180,52,.05); }

.soc-bar-wrap {
  width: 80px; height: 6px; background: var(--color-bg-subtle);
  border-radius: var(--radius-full); overflow: hidden;
  display: inline-block; vertical-align: middle;
}
.soc-bar {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--sky) 0%, var(--ocean) 100%);
  transition: width .3s ease;
}

.asset-icon-lg {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.asset-icon-sm {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); display: flex;
  align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}

.stat-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .content { padding: var(--space-4); }
  .stat-card--wide { grid-column: span 1; }
  .producer-balance { flex-direction: column; align-items: stretch; }
}
