.private-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(230, 180, 34, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(51, 65, 85, 0.28), rgba(15, 23, 42, 0) 26rem),
    var(--bg);
}

.private-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.private-sidebar,
.private-topbar,
.private-card,
.private-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.private-sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.private-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.private-brand img {
  width: 176px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

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

.private-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.private-nav a:hover,
.private-nav a.active {
  background: rgba(230, 180, 34, 0.12);
  color: var(--text);
  transform: translateX(2px);
}

.private-nav svg,
.private-action svg,
.profile-chip svg,
.metric-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.private-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.private-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.private-topbar {
  min-height: 78px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.private-title p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.private-title h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

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

.profile-chip {
  min-height: 46px;
  padding: 5px 10px 5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--bg);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

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

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.private-card,
.private-panel {
  padding: 20px;
}

.metric-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
}

a.metric-card {
  color: inherit;
  cursor: pointer;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

a.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 180, 34, 0.42);
  background: rgba(30, 41, 59, 0.92);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(230, 180, 34, 0.11);
  border: 1px solid rgba(230, 180, 34, 0.3);
}

.metric-card span,
.private-muted {
  color: var(--muted);
}

.metric-card strong {
  font-size: 32px;
  line-height: 1;
  margin-top: 12px;
}

.metric-card p {
  color: var(--muted);
  font-size: 12px;
}

.private-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.private-section-head h2 {
  font-size: 19px;
  line-height: 1.2;
}

.private-section-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

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

.quick-action {
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
  padding: 16px;
  display: grid;
  align-content: space-between;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 180, 34, 0.42);
  background: rgba(15, 23, 42, 0.78);
}

.quick-action strong {
  color: var(--text);
  font-size: 14px;
}

.quick-action span {
  color: var(--muted);
  font-size: 12px;
}

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

.data-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(15, 23, 42, 0.42);
}

a.data-row,
button.data-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

a.data-row:hover,
button.data-row:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 180, 34, 0.36);
  background: rgba(15, 23, 42, 0.7);
}

.data-row h3 {
  font-size: 14px;
  line-height: 1.25;
}

.data-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.gold {
  background: rgba(230, 180, 34, 0.1);
  border-color: rgba(230, 180, 34, 0.3);
  color: var(--gold);
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-label input,
.form-label select,
.form-label textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  font: inherit;
}

.form-label textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.form-label input:focus,
.form-label select:focus,
.form-label textarea:focus {
  border-color: rgba(230, 180, 34, 0.58);
  box-shadow: 0 0 0 3px rgba(230, 180, 34, 0.12);
}

.form-help {
  color: var(--soft);
  font-size: 12px;
}

.form-message {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-step {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.4);
}

.wizard-step.active {
  border-color: rgba(230, 180, 34, 0.55);
  background: rgba(230, 180, 34, 0.12);
  color: var(--gold);
}

.preview-box {
  border: 1px solid rgba(230, 180, 34, 0.26);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(230, 180, 34, 0.12), transparent 46%),
    rgba(15, 23, 42, 0.55);
}

.preview-box h3 {
  font-size: 18px;
}

.preview-box p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
}

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

.detail-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.detail-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.detail-stat strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  margin-top: 8px;
}

.protected-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}

.protected-spinner {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--gold);
  border-right-color: rgba(230, 180, 34, 0.55);
  animation: protectedSpin .82s linear infinite;
  box-shadow: 0 0 32px rgba(230, 180, 34, 0.16);
}

@keyframes protectedSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .private-layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .private-sidebar {
    position: static;
    height: auto;
  }

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

  .private-sidebar-footer {
    margin-top: 0;
  }

  .private-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .private-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3,
  .detail-hero {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .private-layout {
    padding: 10px;
  }

  .private-sidebar,
  .private-topbar,
  .private-card,
  .private-panel {
    padding: 14px;
  }

  .private-nav,
  .quick-grid,
  .form-grid,
  .detail-stat-grid,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

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

  .profile-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .private-actions .btn,
  .private-actions .lang-switch,
  .private-sidebar-footer .btn {
    width: 100%;
  }
}
