:root {
  color-scheme: dark;
  --bg: #06101d;
  --panel: #0d1728;
  --panel-2: #111f35;
  --text: #f8fafc;
  --muted: #a9b7ca;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #39e58c;
  --accent-dark: #052e16;
  --danger: #fb7185;
  --warning: #fbbf24;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 229, 140, 0.15), transparent 30%),
    linear-gradient(180deg, #020617 0%, var(--bg) 100%);
}

a { color: #86efac; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }

.site-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}
.brand { color: var(--text); font-size: 20px; font-weight: 800; text-decoration: none; }
.header-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }

.auth-layout {
  width: min(100%, 480px);
  margin: 38px auto 70px;
}
.auth-card, .dashboard-panel {
  background: linear-gradient(180deg, rgba(17, 31, 53, 0.97), rgba(13, 23, 40, 0.97));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.33);
}
.auth-card { padding: 30px; }
.eyebrow {
  margin: 0 0 8px;
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 { margin: 0 0 12px; font-size: clamp(30px, 7vw, 42px); line-height: 1.08; }
.intro, .muted { color: var(--muted); line-height: 1.6; }
.intro { margin: 0 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.45);
  font-weight: 700;
}
.tab[aria-selected="true"] {
  color: var(--text);
  border-color: rgba(57, 229, 140, 0.45);
  background: rgba(57, 229, 140, 0.12);
}
.form-panel[hidden] { display: none; }
label { display: block; margin: 14px 0 7px; color: #d7e1ee; font-size: 14px; }
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.64);
}
input:focus { outline: 2px solid rgba(57, 229, 140, 0.42); outline-offset: 1px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 68px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 8px;
  border: 0;
  color: #86efac;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.primary-button, .secondary-button, .danger-button, .google-button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 13px;
  font-weight: 800;
}
.primary-button { width: 100%; margin-top: 18px; border: 0; background: var(--accent); color: var(--accent-dark); }
.secondary-button { border: 1px solid var(--line); background: rgba(2, 6, 23, 0.38); color: var(--text); }
.danger-button { border: 1px solid rgba(251, 113, 133, 0.38); background: rgba(251, 113, 133, 0.1); color: #fecdd3; }
.google-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #172033;
}
.google-mark { color: #4285f4; font-size: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8291a6; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; font-size: 13px; }
.link-button { padding: 0; border: 0; color: #86efac; background: transparent; text-decoration: underline; }
.notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 13px; line-height: 1.5; }
.notice[hidden] { display: none; }
.notice.error { color: #fecdd3; border: 1px solid rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.1); }
.notice.success { color: #bbf7d0; border: 1px solid rgba(57, 229, 140, 0.35); background: rgba(57, 229, 140, 0.1); }
.trust-copy { margin: 20px 0 0; color: #8ea0b8; font-size: 12px; line-height: 1.6; }

.dashboard-main { padding: 35px 0 75px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.dashboard-heading h1 { margin-bottom: 6px; }
.dashboard-panel { padding: 24px; }
.profile-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar, .account-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #17243a;
  color: #bbf7d0;
  font-weight: 900;
}
.avatar { width: 70px; height: 70px; font-size: 24px; }
.account-avatar { width: 58px; height: 58px; font-size: 20px; }
.avatar img, .account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-email { margin: 0 0 4px; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.credit-pill { padding: 9px 12px; border: 1px solid rgba(57, 229, 140, 0.35); border-radius: 999px; color: #bbf7d0; background: rgba(57, 229, 140, 0.08); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.account-card { min-height: 294px; display: flex; flex-direction: column; gap: 18px; }
.account-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.platform-name { margin: 0 0 4px; font-size: 19px; }
.status { margin: 0; color: var(--muted); font-size: 13px; }
.status.connected { color: #86efac; }
.account-name { margin: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.account-handle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-bio { display: -webkit-box; overflow: hidden; margin: 9px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { padding: 12px 8px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 6, 23, 0.28); }
.metric strong { display: block; font-size: 16px; }
.metric span { color: var(--muted); font-size: 11px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.account-actions button { flex: 1; }
.small-line { margin: 0; color: #8ea0b8; font-size: 12px; line-height: 1.5; }
.content-helper { margin: 0; padding: 11px 12px; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 12px; color: #fde68a; background: rgba(251, 191, 36, 0.08); font-size: 12px; line-height: 1.5; }
.billing-panel { margin-top: 18px; scroll-margin-top: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.panel-heading h2, .billing-box h3, .credit-history-wrap h3 { margin-top: 0; }
.panel-heading h2 { margin-bottom: 8px; font-size: 22px; }
.panel-heading .muted { max-width: 720px; margin: 0; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.billing-box { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(2, 6, 23, 0.28); }
.billing-box h3 { margin-bottom: 8px; font-size: 16px; }
.compact-button { width: auto; min-width: 170px; margin-top: 16px; }
.billing-box .secondary-button { margin-top: 12px; }
.credit-quantity-control { margin-top: 18px; }
.quantity-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quantity-label-row label { margin: 0; font-weight: 700; }
.quantity-label-row span { color: var(--muted); font-size: 11px; }
.quantity-stepper { display: grid; grid-template-columns: 48px minmax(78px, 112px) 48px; gap: 8px; margin-top: 9px; }
.quantity-stepper input { min-height: 48px; padding: 8px; text-align: center; font-weight: 900; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.quantity-button { min-height: 48px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(2, 6, 23, 0.55); font-size: 24px; line-height: 1; }
.quantity-button:hover:not(:disabled) { border-color: rgba(57, 229, 140, 0.55); background: rgba(57, 229, 140, 0.1); }
.purchase-summary { margin: 10px 0 0; color: #bbf7d0; font-size: 13px; font-weight: 800; }
.credit-history-wrap { margin-top: 24px; }
.credit-history { display: grid; gap: 8px; }
.credit-history-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 6, 23, 0.22); }
.credit-history-row div { display: grid; gap: 3px; }
.credit-history-row strong { font-size: 13px; }
.credit-history-row span { color: var(--muted); font-size: 12px; }
.credit-history-row .credit-positive { color: #86efac; font-weight: 800; }
.credit-history-row .credit-negative { color: #fda4af; font-weight: 800; }
.privacy-panel { margin-top: 18px; }
.privacy-panel h2 { margin-top: 0; font-size: 18px; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.result-dialog { width: min(460px, calc(100% - 28px)); padding: 0; color: var(--text); border: 1px solid var(--line); border-radius: 22px; background: #0d1728; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.result-dialog::backdrop { background: rgba(2, 6, 23, 0.78); backdrop-filter: blur(5px); }
.result-dialog-card { position: relative; padding: 30px; text-align: center; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(148, 163, 184, 0.1); font-size: 23px; }
.result-dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; font-size: 28px; font-weight: 900; }
.result-dialog.success .result-dialog-icon { color: #052e16; background: var(--accent); }
.result-dialog.error .result-dialog-icon { color: #4c0519; background: #fb7185; }
.result-dialog-card .eyebrow { margin-bottom: 8px; }
.result-dialog.error .eyebrow { color: #fda4af; }
.result-dialog-card h2 { margin: 0; font-size: 24px; }
.result-dialog-message { margin: 14px 0 0; color: #d7e1ee; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-dialog-detail { margin: 12px 0 0; color: #bbf7d0; font-size: 13px; font-weight: 800; }
.result-dialog-card .primary-button { margin-top: 22px; }
.loading-shell { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid rgba(148, 163, 184, 0.3); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .site-header, .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .panel-heading { flex-direction: column; }
  .profile-summary { grid-template-columns: auto 1fr; }
  .credit-pill { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 430px) {
  .auth-card, .dashboard-panel { padding: 20px; }
  .form-links { flex-direction: column; align-items: flex-start; }
  .metrics { grid-template-columns: 1fr; }
  .credit-history-row { align-items: flex-start; flex-direction: column; }
  .result-dialog-card { padding: 26px 20px 20px; }
}

/* ViralMind V11 dashboard experience */
.dashboard-page {
  --vm-bg: #050a13;
  --vm-panel: rgba(13, 22, 37, 0.86);
  --vm-panel-strong: #0f1a2c;
  --vm-panel-soft: rgba(15, 26, 44, 0.62);
  --vm-line: rgba(148, 163, 184, 0.16);
  --vm-line-bright: rgba(111, 255, 177, 0.34);
  --vm-green: #64f5aa;
  --vm-green-strong: #28dd83;
  --vm-green-ink: #032a19;
  --vm-blue: #60a5fa;
  --vm-purple: #a78bfa;
  --vm-text: #f7fbff;
  --vm-muted: #92a3b9;
  --vm-sidebar-width: 292px;
  overflow-x: hidden;
  color: var(--vm-text);
  background:
    radial-gradient(circle at 74% -10%, rgba(44, 222, 131, 0.1), transparent 32%),
    radial-gradient(circle at 100% 70%, rgba(96, 165, 250, 0.08), transparent 31%),
    var(--vm-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-page::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.dashboard-page * { scrollbar-color: rgba(100, 245, 170, 0.35) transparent; }
.dashboard-page a:focus-visible,
.dashboard-page button:focus-visible,
.dashboard-page input:focus-visible {
  outline: 3px solid rgba(100, 245, 170, 0.45);
  outline-offset: 3px;
}

.ambient-glow {
  position: fixed;
  z-index: -2;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
}
.ambient-glow-one { top: 8%; right: -220px; background: var(--vm-green); }
.ambient-glow-two { bottom: -260px; left: 22%; background: var(--vm-blue); }

.dashboard-app { min-height: 100vh; }
.dashboard-workspace { min-width: 0; margin-left: var(--vm-sidebar-width); }

.dashboard-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--vm-sidebar-width);
  padding: 26px 20px 22px;
  flex-direction: column;
  border-right: 1px solid var(--vm-line);
  background:
    linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(7, 13, 24, 0.99)),
    var(--vm-bg);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.22);
  overflow-y: auto;
}

.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px; }
.dashboard-page .brand-lockup,
.dashboard-page .mobile-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--vm-text); letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(100, 245, 170, 0.45);
  border-radius: 11px;
  color: var(--vm-green-ink);
  background: linear-gradient(135deg, #9affc9, var(--vm-green-strong));
  box-shadow: 0 8px 24px rgba(40, 221, 131, 0.22);
  font-size: 15px;
  font-weight: 950;
}
.brand-mark img,
.loading-mark img,
.gpt-mini-mark img,
.gpt-action-mark img,
.prompts-empty-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.icon-button { display: grid; place-items: center; border: 1px solid var(--vm-line); color: var(--vm-text); background: rgba(255, 255, 255, 0.04); }
.sidebar-close { display: none; width: 38px; height: 38px; border-radius: 12px; font-size: 24px; }

.sidebar-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 30px 0 27px;
  padding: 13px;
  border: 1px solid var(--vm-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(100, 245, 170, 0.08), rgba(96, 165, 250, 0.035));
}
.sidebar-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 245, 170, 0.32);
  border-radius: 13px;
  color: #c6ffdf;
  background: #17243a;
  font-size: 12px;
  font-weight: 900;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-profile-copy { min-width: 0; }
.sidebar-profile-label { margin: 0 0 3px; color: var(--vm-muted); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.sidebar-email { margin: 0; overflow: hidden; color: #e7eff9; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-credit { min-width: 30px; padding: 5px 7px; border: 1px solid rgba(100, 245, 170, 0.28); border-radius: 999px; color: var(--vm-green); background: rgba(100, 245, 170, 0.08); text-align: center; font-size: 11px; font-weight: 900; }

.sidebar-nav { display: grid; gap: 6px; }
.sidebar-nav-label { margin: 0 10px 7px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sidebar-nav-label-secondary { margin-top: 18px; }
.sidebar-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #9aacbf;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.sidebar-nav-link::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 3px;
  height: 0;
  border-radius: 999px;
  content: "";
  background: var(--vm-green);
  transform: translateY(-50%);
  transition: height 180ms ease;
}
.sidebar-nav-link:hover { color: #e7f3ff; background: rgba(255, 255, 255, 0.035); transform: translateX(2px); }
.sidebar-nav-link.active,
.sidebar-nav-link.page-active { border-color: rgba(100, 245, 170, 0.16); color: var(--vm-text); background: linear-gradient(90deg, rgba(100, 245, 170, 0.11), rgba(100, 245, 170, 0.025)); }
.sidebar-nav-link.active::after,
.sidebar-nav-link.page-active::after { height: 25px; }
.sidebar-nav-link strong, .sidebar-nav-link small { display: block; }
.sidebar-nav-link strong { margin-bottom: 3px; font-size: 13px; }
.sidebar-nav-link small { color: #6f8299; font-size: 10px; }
.nav-index { color: #61738a; font-size: 10px; font-weight: 900; letter-spacing: 0.04em; }
.sidebar-nav-link.active .nav-index,
.sidebar-nav-link.page-active .nav-index { color: var(--vm-green); }

.sidebar-footer { display: grid; gap: 14px; margin-top: auto; padding: 28px 6px 0; }
.sidebar-gpt-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(100, 245, 170, 0.18);
  border-radius: 15px;
  color: #dce9f5;
  background: linear-gradient(135deg, rgba(100, 245, 170, 0.08), rgba(96, 165, 250, 0.035));
  text-decoration: none;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}
.sidebar-gpt-link:hover { border-color: rgba(100, 245, 170, 0.38); background: rgba(100, 245, 170, 0.1); transform: translateY(-2px); }
.sidebar-gpt-link strong, .sidebar-gpt-link small { display: block; }
.sidebar-gpt-link strong { margin-bottom: 2px; font-size: 10px; }
.sidebar-gpt-link small { color: #7890a8; font-size: 8px; }
.gpt-mini-mark { width: 30px; height: 30px; overflow: hidden; border: 1px solid rgba(100, 245, 170, 0.25); border-radius: 10px; background: #fff; }
.sidebar-help { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--vm-line); border-radius: 15px; background: rgba(255, 255, 255, 0.025); }
.sidebar-help strong, .sidebar-help a { display: block; font-size: 11px; }
.sidebar-help strong { margin-bottom: 3px; color: #dae6f3; }
.sidebar-help a { color: var(--vm-green); text-decoration: none; }
.status-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--vm-green); box-shadow: 0 0 0 5px rgba(100, 245, 170, 0.09); animation: vmPulse 2.4s ease-in-out infinite; }
.sidebar-footer-links { display: flex; gap: 14px; padding: 0 4px; }
.sidebar-footer-links a { color: #6f8299; font-size: 10px; text-decoration: none; }
.sidebar-footer-links a:hover { color: var(--vm-green); }
.sidebar-logout { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid rgba(251, 113, 133, 0.2); border-radius: 13px; color: #fda4af; background: rgba(251, 113, 133, 0.045); font-size: 12px; font-weight: 800; }
.sidebar-logout:hover { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.09); }

.mobile-topbar { display: none; }
.navigation-backdrop { display: none; }

.dashboard-page .dashboard-main { width: min(1280px, 100%); margin: 0 auto; padding: 46px 42px 78px; }
.dashboard-page .dashboard-section { scroll-margin-top: 28px; }
.dashboard-page .floating-notice { position: sticky; z-index: 30; top: 18px; margin: 0 0 18px; border-color: rgba(100, 245, 170, 0.28); background: rgba(8, 18, 30, 0.94); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34); backdrop-filter: blur(18px); }

.overview-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  padding: clamp(30px, 4.2vw, 56px);
  overflow: hidden;
  border: 1px solid var(--vm-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 42%, rgba(100, 245, 170, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(17, 30, 50, 0.94), rgba(8, 15, 27, 0.96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  animation: vmFadeUp 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.overview-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.24;
  background: linear-gradient(115deg, transparent 45%, rgba(100, 245, 170, 0.11) 100%);
  pointer-events: none;
}
.hero-copy { align-self: center; }
.hero-status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 32px; padding: 8px 12px; border: 1px solid rgba(100, 245, 170, 0.2); border-radius: 999px; color: #bfffdc; background: rgba(100, 245, 170, 0.06); font-size: 11px; font-weight: 800; }
.hero-status .status-dot { margin: 0; }
.dashboard-page .eyebrow { color: var(--vm-green); letter-spacing: 0.12em; }
.overview-panel h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 5.3vw, 68px); line-height: 0.99; letter-spacing: -0.055em; }
.hero-intro { max-width: 660px; margin: 22px 0 0; color: #a9b8ca; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; }

.hero-orbit { position: relative; min-height: 310px; align-self: center; }
.orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(100, 245, 170, 0.17); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-ring-one { width: 270px; height: 270px; animation: vmSpin 24s linear infinite; }
.orbit-ring-two { width: 190px; height: 190px; border-style: dashed; border-color: rgba(96, 165, 250, 0.2); animation: vmSpinReverse 18s linear infinite; }
.orbit-ring-one::before, .orbit-ring-two::before { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--vm-green); box-shadow: 0 0 22px rgba(100, 245, 170, 0.7); }
.orbit-ring-two::before { top: auto; right: 18%; bottom: 3px; left: auto; background: var(--vm-blue); box-shadow: 0 0 20px rgba(96, 165, 250, 0.65); }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; width: 104px; height: 104px; place-items: center; border: 1px solid rgba(100, 245, 170, 0.45); border-radius: 30px; color: var(--vm-green-ink); background: linear-gradient(145deg, #a3ffd0, var(--vm-green-strong)); box-shadow: 0 0 0 12px rgba(100, 245, 170, 0.04), 0 30px 60px rgba(40, 221, 131, 0.18); transform: translate(-50%, -50%) rotate(-6deg); font-size: 24px; font-weight: 950; }
.orbit-core img { width: 88%; height: 88%; border-radius: 24px; object-fit: cover; }
.orbit-node { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--vm-line); border-radius: 15px; color: #e8f4ff; background: rgba(13, 25, 42, 0.92); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28); font-size: 11px; font-weight: 900; }
.orbit-node-one { top: 11%; right: 11%; transform: rotate(5deg); }
.orbit-node-two { bottom: 9%; left: 10%; transform: rotate(-7deg); }

.dashboard-page .profile-summary {
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 4px 0 0;
  padding: 15px 17px;
  border: 1px solid var(--vm-line);
  border-radius: 20px;
  background: rgba(4, 10, 19, 0.42);
  backdrop-filter: blur(14px);
}
.dashboard-page .avatar { width: 54px; height: 54px; border-radius: 16px; }
.summary-label { margin: 0 0 3px; color: #6f8299; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dashboard-page .profile-email { margin: 0 0 2px; font-size: 14px; }
.dashboard-page .credit-pill { grid-column: auto; padding: 9px 13px; border-color: rgba(100, 245, 170, 0.28); color: #c6ffdf; background: rgba(100, 245, 170, 0.08); font-weight: 850; }

.overview-stats { z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.overview-stat { position: relative; min-width: 0; padding: 16px; overflow: hidden; border: 1px solid var(--vm-line); border-radius: 17px; background: rgba(4, 10, 19, 0.38); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.overview-stat:hover { border-color: rgba(100, 245, 170, 0.26); background: rgba(13, 25, 42, 0.62); transform: translateY(-3px); }
.overview-stat span, .overview-stat small { display: block; }
.overview-stat span { margin-bottom: 9px; color: #71849b; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.overview-stat strong { display: block; color: #f8fbff; font-size: 28px; line-height: 1; letter-spacing: -0.04em; }
.overview-stat small { margin-top: 6px; color: #708096; font-size: 10px; }
.overview-stat.accent-stat { border-color: rgba(100, 245, 170, 0.2); background: linear-gradient(145deg, rgba(100, 245, 170, 0.1), rgba(100, 245, 170, 0.025)); }
.overview-stat.accent-stat strong { color: var(--vm-green); }

.section-block { margin-top: 48px; animation: vmFadeUp 620ms 90ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 8px; font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -0.035em; }
.section-heading .muted { max-width: 680px; margin: 0; }
.section-number { color: rgba(148, 163, 184, 0.18); font-size: 62px; font-weight: 950; line-height: 0.8; letter-spacing: -0.08em; }

.dashboard-page .dashboard-grid { gap: 18px; margin: 0; }
.dashboard-page .dashboard-panel { position: relative; overflow: hidden; border: 1px solid var(--vm-line); border-radius: 25px; background: linear-gradient(150deg, rgba(18, 31, 51, 0.9), rgba(9, 17, 30, 0.94)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22); }
.interactive-panel { --mouse-x: 50%; --mouse-y: 50%; transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.interactive-panel > *:not(.card-shine) { position: relative; z-index: 1; }
.card-shine { position: absolute; z-index: 0; inset: 0; opacity: 0; background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(100, 245, 170, 0.115), transparent 48%); transition: opacity 240ms ease; pointer-events: none; }
.interactive-panel:hover { border-color: rgba(100, 245, 170, 0.28); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32); transform: translateY(-5px); }
.interactive-panel:hover .card-shine { opacity: 1; }

.dashboard-page .account-card { min-height: 405px; padding: 25px; gap: 20px; }
.dashboard-page .account-head { grid-template-columns: auto 1fr auto; gap: 14px; }
.dashboard-page .account-avatar { width: 64px; height: 64px; border-radius: 19px; }
.platform-kicker { margin: 0 0 3px; color: #71849b; font-size: 9px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-page .platform-name { margin-bottom: 3px; font-size: 22px; letter-spacing: -0.025em; }
.platform-chip { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; font-size: 9px; font-weight: 950; }
.instagram-chip { border: 1px solid rgba(167, 139, 250, 0.26); color: #d8ccff; background: rgba(167, 139, 250, 0.09); }
.youtube-chip { border: 1px solid rgba(251, 113, 133, 0.26); color: #fecdd3; background: rgba(251, 113, 133, 0.08); }
.dashboard-page .status.connected { color: var(--vm-green); }
.dashboard-page .status.connected::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; content: ""; background: var(--vm-green); box-shadow: 0 0 10px rgba(100, 245, 170, 0.55); }
.dashboard-page .metrics { gap: 10px; }
.dashboard-page .metric { padding: 14px 9px; border-color: var(--vm-line); border-radius: 15px; background: rgba(3, 8, 16, 0.36); transition: transform 180ms ease, background 180ms ease; }
.dashboard-page .metric:hover { background: rgba(100, 245, 170, 0.045); transform: translateY(-2px); }
.dashboard-page .metric strong { color: #f4f9ff; font-size: 18px; }
.dashboard-page .account-actions button { min-width: 120px; }

.dashboard-page .primary-button,
.dashboard-page .secondary-button,
.dashboard-page .danger-button { position: relative; overflow: hidden; transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease; }
.dashboard-page .primary-button { color: var(--vm-green-ink); background: linear-gradient(135deg, #94ffc7, var(--vm-green-strong)); box-shadow: 0 12px 30px rgba(40, 221, 131, 0.14); }
.dashboard-page .primary-button:hover:not(:disabled) { box-shadow: 0 16px 38px rgba(40, 221, 131, 0.25); transform: translateY(-2px); }
.dashboard-page .secondary-button:hover:not(:disabled) { border-color: rgba(100, 245, 170, 0.35); background: rgba(100, 245, 170, 0.07); transform: translateY(-2px); }
.dashboard-page .danger-button:hover:not(:disabled) { border-color: rgba(251, 113, 133, 0.52); transform: translateY(-2px); }

.dashboard-page .content-helper { border-color: rgba(251, 191, 36, 0.22); background: rgba(251, 191, 36, 0.055); }
.dashboard-page .billing-panel { margin-top: 48px; padding: clamp(24px, 3.4vw, 38px); animation: vmFadeUp 620ms 160ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.dashboard-page .billing-heading { align-items: flex-start; margin-bottom: 26px; }
.dashboard-page .billing-heading h2 { font-size: clamp(29px, 3.6vw, 42px); }
.large-credit-pill { flex: 0 0 auto; font-size: 14px !important; }
.dashboard-page .billing-grid { gap: 14px; margin-top: 0; }
.dashboard-page .billing-box { position: relative; min-height: 330px; padding: 25px; overflow: hidden; border-color: var(--vm-line); border-radius: 20px; background: rgba(3, 9, 17, 0.36); transition: border-color 180ms ease, background 180ms ease; }
.dashboard-page .billing-box:hover { border-color: rgba(100, 245, 170, 0.22); background: rgba(8, 18, 30, 0.54); }
.billing-box-number { position: absolute; top: 18px; right: 20px; color: rgba(148, 163, 184, 0.12); font-size: 42px; font-weight: 950; line-height: 1; }
.dashboard-page .billing-box h3 { margin-bottom: 9px; font-size: 20px; letter-spacing: -0.02em; }
.dashboard-page .credit-quantity-control { max-width: 310px; }
.dashboard-page .quantity-stepper { grid-template-columns: 48px minmax(90px, 128px) 48px; }
.dashboard-page .quantity-button { border-color: var(--vm-line); background: rgba(255, 255, 255, 0.025); }
.dashboard-page .quantity-button:hover:not(:disabled) { border-color: rgba(100, 245, 170, 0.4); background: rgba(100, 245, 170, 0.08); }
.dashboard-page .purchase-summary { color: var(--vm-green); }
.dashboard-page .promo-box input { border-color: rgba(148, 163, 184, 0.2); background: rgba(2, 7, 14, 0.52); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.dashboard-page .trust-copy { display: flex; gap: 8px; align-items: flex-start; color: #71839a; }
.trust-lock { flex: 0 0 auto; color: var(--vm-green); font-size: 22px; line-height: 0.6; }

.dashboard-page .credit-history-wrap { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--vm-line); }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.history-heading h3 { margin: 0; font-size: 20px; }
.history-badge { padding: 6px 9px; border: 1px solid rgba(100, 245, 170, 0.18); border-radius: 999px; color: #a9f9ce; background: rgba(100, 245, 170, 0.055); font-size: 9px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.dashboard-page .credit-history-row { padding: 14px 16px; border-color: var(--vm-line); background: rgba(2, 7, 14, 0.3); transition: border-color 170ms ease, background 170ms ease, transform 170ms ease; }
.dashboard-page .credit-history-row:hover { border-color: rgba(100, 245, 170, 0.2); background: rgba(100, 245, 170, 0.035); transform: translateX(3px); }

.dashboard-page .privacy-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 48px; padding: 28px; animation: vmFadeUp 620ms 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.security-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(100, 245, 170, 0.25); border-radius: 19px; color: var(--vm-green); background: rgba(100, 245, 170, 0.07); font-size: 22px; font-weight: 900; }
.dashboard-page .privacy-panel h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -0.03em; }
.dashboard-page .privacy-panel .muted { margin: 0; max-width: 760px; }
.dashboard-page .privacy-links { display: grid; gap: 8px; }
.dashboard-page .privacy-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 180px; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; color: #a9b8ca; text-decoration: none; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.dashboard-page .privacy-links a:hover { border-color: var(--vm-line); color: var(--vm-green); background: rgba(255, 255, 255, 0.025); }
.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px 4px 0; color: #586a80; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

.dashboard-page .loading-shell { position: relative; z-index: 2; min-height: 100vh; }
.loading-card { display: grid; min-width: 250px; padding: 30px; place-items: center; border: 1px solid var(--vm-line); border-radius: 25px; background: rgba(13, 22, 37, 0.78); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34); backdrop-filter: blur(18px); }
.loading-mark { display: grid; width: 46px; height: 46px; margin-bottom: 18px; place-items: center; border-radius: 14px; color: var(--vm-green-ink); background: linear-gradient(135deg, #9affc9, var(--vm-green-strong)); font-weight: 950; }
.dashboard-page .spinner { border-color: rgba(148, 163, 184, 0.2); border-top-color: var(--vm-green); }

.dashboard-page .result-dialog { border-color: rgba(100, 245, 170, 0.2); background: linear-gradient(150deg, #14233a, #0a1322); }
.dashboard-page .result-dialog::backdrop { background: rgba(2, 6, 14, 0.82); }

/* Shared V11 dashboard pages */
.workspace-main { min-height: 100vh; }
.workspace-hero-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 300px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--vm-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 24%, rgba(100, 245, 170, 0.15), transparent 28%),
    linear-gradient(140deg, rgba(16, 29, 48, 0.97), rgba(7, 14, 25, 0.94));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.25);
  animation: vmFadeUp 560ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.workspace-hero-panel::after {
  position: absolute;
  right: -75px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(100, 245, 170, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 55px rgba(100, 245, 170, 0.025), 0 0 0 110px rgba(96, 165, 250, 0.018);
  pointer-events: none;
}
.workspace-hero-panel > * { position: relative; z-index: 1; }
.workspace-hero-panel h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(46px, 7vw, 84px); line-height: 0.96; letter-spacing: -0.065em; }
.workspace-hero-panel .hero-intro { max-width: 680px; margin: 0; }
.workspace-count-pill { flex: 0 0 auto; padding: 10px 13px; border: 1px solid rgba(100, 245, 170, 0.25); border-radius: 999px; color: #c5ffdf; background: rgba(100, 245, 170, 0.07); font-size: 11px; font-weight: 850; }
.workspace-section-heading { margin: 48px 0 18px; }
.workspace-section-heading h2 { margin: 0 0 8px; font-size: 29px; }
.workspace-section-heading .muted { margin: 0; }

.snapshot-accuracy-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; max-width: 860px; margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 16px; color: #bac9d9; background: rgba(251, 191, 36, 0.055); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14); }
.snapshot-accuracy-note[hidden] { display: none; }
.snapshot-accuracy-icon { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 50%; color: #ffe6a2; background: rgba(251, 191, 36, 0.09); font-size: 11px; font-weight: 900; }
.snapshot-accuracy-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.snapshot-accuracy-note strong { color: #f5f8fc; }
.snapshot-accuracy-note a { color: #ffe39a; font-size: 9px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.snapshot-accuracy-note a:hover { color: #fff0c5; text-decoration: underline; }
.snapshot-accuracy-note a:focus-visible { border-radius: 5px; outline: 2px solid rgba(251, 191, 36, 0.65); outline-offset: 3px; }

.latest-reel-section { margin-top: 30px; }
.latest-reel-section .workspace-section-heading { margin-top: 0; }
.reel-preview-loading { display: grid; min-height: 220px; place-items: center; padding: 32px; border-radius: 28px; color: var(--vm-muted); font-size: 12px; font-weight: 750; text-align: center; }
.reel-preview-loading[hidden] { display: none; }
.reel-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 600px); padding: 8px; border: 1px solid var(--vm-line); border-radius: 20px; background: rgba(6, 12, 22, 0.78); box-shadow: 0 28px 78px rgba(0, 0, 0, 0.24); }
.reel-preview-tile { position: relative; aspect-ratio: 3 / 4; min-width: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 15px; background: linear-gradient(145deg, #fff, #eef2f7); isolation: isolate; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.reel-preview-tile:hover, .reel-preview-tile:focus-within { z-index: 2; border-color: rgba(100, 245, 170, 0.5); transform: translateY(-3px) scale(1.012); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34); }
.reel-preview-embed-shell { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.instagram-embed-frame { position: absolute; z-index: 0; top: 0; left: 0; display: block; width: 300%; height: 300%; border: 0; background: #fff; pointer-events: none; transform: scale(0.333333); transform-origin: top left; }
.reel-preview-tile-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 18px; color: #4c5a6b; background: linear-gradient(145deg, #fff, #eef2f7); font-size: 10px; font-weight: 750; line-height: 1.5; text-align: center; }
.reel-preview-tile-loading[hidden] { display: none; }
.reel-preview-open { position: absolute; z-index: 2; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 11px; color: #fff; background: linear-gradient(transparent 62%, rgba(1, 4, 10, 0.8)); text-decoration: none; }
.reel-preview-open span { padding: 7px 9px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 999px; background: rgba(4, 8, 16, 0.76); backdrop-filter: blur(9px); font-size: 9px; font-weight: 850; letter-spacing: 0.01em; white-space: nowrap; transition: background 180ms ease, transform 180ms ease; }
.reel-preview-open:hover span, .reel-preview-open:focus-visible span { background: rgba(10, 102, 64, 0.94); transform: translateY(-2px); }
.reel-preview-open:focus-visible { outline: 3px solid rgba(100, 245, 170, 0.72); outline-offset: -4px; }
.reel-preview-attribution { max-width: 600px; margin: 12px 4px 0; color: #71849a; font-size: 10px; line-height: 1.6; }

.snapshot-gallery { display: grid; gap: 24px; }
.snapshot-card { overflow: hidden; border: 1px solid var(--vm-line); border-radius: 28px; background: rgba(12, 21, 36, 0.82); box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.snapshot-card:hover { border-color: rgba(100, 245, 170, 0.28); transform: translateY(-3px); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28); }
.snapshot-image-link { display: grid; min-height: 330px; place-items: center; padding: 16px; overflow: hidden; color: #adc0d4; background: linear-gradient(135deg, rgba(2, 7, 14, 0.85), rgba(16, 29, 47, 0.7)); text-decoration: none; }
.snapshot-image-link img { display: block; width: 100%; max-height: 760px; border-radius: 18px; object-fit: contain; }
.snapshot-load-error { min-height: 280px; padding: 40px; text-align: center; line-height: 1.7; }
.snapshot-card-details { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px 22px; border-top: 1px solid var(--vm-line); }
.snapshot-card-details h2 { margin: 0 0 6px; font-size: 21px; }
.snapshot-open-link { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(100, 245, 170, 0.2); border-radius: 11px; color: var(--vm-green); background: rgba(100, 245, 170, 0.055); font-size: 11px; font-weight: 800; text-decoration: none; }
.snapshot-open-link:hover { border-color: rgba(100, 245, 170, 0.4); background: rgba(100, 245, 170, 0.1); }

.snapshot-empty {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(260px, 1fr) minmax(250px, 0.68fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
}
.empty-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; aspect-ratio: 1; padding: 12px; border: 1px solid rgba(100, 245, 170, 0.16); border-radius: 28px; background: rgba(2, 7, 14, 0.45); transform: rotate(-3deg); }
.empty-visual span { border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 9px; background: linear-gradient(145deg, rgba(100, 245, 170, 0.15), rgba(96, 165, 250, 0.05)); }
.empty-visual span:nth-child(2n) { background: linear-gradient(145deg, rgba(167, 139, 250, 0.13), rgba(100, 245, 170, 0.04)); }
.empty-copy h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -0.04em; }
.empty-copy > p:last-child { margin: 0; color: var(--vm-muted); line-height: 1.75; }
.gpt-action-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(100, 245, 170, 0.25); border-radius: 18px; color: #e9f5ff; background: linear-gradient(135deg, rgba(100, 245, 170, 0.11), rgba(96, 165, 250, 0.05)); text-decoration: none; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.gpt-action-tile:hover { border-color: rgba(100, 245, 170, 0.48); background: rgba(100, 245, 170, 0.13); transform: translateY(-3px); }
.gpt-action-mark { width: 42px; height: 42px; overflow: hidden; border-radius: 13px; background: #fff; }
.gpt-action-tile strong, .gpt-action-tile small { display: block; }
.gpt-action-tile strong { margin-bottom: 3px; font-size: 12px; }
.gpt-action-tile small { color: #8fa4b9; font-size: 9px; }
.gpt-action-arrow { color: var(--vm-green); }

.prompts-hero { min-height: 330px; }
.prompts-empty { max-width: 760px; margin: 48px auto 0; padding: clamp(34px, 6vw, 64px); border-radius: 28px; text-align: center; }
.prompts-empty-mark { width: 68px; height: 68px; margin: 0 auto 22px; overflow: hidden; border: 1px solid rgba(100, 245, 170, 0.25); border-radius: 21px; background: #fff; box-shadow: 0 20px 50px rgba(40, 221, 131, 0.12); }
.prompts-empty h2 { margin: 0 0 12px; font-size: clamp(27px, 5vw, 42px); letter-spacing: -0.04em; }
.prompts-empty > p:last-child { max-width: 510px; margin: 0 auto; color: var(--vm-muted); line-height: 1.7; }

@keyframes vmFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vmSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes vmSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes vmPulse {
  0%, 100% { opacity: 0.75; box-shadow: 0 0 0 4px rgba(100, 245, 170, 0.07); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(100, 245, 170, 0.025); }
}

@media (max-width: 1080px) {
  .dashboard-page { --vm-sidebar-width: 268px; }
  .dashboard-page .dashboard-main { padding-inline: 28px; }
  .overview-panel { grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); }
  .orbit-ring-one { width: 235px; height: 235px; }
  .orbit-ring-two { width: 165px; height: 165px; }
  .dashboard-page .privacy-panel { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-page .privacy-links { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .snapshot-empty { grid-template-columns: 180px minmax(250px, 1fr); }
  .snapshot-empty .gpt-action-tile { grid-column: 1 / -1; width: min(100%, 430px); justify-self: center; }
}

@media (max-width: 900px) {
  .dashboard-page.menu-open { overflow: hidden; }
  .dashboard-workspace { margin-left: 0; }
  .dashboard-sidebar { width: min(86vw, 320px); padding-top: 20px; transform: translateX(-104%); transition: transform 240ms cubic-bezier(0.2, 0.75, 0.25, 1); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .navigation-backdrop { position: fixed; z-index: 45; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(1, 5, 12, 0.72); backdrop-filter: blur(4px); transition: opacity 200ms ease, visibility 200ms ease; }
  .navigation-backdrop.visible { visibility: visible; opacity: 1; }
  .mobile-topbar { position: sticky; z-index: 38; top: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid var(--vm-line); background: rgba(5, 10, 19, 0.82); backdrop-filter: blur(18px); }
  .menu-button { width: 42px; height: 42px; border-radius: 13px; }
  .menu-button span { display: block; width: 17px; height: 1.5px; margin: 2px 0; border-radius: 999px; background: currentColor; }
  .mobile-brand { justify-self: start; font-size: 16px; }
  .mobile-brand .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .mobile-credit { padding: 7px 9px; border: 1px solid rgba(100, 245, 170, 0.22); border-radius: 999px; color: #c5ffdf; background: rgba(100, 245, 170, 0.06); font-size: 10px; font-weight: 850; }
  .dashboard-page .dashboard-main { padding: 26px 22px 62px; }
  .dashboard-page .floating-notice { top: 82px; }
  .overview-panel { grid-template-columns: minmax(0, 1fr) 245px; gap: 24px; }
  .overview-panel h1 { font-size: clamp(40px, 7.5vw, 58px); }
  .hero-orbit { min-height: 270px; }
}

@media (max-width: 700px) {
  .dashboard-page .dashboard-main { padding-inline: 15px; }
  .overview-panel { display: block; padding: 28px 20px 20px; border-radius: 26px; }
  .hero-status { margin-bottom: 25px; }
  .hero-orbit { display: none; }
  .overview-panel h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-intro { font-size: 14px; }
  .dashboard-page .profile-summary { grid-template-columns: auto 1fr; margin-top: 28px; }
  .dashboard-page .profile-summary .credit-pill { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .overview-stats { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .overview-stat { padding: 14px; }
  .section-block, .dashboard-page .billing-panel, .dashboard-page .privacy-panel { margin-top: 34px; }
  .section-heading { align-items: flex-start; }
  .section-number { display: none; }
  .dashboard-page .dashboard-grid, .dashboard-page .billing-grid { grid-template-columns: 1fr; }
  .dashboard-page .account-card { min-height: 380px; }
  .dashboard-page .billing-panel { padding: 22px 16px; border-radius: 24px; }
  .dashboard-page .billing-heading { display: block; }
  .large-credit-pill { display: inline-block; margin-top: 16px; }
  .dashboard-page .billing-box { min-height: 0; padding: 22px 18px; }
  .history-heading { align-items: flex-start; }
  .dashboard-page .privacy-panel { display: grid; grid-template-columns: auto 1fr; padding: 22px 18px; }
  .security-mark { width: 48px; height: 48px; border-radius: 15px; }
  .dashboard-page .privacy-links { grid-template-columns: 1fr; }
  .dashboard-footer { flex-direction: column; gap: 6px; }
  .workspace-hero-panel { display: block; min-height: 270px; padding: 30px 22px; border-radius: 26px; }
  .workspace-hero-panel h1 { font-size: clamp(43px, 14vw, 64px); }
  .workspace-count-pill { display: inline-block; margin-top: 22px; }
  .workspace-section-heading { margin-top: 36px; }
  .snapshot-accuracy-note { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 11px 12px; }
  .snapshot-accuracy-note a { grid-column: 2; }
  .snapshot-empty { grid-template-columns: 1fr; padding: 24px 18px; }
  .empty-visual { width: min(100%, 230px); justify-self: center; }
  .snapshot-empty .gpt-action-tile { grid-column: auto; width: 100%; }
  .latest-reel-section { margin-top: 36px; }
  .latest-reel-section .workspace-section-heading { display: block; }
  .latest-reel-section .workspace-count-pill { display: inline-block; margin-top: 14px; }
  .reel-preview-grid { gap: 4px; padding: 4px; border-radius: 14px; }
  .reel-preview-tile { border-radius: 9px; }
  .reel-preview-open { padding: 5px; }
  .reel-preview-open span { padding: 4px 5px; font-size: 6.5px; }
  .snapshot-image-link { min-height: 220px; padding: 8px; }
  .snapshot-card-details { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .mobile-topbar { padding-inline: 13px; }
  .mobile-brand { font-size: 0; }
  .mobile-brand .brand-mark { margin: 0; }
  .overview-panel h1 { font-size: 40px; }
  .overview-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .overview-stat strong { font-size: 24px; }
  .dashboard-page .account-card { padding: 20px; }
  .dashboard-page .account-head { grid-template-columns: auto 1fr; }
  .platform-chip { display: none; }
  .dashboard-page .metrics { grid-template-columns: repeat(3, 1fr); }
  .dashboard-page .metric { padding-inline: 5px; }
  .dashboard-page .metric strong { font-size: 15px; }
  .dashboard-page .metric span { font-size: 9px; }
  .dashboard-page .quantity-stepper { grid-template-columns: 46px minmax(82px, 1fr) 46px; }
  .dashboard-page .credit-history-row { align-items: flex-start; flex-direction: column; }
}

@media (hover: none) {
  .interactive-panel:hover, .overview-stat:hover { transform: none; }
  .card-shine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *, .dashboard-page *::before, .dashboard-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
