/* Panel V2 — layout, components, micro UI (colors unchanged) */

:root {
  --sidebar-w: 232px;
  --topbar-h: 60px;
  --control-h: 40px;
  --section-gap: 28px;
}

/* ── Calmer motion (no glow/neon) ── */
.brand-logo {
  animation: none;
  box-shadow: var(--shadow-sm);
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: var(--shadow-sm);
  }
}

.page-hero::before {
  display: none;
}

.main-btn {
  box-shadow: var(--shadow-sm);
}

.main-btn:hover {
  box-shadow: var(--shadow-md);
}

.dash-live-pill.is-live .dash-live-dot {
  box-shadow: none;
}

/* ── Scrollbars ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* ── Topbar V2 ── */
.topbar {
  height: var(--topbar-h);
  padding: 0 var(--space-6);
  gap: var(--space-4);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-4);
  min-width: 0;
}

.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.topbar-left {
  flex: 1;
}

.topbar-center {
  flex-shrink: 0;
}

.topbar-right {
  flex-shrink: 0;
}

.brand-area {
  gap: var(--space-4);
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.brand-crumb {
  display: none;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 160px;
}

.search-wrap-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.search {
  width: 100%;
  height: var(--control-h);
  padding: 0 14px 0 38px;
  border-radius: 10px;
  font-size: 13px;
}

.top-actions {
  gap: var(--space-2);
}

.profile-box {
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  gap: var(--space-2);
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
}

.logout-v2 svg {
  width: 15px;
  height: 15px;
}

.theme-toggle {
  width: var(--control-h);
  height: var(--control-h);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ── Creator selector ── */
.creator-selector-wrap {
  position: relative;
}

.creator-selector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-h);
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease-out);
  max-width: 260px;
}

.creator-selector-btn:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.creator-selector-btn--empty {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.creator-selector-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.creator-selector-icon svg {
  width: 16px;
  height: 16px;
}

.creator-selector-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.creator-selector-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator-selector-handle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.creator-selector-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-left: 2px;
  flex-shrink: 0;
}

.creator-selector-chevron svg {
  width: 16px;
  height: 16px;
}

.creator-selector-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  animation: menuIn 0.2s var(--ease-out) both;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creator-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.creator-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.creator-menu-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.creator-avatar-img,
.creator-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.creator-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-subtle), var(--bg-elevated));
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.creator-avatar-img.is-xs,
.creator-avatar-fallback.is-xs {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.creator-avatar-img.is-sm,
.creator-avatar-fallback.is-sm {
  width: 36px;
  height: 36px;
}

.creator-verified {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--info);
  flex-shrink: 0;
}

.creator-verified.is-inline {
  width: 14px;
  height: 14px;
}

.creator-verified svg {
  width: 100%;
  height: 100%;
}

.creator-identity-avatar {
  flex-shrink: 0;
}

.creator-identity-text {
  min-width: 0;
}

.creator-identity-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}

.creator-identity-handle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Sidebar V2 ── */
.side {
  width: var(--sidebar-w);
  padding: var(--space-4) var(--space-3);
  gap: 2px;
  overflow-y: auto;
}

.side-head {
  padding: 0 var(--space-2) var(--space-4);
  margin-bottom: var(--space-1);
  border-bottom: 1px solid var(--border);
}

.side-head-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-item {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-3);
  min-height: 42px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  border-left: 0;
  border-radius: 10px;
}

.nav-item:hover {
  transform: none;
}

.nav-item.active {
  border-left: 0;
  box-shadow: none;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0;
  flex-shrink: 0;
}

.nav-icon-svg svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-item span:not(.nav-icon):not(.nav-badge) {
  flex: 1;
  text-align: left;
}

/* ── Main content ── */
.main {
  padding: var(--space-7) clamp(20px, 3vw, 40px);
}

.page-hero {
  padding: var(--space-6) var(--space-7);
  border-radius: 16px;
  margin-bottom: var(--section-gap);
}

.page-title {
  font-size: clamp(24px, 3vw, 30px);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text);
}

.subtitle {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-head h3,
.dash-quick-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: var(--section-gap) 0;
}

/* ── Dashboard V2 ── */
.dash-mission {
  margin-bottom: var(--section-gap);
}

.dash-hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dash-hero-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.dash-live-pill {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-creator-chip-wrap {
  min-width: 0;
}

.dash-creator-chip,
.dash-creator-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.dash-creator-empty {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s;
}

.dash-creator-empty svg {
  width: 16px;
  height: 16px;
}

.dash-creator-empty:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  color: var(--text);
}

.dash-creator-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-creator-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.dash-creator-handle {
  font-size: 11px;
  color: var(--text-muted);
}

.dash-stat-grid {
  margin-bottom: var(--space-5);
}

.dash-stat-card {
  position: relative;
  padding: var(--space-5);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), border-color 0.22s, box-shadow 0.22s;
}

.dash-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.55;
}

.dash-stat-card:nth-child(2)::before {
  background: var(--warning);
}

.dash-stat-card:nth-child(3)::before {
  background: var(--info);
}

.dash-stat-card:nth-child(4)::before {
  background: var(--success);
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dash-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dash-stat-num {
  font-size: 32px;
  letter-spacing: -0.03em;
}

.dash-panel {
  border-radius: 14px;
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dash-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.dash-svc-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.dash-svc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.dash-svc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.dash-svc-icon svg {
  width: 15px;
  height: 15px;
}

.dash-svc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.dash-svc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.dash-svc-status.is-on {
  color: var(--success);
  background: rgba(62, 207, 122, 0.12);
  border: 1px solid rgba(62, 207, 122, 0.25);
}

.dash-svc-status.is-off {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.dash-svc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dash-event-list,
.dash-history-list {
  gap: 6px;
  max-height: 260px;
}

.dash-event-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.dash-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.dash-empty-icon svg {
  width: 18px;
  height: 18px;
}

.dash-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Quick access cards ── */
.home-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.mini-card,
.home-quick-card {
  border-radius: 14px;
  padding: var(--space-5);
  min-height: 148px;
  display: flex;
  flex-direction: column;
}

.mini-card::after {
  display: none;
}

.quick-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.quick-card-icon svg {
  width: 18px;
  height: 18px;
}

.mini-card h4,
.home-quick-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.mini-card .badge,
.home-quick-card .badge {
  margin-top: auto;
  align-self: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(224, 69, 106, 0.2);
}

/* ── Forms V2 ── */
.form-row {
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
  min-height: var(--control-h);
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea {
  padding: 12px 14px;
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: var(--surface);
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.main-btn,
.dark-btn {
  min-height: var(--control-h);
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-btn.sm,
.dark-btn.sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.creator-connect-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.creator-connect-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.creator-preview-status {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
}

.creator-preview-status.is-empty {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}

.creator-preview-status.is-ready {
  color: var(--success);
  background: rgba(62, 207, 122, 0.1);
  border: 1px solid rgba(62, 207, 122, 0.22);
}

.creator-preview-status.is-pending {
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
}

.creator-connect-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

.creator-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.creator-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.creator-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.creator-input-group input {
  flex: 1;
  border: 0;
  border-radius: 0;
  min-height: var(--control-h);
  background: transparent;
  box-shadow: none !important;
}

.account-meta-card {
  padding: var(--space-5);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.account-meta-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.account-meta-row b {
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 88px;
}

/* ── OBS links V2 ── */
.obs-wizard-steps {
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.obs-wizard-step {
  padding: var(--space-4);
  border-radius: 12px;
  transition: border-color 0.18s, background 0.18s;
}

.obs-wizard-step strong {
  font-size: 13px;
  margin-bottom: 6px;
}

.obs-link-grid {
  gap: var(--space-4);
}

.obs-link-card {
  border-radius: 14px;
  padding: var(--space-5);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.obs-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.obs-link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.obs-link-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.obs-link-card-icon svg {
  width: 17px;
  height: 17px;
}

.obs-link-card h4 {
  font-size: 14px;
  font-weight: 700;
}

.obs-link-card p {
  font-size: 12px;
}

.obs-link-url-wrap {
  position: relative;
}

.obs-link-url-wrap .code-box,
.overlay-link-panel .code-box {
  position: relative;
}

.code-box {
  margin-top: 0;
  padding: 12px 44px 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.code-box:hover {
  transform: none;
}

.code-box-copy {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.code-box-copy svg {
  width: 14px;
  height: 14px;
}

.code-box-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.code-box.is-copied {
  border-color: var(--success);
  background: rgba(62, 207, 122, 0.08);
}

.obs-link-actions {
  gap: 6px;
}

/* ── Modals V2 ── */
.ae-modal {
  padding: var(--space-6);
}

.ae-modal-bg {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.ae-modal-box {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.ae-modal-top {
  padding: var(--space-5) var(--space-6);
}

.ae-modal-body {
  padding: var(--space-5) var(--space-6);
}

.ae-modal-foot {
  padding: var(--space-4) var(--space-6);
}

.ae-close {
  border-radius: 10px;
}

/* ── Tables V2 ── */
.table-like {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.table-like th {
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 12px 16px;
  background: var(--bg-elevated);
}

.table-like td {
  padding: 12px 16px;
  font-size: 13px;
}

.table-like tbody tr {
  transition: background 0.12s;
}

.table-like tbody tr:last-child td {
  border-bottom: 0;
}

.points-leaderboard table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.points-leaderboard th,
.points-leaderboard td {
  padding: 10px 14px;
}

/* ── Cards ── */
.card {
  border-radius: 14px;
}

.auth-card-clean {
  border-radius: 16px;
}

.account-connected {
  border-radius: 12px;
}

/* ── Toast & tooltip ── */
.panel-toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.panel-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.panel-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-toast--success {
  border-color: rgba(62, 207, 122, 0.35);
}

.panel-toast--success .panel-toast-icon {
  color: var(--success);
}

.panel-toast--error {
  border-color: rgba(239, 68, 68, 0.35);
}

.panel-toast--error .panel-toast-icon {
  color: var(--danger);
}

.panel-toast-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.panel-tooltip {
  position: absolute;
  z-index: 9998;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
  animation: menuIn 0.15s var(--ease-out) both;
}

/* ── Loading skeleton ── */
.panel-skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--surface-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .creator-connect-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .side {
    width: 72px;
    padding: var(--space-3) 7px;
  }

  .side-head {
    display: none;
  }

  .nav-item {
    flex-direction: column;
    min-height: 58px;
    padding: 7px var(--space-1);
    font-size: 10px;
    gap: var(--space-1);
  }

  .nav-item span:not(.nav-icon):not(.nav-badge) {
    text-align: center;
  }

  .main {
    padding: var(--space-5);
  }
}

@media (max-width: 720px) {
  .topbar-center {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .search-wrap {
    max-width: none;
  }

  .profile-name {
    display: none;
  }

  .coin {
    display: none;
  }
}
