/* ═══════════════════════════════════════════════════════════════
   ChromaStage Studio v3.0 — "Aurora" Design System
   Spectacular · Glass · Effortless
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Deep space palette */
  --bg-0: #05070d;
  --bg-1: #0b101c;
  --bg-2: #131a2b;
  --panel: rgba(19, 26, 43, 0.62);
  --panel-solid: #131a2b;
  --panel-hover: rgba(30, 41, 59, 0.72);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --muted: #94a3b8;

  /* Brand spectrum */
  --primary: #6d6df8;
  --primary-deep: #4f46e5;
  --primary-hover: #818cf8;
  --primary-gradient: linear-gradient(135deg, #6d6df8 0%, #8b5cf6 48%, #d946ef 100%);
  --accent: #ec4899;
  --accent-cyan: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  /* Glow & shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 24px rgba(109, 109, 248, 0.45);
  --glow-cyan: 0 0 18px rgba(34, 211, 238, 0.45);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-thai: "Prompt", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.studio-body {
  font-family: var(--font-thai);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 96px; /* space for sticky bottom bar */
}

/* ═══════════ Aurora — animated cinematic backdrop ═══════════ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 65% at 50% -12%, #101a33 0%, transparent 60%),
    var(--bg-0);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.42;
  will-change: transform;
}

.aurora-1 {
  width: 46vw; height: 46vw;
  left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.75), transparent 68%);
  animation: drift1 34s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 40vw; height: 40vw;
  right: -10vw; top: 18vh;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.5), transparent 68%);
  animation: drift2 42s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 44vw; height: 44vw;
  left: 24vw; bottom: -22vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 68%);
  animation: drift3 38s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, -9vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -5vh) scale(1.08); } }

/* Faint horizon grid — studio floor feel */
.aurora-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ═══════════ Studio Top Header ═══════════ */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  font-size: 27px;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.75));
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-4deg); }
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(110deg, #a5b4fc 15%, #e879f9 45%, #67e8f9 75%, #a5b4fc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  animation: brandSheen 7s linear infinite;
}
@keyframes brandSheen { to { background-position: -220% 0; } }

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2.5px 7px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

/* Job Banner in Header */
.job-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
}
.job-banner.hidden { display: none !important; }
.job-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 2.4s infinite;
}
.job-label { color: var(--muted); }
#job-id-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
  font-weight: 600;
}
.btn-new-job {
  background: transparent;
  border: none;
  color: #818cf8;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.btn-new-job:hover { color: #c7d2fe; }

/* ═══ Mode Switcher — center header segmented pill ═══ */
.mode-tabs-header {
  display: flex;
  align-items: center;
  background: rgba(13, 18, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: transparent;
  border: none;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow:
    0 2px 14px rgba(109, 109, 248, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-0.5px);
}

.mode-tab-icon { font-size: 16px; }

/* ═══ Right Utility Bar ═══ */
.studio-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-tool-btn, .wiki-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(19, 26, 43, 0.6);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.studio-tool-btn:hover, .wiki-pill:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ═══ Studio Main Container (2-column grid) ═══ */
.studio-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.studio-left-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.studio-right-panel { position: relative; }

.studio-canvas-sticky {
  position: sticky;
  top: 78px;
}

/* ═══ Sticky Bottom Action Bar ═══ */
.studio-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 12px 24px;
}

.bottom-bar-inner {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.summary-pill-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(19, 26, 43, 0.7);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
}

.chip-label { color: var(--muted); }
.chip-val {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chip-val.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

/* Readiness chip — what's missing before render */
.readiness-chip {
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--muted);
  transition: all 0.25s ease;
}
.readiness-chip .readiness-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.readiness-chip.is-ready {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}
.readiness-chip.is-ready .readiness-dot {
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: pulseDot 2s infinite;
}

/* ═══ The Hero CTA ═══ */
.render-cta-btn {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 14px;
  background: var(--primary-gradient);
  background-size: 160% 160%;
  box-shadow: 0 4px 22px rgba(109, 109, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-family: inherit;
}

/* light sweep across the CTA */
.render-cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: ctaSheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaSheen { 55%, 100% { transform: translateX(120%); } }

.render-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 34px rgba(109, 109, 248, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background-position: 100% 100%;
}

.render-cta-btn:active { transform: translateY(0) scale(0.98); }

.render-cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Ready state — everything uploaded, glowing invitation */
.render-cta-btn.is-ready {
  animation: ctaGlow 2.4s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(109, 109, 248, 0.5), inset 0 1px 0 rgba(255,255,255,0.22); }
  50% { box-shadow: 0 6px 40px rgba(217, 70, 239, 0.55), 0 2px 20px rgba(34, 211, 238, 0.4), inset 0 1px 0 rgba(255,255,255,0.22); }
}

/* Shake — clicked while prerequisites missing */
.render-cta-btn.shake { animation: ctaShake 0.4s ease; }
@keyframes ctaShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: rgba(19, 26, 43, 0.65);
  color: var(--text);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  font-family: inherit;
}

.btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(109, 109, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(109, 109, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.btn-xl { padding: 16px 36px; font-size: 17px; border-radius: 15px; }

.link-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.link-btn:hover { color: var(--accent-cyan); }

/* ═══ Modals ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden { display: none !important; }

.modal-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(15, 20, 34, 0.92)), var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.12);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.modal-body { padding: 24px; }

/* Studio Footer */
.studio-footer {
  text-align: center;
  padding: 26px 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

/* ═══ Animations ═══ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Logo as link */
a.studio-logo { text-decoration: none; }

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbars */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.45); }

/* ═══ Toasts (aria-live region) ═══ */
.toast-region {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: min(92vw, 480px);
}

.toast {
  padding: 10px 18px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: rgba(19, 26, 43, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { border-color: rgba(52, 211, 153, 0.55); background: rgba(6, 78, 59, 0.95); }
.toast-error { border-color: rgba(248, 113, 113, 0.55); background: rgba(127, 29, 29, 0.95); }
.toast-warning { border-color: rgba(251, 191, 36, 0.55); background: rgba(120, 53, 15, 0.95); }

/* ═══ Floating render progress pill ═══ */
.render-floating-pill {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: rgba(10, 14, 24, 0.95);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.render-floating-pill.show { opacity: 1; transform: translateY(0); }
.render-floating-pill.hidden { display: none; }

/* ═══ Styled confirm dialog ═══ */
.confirm-overlay { z-index: 1500; }
.confirm-card { max-width: 420px; }
.confirm-body { text-align: center; padding: 28px 24px 20px; }
.confirm-icon { font-size: 34px; margin-bottom: 8px; }
.confirm-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.confirm-message {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}
.confirm-actions { display: flex; justify-content: center; gap: 10px; }

.btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}
.btn-danger:hover { box-shadow: 0 6px 26px rgba(239, 68, 68, 0.6); }

/* ═══ Quickstart template chips ═══ */
.quickstart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  overflow-x: auto;
  scrollbar-width: thin;
}

.quickstart-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #a5b4fc;
  white-space: nowrap;
}

.quickstart-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.quickstart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 26, 43, 0.85);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}
.quickstart-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.quickstart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

/* skeleton chips while templates load */
.chip-skeleton {
  flex-shrink: 0;
  width: 96px;
  height: 29px;
  border-radius: 99px;
  background: linear-gradient(100deg, rgba(148, 163, 184, 0.1) 30%, rgba(148, 163, 184, 0.22) 50%, rgba(148, 163, 184, 0.1) 70%);
  background-size: 200% 100%;
  animation: skeletonWave 1.4s linear infinite;
}
@keyframes skeletonWave { to { background-position: -200% 0; } }

/* ═══ Global drop overlay — drop a file anywhere ═══ */
.global-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.15s ease-out;
  pointer-events: none;
}
.global-drop-overlay .gdo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 64px;
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(129, 140, 248, 0.8);
  background: rgba(19, 26, 43, 0.7);
  box-shadow: 0 0 80px rgba(99, 102, 241, 0.35);
  text-align: center;
}
.gdo-icon { font-size: 52px; animation: logoFloat 1.6s ease-in-out infinite; }
.gdo-title { font-size: 20px; font-weight: 800; color: var(--text); }
.gdo-sub { font-size: 13.5px; color: var(--muted); }

/* ═══ Confetti — render success celebration ═══ */
.confetti-piece {
  position: fixed;
  top: -14px;
  width: 8px;
  height: 14px;
  z-index: 3000;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0.95;
  animation: confettiFall var(--d, 2.4s) cubic-bezier(0.2, 0.55, 0.45, 1) forwards;
}
@keyframes confettiFall {
  to { transform: translate(var(--x, 0), 106vh) rotate(var(--r, 540deg)); opacity: 0.85; }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-blob { animation: none !important; }
}

/* Mode tab short labels (mobile.css toggles) */
.mode-short { display: none; }

/* [hidden] attribute must win over .quickstart-bar's display:flex */
.quickstart-bar[hidden] { display: none !important; }
