/* Arcana Channel Launchpad — 6th Mode UI (Mobile-First 390x844+ & Desktop 1280x800+) */
body.arcana-launchpad-active > *:not(#launchpadWorkspace):not(#arcane-avatar-btn):not(#arcane-account-backdrop):not(#arcane-upgrade-modal):not(#arcane-admin-codes-modal):not(#arcane-auth-gate):not(.arcane-modal-overlay) {
  visibility: hidden;
}

#launchpadWorkspace.lp-hidden {
  display: none !important;
}

#launchpadWorkspace {
  position: fixed;
  inset: 0;
  z-index: 4120;
  height: 100dvh;
  background: radial-gradient(circle at top left, #131d36 0%, #0b0f1a 48%, #070910 100%);
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

#launchpadWorkspace *,
#launchpadWorkspace *::before,
#launchpadWorkspace *::after {
  box-sizing: border-box;
}

.lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 66px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 15, 26, 0.94);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.lp-top-left,
.lp-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #a7f3d0;
  white-space: nowrap;
}

.lp-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 20, 34, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  flex-shrink: 0;
}

.lp-subnav-btn {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-subnav-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
}

.lp-main {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.lp-card {
  background: #121725;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-sub {
  font-size: 13.5px;
  color: #b4bcc8;
  line-height: 1.48;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.lp-badge.ok {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

.lp-badge.warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fde68a;
}

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

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

.lp-input,
.lp-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0e18;
  color: #f9fafb;
  font-size: 14px;
  font-family: inherit;
}

.lp-input:focus,
.lp-select:focus {
  outline: none;
  border-color: #38bdf8;
}

.lp-color-input {
  width: 100%;
  height: 44px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0e18;
  cursor: pointer;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-chip-btn {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.lp-chip-btn:hover {
  border-color: #38bdf8;
  color: #fff;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.lp-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.lp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lp-btn.sm {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.lp-btn.primary {
  background: linear-gradient(135deg, #7c5cff, #06b6d4);
  border: none;
  color: #fff;
}

.lp-btn.green {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
}

.lp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Brand Kit Output Blocks */
.lp-kit-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-name-card,
.lp-bio-card,
.lp-topic-item {
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-name-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

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

.lp-bio-text {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0b0e18;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

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

/* Channel Art Preview & YouTube Safe-Zone Overlay */
.lp-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lp-art-card {
  padding: 12px;
  border-radius: 12px;
  background: #0b0e18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-art-card.wide {
  grid-column: 1 / -1;
}

.lp-avatar-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.lp-avatar-circle {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.lp-avatar-square {
  width: 148px;
  height: 148px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-yt-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #05070d;
}

.lp-yt-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Exact YouTube 2560x1440 overlays: Desktop strip = 2560x423 (29.375% height), Mobile safe = 1546x423 (60.39% width x 29.375% height) */
.lp-yt-desktop-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 35.3125%;
  height: 29.375%;
  border-top: 1.5px dashed rgba(56, 189, 248, 0.85);
  border-bottom: 1.5px dashed rgba(56, 189, 248, 0.85);
  background: rgba(56, 189, 248, 0.08);
  pointer-events: none;
}

.lp-yt-mobile-box {
  position: absolute;
  left: 19.805%;
  width: 60.39%;
  top: 35.3125%;
  height: 29.375%;
  border: 2px solid #10b981;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.lp-yt-safe-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.92);
  color: #04130d;
}

.lp-banner-img {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
  object-fit: cover;
}

/* Platform Setup & Monetization Checklist */
.lp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-tab {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-tab.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(6, 182, 212, 0.22));
  color: #fff;
}

.lp-prog-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.lp-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transition: width 200ms ease-out;
}

.lp-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  min-height: 48px;
}

.lp-check-row.done {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.36);
}

.lp-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #10b981;
  flex-shrink: 0;
  cursor: pointer;
}

.lp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(18px);
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 5400;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: calc(100vw - 24px);
  text-align: center;
}

.lp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .lp-topbar {
    padding: 8px 56px 8px 10px;
  }
  .lp-pill {
    display: none;
  }
  .lp-main {
    padding: 12px 10px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .lp-btn.sm,
  .lp-subnav-btn,
  .lp-chip-btn {
    min-height: 44px;
  }
  .lp-row-2,
  .lp-row-3,
  .lp-bio-grid,
  .lp-topic-grid,
  .lp-art-grid {
    grid-template-columns: 1fr;
  }
  .lp-actions .lp-btn {
    flex: 1 1 auto;
  }
}
