﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #05070d;
  --bg-deep: #02040a;
  --surface: rgba(15, 18, 29, 0.82);
  --surface-strong: rgba(20, 24, 38, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --muted: #a5adbd;
  --soft: #737b91;
  --accent: #8b3dff;
  --accent-2: #ff35bf;
  --cyan: #00d4ff;
  --green: #00f5a0;
  --yellow: #ffc229;
  --accent-3: #00f5a0;
  --danger: #ff3d71;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 36px color-mix(in srgb, var(--accent) 46%, transparent);
  --radius: 8px;
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

body[data-theme="orange"] {
  --accent: #ff7a1a;
  --accent-2: #ff3d71;
  --cyan: #ffbd2e;

  --accent-3: #00f5a0;}

body[data-theme="green"] {
  --accent: #00f5a0;
  --accent-2: #27d6ff;
  --cyan: #2affd5;

  --accent-3: #8b3dff;}

body[data-theme="celeste"] {
  --accent: #00d4ff;
  --accent-2: #5b7cfa;
  --cyan: #45f3ff;

  --accent-3: #00f5a0;}

body[data-theme="pink"] {
  --accent: #ff35bf;
  --accent-2: #8b3dff;
  --cyan: #ff74d8;

  --accent-3: #00d4ff;}

body[data-theme="red"] {
  --accent: #ff3d71;
  --accent-2: #ff7a1a;
  --cyan: #ff4d9d;

  --accent-3: #ffc229;}

body[data-theme="yellow"] {
  --accent: #ffc229;
  --accent-2: #00d4ff;
  --cyan: #ffe066;

  --accent-3: #00f5a0;}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 30%),
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 28%),
    linear-gradient(135deg, #05070d 0%, #02040a 42%, #071018 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: clip;
}

body[data-color-mode="light"] {
  --bg: #eef4fb;
  --bg-deep: #e8f0fa;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(15, 23, 42, 0.045);
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.22);
  --text: #111827;
  --muted: #526071;
  --soft: #748195;
  background:
    radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #e8f0fa 48%, #eef7fb 100%);
  color: var(--text);
}

body[data-role="owner"] {
  background:
    radial-gradient(ellipse at 18% -14%, rgba(123, 65, 255, 0.16), transparent 32%),
    radial-gradient(ellipse at 84% -10%, rgba(0, 212, 255, 0.115), transparent 36%),
    radial-gradient(ellipse at 58% 44%, rgba(10, 55, 75, 0.24), transparent 52%),
    linear-gradient(135deg, #020512 0%, #03101a 42%, #050319 76%, #01030a 100%);
}

body[data-role="owner"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 16%, rgba(160, 91, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 74% 22%, rgba(0, 212, 255, 0.07), transparent 44%),
    linear-gradient(120deg, transparent 0 38%, rgba(0, 212, 255, 0.035) 54%, transparent 74%),
    radial-gradient(ellipse at 36% 78%, rgba(255, 53, 191, 0.042), transparent 46%),
    linear-gradient(180deg, rgba(1,4,10,0.1), rgba(1,4,12,0.48));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(18px);
}

body[data-role="owner"] .sidebar {
  border-right-color: transparent;
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 61, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.98), rgba(1, 3, 8, 0.96));
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.5);
}

.brand-block,
.role-card,
.topbar,
.hero-band,
.panel,
.metric-card,
.search-box,
.profile-chip,
.select-control,
.quick-action,
.nav-item {
  border: 1px solid var(--line);
}

.brand-block {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-width: 0 0 1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--accent-2));
  color: white;
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--glow);
}

body[data-role="owner"] .brand-mark {
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(135deg, #00d4ff 0%, #8b3dff 48%, #ff35bf 100%);
  box-shadow:
    0 0 24px rgba(139, 61, 255, 0.34),
    0 0 48px rgba(0, 212, 255, 0.1);
}

.brand-name,
.role-user,
.nav-title,
.eyebrow,
.panel-kicker,
.metric-label,
.brand-tag,
.role-label {
  margin: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
}

.brand-tag,
.role-label,
.metric-caption,
.hero-copy,
.panel-kicker,
.nav-title {
  color: var(--muted);
}

.brand-tag,
.eyebrow,
.panel-kicker,
.nav-title {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.role-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.18), rgba(0, 212, 255, 0.06));
}

body[data-role="owner"] .role-card {
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(135deg, rgba(139, 61, 255, 0.09), rgba(0, 212, 255, 0.028)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 50px rgba(0,0,0,0.26);
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.avatar {
  width: 42px;
  height: 42px;
}

.nav-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.nav-section {
  margin: 18px 0;
}

body[data-dev-role-switcher="false"] .nav-section:first-child,
body[data-dev-role-switcher="false"] #roleSelect {
  display: none;
}

.nav-title {
  margin: 0 0 9px;
  color: var(--yellow);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: left;
}

body[data-role="owner"] .nav-section {
  margin: 22px 0;
}

body[data-role="owner"] .nav-title {
  color: rgba(226, 232, 240, 0.62);
}

body[data-role="owner"] .nav-list {
  gap: 7px;
}

body[data-role="owner"] .nav-item {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.09);
  background: linear-gradient(90deg, rgba(255,255,255,0.024), rgba(255,255,255,0.012));
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body[data-role="owner"] .nav-scroll {
  overflow: visible;
  padding-right: 4px;
  scrollbar-width: thin;
}

body[data-role="owner"] .nav-list {
  gap: 5px;
}

body[data-role="owner"] .sidebar-footer {
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 10px;
}

body[data-role="owner"] .quick-action {
  min-height: 34px;
  font-size: 0.82rem;
}

body[data-role="owner"] .nav-item:hover {
  border-color: rgba(0, 212, 255, 0.16);
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.045), rgba(139, 61, 255, 0.022));
}

.nav-item.active {
  border-color: color-mix(in srgb, var(--accent) 78%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 34%, transparent), rgba(255, 255, 255, 0.035));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

body[data-role="owner"] .nav-item.active {
  border-color: rgba(191, 0, 255, 0.28);
  background:
    radial-gradient(circle at 90% 50%, rgba(0, 212, 255, 0.075), transparent 45%),
    linear-gradient(90deg, rgba(139, 61, 255, 0.22), rgba(255, 53, 191, 0.055));
  box-shadow:
    inset 2px 0 0 rgba(191, 0, 255, 0.68),
    0 0 18px rgba(139, 61, 255, 0.12);
}

.nav-icon,
.button-icon {
  color: var(--accent);
  font-weight: 900;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.quick-action,
.icon-button,
.ghost-button,
.primary-button,
.profile-chip,
.select-control {
  min-height: 40px;
  border-radius: var(--radius);
  color: var(--text);
}

.quick-action {
  background: rgba(255, 255, 255, 0.035);
}

.main-frame {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 14px 28px;
  border-width: 0 0 1px;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(18px);
}

body[data-role="owner"] .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(90deg, rgba(3, 5, 12, 0.94), rgba(5, 7, 16, 0.88)),
    radial-gradient(circle at 72% 0%, rgba(139, 61, 255, 0.065), transparent 34%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

body[data-role="owner"] .topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-role="owner"] .search-box,
body[data-role="owner"] .select-control,
body[data-role="owner"] .profile-chip,
body[data-role="owner"] .icon-button,
body[data-role="owner"] .quick-action {
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.022);
}

body[data-role="owner"] .glow-action {
  border-color: rgba(0, 212, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(139, 61, 255, 0.64), rgba(0, 212, 255, 0.16)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 26px rgba(139, 61, 255, 0.18);
}

body[data-role="owner"] .nav-icon,
body[data-role="owner"] .button-icon {
  color: color-mix(in srgb, var(--accent) 72%, #cbd5e1 0%);
}

.topbar h1,
.hero-band h2,
.panel h3 {
  margin: 0;
}

.topbar h1 {
  font-size: 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.owner-topbar-meta {
  display: none;
}

body[data-role="owner"] .owner-topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.owner-topbar-pill {
  display: grid;
  align-content: center;
  min-height: 40px;
  min-width: 116px;
  padding: 6px 10px;
  border: 1px solid rgba(180, 198, 255, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 212, 255, 0.085), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.012)),
    rgba(5, 10, 22, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.28);
}

.owner-topbar-pill b,
.owner-topbar-pill em,
.owner-topbar-pill strong {
  display: block;
  line-height: 1.05;
}

.owner-topbar-pill b {
  color: rgba(229, 236, 252, 0.88);
  font-size: 0.66rem;
  font-weight: 600;
}

.owner-topbar-pill strong {
  color: rgba(255,255,255,0.96);
  font-size: 0.92rem;
  font-weight: 600;
}

.owner-topbar-pill em {
  margin-top: 2px;
  color: rgba(182, 193, 216, 0.76);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 400;
}

.owner-topbar-pill.system {
  position: relative;
  padding-left: 25px;
}

.owner-topbar-pill.system i {
  position: absolute;
  left: 9px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 245, 160, 0.72);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 26vw);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.select-control {
  max-width: 160px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.select-control option {
  background: #0b0f19;
  color: #f8fafc;
}

.icon-button,
.ghost-button,
.primary-button,
.profile-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.icon-button {
  position: relative;
  width: 42px;
}

.alert-button {
  color: var(--yellow);
}

.alert-button:hover::after,
.alert-button:focus-visible::after {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0f19;
  color: var(--text);
  box-shadow: var(--shadow);
  content: "Alertas anti-drain y notificaciones";
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 6px;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
}

.content {
  padding: 28px;
}

.hero-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 61, 255, 0.18), rgba(0, 212, 255, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-band h2 {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 740px;
  margin: 12px 0 0;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-button {
  padding: 0 18px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--cyan));
  color: white;
  font-weight: 900;
  box-shadow: var(--glow);
}

.ghost-button {
  padding: 0 16px;
}

.ghost-button.compact {
  margin-top: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.metric-card {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color) 18%, transparent);
  color: var(--card-color);
}

.metric-value {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 900;
}

.metric-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.metric-caption {
  margin: 8px 0 0;
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-wide {
  grid-row: span 2;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.chart-card {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(139, 61, 255, 0.08), rgba(0, 212, 255, 0.035)),
    rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.chart-card svg {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.grid-lines path {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-dasharray: 5 8;
}

.line-a,
.line-b {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.line-a {
  stroke: var(--accent);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent));
}

.line-b {
  stroke: var(--green);
  filter: drop-shadow(0 0 14px rgba(0, 245, 160, 0.55));
}

.area-a {
  fill: url("#lineFillA");
}

.area-b {
  fill: url("#lineFillB");
}

.axis-labels {
  fill: var(--muted);
  font-size: 20px;
}

.chart-tooltip {
  position: absolute;
  top: 42%;
  left: 52%;
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 5, 10, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

.chart-card:hover .chart-tooltip {
  display: block;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.activity-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(0, 245, 160, 0.1);
}

.activity-title,
.activity-meta {
  margin: 0;
}

.activity-title {
  font-weight: 800;
}

.activity-meta {
  color: var(--muted);
  font-size: 13px;
}

.insight-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}

.insight-orbit {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--glow);
}

.contract-list {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.warn {
  background: var(--yellow);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-only {
  display: none;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  body[data-role="owner"] .owner-topbar-meta {
    order: 4;
    width: 100%;
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mobile-only {
    display: grid;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    width: min(320px, 88vw);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .topbar {
    grid-template-columns: auto 1fr;
    padding: 12px 16px;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

  .content {
    padding: 18px 14px;
  }

  body[data-role="user_common"] .content {
    padding: 12px;
  }

  .mobile-only.icon-button {
    font-size: 0;
  }

  .mobile-only.icon-button::before {
    content: "☰";
    font-size: 1rem;
  }

  .hero-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .chart-card,
  .chart-card svg {
    min-height: 300px;
  }
}

/* P13.2 USER COMMON PANEL */
select,
select option {
  color-scheme: dark;
  background-color: #0b0f19;
  color: #f8fafc;
}

.role-specific-panel {
  margin-top: 18px;
  min-width: 0;
}

body[data-role="user_common"] .dashboard-grid {
  display: none;
}

.user-section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.08));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.user-section-header h2 {
  margin: 6px 0 8px;
  max-width: 780px;
  font-size: clamp(1.8rem, 2.3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.user-section-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.header-actions,
.preview-actions,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.btn.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--cyan));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.user-workspace {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.45fr) minmax(280px, 0.95fr);
  gap: 14px;
}

.one-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 18px;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title-row.between {
  justify-content: space-between;
}

.card-title-row h3,
.one-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent);
  font-weight: 900;
}

.field-label {
  display: block;
  margin: 13px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  padding: 12px;
  font: inherit;
  outline: none;
}

.form-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.choice-chip,
.platform-chip {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.choice-chip.active,
.platform-chip.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 34px rgba(139, 92, 246, 0.28);
}

.cost-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.cost-strip span,
.status-pill,
.handoff-list,
.history-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cost-strip span {
  padding: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.full {
  width: 100%;
  justify-content: center;
}

.variant-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.variant-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 800;
}

.variant-tabs button:last-child {
  border-right: 0;
}

.variant-tabs .active {
  color: white;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.45));
}

.ad-preview {
  position: relative;
  overflow: hidden;
  min-height: 455px;
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 68% 42%, rgba(236, 72, 153, 0.45), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(6, 182, 212, 0.32), transparent 22%),
    linear-gradient(135deg, #16051f, #07111f 56%, #020617);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ad-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 22px solid rgba(6, 182, 212, 0.28);
  border-radius: 50%;
  right: 40px;
  top: 58px;
  box-shadow: 0 0 90px rgba(236, 72, 153, 0.65), inset 0 0 60px rgba(139, 92, 246, 0.65);
}

.ad-brand {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.38);
  color: var(--accent-2);
  font-weight: 900;
}

.ad-preview h3 {
  position: relative;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.9;
  max-width: 520px;
  margin: 0;
}

.ad-preview p {
  position: relative;
  color: #f0abfc;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 8px 0 24px;
  letter-spacing: 0;
}

.ad-preview button {
  position: relative;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: white;
  background: linear-gradient(135deg, #ec4899, #06b6d4);
  font-weight: 900;
}

.score-meter {
  height: 155px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 62%);
  margin-bottom: 14px;
}

.score-meter strong {
  font-size: 3.5rem;
  line-height: 0.9;
}

.score-meter span,
.score-meter small {
  color: var(--muted);
  font-weight: 800;
}

.score-row {
  margin: 12px 0;
}

.score-row div:first-child,
.split-line,
.handoff-list,
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.score-row strong,
.handoff-list strong,
.history-row em {
  color: var(--accent-3);
  font-style: normal;
}

.score-bar,
.meter-line {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.score-bar span,
.meter-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.mini-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.score-card .mini-grid {
  grid-template-columns: 1fr;
}

.mini-grid strong,
.credit-number {
  display: block;
  color: var(--accent-2);
  font-size: 1.5rem;
}

.mini-grid span,
.one-card p,
.history-row span {
  color: var(--muted);
}

.credit-number {
  margin: 12px 0 4px;
  font-size: 3rem;
  font-weight: 900;
}

.history-row,
.handoff-list {
  padding: 12px;
  margin-top: 10px;
}

.history-row strong {
  display: block;
}

.history-row > div,
.split-line > span {
  min-width: 0;
}

.history-row strong,
.history-row span,
.split-line span,
.split-line strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1250px) {
  .user-workspace {
    grid-template-columns: 1fr 1fr;
  }
  .score-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .user-section-header,
  .user-workspace {
    display: block;
  }
  .one-card,
  .user-section-header {
    margin-bottom: 14px;
  }
  .cost-strip,
  .mini-grid,
  .variant-tabs {
    grid-template-columns: 1fr;
  }
  .ad-preview {
    min-height: 360px;
  }
}

.nav-icon,
.metric-icon,
.activity-badge {
  font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
  line-height: 1;
}

/* P13.2 hardening: readable native dropdowns */
.select-control,
select {
  color-scheme: dark;
}
.select-control option,
select option {
  background: #0f1420;
  color: #f8fbff;
}
.select-control option:checked,
select option:checked {
  background: #262047;
  color: #ffffff;
}
.select-control option:hover,
select option:hover {
  background: #1d2635;
  color: #ffffff;
}

/* P13.2 premium user creation surface */
body[data-role="user_common"] .hero-band,
body[data-role="user_common"] .kpi-grid,
body[data-role="user_common"] .dashboard-grid {
  display: none;
}

body[data-role="user_common"] .content {
  padding: 20px 24px 28px;
}

body[data-role="user_common"] .role-specific-panel {
  margin-top: 0;
}

body[data-role="agency"] .hero-band,
body[data-role="agency"] .kpi-grid,
body[data-role="agency"] .dashboard-grid {
  display: none;
}

body[data-role="agency"] .content {
  padding: 20px 24px 28px;
}

body[data-role="agency"] .role-specific-panel {
  margin-top: 0;
}

body[data-role="owner"] .hero-band,
body[data-role="owner"] .kpi-grid,
body[data-role="owner"] .dashboard-grid {
  display: none;
}

body[data-role="owner"] .content {
  padding: 20px 24px 28px;
}

body[data-role="owner"] .role-specific-panel {
  margin-top: 0;
}

body[data-role="accountant"] .hero-band,
body[data-role="accountant"] .kpi-grid,
body[data-role="accountant"] .dashboard-grid {
  display: none;
}

body[data-role="accountant"] .content {
  padding: 20px 24px 28px;
}

body[data-role="accountant"] .role-specific-panel {
  margin-top: 0;
}

.user-premium-shell {
  display: grid;
  gap: 18px;
  color: var(--text);
}

.user-premium-top,
.premium-card {
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 24, 46, 0.86), rgba(4, 8, 20, 0.94)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-premium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 61, 255, 0.35), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(0, 212, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(9, 12, 26, 0.98), rgba(3, 7, 18, 0.96));
}

.premium-title-lockup,
.premium-top-actions,
.premium-card-header,
.score-hero,
.premium-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.premium-title-lockup {
  min-width: 0;
}

.premium-title-lockup h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.premium-title-lockup h2 span,
.score-hero strong,
.prediction-grid strong,
.attention-item strong {
  color: var(--green);
}

.premium-title-lockup p,
.premium-card p,
.prediction-grid span,
.prediction-grid em,
.field-counter {
  color: var(--muted);
}

.premium-title-lockup p {
  margin: 4px 0 0;
}

.premium-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--cyan));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 32px rgba(139, 61, 255, 0.55);
}

.premium-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.credits-chip {
  min-width: 210px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.backend-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 800;
}

.backend-chip[data-status="connected"] {
  border-color: rgba(0, 245, 160, 0.34);
  color: var(--green);
}

.backend-chip[data-status="partial"] {
  border-color: rgba(255, 194, 41, 0.38);
  color: var(--yellow);
}

.backend-chip[data-status="error"] {
  border-color: rgba(255, 61, 113, 0.4);
  color: var(--danger);
}

.credits-chip span,
.credits-chip strong {
  display: block;
}

.credits-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.glow-action {
  border-color: rgba(255, 46, 191, 0.7);
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.92), rgba(3, 211, 255, 0.18));
  box-shadow: 0 0 34px rgba(255, 46, 191, 0.35);
}

.creation-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.55fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.premium-card {
  padding: 16px;
  min-width: 0;
}

.brief-card,
.right-intel-column {
  display: grid;
  gap: 14px;
}

.premium-card-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.premium-card-header.tight {
  justify-content: flex-start;
  margin-top: 18px;
}

.premium-card-header h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.micro-button {
  min-height: 32px;
  border: 1px solid rgba(139, 61, 255, 0.45);
  border-radius: 8px;
  padding: 0 10px;
  color: #d7c7ff;
  background: rgba(139, 61, 255, 0.08);
  font-weight: 800;
}

.premium-input {
  min-height: 42px;
  background: rgba(3, 7, 18, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

.field-counter {
  margin-top: 4px;
  text-align: right;
  font-size: 0.72rem;
}

.segmented-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-icon-row,
.style-swatches,
.reference-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.platform-icon {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.platform-icon.active {
  border-color: rgba(255, 46, 191, 0.8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(255, 46, 191, 0.28);
}

.style-swatches {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.style-swatch {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.style-swatch span,
.reference-strip span,
.reference-strip button {
  display: block;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 65% 35%, rgba(255, 46, 191, 0.75), transparent 24%),
    radial-gradient(circle at 42% 58%, rgba(0, 212, 255, 0.65), transparent 30%),
    linear-gradient(135deg, #16051f, #07111f);
}

.style-swatch.clean span {
  background: linear-gradient(135deg, #e2e8f0, #64748b);
}

.style-swatch.bold span {
  background: linear-gradient(135deg, #ef4444, #facc15, #06b6d4);
}

.style-swatch.cine span {
  background: radial-gradient(circle at 60% 40%, #f59e0b, transparent 30%), linear-gradient(135deg, #0f172a, #111827);
}

.style-swatch.active span {
  border-color: var(--accent-2);
  box-shadow: 0 0 18px rgba(255, 46, 191, 0.35);
}

.style-swatch small {
  display: block;
  margin-top: 5px;
  text-align: center;
}

.reference-strip {
  margin-top: 14px;
}

.reference-strip button {
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.035);
}

.generate-mega-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(100deg, #4f46e5, #c026d3 48%, #ff2e88);
  font-size: 1.08rem;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(255, 46, 136, 0.26);
}

.generate-mega-button small {
  float: right;
  margin-right: 8px;
  opacity: 0.78;
}

.result-card {
  padding: 0;
  overflow: hidden;
}

.result-card > .premium-card-header,
.result-card > .premium-tabs,
.result-card > .premium-actions {
  margin: 16px;
}

.premium-tabs {
  margin-top: 0;
}

.premium-tabs button {
  min-height: 44px;
  font-size: 0.9rem;
}

.premium-ad-stage {
  position: relative;
  min-height: 560px;
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 46, 136, 0.46);
  border-radius: 8px;
  padding: 46px 34px;
  background:
    radial-gradient(circle at 74% 50%, rgba(255, 46, 136, 0.42), transparent 18%),
    radial-gradient(circle at 82% 66%, rgba(0, 212, 255, 0.4), transparent 24%),
    linear-gradient(135deg, #16051f, #07111f 58%, #020617);
}

.ad-particles,
.ad-particles::before,
.ad-particles::after {
  position: absolute;
  box-sizing: border-box;
  inset: 0;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(116deg, transparent 0 54%, rgba(255, 46, 136, 0.75) 55%, transparent 56%),
    linear-gradient(132deg, transparent 0 62%, rgba(0, 212, 255, 0.7) 63%, transparent 64%);
  opacity: 0.45;
}

.ad-particles::before,
.ad-particles::after {
  content: "";
  inset: 18% -12% auto auto;
  width: 58%;
  height: 54%;
  transform: rotate(-12deg);
}

.ad-particles::after {
  inset: auto auto 7% 46%;
  transform: rotate(18deg);
}

.headphone-visual {
  position: absolute;
  right: 7%;
  top: 16%;
  width: min(44%, 360px);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 40px rgba(255, 46, 191, 0.55));
}

.headphone-visual .band {
  position: absolute;
  inset: 6% 10% 28%;
  border: 22px solid rgba(139, 61, 255, 0.78);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 22px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.28);
}

.headphone-visual .cup {
  position: absolute;
  bottom: 12%;
  width: 34%;
  height: 44%;
  border-radius: 42% 42% 48% 48%;
  background: radial-gradient(circle at 55% 42%, #111827, #030712 65%);
  border: 10px solid rgba(255, 46, 191, 0.82);
}

.headphone-visual .cup.left {
  left: 8%;
  transform: rotate(-10deg);
}

.headphone-visual .cup.right {
  right: 8%;
  transform: rotate(10deg);
}

.premium-ad-stage h3 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 54px 0 8px;
  font-size: clamp(4rem, 7vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.premium-ad-stage p {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #f3e8ff;
  font-size: 1.55rem;
  font-weight: 950;
}

.premium-ad-stage ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 220px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.premium-ad-stage li {
  padding-left: 28px;
  color: #dbeafe;
  font-weight: 900;
}

.premium-ad-stage li::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  margin: 3px 0 0 -28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
}

.premium-ad-stage button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  color: white;
  background: linear-gradient(135deg, #ff2e88, #00d4ff);
  font-weight: 950;
}

.attention-map {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1fr;
  gap: 20px;
  margin: 16px;
}

.heatmap-panel {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(139, 61, 255, 0.45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 36%, #fbff00, #ff2e88 16%, transparent 30%),
    radial-gradient(circle at 70% 58%, #fbff00, #00f5a0 14%, transparent 28%),
    radial-gradient(circle at 34% 78%, #fbff00, #ff2e88 10%, transparent 22%),
    linear-gradient(135deg, rgba(23, 12, 43, 0.92), rgba(2, 8, 23, 0.95));
  filter: saturate(1.25);
}

.highlight-list {
  display: grid;
  align-content: center;
  gap: 10px;
}

.attention-item div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score-hero {
  align-items: stretch;
  margin-bottom: 16px;
}

.score-ring {
  width: 142px;
  min-width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0a0f1c 54%, transparent 55%),
    conic-gradient(var(--green) 0 34%, var(--accent-2) 34% 72%, var(--accent) 72% 92%, rgba(255,255,255,.08) 92%);
  box-shadow: 0 0 34px rgba(139, 61, 255, 0.4);
}

.score-ring strong {
  color: white;
  font-size: 3rem;
}

.score-ring span {
  margin-top: -34px;
  color: var(--muted);
}

.score-hero p {
  margin: 0;
  align-self: center;
}

.why-card,
.prediction-card,
.insights-card {
  display: grid;
  gap: 12px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prediction-grid div {
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.prediction-grid div:last-child {
  border-right: 0;
}

.prediction-grid strong,
.credit-number {
  display: block;
  color: var(--accent-2);
  font-size: 1.65rem;
}

.prediction-grid em {
  display: block;
  color: var(--green);
  font-style: normal;
}

.sparkline {
  height: 74px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(139, 61, 255, 0.12), rgba(0, 212, 255, 0.06));
}

.sparkline span {
  flex: 1;
  height: 30%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--cyan));
}

.sparkline span:nth-child(2) { height: 48%; }
.sparkline span:nth-child(3) { height: 36%; }
.sparkline span:nth-child(4) { height: 72%; }
.sparkline span:nth-child(5) { height: 58%; }
.sparkline span:nth-child(6) { height: 64%; }
.sparkline span:nth-child(7) { height: 86%; }

.premium-bottom-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.55fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.standard-section {
  min-height: calc(100vh - 130px);
}

.section-top .premium-title-lockup h2 span {
  color: var(--green);
}

.standard-grid,
.content-library-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.section-card,
.content-card,
.integration-card,
.template-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.section-card.wide {
  grid-column: span 2;
}

.section-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-metrics div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.section-metrics strong {
  color: var(--accent-2);
  font-size: 2rem;
  line-height: 1;
}

.section-metrics span,
.content-card-body span,
.integration-card p,
.template-card p {
  color: var(--muted);
}

.action-stack,
.section-list {
  display: grid;
  gap: 10px;
}

.content-card {
  padding: 0;
  overflow: hidden;
}

.mini-ad,
.template-preview {
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 46, 191, 0.52), transparent 24%),
    radial-gradient(circle at 82% 70%, rgba(0, 212, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #15051f, #07111f 62%, #020617);
}

.mini-ad span {
  max-width: 260px;
  color: #fff;
  font-size: 2.9rem;
  font-weight: 950;
  line-height: 0.9;
}

.content-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.content-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.integration-card {
  min-height: 260px;
}

.platform-dot {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--cyan));
  box-shadow: 0 0 26px rgba(139, 61, 255, 0.4);
}

.integration-card strong {
  color: var(--green);
}

.template-preview {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agency-section .premium-title-lockup h2 span,
.admin-section .premium-title-lockup h2 span,
.agency-kpi-card strong,
.agency-client-row b {
  color: var(--accent-2);
}

.agency-mark {
  background: linear-gradient(135deg, #7c3aed, #ec4899, #00d4ff);
}

.admin-mark {
  background: linear-gradient(135deg, #00d4ff, #8b3dff, #00f5a0);
}

.agency-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.agency-kpi-card {
  min-height: 132px;
}

.agency-kpi-card span,
.agency-kpi-card em,
.agency-client-row small,
.agency-insight-row p {
  color: var(--muted);
}

.agency-kpi-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 2rem;
  line-height: 1;
}

.agency-kpi-card em {
  font-style: normal;
}

.agency-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.agency-dashboard-grid .wide {
  grid-column: span 1;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.segmented-mini {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segmented-mini button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.segmented-mini button:last-child {
  border-right: 0;
}

.segmented-mini button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), rgba(255, 46, 191, 0.48));
}

.agency-line-chart {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 12.5% 100%,
    radial-gradient(circle at 50% 70%, rgba(139, 61, 255, 0.18), transparent 42%),
    rgba(3, 7, 18, 0.52);
}

.agency-line-chart .line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 4px;
  border-radius: 999px;
  filter: drop-shadow(0 0 12px currentColor);
}

.agency-line-chart .purple {
  top: 26%;
  color: #8b3dff;
  background: linear-gradient(90deg, transparent, #8b3dff, #c084fc, #8b3dff);
  transform: skewY(-8deg);
}

.agency-line-chart .green {
  top: 48%;
  color: #00f5a0;
  background: linear-gradient(90deg, transparent, #00f5a0, #22c55e, #00f5a0);
  transform: skewY(-6deg);
}

.agency-line-chart .blue {
  top: 38%;
  color: #00d4ff;
  background: linear-gradient(90deg, transparent, #00d4ff, #2563eb, #00d4ff);
  transform: skewY(-7deg);
}

.agency-line-chart .pink {
  top: 62%;
  color: #ff2e88;
  background: linear-gradient(90deg, transparent, #ff2e88, #ec4899, #ff2e88);
  transform: skewY(-5deg);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
}

.agency-client-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.agency-client-row div {
  min-width: 0;
}

.agency-client-row strong,
.agency-client-row small {
  display: block;
  overflow-wrap: anywhere;
}

.agency-client-row em {
  color: var(--text);
  font-style: normal;
}

.agency-table,
.content-grid {
  display: grid;
  gap: 10px;
}

.content-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agency-brief-card {
  align-self: start;
}

.agency-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agency-form-grid.single {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.agency-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agency-field input,
.agency-field select,
.agency-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.72);
  outline: none;
  text-transform: none;
}

.agency-field textarea {
  min-height: 92px;
  resize: vertical;
}

.agency-field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}

.client-connection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.client-connection-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.client-connection-strip strong {
  color: var(--green);
  overflow-wrap: anywhere;
}

.client-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 18px;
}

.client-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.client-brand-lockup h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.client-brand-lockup p {
  color: var(--muted);
}

.client-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  border: 1px solid rgba(0, 212, 255, 0.42);
  box-shadow: 0 0 34px rgba(0, 212, 255, 0.25);
  font-size: 1.4rem;
  font-weight: 950;
}

.client-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-status-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.client-status-grid strong,
.client-status-grid span {
  display: block;
}

.client-status-grid strong {
  color: var(--accent-2);
  font-size: 1.18rem;
}

.client-status-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.client-detail-grid .handoff-list small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.agency-integration-card {
  min-height: 220px;
}

.agency-integration-card .platform-dot {
  width: 44px;
  height: 44px;
}

.agency-table-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.35fr) auto auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.campaign-row {
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto;
}

.agency-table-row div {
  min-width: 0;
}

.agency-table-row strong,
.agency-table-row small,
.agency-table-row span,
.agency-table-row em,
.agency-table-row b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agency-table-row small {
  display: block;
  color: var(--muted);
}

.agency-table-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.agency-table-row b {
  color: var(--accent-2);
}

.agency-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 46, 191, 0.55);
  color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(255, 46, 191, 0.55), rgba(30, 41, 59, 0.9));
  font-weight: 950;
}

.agency-insight-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.agency-insight-row span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.agency-insight-row p {
  margin: 0;
}

.donut-panel {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #08111f 0 48%, transparent 49%),
    conic-gradient(var(--accent) 0 45%, var(--cyan) 45% 70%, var(--green) 70% 90%, var(--accent-2) 90%);
  box-shadow: 0 0 42px rgba(139, 61, 255, 0.34);
}

.donut-panel strong,
.donut-panel span {
  grid-area: 1 / 1;
  text-align: center;
}

.donut-panel span {
  margin-top: 42px;
  color: var(--muted);
  font-size: 0.78rem;
}

.ad-preview-block {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(255, 46, 191, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 42%, rgba(139, 61, 255, 0.5), transparent 25%),
    radial-gradient(circle at 78% 68%, rgba(0, 212, 255, 0.35), transparent 28%),
    linear-gradient(135deg, rgba(255, 46, 191, 0.18), rgba(0, 212, 255, 0.12)),
    #070b18;
  overflow: hidden;
}

.ad-preview-block strong {
  max-width: 600px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.ad-preview-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 950;
}

.cta-pill {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  font-weight: 950;
}

.button-row,
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-row span {
  width: 42px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.swatch-row span:nth-child(1) {
  background: var(--accent);
}

.swatch-row span:nth-child(2) {
  background: var(--accent-2);
}

.swatch-row span:nth-child(3) {
  background: var(--cyan);
}

.mega-number {
  display: block;
  color: var(--accent-2);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}

.creative-tile {
  overflow: hidden;
}

.creative-thumb {
  min-height: 170px;
  display: grid;
  place-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 46, 191, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 42%, rgba(0, 212, 255, 0.42), transparent 24%),
    radial-gradient(circle at 35% 72%, rgba(255, 46, 191, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(139, 61, 255, 0.22), rgba(3, 7, 18, 0.96));
}

.creative-thumb strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1380px) {
  .creation-grid,
  .premium-bottom-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(460px, 1.3fr);
  }

  .right-intel-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  body[data-role="user_common"] .content {
    padding: 12px;
  }

  .user-premium-top,
  .creation-grid,
  .premium-bottom-grid,
  .attention-map,
  .right-intel-column {
    display: block;
  }

  .premium-card,
  .user-premium-top {
    margin-bottom: 14px;
  }

  body[data-role="user_common"] .role-specific-panel,
  .standard-section,
  .standard-grid {
    width: 100%;
    max-width: 100%;
  }

  .premium-top-actions,
  .premium-actions {
    justify-content: flex-start;
  }

  .premium-ad-stage {
    min-height: 440px;
  }

  .standard-grid,
  .content-library-grid,
  .integration-grid,
  .section-metrics {
    grid-template-columns: 1fr;
  }

  .section-card.wide {
    grid-column: auto;
  }

  .agency-kpi-grid,
  .agency-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .agency-form-grid,
  .client-connection-strip,
  .client-connection-grid,
  .client-detail-hero,
  .client-status-grid {
    grid-template-columns: 1fr;
  }

  .client-brand-lockup {
    align-items: flex-start;
  }

  .agency-client-row,
  .agency-table-row,
  .campaign-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .agency-client-row em,
  .agency-client-row b,
  .agency-table-row span,
  .agency-table-row em,
  .agency-table-row b,
  .agency-table-row .micro-button {
    justify-self: start;
  }
}

.company-mark {
  min-width: 56px;
  letter-spacing: 0;
  font-size: 16px;
}

.company-section .section-card p {
  color: var(--muted);
  line-height: 1.5;
}

.api-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.api-flow-step,
.api-endpoint-row,
.prediction-api-grid > div,
.code-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.api-flow-step {
  padding: 14px;
  min-height: 130px;
}

.api-flow-step strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: white;
  margin-bottom: 12px;
}

.api-flow-step span,
.prediction-api-grid strong {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.api-flow-step p,
.api-endpoint-row span,
.prediction-api-grid span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.api-endpoint-list {
  display: grid;
  gap: 10px;
}

.api-endpoint-row {
  display: grid;
  grid-template-columns: 74px minmax(160px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.api-endpoint-row b {
  color: var(--accent-3);
}

.api-endpoint-row code,
.code-box {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.code-box {
  padding: 14px;
  margin-top: 14px;
}

.prediction-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.prediction-api-grid > div {
  padding: 14px;
}

@media (max-width: 960px) {
  .api-flow,
  .prediction-api-grid {
    grid-template-columns: 1fr;
  }

  .api-endpoint-row {
    grid-template-columns: 1fr;
  }
}

/* P13.5 Owner/Super Admin visual alignment */
.owner-dashboard {
  display: grid;
  gap: 14px;
}

.gold-owner {
  position: relative;
  gap: 18px;
  isolation: isolate;
}

.gold-owner::before {
  content: "";
  position: absolute;
  inset: -32px -26px auto -26px;
  height: 430px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 61, 255, 0.085), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(0, 212, 255, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 18, 0.5), transparent);
}

.owner-hero,
.owner-section-hero,
.owner-card,
.owner-kpi {
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(191, 0, 255, 0.18), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(0, 212, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(8, 12, 28, 0.96), rgba(2, 6, 16, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gold-owner .owner-hero,
.gold-owner .owner-card,
.gold-owner .owner-kpi,
.gold-owner .owner-gold-footer {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 42%),
    radial-gradient(circle at 18% 0%, rgba(139, 61, 255, 0.06), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(0, 212, 255, 0.05), transparent 38%),
    linear-gradient(145deg, rgba(7, 10, 24, 0.82), rgba(2, 5, 14, 0.975));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -28px 74px rgba(0, 0, 0, 0.28),
    0 22px 84px rgba(0, 0, 0, 0.48);
}

.gold-owner .owner-hero::before,
.gold-owner .owner-card::before,
.gold-owner .owner-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.065), transparent 23%, transparent 74%, rgba(0,212,255,0.026)),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 58%);
  opacity: 0.52;
}

.gold-owner .owner-hero::after,
.gold-owner .owner-card::after,
.gold-owner .owner-kpi::after {
  content: "";
  position: absolute;
  inset: auto 10% -42px 10%;
  height: 76px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.052), rgba(139, 61, 255, 0.02) 42%, transparent 74%);
  opacity: 0.5;
}

.owner-hero,
.owner-section-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.gold-owner .owner-hero {
  min-height: 206px;
  padding: 38px 38px;
  border-color: rgba(0, 212, 255, 0.16);
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 61, 255, 0.18), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(0, 212, 255, 0.105), transparent 34%),
    linear-gradient(135deg, rgba(12, 10, 30, 0.96), rgba(3, 13, 22, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -90px 150px rgba(0,0,0,0.3),
    0 34px 118px rgba(0,0,0,0.58),
    0 0 80px rgba(139, 61, 255, 0.08);
}

.gold-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-hero h2,
.owner-section-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.gold-owner .owner-hero h2 {
  text-transform: uppercase;
  max-width: 620px;
  font-size: clamp(3.1rem, 4.25rem, 4.25rem);
  line-height: 0.94;
  text-shadow:
    0 0 24px rgba(139, 61, 255, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.48);
}

.owner-hero h2 span,
.owner-section-hero h2 span {
  color: var(--accent-2);
}

.owner-hero p,
.owner-section-hero p,
.owner-kpi span,
.owner-kpi em,
.owner-card span,
.owner-card em {
  color: var(--muted);
}

.owner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.owner-credit-pill,
.owner-system-pill,
.owner-time-pill {
  min-height: 54px;
  min-width: 170px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.owner-credit-pill span,
.owner-time-pill span,
.owner-time-pill strong,
.owner-time-pill em,
.owner-system-pill strong,
.owner-system-pill em,
.owner-credit-pill strong,
.owner-credit-pill em {
  display: block;
}

.owner-credit-pill strong {
  font-size: 1.4rem;
}

.owner-system-pill span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.gold-owner .owner-credit-pill,
.gold-owner .owner-system-pill,
.gold-owner .owner-time-pill {
  border-color: rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.016)),
    rgba(4, 9, 18, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 48px rgba(0,0,0,0.32);
}

.owner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.gold-owner .owner-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.owner-kpi-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-kpi {
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
}

.gold-owner .owner-kpi {
  min-height: 148px;
  padding: 16px 15px;
  border-color: rgba(148, 163, 184, 0.095);
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--tile, var(--accent)) 10%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.01)),
    rgba(4, 8, 18, 0.74);
}

.owner-kpi-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.owner-kpi-head i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(139, 61, 255, 0.32);
  font-style: normal;
  box-shadow: 0 0 24px rgba(139, 61, 255, 0.46);
}

.gold-owner .owner-kpi-head i {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), transparent 32%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tile, var(--accent)) 24%, transparent), rgba(139,61,255,0.08));
  box-shadow: 0 0 12px color-mix(in srgb, var(--tile, var(--accent)) 12%, transparent);
}

.owner-kpi strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1;
}

.gold-owner .owner-kpi strong {
  font-size: clamp(1.14rem, 1.5rem, 1.5rem);
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 14px color-mix(in srgb, var(--tile, var(--cyan)) 10%, transparent);
}

.gold-owner .owner-kpi-head span {
  max-width: 75%;
  line-height: 1.15;
}

.gold-owner .owner-kpi em {
  color: color-mix(in srgb, var(--green) 82%, white 0%);
  line-height: 1.2;
}

.owner-kpi em {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.owner-kpi.purple { --tile: var(--accent); }
.owner-kpi.blue { --tile: var(--cyan); }
.owner-kpi.green { --tile: var(--green); }
.owner-kpi.pink { --tile: var(--accent-2); }
.owner-kpi.orange { --tile: var(--yellow); }

.owner-kpi.blue .owner-kpi-head i,
.owner-cloud-tile.blue { --tile: var(--cyan); }
.owner-kpi.green .owner-kpi-head i,
.owner-cloud-tile.green { --tile: var(--green); }
.owner-kpi.pink .owner-kpi-head i,
.owner-cloud-tile.pink { --tile: var(--accent-2); }
.owner-kpi.orange .owner-kpi-head i,
.owner-cloud-tile.orange { --tile: var(--yellow); }

.mini-spark {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 4px;
  height: 26px;
  margin-top: 14px;
}

.mini-spark span {
  display: block;
  height: 45%;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile, var(--cyan)) 82%, white 0%), color-mix(in srgb, var(--accent) 72%, black 8%));
  box-shadow: 0 0 10px color-mix(in srgb, var(--tile, var(--cyan)) 22%, transparent);
  opacity: 0.82;
}

.mini-spark span:nth-child(2) { height: 60%; }
.mini-spark span:nth-child(3) { height: 38%; }
.mini-spark span:nth-child(4) { height: 70%; }
.mini-spark span:nth-child(5) { height: 52%; }
.mini-spark span:nth-child(6) { height: 86%; }

.owner-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.owner-main-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-card {
  grid-column: span 4;
  min-height: 260px;
  padding: 16px;
}

.gold-owner .owner-card {
  min-height: 260px;
  padding: 20px;
}

.gold-owner .owner-card.owner-wide {
  border-color: rgba(0, 212, 255, 0.13);
  background:
    radial-gradient(circle at 62% 46%, rgba(139, 61, 255, 0.08), transparent 38%),
    radial-gradient(circle at 14% 0%, rgba(0, 212, 255, 0.045), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.012)),
    rgba(4, 8, 19, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -40px 92px rgba(0,0,0,0.32),
    0 28px 96px rgba(0,0,0,0.5),
    0 0 42px rgba(0,212,255,0.035);
}

.owner-card.owner-wide,
.owner-card.span-2 {
  grid-column: span 6;
}

.owner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.owner-card-head span,
.owner-section-hero .eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 950;
}

.owner-card-head h3 {
  margin: 4px 0 0;
}

.gold-owner .owner-card-head h3 {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.gold-owner .owner-card-head span,
.gold-owner .owner-section-hero .eyebrow {
  color: rgba(226, 232, 240, 0.58);
}

.chip-button,
.link-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 850;
}

.chip-button {
  min-height: 34px;
  padding: 0 12px;
}

.link-button {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  color: var(--accent-2);
}

.owner-finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.gold-owner .owner-finance-metrics {
  gap: 0;
  padding: 10px 0 14px;
}

.owner-finance-metrics div {
  padding: 10px;
  border-right: 1px solid var(--line);
}

.gold-owner .owner-finance-metrics div {
  padding: 6px 12px;
  border-right-color: rgba(148, 163, 184, 0.14);
}

.gold-owner .owner-finance-metrics strong {
  margin-top: 4px;
  font-size: 1.02rem;
}

.owner-finance-metrics div:last-child {
  border-right: 0;
}

.owner-finance-metrics strong,
.owner-finance-metrics span,
.owner-finance-metrics em {
  display: block;
}

.owner-finance-metrics em,
.owner-list-row.ok em,
.owner-table-row em {
  color: var(--green);
}

.owner-finance-metrics .warn,
.owner-list-row.warn em {
  color: var(--yellow);
}

.owner-line-chart {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 12.5% 100%,
    radial-gradient(circle at 55% 60%, rgba(139, 61, 255, 0.18), transparent 42%),
    rgba(3, 7, 18, 0.55);
}

.gold-owner .owner-line-chart {
  min-height: 224px;
  border-color: rgba(148, 163, 184, 0.09);
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 12.5% 100%,
    radial-gradient(circle at 65% 52%, rgba(139, 61, 255, 0.11), transparent 40%),
    radial-gradient(circle at 82% 30%, rgba(0, 212, 255, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(6, 10, 22, 0.74), rgba(1, 4, 12, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.026),
    inset 0 -44px 96px rgba(0, 212, 255, 0.022);
}

.gold-owner .owner-line-chart::before {
  content: "";
  position: absolute;
  inset: auto 7% 26px 7%;
  height: 112px;
  background: linear-gradient(180deg, rgba(139, 61, 255, 0.11), rgba(0, 212, 255, 0.038), transparent);
  opacity: 0.66;
}

.owner-line-chart .axis {
  position: absolute;
  z-index: 1;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.78rem;
}

.owner-line-chart .y1 { left: 14px; top: 16px; }
.owner-line-chart .y2 { left: 14px; top: 48%; }
.owner-line-chart .x1 { left: 10%; bottom: 10px; }
.owner-line-chart .x2 { right: 8%; bottom: 10px; }

.owner-line-chart .line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 999px;
  filter: drop-shadow(0 0 6px currentColor);
}

.gold-owner .owner-line-chart .line {
  height: 3px;
  opacity: 0.9;
  box-shadow: 0 0 13px currentColor, 0 0 36px color-mix(in srgb, currentColor 42%, transparent);
}

.owner-line-chart .one { top: 30%; color: var(--accent); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 76%, white 0%), color-mix(in srgb, var(--accent-2) 68%, black 10%)); transform: skewY(-7deg); }
.owner-line-chart .two { top: 50%; color: var(--accent-2); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 66%, black 10%), color-mix(in srgb, var(--cyan) 64%, black 12%)); transform: skewY(-4deg); }
.owner-line-chart .three { top: 68%; color: var(--cyan); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 62%, black 14%), color-mix(in srgb, var(--green) 62%, black 14%)); transform: skewY(-6deg); }

.owner-line-chart .chart-dot {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.owner-line-chart .d1 { left: 22%; top: 35%; color: var(--accent); }
.owner-line-chart .d2 { left: 52%; top: 27%; color: var(--accent); }
.owner-line-chart .d3 { left: 82%; top: 20%; color: var(--accent-2); }
.owner-line-chart .d4 { left: 24%; top: 52%; color: var(--accent-2); }
.owner-line-chart .d5 { left: 55%; top: 45%; color: var(--accent-2); }
.owner-line-chart .d6 { left: 84%; top: 39%; color: var(--cyan); }
.owner-line-chart .d7 { left: 21%; top: 72%; color: var(--cyan); }
.owner-line-chart .d8 { left: 54%; top: 63%; color: var(--cyan); }
.owner-line-chart .d9 { left: 84%; top: 56%; color: var(--green); }

.owner-donut-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.owner-donut-row.compact {
  grid-template-columns: 150px minmax(0, 1fr);
}

.owner-donut {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #08111f 0 48%, transparent 49%),
    conic-gradient(var(--accent) 0 37%, #2563eb 37% 59%, var(--accent-2) 59% 81%, var(--yellow) 81% 92%, var(--green) 92%);
  box-shadow: 0 0 35px rgba(139, 61, 255, 0.42);
}

.gold-owner .owner-donut {
  background:
    radial-gradient(circle, rgba(6, 12, 28, 0.98) 0 43%, rgba(2, 5, 15, 0.86) 44% 51%, transparent 52%),
    conic-gradient(color-mix(in srgb, var(--accent) 78%, black 8%) 0 37%, #1d4ed8 37% 59%, color-mix(in srgb, var(--accent-2) 72%, black 10%) 59% 81%, color-mix(in srgb, var(--yellow) 72%, black 12%) 81% 92%, color-mix(in srgb, var(--green) 74%, black 12%) 92%);
  box-shadow:
    0 0 34px rgba(139, 61, 255, 0.18),
    0 0 70px rgba(0, 212, 255, 0.055),
    inset 0 0 34px rgba(0,0,0,0.48);
}

.owner-donut.ticket {
  background:
    radial-gradient(circle, #08111f 0 48%, transparent 49%),
    conic-gradient(var(--accent-2) 0 28%, var(--yellow) 28% 58%, #2563eb 58% 77%, var(--green) 77%);
}

.owner-donut strong,
.owner-donut span {
  grid-area: 1 / 1;
  text-align: center;
}

.owner-donut span {
  margin-top: 42px;
  text-transform: uppercase;
}

.owner-legend,
.owner-bars {
  display: grid;
  gap: 10px;
}

.owner-legend-row,
.owner-alert,
.owner-list-row,
.owner-table-row,
.owner-activity-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gold-owner .owner-legend-row,
.gold-owner .owner-alert,
.gold-owner .owner-list-row,
.gold-owner .owner-table-row,
.gold-owner .owner-activity-row {
  border-color: rgba(148, 163, 184, 0.075);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.026), rgba(255,255,255,0.012)),
    rgba(3, 7, 15, 0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.owner-legend-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.owner-legend-row span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.owner-legend-row span.pink { background: var(--accent-2); }
.owner-legend-row span.blue { background: var(--cyan); }
.owner-legend-row span.orange { background: var(--yellow); }
.owner-legend-row span.green { background: var(--green); }

.owner-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-cloud-tile {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gold-owner .owner-cloud-tile {
  border-color: rgba(148, 163, 184, 0.08);
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.026);
}

.owner-cloud-tile strong,
.owner-cloud-tile span,
.owner-cloud-tile em,
.owner-cloud-tile b {
  display: block;
}

.owner-cloud-tile strong {
  font-size: 1.55rem;
}

.owner-cloud-tile div,
.owner-bar em {
  display: block;
  height: 6px;
  margin: 10px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.owner-cloud-tile i,
.owner-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tile, var(--accent)) 74%, black 8%), color-mix(in srgb, var(--cyan) 62%, black 14%));
}

.owner-cloud-tile b {
  color: var(--tile, var(--accent));
}

.owner-alert {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  margin-bottom: 8px;
}

.owner-alert b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--yellow);
}

.owner-alert.danger b,
.owner-list-row.danger em {
  color: #fff;
  background: var(--danger);
}

.owner-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
}

.owner-list-row strong,
.owner-list-row span,
.owner-list-row em {
  display: block;
}

.owner-list-row em {
  font-style: normal;
  font-weight: 850;
}

.owner-table-row,
.owner-activity-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  margin-bottom: 8px;
}

.owner-activity-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.owner-core-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 245, 160, 0.22), transparent 30%),
    radial-gradient(circle at 50% 65%, rgba(139, 61, 255, 0.24), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.gold-owner .owner-core-visual {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-color: rgba(148, 163, 184, 0.08);
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 245, 160, 0.08), transparent 34%),
    radial-gradient(circle at 50% 68%, rgba(139, 61, 255, 0.09), transparent 40%),
    rgba(255, 255, 255, 0.018);
}

.owner-core-visual i {
  position: absolute;
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 245, 160, 0.32);
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, rgba(0,245,160,0.08), rgba(139,61,255,0.16)),
    rgba(255,255,255,0.02);
  box-shadow: 0 0 38px rgba(0,245,160,0.28);
}

.gold-owner .owner-core-visual i {
  width: 132px;
  border-color: rgba(0, 212, 255, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(0,245,160,0.09), transparent 30%),
    linear-gradient(135deg, rgba(0,245,160,0.04), rgba(139,61,255,0.1));
  box-shadow:
    0 0 36px rgba(0,245,160,0.12),
    0 0 76px rgba(139,61,255,0.09);
}

.owner-core-visual strong {
  position: relative;
  color: var(--green);
  font-size: 3rem;
  text-shadow: 0 0 22px rgba(0, 245, 160, 0.18);
}

.owner-core-visual span {
  position: relative;
}

.owner-bar {
  display: grid;
  gap: 8px;
}

.owner-bar div {
  display: flex;
  justify-content: space-between;
}

.owner-gold-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 8px;
}

.gold-owner .owner-gold-footer {
  border-color: rgba(148, 163, 184, 0.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.024), rgba(255,255,255,0.01)),
    rgba(3, 7, 15, 0.76);
}

.owner-gold-footer span,
.owner-gold-footer strong {
  display: block;
}

.owner-gold-footer span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 900;
}

/* P13.GOLD AAA reconstruction: Owner command center */
body[data-role="owner"] .app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

body[data-role="owner"] .sidebar {
  align-self: stretch;
  height: auto;
  min-height: 100vh;
  padding: 14px 12px;
}

body[data-role="owner"] .brand-block {
  grid-template-columns: 40px 1fr;
  gap: 9px;
  padding-bottom: 14px;
}

body[data-role="owner"] .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 21px;
  border-radius: 7px;
}

body[data-role="owner"] .brand-name {
  font-size: 17px;
  letter-spacing: 0;
}

body[data-role="owner"] .brand-tag {
  font-size: 10px;
}

body[data-role="owner"] .role-card {
  margin: 10px 0 14px;
  padding: 9px;
}

body[data-role="owner"] .avatar {
  width: 34px;
  height: 34px;
}

body[data-role="owner"] .nav-section {
  margin: 10px 0;
}

body[data-role="owner"] .nav-title {
  margin-bottom: 5px;
  color: rgba(255, 194, 41, 0.82);
  font-size: 10px;
}

body[data-role="owner"] .nav-item {
  min-height: 34px;
  grid-template-columns: 22px 1fr;
  padding: 0 9px;
  font-size: 0.82rem;
}

.owner-sidebar-core {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 12px 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(139, 61, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 53, 191, 0.22), transparent 24%),
    radial-gradient(circle at 50% 56%, rgba(0, 212, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(13, 10, 34, 0.82), rgba(3, 7, 16, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 42px rgba(139, 61, 255, 0.16);
}

.owner-core-kicker,
.owner-sidebar-core small {
  position: relative;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.64rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.owner-core-cube {
  position: relative;
  width: 104px;
  height: 72px;
  margin: 2px 0 0;
}

.owner-core-cube::before,
.owner-core-cube::after,
.owner-core-cube i,
.owner-core-cube b {
  content: "";
  position: absolute;
  inset: 18px 34px;
  border: 1px solid rgba(0, 212, 255, 0.26);
  transform: rotate(45deg) skew(-8deg, -8deg);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(255, 53, 191, 0.09));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.16);
}

.owner-core-cube::after {
  inset: 30px 44px;
  border-color: rgba(255, 53, 191, 0.32);
}

.owner-core-cube i {
  inset: 40px 55px;
  border-color: rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle, rgba(255, 53, 191, 0.7), rgba(0, 212, 255, 0.08));
  box-shadow: 0 0 36px rgba(255, 53, 191, 0.38), 0 0 70px rgba(0, 212, 255, 0.18);
}

.owner-core-cube b {
  inset: 56px 18px 15px;
  border-color: rgba(139, 61, 255, 0.2);
  opacity: 0.62;
}

.owner-sidebar-core strong {
  position: relative;
  color: var(--green);
  font-size: 1.85rem;
  line-height: 1;
}

.owner-sidebar-core em {
  position: relative;
  color: var(--text);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
}

.owner-core-meter {
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.075);
}

.owner-core-meter span {
  display: block;
  width: 96%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.32);
}

body[data-role="owner"] .topbar {
  min-height: 60px;
  padding: 10px 24px;
}

body[data-role="owner"] .topbar h1 {
  font-size: 1.15rem;
}

body[data-role="owner"] .main-frame {
  min-width: 0;
  overflow: visible;
  background: transparent;
}

.gold-owner {
  gap: 10px;
  padding-top: 10px;
}

.gold-owner::before {
  inset: -70px -42px -40px -42px;
  height: auto;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 53, 191, 0.16), transparent 20%),
    radial-gradient(circle at 78% 12%, rgba(0, 212, 255, 0.13), transparent 26%),
    radial-gradient(circle at 42% 38%, rgba(139, 61, 255, 0.08), transparent 34%);
}

.gold-owner .owner-hero,
.gold-owner .owner-card,
.gold-owner .owner-kpi,
.gold-owner .owner-gold-footer {
  border-color: rgba(99, 102, 241, 0.32);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 53, 191, 0.13), transparent 31%),
    radial-gradient(circle at 92% 6%, rgba(0, 212, 255, 0.12), transparent 33%),
    linear-gradient(145deg, rgba(10, 12, 30, 0.86), rgba(2, 6, 16, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 -34px 90px rgba(0,0,0,0.3),
    0 18px 70px rgba(0,0,0,0.38);
}

.gold-owner .owner-hero {
  min-height: 150px;
  padding: 22px 28px;
  border-color: rgba(0, 212, 255, 0.2);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 53, 191, 0.17), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(0, 212, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(12, 10, 29, 0.92), rgba(4, 18, 28, 0.92));
}

.gold-owner .owner-hero h2 {
  max-width: none;
  font-size: clamp(2.45rem, 4.2vw, 3.7rem);
  line-height: 0.98;
}

.gold-owner .owner-hero h2 span {
  color: var(--accent-2);
}

body[data-theme="green"] .gold-owner .owner-hero h2 span {
  color: var(--cyan);
}

.gold-owner .owner-hero p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.gold-owner .owner-hero-actions {
  gap: 8px;
}

.gold-owner .owner-credit-pill,
.gold-owner .owner-system-pill,
.gold-owner .owner-time-pill {
  min-width: 145px;
  min-height: 56px;
  padding: 9px 12px;
}

.gold-owner .owner-credit-pill strong {
  font-size: 1.25rem;
}

.gold-owner .owner-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gold-owner .owner-kpi {
  min-height: 126px;
  padding: 13px 13px 10px;
}

.gold-owner .owner-kpi-head i {
  width: 34px;
  height: 34px;
}

.gold-owner .owner-kpi strong {
  margin-top: 15px;
  font-size: clamp(1.18rem, 1.68vw, 1.55rem);
}

.gold-owner .owner-kpi em {
  margin-top: 6px;
  font-size: 0.8rem;
}

.gold-owner .mini-spark {
  height: 32px;
  margin-top: 7px;
}

.mini-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mini-spark .spark-fill {
  fill: color-mix(in srgb, var(--tile, var(--cyan)) 18%, transparent);
}

.mini-spark .spark-line {
  fill: none;
  stroke: color-mix(in srgb, var(--tile, var(--cyan)) 88%, white 0%);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tile, var(--cyan)) 38%, transparent));
}

.mini-spark circle {
  fill: color-mix(in srgb, var(--tile, var(--cyan)) 92%, white 0%);
}

.mini-spark > span {
  display: none;
}

.gold-owner .owner-main-grid {
  gap: 10px;
}

.gold-owner .owner-card {
  grid-column: span 4;
  min-height: 222px;
  padding: 15px;
}

.gold-owner .owner-card.owner-wide,
.gold-owner .owner-card.span-2 {
  grid-column: span 4;
}

.gold-owner .owner-card-head {
  margin-bottom: 10px;
}

.gold-owner .owner-card-head h3 {
  font-size: 0.95rem;
}

.gold-owner .owner-finance-metrics {
  padding: 4px 0 10px;
}

.gold-owner .owner-finance-metrics div {
  padding: 4px 8px;
}

.gold-owner .owner-line-chart {
  min-height: 168px;
}

.gold-owner .owner-donut-row {
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
}

.gold-owner .owner-donut-row.compact {
  grid-template-columns: 132px minmax(0, 1fr);
}

.gold-owner .owner-donut {
  width: 132px;
}

.gold-owner .owner-cloud-grid {
  gap: 8px;
}

.gold-owner .owner-cloud-tile {
  padding: 10px;
}

.gold-owner .owner-cloud-tile strong {
  font-size: 1.22rem;
}

.gold-owner .owner-legend,
.gold-owner .owner-bars {
  gap: 7px;
}

.gold-owner .owner-legend-row,
.gold-owner .owner-alert,
.gold-owner .owner-list-row,
.gold-owner .owner-table-row,
.gold-owner .owner-activity-row {
  padding: 8px 10px;
}

.gold-owner .owner-core-visual {
  min-height: 128px;
}

.gold-owner .owner-core-visual strong {
  font-size: 2.55rem;
}

.gold-owner .owner-gold-footer {
  padding: 10px 14px;
}

/* P13.GOLD atmospheric refinement: cinematic diffusion layer */
body[data-role="owner"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(167, 88, 255, 0.16), transparent 42%),
    radial-gradient(ellipse at 82% 10%, rgba(0, 212, 255, 0.13), transparent 42%),
    radial-gradient(ellipse at 44% 44%, rgba(255, 53, 191, 0.07), transparent 52%),
    radial-gradient(ellipse at 70% 72%, rgba(0, 245, 160, 0.035), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.014), transparent 24%, rgba(1,5,13,0.34));
  mix-blend-mode: screen;
  opacity: 0.95;
}

body[data-role="owner"] .sidebar,
body[data-role="owner"] .main-frame,
body[data-role="owner"] .topbar {
  position: relative;
  z-index: 1;
}

body[data-role="owner"] .main-frame {
  box-shadow: none;
}

body[data-role="owner"] .main-frame {
  overflow: visible !important;
}

.gold-owner::after {
  content: "";
  position: absolute;
  inset: 28px -70px 0 -70px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 10%, rgba(255, 53, 191, 0.155), transparent 34%),
    radial-gradient(ellipse at 76% 12%, rgba(0, 212, 255, 0.155), transparent 36%),
    radial-gradient(ellipse at 46% 40%, rgba(139, 61, 255, 0.12), transparent 48%),
    radial-gradient(ellipse at 82% 68%, rgba(0, 245, 160, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 50%, rgba(0,0,0,0.18));
  filter: blur(24px);
  opacity: 0.92;
}

.gold-owner .owner-hero,
.gold-owner .owner-card,
.gold-owner .owner-kpi,
.gold-owner .owner-gold-footer {
  border-color: rgba(180, 198, 255, 0.095);
  background:
    radial-gradient(ellipse at 8% -22%, color-mix(in srgb, var(--tile, var(--accent)) 16%, transparent), transparent 44%),
    radial-gradient(ellipse at 94% -8%, rgba(0, 212, 255, 0.12), transparent 46%),
    radial-gradient(ellipse at 48% 120%, rgba(139, 61, 255, 0.055), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.01) 42%, rgba(0,0,0,0.22)),
    linear-gradient(145deg, rgba(8, 13, 29, 0.88), rgba(2, 7, 17, 0.965));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -48px 120px rgba(0, 0, 0, 0.42),
    0 36px 128px rgba(0,0,0,0.54),
    0 0 110px color-mix(in srgb, var(--tile, var(--accent)) 9%, transparent);
}

.gold-owner .owner-hero::before,
.gold-owner .owner-card::before,
.gold-owner .owner-kpi::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), transparent 26%, transparent 78%, rgba(0,212,255,0.022)),
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.032), transparent 62%);
  opacity: 0.42;
}

.gold-owner .owner-hero::after,
.gold-owner .owner-card::after,
.gold-owner .owner-kpi::after {
  inset: auto -6% -70px -6%;
  height: 140px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tile, var(--cyan)) 13%, transparent), rgba(139, 61, 255, 0.045) 46%, transparent 76%);
  opacity: 0.76;
}

.gold-owner .owner-hero {
  border-color: rgba(0, 212, 255, 0.12);
  background:
    radial-gradient(ellipse at 18% 6%, rgba(255, 53, 191, 0.19), transparent 42%),
    radial-gradient(ellipse at 78% 12%, rgba(0, 212, 255, 0.18), transparent 44%),
    radial-gradient(ellipse at 54% 82%, rgba(139, 61, 255, 0.1), transparent 52%),
    linear-gradient(135deg, rgba(12, 11, 32, 0.91), rgba(3, 16, 28, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.042),
    inset 0 -90px 170px rgba(0,0,0,0.42),
    0 42px 150px rgba(0,0,0,0.58),
    0 0 150px rgba(0, 212, 255, 0.07),
    0 0 180px rgba(255, 53, 191, 0.055);
}

.gold-owner .owner-kpi {
  --panel-edge: color-mix(in srgb, var(--tile, var(--accent)) 19%, rgba(148, 163, 184, 0.08));
  border-color: color-mix(in srgb, var(--panel-edge) 64%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.024),
    inset 0 -44px 90px rgba(0,0,0,0.4),
    0 28px 100px rgba(0,0,0,0.46),
    0 0 88px color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent);
}

.gold-owner .owner-card.owner-wide,
.gold-owner .owner-card.span-2 {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.028),
    inset 0 -58px 130px rgba(0,0,0,0.43),
    0 42px 140px rgba(0,0,0,0.54),
    0 0 130px rgba(0, 212, 255, 0.052),
    0 0 120px rgba(139, 61, 255, 0.035);
}

.gold-owner .owner-line-chart {
  background:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px) 0 0 / 12.5% 100%,
    radial-gradient(ellipse at 68% 45%, rgba(0, 212, 255, 0.105), transparent 44%),
    radial-gradient(ellipse at 35% 72%, rgba(255, 53, 191, 0.082), transparent 42%),
    linear-gradient(180deg, rgba(5, 12, 27, 0.8), rgba(1, 5, 14, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.018),
    inset 0 -60px 132px rgba(0, 212, 255, 0.034),
    0 22px 72px rgba(0,0,0,0.36);
}

.gold-owner .owner-legend-row,
.gold-owner .owner-alert,
.gold-owner .owner-list-row,
.gold-owner .owner-table-row,
.gold-owner .owner-activity-row,
.gold-owner .owner-cloud-tile {
  border-color: rgba(180, 198, 255, 0.055);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 212, 255, 0.042), transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(139, 61, 255, 0.028), transparent 48%),
    linear-gradient(90deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008)),
    rgba(4, 9, 18, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.016),
    0 16px 44px rgba(0,0,0,0.22);
}

.gold-owner .owner-donut,
.gold-owner .owner-core-visual {
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.42));
}

/* P13.GOLD micro UI refinement: lightweight typography and cinematic status capsules */
body[data-role="owner"] {
  font-weight: 400;
}

body[data-role="owner"] .brand-name,
body[data-role="owner"] .role-user,
body[data-role="owner"] .topbar h1,
.gold-owner .owner-hero h2,
.gold-owner .owner-kpi strong,
.gold-owner .owner-card-head h3,
.gold-owner .owner-finance-metrics strong,
.gold-owner .owner-cloud-tile strong,
.gold-owner .owner-donut strong,
.gold-owner .owner-core-visual strong,
body[data-role="owner"] .owner-sidebar-core strong,
.gold-owner .owner-gold-footer strong {
  font-weight: 600;
  letter-spacing: 0;
}

body[data-role="owner"] .brand-tag,
body[data-role="owner"] .role-subtitle,
body[data-role="owner"] .nav-title,
.gold-owner .gold-kicker,
.gold-owner .owner-kpi-head span,
.gold-owner .owner-card-head span,
.gold-owner .owner-finance-metrics span,
.gold-owner .owner-cloud-tile span,
.gold-owner .owner-cloud-tile em,
.gold-owner .owner-donut span,
.gold-owner .owner-core-visual span,
.gold-owner .owner-gold-footer span,
.gold-owner .owner-system-pill strong,
.gold-owner .owner-system-pill em,
.gold-owner .owner-credit-pill span,
.gold-owner .owner-credit-pill em,
.gold-owner .owner-time-pill span,
.gold-owner .owner-time-pill em {
  font-weight: 500;
  letter-spacing: 0;
}

.gold-owner .gold-kicker,
.gold-owner .owner-card-head span,
.gold-owner .owner-gold-footer span,
.owner-core-kicker,
.owner-sidebar-core small {
  color: rgba(215, 225, 246, 0.58);
}

.gold-owner .owner-hero p,
.gold-owner .owner-list-row span,
.gold-owner .owner-alert span,
.gold-owner .owner-activity-row span,
.gold-owner .owner-table-row span,
.gold-owner .owner-legend-row em,
.gold-owner .owner-cloud-tile em,
.gold-owner .owner-donut span,
.gold-owner .owner-core-visual span {
  color: rgba(184, 197, 218, 0.66);
  font-weight: 400;
}

.gold-owner .owner-kpi em {
  color: color-mix(in srgb, var(--green) 68%, rgba(226, 232, 240, 0.62));
  font-weight: 500;
  text-shadow: 0 0 16px rgba(0, 245, 160, 0.08);
}

.gold-owner .owner-list-row strong,
.gold-owner .owner-alert strong,
.gold-owner .owner-activity-row strong,
.gold-owner .owner-table-row strong,
.gold-owner .owner-legend-row strong {
  font-weight: 520;
  letter-spacing: 0;
}

.gold-owner .owner-list-row {
  min-height: 44px;
  padding: 8px 10px 8px 12px;
}

.owner-status-pill {
  --pill: var(--cyan);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 22px;
  padding: 3px 11px 4px 9px;
  border: 1px solid color-mix(in srgb, var(--pill) 18%, rgba(180, 198, 255, 0.07));
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 22% 0%, color-mix(in srgb, var(--pill) 18%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.012)),
    rgba(4, 9, 18, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 -8px 18px rgba(0,0,0,0.16),
    0 0 20px color-mix(in srgb, var(--pill) 9%, transparent);
  color: rgba(232, 238, 248, 0.82);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.owner-status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pill) 82%, white 6%);
  box-shadow:
    0 0 9px color-mix(in srgb, var(--pill) 58%, transparent),
    0 0 18px color-mix(in srgb, var(--pill) 18%, transparent);
}

.owner-status-pill.ok {
  --pill: var(--green);
}

.owner-status-pill.warn,
.owner-status-pill.orange {
  --pill: var(--yellow);
}

.owner-status-pill.danger {
  --pill: var(--danger);
}

.gold-owner .owner-list-row.danger .owner-status-pill {
  background:
    radial-gradient(ellipse at 22% 0%, color-mix(in srgb, var(--danger) 18%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.012)),
    rgba(4, 9, 18, 0.52);
  color: rgba(232, 238, 248, 0.82);
}

.owner-status-pill.pink {
  --pill: var(--accent-2);
}

.owner-status-pill.purple {
  --pill: var(--accent);
}

.owner-status-pill.blue {
  --pill: var(--cyan);
}

.gold-owner .owner-system-pill,
.gold-owner .owner-credit-pill,
.gold-owner .owner-time-pill {
  border-radius: 10px;
}

.gold-owner .owner-system-pill em,
.gold-owner .owner-credit-pill em,
.gold-owner .owner-time-pill em,
.owner-sidebar-core em {
  color: rgba(229, 236, 250, 0.72);
  font-style: normal;
  font-weight: 500;
}

.owner-sidebar-core em {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 10px 3px 8px;
  border: 1px solid rgba(0, 245, 160, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(0, 245, 160, 0.16), transparent 58%),
    rgba(5, 12, 24, 0.56);
  box-shadow: 0 0 24px rgba(0, 245, 160, 0.08);
  color: rgba(232, 238, 248, 0.82);
  font-size: 0.62rem;
}

.owner-sidebar-core em::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 80%, white 8%);
  box-shadow:
    0 0 9px rgba(0, 245, 160, 0.52),
    0 0 18px rgba(0, 245, 160, 0.16);
}

/* P13.GOLD type + grain pass: premium font system and cinematic surface texture */
body[data-role="owner"],
body[data-role="owner"] button,
body[data-role="owner"] input,
body[data-role="owner"] select {
  font-family: var(--font-ui);
  font-weight: 400;
}

body[data-role="owner"] .brand-name,
body[data-role="owner"] .topbar h1,
body[data-role="owner"] .eyebrow,
.gold-owner .gold-kicker,
.gold-owner .owner-hero h2,
.gold-owner .owner-card-head h3,
.gold-owner .owner-kpi strong,
.gold-owner .owner-finance-metrics strong,
.gold-owner .owner-cloud-tile strong,
.gold-owner .owner-donut strong,
.gold-owner .owner-core-visual strong,
body[data-role="owner"] .owner-sidebar-core strong {
  font-family: var(--font-display);
}

body[data-role="owner"] .brand-name,
body[data-role="owner"] .topbar h1,
.gold-owner .owner-card-head h3,
.gold-owner .owner-kpi strong,
.gold-owner .owner-finance-metrics strong,
.gold-owner .owner-cloud-tile strong,
.gold-owner .owner-donut strong {
  font-weight: 560;
}

.gold-owner .owner-hero h2 {
  font-weight: 600;
}

body[data-role="owner"] .nav-item,
body[data-role="owner"] .role-user,
.gold-owner .owner-list-row strong,
.gold-owner .owner-alert strong,
.gold-owner .owner-activity-row strong,
.gold-owner .owner-table-row strong,
.gold-owner .owner-legend-row strong,
.gold-owner .owner-system-pill strong,
.gold-owner .owner-credit-pill strong,
.gold-owner .owner-time-pill strong {
  font-weight: 500;
}

body[data-role="owner"] .brand-tag,
body[data-role="owner"] .role-subtitle,
body[data-role="owner"] .role-label,
body[data-role="owner"] .nav-title,
.gold-owner .owner-kpi-head span,
.gold-owner .owner-kpi em,
.gold-owner .owner-card span,
.gold-owner .owner-card em,
.gold-owner .owner-status-pill,
.gold-owner .owner-system-pill em,
.gold-owner .owner-credit-pill em,
.gold-owner .owner-time-pill em {
  font-weight: 400;
}

body[data-role="owner"]::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 0%, rgba(167, 88, 255, 0.055), transparent 42%),
    radial-gradient(ellipse at 82% 10%, rgba(0, 212, 255, 0.045), transparent 42%),
    radial-gradient(ellipse at 44% 44%, rgba(255, 53, 191, 0.025), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.01), transparent 36%, rgba(1,5,13,0.08));
  background-size: 180px 180px, auto, auto, auto, auto, auto;
  z-index: 20;
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

body[data-role="owner"] .main-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(255, 53, 191, 0.035), transparent 40%),
    radial-gradient(ellipse at 92% 18%, rgba(0, 212, 255, 0.04), transparent 42%),
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,0.018) 52%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.62;
}

/* P13.GOLD AAA density + iconography pass: closer to the official command-center mockup */
body[data-role="owner"] .topbar {
  min-height: 54px;
  padding: 8px 24px;
}

body[data-role="owner"] .sidebar {
  width: 236px;
  overflow: visible;
  border-right-color: rgba(124, 112, 190, 0.16);
  box-shadow:
    14px 0 54px rgba(0, 0, 0, 0.5);
}

body[data-role="owner"] .app-shell,
body[data-role="owner"] .content,
body[data-role="owner"] .role-specific-panel,
body[data-role="owner"] .gold-owner,
body[data-role="owner"] .nav-scroll {
  max-height: none !important;
  overflow: visible !important;
}

body[data-role="owner"] .gold-owner::before,
body[data-role="owner"] .gold-owner::after {
  left: 0 !important;
  right: 0 !important;
}

body[data-role="owner"] .role-specific-panel,
body[data-role="owner"] .gold-owner {
  isolation: isolate;
}

/* P13.GOLD sidebar flagship pass: closer to the mockup material language */
body[data-role="owner"] .sidebar {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 16px;
  border: 1px solid rgba(197, 94, 255, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(191, 0, 255, 0.18), transparent 30%),
    radial-gradient(ellipse at 86% 46%, rgba(0, 212, 255, 0.055), transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 61, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(6, 6, 18, 0.82), rgba(1, 4, 12, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 53, 191, 0.055),
    0 0 0 1px rgba(0, 212, 255, 0.045),
    0 30px 110px rgba(0, 0, 0, 0.54),
    0 0 74px rgba(139, 61, 255, 0.13) !important;
}

body[data-role="owner"] .brand-block {
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 3px 4px 14px;
  border-bottom-color: rgba(185, 205, 255, 0.105);
}

body[data-role="owner"] .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  font-size: 19px;
  font-weight: 640;
  box-shadow:
    0 0 22px rgba(255, 53, 191, 0.36),
    0 0 34px rgba(0, 212, 255, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

body[data-role="owner"] .brand-name {
  font-size: 0.86rem;
  font-weight: 650;
}

body[data-role="owner"] .brand-tag {
  margin-top: 1px;
  color: rgba(220, 230, 248, 0.56);
  font-size: 0.57rem;
}

body[data-role="owner"] .role-card {
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr);
  margin: 11px 0 18px;
  padding: 27px 10px 11px;
  min-height: 82px;
  border: 1px solid rgba(180, 132, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 88% 28%, rgba(255, 53, 191, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(139, 61, 255, 0.18), rgba(255,255,255,0.03) 42%, rgba(0, 212, 255, 0.035)),
    rgba(7, 8, 22, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.065),
    0 18px 58px rgba(0,0,0,0.34);
}

body[data-role="owner"] .role-card::before {
  content: "OWNER PANEL";
  position: absolute;
  top: 9px;
  left: 11px;
  color: rgba(237, 210, 255, 0.88);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body[data-role="owner"] .role-card::after {
  content: "OWNER";
  position: absolute;
  right: 10px;
  bottom: 11px;
  padding: 2px 7px 3px;
  border: 1px solid rgba(197, 94, 255, 0.42);
  border-radius: 5px;
  background: rgba(139, 61, 255, 0.32);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.55rem;
  font-weight: 650;
  box-shadow: 0 0 18px rgba(139, 61, 255, 0.18);
}

body[data-role="owner"] .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(139,61,255,0.2));
  font-size: 0.78rem;
}

body[data-role="owner"] .role-user {
  overflow: hidden;
  color: rgba(255,255,255,0.92);
  font-size: 0.76rem;
  font-weight: 620;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-role="owner"] .role-label {
  color: rgba(219, 226, 244, 0.62);
  font-size: 0.66rem;
}

body[data-role="owner"] .nav-section {
  margin: 14px 0;
}

body[data-role="owner"] .nav-title {
  margin: 0 0 7px;
  color: rgba(190, 202, 226, 0.66);
  font-size: 0.58rem;
  font-weight: 520;
}

body[data-role="owner"] .nav-list {
  gap: 2px;
}

body[data-role="owner"] .nav-item {
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(218, 226, 244, 0.72);
  font-size: 0.72rem;
  font-weight: 430;
  box-shadow: none;
}

body[data-role="owner"] .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: rgba(206, 174, 255, 0.86);
  background: transparent;
  font-size: 0.72rem;
}

body[data-role="owner"] .nav-item:hover {
  border-color: rgba(154, 132, 255, 0.12);
  background: rgba(255,255,255,0.025);
}

body[data-role="owner"] .nav-item.active {
  min-height: 38px;
  border-color: rgba(220, 76, 255, 0.58);
  background:
    radial-gradient(ellipse at 92% 50%, rgba(255, 53, 191, 0.54), transparent 42%),
    radial-gradient(ellipse at 8% 50%, rgba(139, 61, 255, 0.42), transparent 54%),
    linear-gradient(90deg, rgba(104, 48, 255, 0.66), rgba(255, 53, 191, 0.18));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 22px rgba(255,53,191,0.1),
    0 0 22px rgba(255, 53, 191, 0.36),
    0 0 46px rgba(139, 61, 255, 0.2);
}

body[data-role="owner"] .nav-item.active .nav-icon {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

body[data-role="owner"] .nav-section:nth-of-type(3) .nav-item {
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.07);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(3, 8, 16, 0.42);
  color: rgba(232, 238, 248, 0.8);
  font-size: 0.66rem;
}

body[data-role="owner"] .nav-section:nth-of-type(3) .nav-icon {
  width: 16px;
  height: 16px;
  background: rgba(0, 212, 255, 0.08);
  color: rgba(42, 243, 255, 0.86);
}

body[data-role="owner"] .owner-sidebar-core {
  margin-top: 14px;
  padding: 13px 11px 12px;
  border-color: rgba(202, 80, 255, 0.35);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 53, 191, 0.3), transparent 16%),
    radial-gradient(ellipse at 50% 58%, rgba(0, 212, 255, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(13, 9, 34, 0.84), rgba(3, 6, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 38px rgba(139, 61, 255, 0.22),
    0 0 72px rgba(0, 212, 255, 0.06);
}

body[data-role="owner"] .owner-core-cube {
  width: 128px;
  height: 86px;
}

body[data-role="owner"] .owner-core-cube::before {
  inset: 12px 30px;
  border-color: rgba(0, 212, 255, 0.34);
}

body[data-role="owner"] .owner-core-cube::after {
  inset: 26px 42px;
}

body[data-role="owner"] .owner-core-cube i {
  inset: 38px 55px;
}

body[data-role="owner"] .owner-sidebar-core strong {
  color: rgba(0, 245, 160, 0.94);
  font-size: 1.72rem;
  text-shadow: 0 0 22px rgba(0,245,160,0.26);
}

body[data-role="owner"] .nav-item {
  position: relative;
  overflow: hidden;
  min-height: 33px;
  border: 1px solid rgba(148, 163, 184, 0.075);
  color: rgba(238, 244, 255, 0.78);
}

body[data-role="owner"] .nav-item.active {
  border-color: rgba(255, 53, 191, 0.48);
  background:
    radial-gradient(ellipse at 98% 50%, rgba(255, 53, 191, 0.34), transparent 44%),
    linear-gradient(90deg, rgba(112, 38, 255, 0.58), rgba(255, 53, 191, 0.18) 58%, rgba(0, 212, 255, 0.055));
  color: #fff;
  box-shadow:
    inset 2px 0 0 rgba(255, 53, 191, 0.92),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 28px rgba(255, 53, 191, 0.24),
    0 0 56px rgba(139, 61, 255, 0.18);
}

body[data-role="owner"] .nav-item.active::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 48px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), transparent 62%);
  opacity: 0.55;
}

body[data-role="owner"] .nav-section:nth-of-type(3) .nav-item {
  min-height: 28px;
  padding: 0 8px;
  border-color: rgba(148, 163, 184, 0.06);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008)),
    rgba(4, 8, 18, 0.32);
  font-size: 0.76rem;
}

body[data-role="owner"] .nav-section:nth-of-type(3) .nav-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: 0.68rem;
}

.gold-owner {
  gap: 8px;
  padding: 8px 24px 10px;
  width: auto;
  transform: none;
  transform-origin: initial;
}

.gold-owner .owner-hero {
  min-height: 74px;
  padding: 5px 8px 10px;
  border-color: transparent;
  background:
    radial-gradient(ellipse at 14% 0%, rgba(255, 53, 191, 0.085), transparent 38%),
    radial-gradient(ellipse at 78% 0%, rgba(0, 212, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.006), transparent);
  box-shadow:
    none;
}

.gold-owner .owner-hero h2 {
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  line-height: 0.98;
}

.gold-owner .owner-hero p {
  margin-top: 4px;
  font-size: 0.76rem;
}

.gold-owner .owner-credit-pill,
.gold-owner .owner-system-pill,
.gold-owner .owner-time-pill {
  min-width: 136px;
  min-height: 46px;
  padding: 8px 11px;
  border-color: rgba(180, 198, 255, 0.12);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(139, 61, 255, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    rgba(4, 8, 18, 0.72);
}

.gold-owner .owner-credit-pill strong {
  font-size: 1.08rem;
}

.gold-owner .owner-kpi-grid {
  gap: 12px;
}

.gold-owner .owner-kpi {
  min-height: 132px;
  padding: 16px 16px 48px;
  border-color: color-mix(in srgb, var(--tile, var(--accent)) 34%, rgba(180, 198, 255, 0.08));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tile, var(--accent)) 13%, transparent), transparent 30%),
    radial-gradient(ellipse at 90% 18%, color-mix(in srgb, var(--tile, var(--accent)) 10%, transparent), transparent 38%),
    radial-gradient(ellipse at 18% 112%, color-mix(in srgb, var(--tile, var(--accent)) 16%, transparent), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.046), rgba(255,255,255,0.012) 46%, rgba(0,0,0,0.34)),
    rgba(4, 8, 18, 0.86);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--tile, var(--accent)) 50%, rgba(255,255,255,0.08)),
    inset 0 14px 34px color-mix(in srgb, var(--tile, var(--accent)) 9%, transparent),
    inset 0 -34px 78px rgba(0,0,0,0.36),
    0 18px 58px rgba(0,0,0,0.38),
    0 0 28px color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent);
}

.gold-owner .owner-kpi-head i {
  width: 43px;
  height: 43px;
  font-size: 1.54rem;
  color: rgba(248,250,252,0.96);
  background:
    radial-gradient(circle at 42% 34%, rgba(255,255,255,0.13), transparent 30%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tile, var(--accent)) 12%, transparent), rgba(4,8,18,0.82));
  box-shadow:
    0 0 9px color-mix(in srgb, var(--tile, var(--accent)) 16%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.gold-owner .owner-kpi-svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gold-owner .owner-kpi strong {
  margin-top: 13px;
  font-size: clamp(1.42rem, 2vw, 1.9rem);
}

.gold-owner .owner-kpi em {
  margin-top: 6px;
  font-size: 0.84rem;
}

.gold-owner .mini-spark {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 6px;
  display: block;
  width: calc(100% - 30px) !important;
  height: 42px;
  margin-top: 0;
  opacity: 0.94;
}

.gold-owner .mini-spark svg {
  width: 100% !important;
  height: 100% !important;
}

.gold-owner .owner-kpi-head span {
  color: rgba(214, 224, 245, 0.74);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.gold-owner .mini-spark .spark-fill {
  fill: color-mix(in srgb, var(--tile, var(--cyan)) 20%, transparent);
}

.gold-owner .mini-spark .spark-line {
  stroke-width: 2.2;
  filter:
    drop-shadow(0 0 4px color-mix(in srgb, var(--tile, var(--cyan)) 44%, transparent))
    drop-shadow(0 0 10px color-mix(in srgb, var(--tile, var(--cyan)) 16%, transparent));
}

.gold-owner .mini-spark .spark-grid {
  fill: none;
  stroke: rgba(255,255,255,0.055);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

/* P13.GOLD KPI mockup alignment: brighter top edge, calmer icon bloom, real sparkline mass */
.gold-owner .owner-kpi-grid {
  gap: 12px;
}

.gold-owner .owner-kpi {
  min-height: 142px;
  padding: 15px 15px 52px;
  border-width: 1.2px;
  border-color: color-mix(in srgb, var(--tile, var(--accent)) 47%, rgba(150, 170, 215, 0.1));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tile, var(--accent)) 16%, transparent), transparent 22%),
    radial-gradient(ellipse at 14% 4%, color-mix(in srgb, var(--tile, var(--accent)) 14%, transparent), transparent 44%),
    radial-gradient(ellipse at 84% 2%, color-mix(in srgb, var(--tile, var(--accent)) 11%, transparent), transparent 42%),
    radial-gradient(ellipse at 50% 116%, color-mix(in srgb, var(--tile, var(--accent)) 10%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.012) 42%, rgba(0,0,0,0.36)),
    rgba(3, 8, 18, 0.91);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tile, var(--accent)) 13%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--tile, var(--accent)) 62%, rgba(255,255,255,0.16)),
    inset 0 18px 30px color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent),
    inset 0 -34px 70px rgba(0,0,0,0.42),
    0 20px 72px rgba(0,0,0,0.48),
    0 0 18px color-mix(in srgb, var(--tile, var(--accent)) 12%, transparent);
}

.gold-owner .owner-kpi::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tile, var(--accent)) 34%, rgba(255,255,255,0.12)), transparent 46%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 48%, transparent);
  opacity: 0.44;
}

.gold-owner .owner-kpi::after {
  inset: auto 7% -62px 7%;
  height: 112px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent), transparent 72%);
  opacity: 0.48;
}

.gold-owner .owner-kpi-head span {
  color: rgba(235, 241, 255, 0.84);
  font-size: 0.78rem;
  line-height: 1.16;
  letter-spacing: 0.018em;
}

.gold-owner .owner-kpi-head i {
  width: 40px;
  height: 40px;
  color: rgba(248,250,252,0.98);
  border: 1px solid color-mix(in srgb, var(--tile, var(--accent)) 48%, rgba(255,255,255,0.09));
  background:
    radial-gradient(circle at 46% 38%, rgba(255,255,255,0.12), transparent 32%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tile, var(--accent)) 25%, transparent), rgba(5,10,22,0.82) 64%),
    rgba(5, 10, 22, 0.9);
  box-shadow:
    0 0 7px color-mix(in srgb, var(--tile, var(--accent)) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -10px 20px rgba(0,0,0,0.28);
}

.gold-owner .owner-kpi-svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.95;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--tile, var(--accent)) 40%, transparent));
}

.gold-owner .owner-kpi strong {
  margin-top: 15px;
  font-size: clamp(1.62rem, 1.55vw, 2.05rem);
  line-height: 0.98;
  color: rgba(255,255,255,0.98);
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.gold-owner .owner-kpi em {
  margin-top: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--green) 90%, white 4%);
}

.gold-owner .mini-spark {
  left: 13px;
  right: 13px;
  bottom: 5px;
  width: calc(100% - 26px) !important;
  height: 48px;
  opacity: 1;
}

.gold-owner .mini-spark svg {
  overflow: visible;
}

.gold-owner .mini-spark .spark-fill {
  fill: color-mix(in srgb, var(--tile, var(--cyan)) 24%, transparent);
  opacity: 0.72;
}

.gold-owner .mini-spark .spark-line {
  stroke-width: 2.35;
  filter:
    drop-shadow(0 0 3px color-mix(in srgb, var(--tile, var(--cyan)) 64%, transparent))
    drop-shadow(0 0 8px color-mix(in srgb, var(--tile, var(--cyan)) 24%, transparent));
}

.gold-owner .mini-spark circle {
  r: 2.55px;
  stroke-width: 1;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--tile, var(--cyan)) 48%, transparent));
}

.gold-owner .mini-spark .spark-grid {
  stroke: rgba(190, 205, 255, 0.052);
  stroke-width: 0.55;
}

.gold-owner .owner-main-grid {
  gap: 8px;
}

.gold-owner .owner-card {
  min-height: 142px;
  padding: 10px;
  border-width: 1.2px;
  border-color: rgba(180, 198, 255, 0.135);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tile, var(--accent)) 8%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.026),
    inset 0 -40px 88px rgba(0,0,0,0.4),
    0 24px 88px rgba(0,0,0,0.44),
    0 0 0 1px color-mix(in srgb, var(--tile, var(--accent)) 7%, transparent),
    0 0 86px color-mix(in srgb, var(--tile, var(--accent)) 5%, transparent);
}

.gold-owner .owner-card:nth-child(1),
.gold-owner .owner-card:nth-child(2),
.gold-owner .owner-card:nth-child(3) {
  min-height: 180px;
}

.gold-owner .owner-card:nth-child(7),
.gold-owner .owner-card:nth-child(8),
.gold-owner .owner-card:nth-child(9) {
  min-height: 170px;
}

.gold-owner .owner-card-head {
  margin-bottom: 5px;
}

.gold-owner .owner-card-head span {
  font-size: 0.62rem;
}

.gold-owner .owner-card-head h3 {
  margin-top: 2px;
  font-size: 0.82rem;
}

.gold-owner .owner-finance-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 4px;
}

.gold-owner .owner-finance-metrics div {
  padding: 2px 7px;
}

.gold-owner .owner-finance-metrics strong {
  font-size: 0.82rem;
}

.gold-owner .owner-line-chart {
  min-height: 82px;
}

.gold-owner .owner-donut-row {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.gold-owner .owner-donut-row.compact {
  grid-template-columns: 104px minmax(0, 1fr);
}

.owner-donut {
  position: relative;
}

.gold-owner .owner-donut {
  width: 104px;
  place-items: center;
}

.gold-owner .owner-donut.ticket {
  width: 100px;
}

.owner-donut strong,
.owner-donut span {
  align-self: center;
  justify-self: center;
}

.gold-owner .owner-donut strong {
  margin-top: -8px;
  font-size: 0.86rem;
  line-height: 1;
}

.gold-owner .owner-donut span {
  margin-top: 15px;
  font-size: 0.58rem;
  color: rgba(215, 225, 246, 0.7);
}

.gold-owner .owner-legend,
.gold-owner .owner-bars {
  gap: 4px;
}

.gold-owner .owner-legend-row,
.gold-owner .owner-alert,
.gold-owner .owner-list-row,
.gold-owner .owner-table-row,
.gold-owner .owner-activity-row {
  min-height: 31px;
  padding: 4px 7px;
  border-radius: 7px;
}

.gold-owner .owner-cloud-grid {
  gap: 5px;
}

.gold-owner .owner-cloud-tile {
  position: relative;
  min-height: 59px;
  padding: 7px 7px 6px 36px;
  border-width: 1.2px;
  border-color: color-mix(in srgb, var(--tile, var(--accent)) 22%, rgba(180, 198, 255, 0.08));
}

.owner-cloud-icon {
  position: absolute;
  left: 8px;
  top: 7px;
  display: grid !important;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid color-mix(in srgb, var(--tile, var(--accent)) 28%, rgba(255,255,255,0.08));
  border-radius: 7px;
  background:
    radial-gradient(circle at 40% 25%, rgba(255,255,255,0.14), transparent 34%),
    color-mix(in srgb, var(--tile, var(--accent)) 22%, rgba(4, 9, 18, 0.72));
  color: color-mix(in srgb, var(--tile, var(--cyan)) 78%, white 12%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tile, var(--accent)) 22%, transparent);
  font-size: 0.88rem;
  font-style: normal;
}

.gold-owner .owner-cloud-tile strong {
  font-size: 0.94rem;
}

.gold-owner .owner-cloud-tile div {
  height: 3px;
  margin: 4px 0 2px;
}

.gold-owner .owner-alert b {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.gold-owner .owner-activity-row {
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
}

.gold-owner .owner-activity-row b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--row, var(--accent)) 20%, rgba(4, 9, 18, 0.72));
  color: color-mix(in srgb, var(--row, var(--cyan)) 82%, white 10%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--row, var(--accent)) 18%, transparent);
  font-size: 0.72rem;
}

.owner-activity-row.purple { --row: var(--accent); }
.owner-activity-row.blue,
.owner-activity-row.cyan { --row: var(--cyan); }
.owner-activity-row.orange { --row: var(--yellow); }
.owner-activity-row.green { --row: var(--green); }

.gold-owner .owner-core-visual {
  min-height: 72px;
}

.gold-owner .owner-core-visual i {
  width: 74px;
}

.gold-owner .owner-core-visual strong {
  font-size: 1.68rem;
}

.gold-owner .owner-gold-footer {
  min-height: 43px;
  padding: 7px 12px;
}

.gold-owner .owner-gold-footer span {
  font-size: 0.58rem;
}

.gold-owner .owner-gold-footer strong {
  font-size: 0.8rem;
}

/* P13.GOLD base card composition pass: align first-row cards, borders and donut palette */
.gold-owner .owner-main-grid > .owner-card {
  border-width: 1.45px;
  border-color: color-mix(in srgb, var(--tile, var(--cyan)) 24%, rgba(180, 198, 255, 0.16));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tile, var(--accent)) 11%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.038),
    inset 0 -42px 92px rgba(0,0,0,0.42),
    0 24px 88px rgba(0,0,0,0.44),
    0 0 92px color-mix(in srgb, var(--tile, var(--accent)) 6%, transparent);
}

.gold-owner .owner-main-grid {
  column-gap: 8px;
  row-gap: 8px;
}

.gold-owner .owner-main-grid > .owner-card:nth-child(1),
.gold-owner .owner-main-grid > .owner-card:nth-child(2),
.gold-owner .owner-main-grid > .owner-card:nth-child(3) {
  display: flex;
  flex-direction: column;
  min-height: 207px;
}

.gold-owner .owner-main-grid > .owner-card:nth-child(1) .link-button,
.gold-owner .owner-main-grid > .owner-card:nth-child(2) .link-button,
.gold-owner .owner-main-grid > .owner-card:nth-child(4) .link-button {
  margin-top: auto;
}

.gold-owner .owner-main-grid > .owner-card:nth-child(4) {
  display: flex;
  flex-direction: column;
}

.gold-owner .owner-main-grid > .owner-card:nth-child(1) .owner-line-chart {
  min-height: 92px;
}

.gold-owner .owner-donut {
  background:
    radial-gradient(circle, rgba(6, 12, 28, 0.98) 0 43%, rgba(2, 5, 15, 0.86) 44% 51%, transparent 52%),
    conic-gradient(
      color-mix(in srgb, var(--accent) 80%, black 6%) 0 37%,
      color-mix(in srgb, var(--cyan) 82%, black 6%) 37% 59%,
      color-mix(in srgb, var(--accent-2) 76%, black 8%) 59% 81%,
      color-mix(in srgb, var(--yellow) 76%, black 10%) 81% 92%,
      color-mix(in srgb, var(--green) 78%, black 10%) 92%
    );
}

.gold-owner .owner-donut.ticket {
  background:
    radial-gradient(circle, rgba(6, 12, 28, 0.98) 0 43%, rgba(2, 5, 15, 0.86) 44% 51%, transparent 52%),
    conic-gradient(
      color-mix(in srgb, var(--accent-2) 78%, black 8%) 0 28%,
      color-mix(in srgb, var(--yellow) 78%, black 10%) 28% 58%,
      color-mix(in srgb, var(--cyan) 82%, black 6%) 58% 77%,
      color-mix(in srgb, var(--green) 78%, black 10%) 77%
    );
}

.gold-owner .owner-donut strong {
  margin-top: -10px;
  font-size: 0.96rem;
  line-height: 1;
}

.gold-owner .owner-donut span {
  margin-top: 20px;
  font-size: 0.64rem;
  line-height: 1;
}

.gold-owner .owner-legend-row,
.gold-owner .owner-alert,
.gold-owner .owner-list-row,
.gold-owner .owner-table-row,
.gold-owner .owner-activity-row {
  border-width: 1.2px;
  border-color: color-mix(in srgb, var(--row, var(--tile, var(--cyan))) 18%, rgba(180, 198, 255, 0.08));
}

/* P13.GOLD unified scene pass: one global background, floating components */
body[data-role="owner"] {
  background:
    radial-gradient(ellipse at 18% 5%, rgba(139, 61, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at 76% 8%, rgba(0, 212, 255, 0.13), transparent 40%),
    radial-gradient(ellipse at 36% 42%, rgba(255, 53, 191, 0.08), transparent 44%),
    radial-gradient(ellipse at 76% 68%, rgba(0, 245, 160, 0.035), transparent 42%),
    linear-gradient(135deg, #02040d 0%, #040816 34%, #05131d 58%, #03030c 100%) !important;
}

body[data-role="owner"] .app-shell,
body[data-role="owner"] .main-frame,
body[data-role="owner"] .content,
body[data-role="owner"] .role-specific-panel,
body[data-role="owner"] .gold-owner {
  background: transparent !important;
  box-shadow: none !important;
}

body[data-role="owner"] .topbar {
  border-bottom-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

body[data-role="owner"] .sidebar {
  margin: 12px 8px;
  min-height: calc(100vh - 24px);
  height: auto;
  border: 1px solid rgba(154, 132, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(139, 61, 255, 0.16), transparent 44%),
    radial-gradient(ellipse at 96% 28%, rgba(255, 53, 191, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(7, 8, 20, 0.64), rgba(3, 5, 14, 0.56)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 110px rgba(0, 0, 0, 0.38),
    0 0 90px rgba(139, 61, 255, 0.055) !important;
  backdrop-filter: blur(18px);
}

body[data-role="owner"] .gold-owner::before,
body[data-role="owner"] .gold-owner::after {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
}

body[data-role="owner"] .role-specific-panel,
body[data-role="owner"] .gold-owner {
  isolation: isolate;
}

@media (max-width: 1180px) {
  .owner-kpi-grid,
  .owner-kpi-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-card,
  .owner-card.owner-wide,
  .owner-card.span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .gold-owner .owner-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gold-owner .owner-kpi strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 760px) {
  .owner-hero,
  .owner-section-hero,
  .owner-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-kpi-grid,
  .owner-kpi-grid.compact,
  .owner-gold-footer,
  .owner-main-grid.two,
  .owner-cloud-grid,
  .owner-finance-metrics,
  .owner-donut-row,
  .owner-donut-row.compact {
    grid-template-columns: 1fr;
  }
}

/* P13.6 Accountant panel */
.accounting-dashboard {
  display: grid;
  gap: 14px;
}

.accounting-hero,
.accounting-card,
.accounting-kpi {
  border: 1px solid rgba(0, 245, 160, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 245, 160, 0.18), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(255, 194, 41, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(7, 18, 21, 0.96), rgba(3, 7, 18, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.accounting-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.accounting-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.accounting-hero h2 span {
  color: var(--green);
}

.accounting-hero p,
.accounting-kpi span,
.accounting-kpi em,
.accounting-card span {
  color: var(--muted);
}

.accounting-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.accounting-kpi-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accounting-kpi {
  min-height: 126px;
  padding: 16px;
}

.accounting-kpi strong,
.accounting-kpi span,
.accounting-kpi em {
  display: block;
}

.accounting-kpi strong {
  margin: 12px 0 6px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

.accounting-kpi em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.accounting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.accounting-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounting-card {
  min-height: 260px;
  padding: 16px;
}

.accounting-card.wide {
  min-height: 360px;
}

.accounting-flow-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.accounting-flow-row b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #03120e;
  background: var(--green);
}

.accounting-flow-row strong,
.accounting-flow-row span,
.accounting-rule strong,
.accounting-rule span {
  display: block;
}

.accounting-rule {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 194, 41, 0.24);
  border-radius: 8px;
  background: rgba(255, 194, 41, 0.045);
}

.accounting-rule strong {
  color: var(--yellow);
}

.partner-dashboard .accounting-hero,
.partner-dashboard .accounting-card,
.partner-dashboard .accounting-kpi {
  border-color: rgba(56, 189, 248, 0.22);
}

.partner-hero {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(34, 197, 94, 0.08)),
    rgba(8, 12, 24, 0.82);
}

.partner-dashboard .accounting-kpi strong,
.partner-dashboard .accounting-hero h2 span {
  color: var(--cyan);
}

.support-dashboard .accounting-hero,
.support-dashboard .accounting-card,
.support-dashboard .accounting-kpi {
  border-color: rgba(255, 77, 141, 0.24);
}

.support-hero {
  background:
    linear-gradient(135deg, rgba(255, 77, 141, 0.14), rgba(56, 189, 248, 0.08)),
    rgba(8, 12, 24, 0.82);
}

.support-dashboard .accounting-kpi strong,
.support-dashboard .accounting-hero h2 span {
  color: var(--accent-2);
}

.systems-dashboard .accounting-hero,
.systems-dashboard .accounting-card,
.systems-dashboard .accounting-kpi {
  border-color: rgba(148, 163, 184, 0.28);
}

.systems-hero {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(14, 165, 233, 0.08)),
    rgba(8, 12, 24, 0.84);
}

.systems-dashboard .accounting-kpi strong,
.systems-dashboard .accounting-hero h2 span {
  color: var(--cyan);
}

@media (max-width: 1180px) {
  .accounting-kpi-grid,
  .accounting-kpi-grid.compact,
  .accounting-grid,
  .accounting-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .accounting-hero,
  .accounting-hero .owner-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .accounting-kpi-grid,
  .accounting-kpi-grid.compact,
  .accounting-grid,
  .accounting-grid.two {
    grid-template-columns: 1fr;
  }
}

/* P13.GOLD global background + topbar controls cleanup */
html,
body[data-role="owner"] {
  min-height: 100%;
  background-color: #020512 !important;
}

body[data-role="owner"] {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 0% 14%, rgba(139, 61, 255, 0.18), transparent 38%),
    radial-gradient(ellipse at 68% 10%, rgba(0, 212, 255, 0.14), transparent 48%),
    radial-gradient(ellipse at 24% 42%, rgba(255, 53, 191, 0.105), transparent 48%),
    radial-gradient(ellipse at 86% 70%, rgba(0, 245, 160, 0.04), transparent 46%),
    linear-gradient(135deg, #02030b 0%, #061025 30%, #041923 58%, #03030d 100%) !important;
}

body[data-role="owner"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(197, 94, 255, 0.17), transparent 34%),
    radial-gradient(ellipse at 68% 8%, rgba(0, 212, 255, 0.115), transparent 50%),
    radial-gradient(ellipse at 18% 76%, rgba(255, 53, 191, 0.07), transparent 44%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.08), rgba(1, 4, 10, 0.36));
}

body[data-role="owner"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body[data-role="owner"] .app-shell,
body[data-role="owner"] .main-frame,
body[data-role="owner"] .content,
body[data-role="owner"] .role-specific-panel,
body[data-role="owner"] .gold-owner {
  background: transparent !important;
}

body[data-role="owner"] .main-frame::before,
body[data-role="owner"] .gold-owner::before,
body[data-role="owner"] .gold-owner::after {
  display: none !important;
}

body[data-role="owner"] .topbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-role="owner"] .sidebar-footer {
  display: none !important;
}

body[data-role="owner"] .mode-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.04rem;
  line-height: 1;
}

body[data-role="owner"] .mode-toggle span {
  display: block;
  transform: translateY(-1px);
}

body[data-role="owner"] .alert-button,
body[data-role="owner"] .mode-toggle {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 53, 191, 0.12), transparent 54%),
    rgba(5, 10, 22, 0.58) !important;
}

/* P13.GOLD base propagation: shared cinematic shell for every role */
body[data-role] {
  background:
    radial-gradient(ellipse at 0% 14%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 38%),
    radial-gradient(ellipse at 70% 10%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 48%),
    radial-gradient(ellipse at 24% 44%, color-mix(in srgb, var(--accent-2) 11%, transparent), transparent 48%),
    radial-gradient(ellipse at 86% 72%, color-mix(in srgb, var(--green) 4%, transparent), transparent 46%),
    linear-gradient(135deg, #02030b 0%, #061025 30%, #041923 58%, #03030d 100%) !important;
}

body[data-role][data-color-mode="light"] {
  --bg: #eef4fb;
  --bg-deep: #e8f0fa;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(15, 23, 42, 0.045);
  --line: rgba(35, 45, 70, 0.14);
  --line-strong: rgba(35, 45, 70, 0.22);
  --text: #111827;
  --muted: #526071;
  --soft: #748195;
  background:
    radial-gradient(ellipse at 0% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%),
    radial-gradient(ellipse at 74% 8%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 46%),
    radial-gradient(ellipse at 28% 46%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 48%),
    linear-gradient(135deg, #f7fbff 0%, #edf5ff 36%, #e9fbff 62%, #f7f4ff 100%) !important;
  color-scheme: light;
}

body[data-role]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 34%),
    radial-gradient(ellipse at 68% 8%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 50%),
    radial-gradient(ellipse at 18% 76%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.08), rgba(1, 4, 10, 0.36));
}

body[data-role][data-color-mode="light"]::before {
  background:
    radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    radial-gradient(ellipse at 68% 8%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(226, 237, 249, 0.36));
}

body[data-role]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body[data-role] .app-shell,
body[data-role] .main-frame,
body[data-role] .content,
body[data-role] .role-specific-panel {
  background: transparent !important;
}

body[data-role] .topbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-role] .sidebar {
  margin: 12px 8px;
  min-height: calc(100vh - 24px);
  height: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(180, 198, 255, 0.08));
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    radial-gradient(ellipse at 86% 46%, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 52%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(6, 6, 18, 0.82), rgba(1, 4, 12, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 6%, transparent),
    0 30px 110px rgba(0, 0, 0, 0.54),
    0 0 74px color-mix(in srgb, var(--accent) 13%, transparent) !important;
  backdrop-filter: blur(18px);
}

body[data-role][data-color-mode="light"] .sidebar {
  background:
    radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
    radial-gradient(ellipse at 86% 46%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(242, 247, 255, 0.7)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 28px 80px rgba(42, 54, 88, 0.16) !important;
}

body[data-role] .sidebar-footer {
  display: none !important;
}

body[data-role] .select-control,
body[data-role] .profile-chip,
body[data-role] .icon-button,
body[data-role] .owner-topbar-pill {
  border-color: color-mix(in srgb, var(--cyan) 12%, rgba(180, 198, 255, 0.12));
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(5, 10, 22, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.22);
}

body[data-role][data-color-mode="light"] .select-control,
body[data-role][data-color-mode="light"] .profile-chip,
body[data-role][data-color-mode="light"] .icon-button,
body[data-role][data-color-mode="light"] .owner-topbar-pill {
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 52%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 10px 26px rgba(42, 54, 88, 0.12);
}

body[data-role] .mode-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.04rem;
  line-height: 1;
}

body[data-role]:not([data-role="owner"]) .hero-band,
body[data-role]:not([data-role="owner"]) .panel,
body[data-role]:not([data-role="owner"]) .metric-card,
body[data-role]:not([data-role="owner"]) .user-premium-top,
body[data-role]:not([data-role="owner"]) .premium-card,
body[data-role]:not([data-role="owner"]) .section-card,
body[data-role]:not([data-role="owner"]) .agency-kpi-card,
body[data-role]:not([data-role="owner"]) .accounting-hero,
body[data-role]:not([data-role="owner"]) .accounting-card,
body[data-role]:not([data-role="owner"]) .accounting-kpi {
  border-color: color-mix(in srgb, var(--cyan) 30%, rgba(180, 198, 255, 0.12));
  background:
    radial-gradient(ellipse at 16% 0%, color-mix(in srgb, var(--accent-2) 11%, transparent), transparent 44%),
    radial-gradient(ellipse at 82% 6%, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012)),
    rgba(4, 8, 19, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 3%, transparent),
    0 18px 70px rgba(0, 0, 0, 0.28);
}

body[data-role]:not([data-role="owner"])[data-color-mode="light"] .hero-band,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .panel,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .metric-card,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .user-premium-top,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .premium-card,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .section-card,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .agency-kpi-card,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .accounting-hero,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .accounting-card,
body[data-role]:not([data-role="owner"])[data-color-mode="light"] .accounting-kpi {
  background:
    radial-gradient(ellipse at 16% 0%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 44%),
    radial-gradient(ellipse at 82% 6%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 18px 46px rgba(42, 54, 88, 0.12);
}

/* P13.GOLD Owner System 18: Owner-only master visual system */
body[data-role="owner"] .hero-band,
body[data-role="owner"] .kpi-grid,
body[data-role="owner"] .dashboard-grid {
  display: none !important;
}

body[data-role="owner"] .content {
  padding: 20px 24px 28px;
}

body[data-role="owner"] .role-specific-panel {
  margin-top: 0;
}

body[data-role="owner"] .sidebar {
  position: relative;
  overflow: hidden;
  width: 236px;
  padding: 14px 14px 16px;
}

body[data-role="owner"] .brand-block {
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 3px 4px 14px;
  border-bottom-color: rgba(185, 205, 255, 0.105);
}

body[data-role="owner"] .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  font-size: 19px;
  font-weight: 640;
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent-2) 36%, transparent),
    0 0 34px color-mix(in srgb, var(--cyan) 16%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

body[data-role="owner"] .brand-name {
  font-size: 0.86rem;
  font-weight: 650;
}

body[data-role="owner"] .brand-tag {
  margin-top: 1px;
  color: rgba(220, 230, 248, 0.56);
  font-size: 0.57rem;
}

body[data-role="owner"] .role-card {
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr);
  margin: 11px 0 18px;
  padding: 27px 10px 11px;
  min-height: 82px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(180, 132, 255, 0.14));
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 88% 28%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(255,255,255,0.03) 42%, color-mix(in srgb, var(--cyan) 4%, transparent)),
    rgba(7, 8, 22, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.065),
    0 18px 58px rgba(0,0,0,0.34);
}

body[data-role="owner"] .role-card::before {
  content: attr(data-panel-title) !important;
  position: absolute;
  top: 9px;
  left: 11px;
  color: rgba(237, 210, 255, 0.88);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body[data-role="owner"] .role-card::after {
  content: attr(data-panel-badge) !important;
  position: absolute;
  right: 10px;
  bottom: 11px;
  max-width: 84px;
  overflow: hidden;
  padding: 2px 7px 3px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.55rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-role="owner"] .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.14), color-mix(in srgb, var(--accent) 20%, transparent));
  font-size: 0.78rem;
}

body[data-role="owner"] .role-user {
  overflow: hidden;
  color: rgba(255,255,255,0.92);
  font-size: 0.76rem;
  font-weight: 620;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-role="owner"] .role-label {
  color: rgba(219, 226, 244, 0.62);
  font-size: 0.66rem;
}

body[data-role="owner"] .nav-section {
  margin: 14px 0;
}

body[data-role="owner"] .nav-title {
  margin: 0 0 7px;
  color: rgba(190, 202, 226, 0.66);
  font-size: 0.58rem;
  font-weight: 520;
}

body[data-role="owner"] .nav-list {
  gap: 2px;
}

body[data-role="owner"] .nav-item {
  position: relative;
  overflow: hidden;
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.075);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008)),
    rgba(4, 8, 18, 0.2);
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 430;
  box-shadow: none;
}

body[data-role="owner"] .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: rgba(206, 174, 255, 0.86);
  background: transparent;
  font-size: 0.72rem;
}

body[data-role="owner"] .nav-item.active {
  min-height: 38px;
  border-color: color-mix(in srgb, var(--accent-2) 48%, transparent);
  background:
    radial-gradient(ellipse at 98% 50%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 44%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent) 58%, color-mix(in srgb, var(--cyan) 6%, transparent));
  color: #fff;
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--accent-2) 92%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 28px color-mix(in srgb, var(--accent-2) 24%, transparent),
    0 0 56px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-role="owner"] .owner-sidebar-core {
  margin-top: 14px;
  padding: 13px 11px 12px;
}
