:root {
  --bg: #faf8ff;
  --panel: #ffffff;
  --border: #cfb7ff;
  --text: #111827;
  --muted: #6b7280;
  --blue: #3b82f6;
  --green: #16a34a;
  --purple: #7c3aed;
  --purple-2: #9b5cff;
  --shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.brand-row,
.platform-header,
.mock-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-pill {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: white;
  font-weight: 800;
}

.primary-btn,
.secondary-btn,
.link-btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  border-radius: 18px;
  transition: transform 0.12s ease;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: white;
  padding: 14px 22px;
  box-shadow: var(--shadow);
}

.primary-btn.large {
  padding: 16px 28px;
  font-size: 18px;
}

.secondary-btn {
  background: white;
  color: var(--purple);
  border: 2px solid var(--border);
  padding: 14px 18px;
}

.link-btn {
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  font-weight: 800;
}

.success-banner {
  margin: 16px 0 0;
  background: rgba(22, 163, 74, 0.12);
  border: 2px solid rgba(22, 163, 74, 0.2);
  color: var(--green);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.loading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(124, 58, 237, 0.18);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #dbeafe;
  color: #2563eb;
}

.avatar.dark {
  background: #111827;
  color: white;
}

.avatar.gradient {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
  color: white;
}

.avatar-photo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.mock-name {
  font-weight: 800;
}

.mock-sub {
  font-size: 13px;
  color: #6b7280;
}

.mock-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin: 14px 0 12px;
}

.mock-actions {
  color: #6b7280;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: 12px;
}

.linkedin-mock,
.x-mock,
.instagram-mock {
  background: #fff;
}

.preview-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #111827;
}

.counter {
  margin: 10px 0 18px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* =========================
   Nebula Login Redesign
   ========================= */

.login-nebula-page {
  min-height: 100vh;
  background: #f6effd;
  color: #2f2340;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-nebula-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 40px;
}

.login-nebula-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.login-nebula-brand-mini {
  font-size: 18px;
  font-weight: 800;
  color: #6f3ee8;
  letter-spacing: -0.02em;
}

.login-nebula-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  color: #5a476f;
  font-size: 13px;
  text-decoration: none;
}

.top-signup-btn {
  border: none;
  background: #7b42f6;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(123, 66, 246, 0.18);
}

.login-nebula-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.login-nebula-left {
  min-width: 0;
}

.login-nebula-copy h1 {
  margin: 0 0 18px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #34214d;
}

.nebula-gradient-text {
  background: linear-gradient(90deg, #6d38f2 0%, #9c47f9 55%, #4d66ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-nebula-copy p {
  max-width: 430px;
  margin: 0 0 28px;
  color: #6a5b7e;
  font-size: 15px;
  line-height: 1.55;
}

.nebula-card-cluster {
  position: relative;
  width: 430px;
  height: 210px;
  margin-bottom: 26px;
}

.social-mini-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(126, 84, 241, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(79, 53, 135, 0.12);
}

.social-x-card {
  width: 150px;
  height: 70px;
  top: 14px;
  left: 0;
  padding: 12px 14px;
}

.social-instagram-card {
  width: 150px;
  height: 140px;
  top: 40px;
  left: 72px;
  padding: 12px;
  transform: rotate(3deg);
  background: #f9f1ff;
}

.social-linkedin-card {
  width: 170px;
  height: 86px;
  top: 62px;
  left: 170px;
  padding: 12px 14px;
  transform: rotate(-2deg);
}

.social-mini-title {
  font-size: 12px;
  font-weight: 800;
  color: #4c3a61;
  margin-bottom: 10px;
}

.social-mini-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-mini-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b38cff, #d7c4ff);
}

.social-mini-lines span:nth-child(1) {
  width: 80%;
}

.social-mini-lines span:nth-child(2) {
  width: 68%;
}

.social-mini-lines span:nth-child(3) {
  width: 56%;
}

.social-mini-photo {
  width: 68px;
  height: 88px;
  border-radius: 6px;
  margin: 10px auto 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=300&q=80") center/cover no-repeat;
  box-shadow: 0 10px 24px rgba(83, 57, 132, 0.14);
}

.nebula-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nebula-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4c3a61;
  font-size: 14px;
  font-weight: 600;
}

.nebula-feature-star {
  color: #7b42f6;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.login-nebula-right {
  display: flex;
  justify-content: center;
}

.nebula-auth-card {
  width: 100%;
  max-width: 380px;
  background: #fffdfa;
  border-radius: 24px;
  padding: 34px 30px 22px;
  box-shadow: 0 18px 50px rgba(76, 43, 125, 0.12);
}

.nebula-auth-card h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: #3b2850;
}

.nebula-auth-sub {
  text-align: center;
  color: #746487;
  font-size: 13px;
  margin: 0 0 18px;
}

.nebula-google-btn {
  width: 100%;
  border: none;
  background: #f1e4ff;
  color: #432f5b;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.google-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  background: #5d3ef0;
  color: #ffd76a;
  font-size: 11px;
  font-weight: 900;
}

.nebula-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.nebula-divider span {
  height: 1px;
  flex: 1;
  background: #eadff7;
}

.nebula-divider em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #836f99;
  letter-spacing: 0.03em;
}

.nebula-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nebula-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nebula-field label {
  font-size: 12px;
  font-weight: 800;
  color: #5a456f;
}

.nebula-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: 11px;
  font-weight: 700;
  color: #7b42f6;
  text-decoration: none;
}

.nebula-field input {
  width: 100%;
  border: none;
  background: #f3e8ff;
  color: #47355d;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
}

.nebula-field input::placeholder {
  color: #b09cc7;
}

.nebula-signin-btn {
  width: 100%;
  margin-top: 2px;
  border: none;
  color: white;
  background: linear-gradient(90deg, #7b42f6, #9b70ff);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(123, 66, 246, 0.22);
}

.nebula-create-link {
  border: none;
  background: transparent;
  color: #7b42f6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.nebula-legal {
  margin: 18px 0 0;
  text-align: center;
  color: #88799b;
  font-size: 10px;
  line-height: 1.5;
}

.nebula-legal a {
  color: #5b44d8;
  text-decoration: none;
}

/* =========================
   Dashboard
   ========================= */

.dashboard-page {
  background: #f7f7fb;
  color: #111827;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 22px;
  min-height: 100vh;
}

.dashboard-sidebar {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.08);
  align-self: start;
  position: sticky;
  top: 18px;
}

.sidebar-brand-clean {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.sidebar-brand-title {
  font-size: 20px;
  font-weight: 800;
}

.sidebar-brand-sub {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.clean-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clean-step {
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  text-align: left;
}

.clean-step:hover {
  background: #f5f3ff;
  color: #4f46e5;
}

.clean-step.active {
  background: #eef2ff;
  color: #2563eb;
}

.clean-step.completed {
  background: #ecfdf3;
  color: #15803d;
}

.clean-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-main {
  min-width: 0;
}

.compose-hero,
.editor-step-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.compose-title {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.compose-subtitle {
  margin: 0 0 26px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.compose-grid-modern {
  display: grid;
  grid-template-columns: 1.25fr 0.65fr;
  gap: 26px;
  align-items: start;
}

.compose-editor-card,
.upload-modern-card,
.modern-publish-card,
.soft-summary-card {
  background: #ffffff;
  border-radius: 22px;
}

.clean-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111827;
}

.master-editor-modern {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  outline: none;
  background: #fcfcff;
}

.master-editor-modern:focus,
.platform-text:focus,
select:focus,
input[type="datetime-local"]:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.compose-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.goal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.goal-chip {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.goal-chip:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}

.goal-chip.active {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #c7d2fe;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
}

.modern-platform-row {
  margin-top: 18px;
}

.platform-toggle {
  display: inline-block;
  cursor: pointer;
}

.platform-toggle input {
  display: none;
}

.platform-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  transition: all 0.18s ease;
}

.platform-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.linkedin-dot {
  background: #0a66c2;
}

.x-dot {
  background: #111111;
}

.instagram-dot {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
}

.platform-toggle input:checked + .platform-toggle-pill {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
}

.platform-toggle input:not(:checked) + .platform-toggle-pill {
  opacity: 0.72;
}

.compose-actions-modern {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.generate-ai-btn {
  border: none;
  border-radius: 18px;
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.22);
}

.generate-ai-btn:hover {
  transform: translateY(-1px);
}

.upload-modern-card {
  padding: 22px;
  border: 1px solid #ecebff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  min-height: auto;
  align-self: start;
}

.upload-modern-head h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.normal {
  font-weight: 500;
}

.upload-modern-dropzone {
  height: 120px;
  border-radius: 20px;
  border: 1.5px dashed #d8ccff;
  background: #fcfbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.upload-modern-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-modern-plus {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: white;
  background: #4f46e5;
  margin-bottom: 14px;
}

.upload-modern-text {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 6px;
}

.upload-modern-subtext {
  font-size: 14px;
  color: #9ca3af;
}

.upload-preview-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.uploaded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.upload-preview-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.72);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.platform-text {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  background: #fcfcff;
  line-height: 1.6;
  font-size: 15px;
  outline: none;
}

.platform-text.readonly {
  background: #f9fafb;
  color: #6b7280;
}

.step-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.regenerate-btn {
  white-space: nowrap;
}

.editor-three-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

.text-col {
  min-width: 0;
}

.draft-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-label {
  margin-bottom: 0;
}

.edited-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #c7d2fe;
}

.ai-refine-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fafaff;
  border: 1px solid #ecebff;
}

.ai-refine-title {
  font-size: 13px;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 10px;
}

.ai-refine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.refine-chip {
  border: 1px solid #ddd6fe;
  background: white;
  color: #4f46e5;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.refine-chip:hover {
  background: #f5f3ff;
}

.preview-wide-card {
  background: #ffffff;
  border: 1px solid #ecebff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

.action-row.between {
  justify-content: space-between;
}

.publish-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 20px;
}

.selector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.selector-card select,
.schedule-row input[type="datetime-local"] {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fcfcff;
  outline: none;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.soft-summary-card {
  border: 1px solid #ecebff;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.soft-summary-card h3 {
  margin-top: 0;
}

.dashboard-page {
  background: #f7effc;
}

.dashboard-sidebar,
.compose-hero,
.editor-step-card {
  background: #ffffff;
  border: 1px solid rgba(126, 84, 241, 0.08);
  box-shadow: 0 12px 30px rgba(74, 46, 120, 0.06);
}

.compose-title {
  font-size: 30px;
  color: #41285c;
}

.compose-subtitle {
  color: #736585;
  font-size: 16px;
}

.nebula-compose-grid {
  grid-template-columns: 1.15fr 0.58fr;
  gap: 18px;
  align-items: stretch;
}

.nebula-surface-card {
  background: #ffffff;
  border: 1px solid rgba(126, 84, 241, 0.08);
  box-shadow: 0 10px 24px rgba(74, 46, 120, 0.04);
  border-radius: 20px;
  padding: 18px;
}

.compose-editor-card.nebula-surface-card {
  display: flex;
  flex-direction: column;
}

.compose-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.compose-card-meta {
  font-size: 12px;
  font-weight: 700;
  color: #8a78a0;
  background: #f3e8ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.master-editor-modern {
  min-height: 250px;
  height: 100%;
  border-radius: 18px;
  background: #fcfbff;
  border: 1px solid #e6dbfb;
}

.upload-modern-card {
  min-height: 100%;
}

.upload-modern-dropzone {
  height: 100%;
  min-height: 250px;
  border-radius: 18px;
  background: #fcfbff;
  border: 1.5px dashed #d8ccff;
}

.compose-meta-stack-nebula {
  margin-top: 20px;
  gap: 20px;
}

.goal-block,
.post-platform-block {
  background: #ffffff;
  border: 1px solid rgba(126, 84, 241, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(74, 46, 120, 0.04);
}

.rich-goal-chip-row {
  gap: 12px;
}

.goal-chip {
  background: #ffffff;
  border: 1px solid #e2d7f4;
  color: #4c3a61;
  padding: 10px 15px;
  font-size: 14px;
}

.goal-chip.active {
  background: #f0e8ff;
  color: #6f3ee8;
  border-color: #c9b0ff;
  box-shadow: none;
}

.platform-toggle-pill {
  background: #ffffff;
  border: 1px solid #e2d7f4;
  color: #4c3a61;
}

.platform-toggle input:checked + .platform-toggle-pill {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1d4ed8;
  box-shadow: none;
}

.compose-actions-modern {
  margin-top: 0;
}

.generate-ai-btn {
  border-radius: 16px;
  padding: 16px 26px;
  font-size: 17px;
  background: linear-gradient(90deg, #7b42f6, #9b70ff);
  box-shadow: 0 12px 24px rgba(123, 66, 246, 0.20);
}

@media (max-width: 1100px) {
  .nebula-compose-grid {
    grid-template-columns: 1fr;
  }

  .upload-modern-dropzone {
    min-height: 180px;
  }
}

/* =========================
   Connections Nebula Redesign
   ========================= */

   .connections-nebula-page {
    min-height: 100vh;
    background: #f7effc;
    color: #3b2850;
  }
  
  .connections-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px 18px;
  }
  
  .connections-topbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 84, 241, 0.08);
  }
  
  .connections-brand {
    font-size: 14px;
    font-weight: 900;
    color: #7a43f2;
  }
  
  .connections-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .connections-nav a {
    text-decoration: none;
    color: #6f6182;
    font-size: 13px;
    font-weight: 600;
    position: relative;
  }
  
  .connections-nav a.active {
    color: #6f3ee8;
    font-weight: 800;
  }
  
  .connections-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: #7b42f6;
  }
  
  .connections-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7a43f2;
    font-size: 14px;
  }
  
  .connections-main {
    padding: 28px 18px 22px;
  }
  
  .connections-hero h1 {
    margin: 0 0 8px;
    font-size: 52px;
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: #41285c;
  }
  
  .connections-hero p {
    margin: 0 0 28px;
    color: #736585;
    font-size: 16px;
  }
  
  .nebula-success {
    margin-bottom: 18px;
  }
  
  .connections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .connection-card,
  .connection-request-card {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 84, 241, 0.08);
    border-radius: 18px;
    padding: 18px;
    min-height: 180px;
    box-shadow: 0 10px 24px rgba(74, 46, 120, 0.06);
  }
  
  .connection-card-disabled {
    opacity: 0.78;
  }
  
  .connection-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  
  .connection-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f1e5ff;
    color: #7a43f2;
    flex-shrink: 0;
  }
  
  .platform-logo-svg {
    width: 18px;
    height: 18px;
    display: block;
  }
  
  .instagram-box .platform-logo-svg {
    width: 16px;
    height: 16px;
  }
  
  .connection-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
  }
  
  .connection-status-pill.connected {
    background: #daf4d7;
    color: #2a8d2e;
  }
  
  .connection-status-pill.not-connected {
    background: #f1d9ff;
    color: #9547d8;
  }
  
  .connection-status-pill.soon {
    background: #f3b3ff;
    color: #7b2ecb;
  }
  
  .connection-status-pill.beta {
    background: #d9b9ff;
    color: #6a35d8;
  }
  
  .connection-card-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #46315e;
  }
  
  .connection-card-body p {
    margin: 0 0 20px;
    color: #847692;
    font-size: 13px;
    line-height: 1.4;
    max-width: 220px;
  }
  
  .connection-primary-btn,
  .connection-secondary-btn,
  .connection-disabled-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
  
  .connection-primary-btn {
    color: white;
    background: linear-gradient(90deg, #7b42f6, #9b70ff);
    box-shadow: 0 8px 18px rgba(123, 66, 246, 0.20);
  }
  
  .connection-secondary-btn {
    color: #7a43f2;
    background: #f0e2ff;
  }
  
  .connection-disabled-btn {
    color: #c1a9d6;
    background: transparent;
    border: 1px dashed #e1cfff;
    cursor: not-allowed;
  }
  
  .connection-request-card {
    border: 2px dashed #e2cffd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
  }
  
  .request-platform-plus {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eddcff;
    color: #7a43f2;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .request-platform-text {
    color: #6f5f82;
    font-size: 16px;
    font-weight: 700;
  }
  
  .connections-bottom-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
  }
  
  .connections-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, #20003d, #250048);
    box-shadow: 0 12px 24px rgba(35, 0, 70, 0.24);
  }
  
  .connections-footer {
    margin-top: 40px;
    background: rgba(233, 216, 248, 0.65);
    border-top: 1px solid rgba(126, 84, 241, 0.08);
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
  
  .connections-footer-brand {
    color: #7a43f2;
    font-size: 14px;
    font-weight: 900;
  }
  
  .connections-footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
  }
  
  .connections-footer-links a {
    color: #6d5d82;
    text-decoration: none;
    font-size: 12px;
  }
  
  .connections-footer-copy {
    color: #7f7092;
    font-size: 12px;
    text-align: right;
  }
  
  @media (max-width: 1024px) {
    .connections-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .connections-hero h1 {
      font-size: 42px;
    }
  
    .connections-footer {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .connections-footer-copy {
      text-align: center;
    }
  }
  
  @media (max-width: 720px) {
    .connections-nav {
      display: none;
    }
  
    .connections-grid {
      grid-template-columns: 1fr;
    }
  
    .connections-hero h1 {
      font-size: 34px;
    }
  
    .connections-bottom-action {
      justify-content: stretch;
    }
  
    .connections-dashboard-btn {
      width: 100%;
      justify-content: center;
    }
  }

  .platform-logo-header {
    background: #f3e8ff;
    color: #7a43f2;
  }
  
  .platform-logo-header .platform-logo-svg {
    width: 18px;
    height: 18px;
  }
  
  .linkedin-header-logo {
    color: #0a66c2;
  }
  
  .x-header-logo {
    color: #111111;
  }
  
  .instagram-header-logo {
    color: #c13584;
  }
  
  .refine-chip.active {
    background: #f0e8ff;
    color: #6f3ee8;
    border-color: #c9b0ff;
  }

  .platform-header.big {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .platform-logo-large {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
  }

/* =========================
   Publish Step Redesign
   ========================= */

   .publish-nebula-step {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  
  .publish-step-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  
  .publish-step-title {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #41285c;
    margin: 0;
  }
  
  .publish-back-link {
    border: none;
    background: transparent;
    color: #6f3ee8;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
  }
  
  .publish-simple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 920px;
  }
  
  .publish-now-card,
  .schedule-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(126, 84, 241, 0.08);
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(74, 46, 120, 0.06);
  }
  
  .publish-now-card {
    padding: 40px 30px;
    background: linear-gradient(180deg, #6d3fe8, #5b2fd7);
    color: white;
    box-shadow: 0 18px 38px rgba(91, 47, 215, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .publish-now-icon {
    font-size: 42px;
    margin-bottom: 18px;
  }
  
  .publish-now-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
  }
  
  .publish-now-card p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.55;
    max-width: 260px;
  }
  
  .publish-live-btn {
    width: 100%;
    max-width: 250px;
    border: none;
    border-radius: 999px;
    padding: 16px 18px;
    background: white;
    color: #6d3fe8;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }
  
  .schedule-card {
    padding: 30px 28px;
    background: #e7d6fa;
  }
  
  .schedule-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  
  .schedule-card-title h3 {
    margin: 0;
    font-size: 20px;
    color: #46315e;
  }
  
  .schedule-icon {
    font-size: 22px;
  }
  
  .schedule-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #746487;
    margin-bottom: 8px;
  }
  
  .schedule-input {
    width: 100%;
    border: none;
    background: #fffdfa;
    color: #524163;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    margin-bottom: 16px;
  }
  
  .schedule-suggestion {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.26);
    color: #6d54a0;
    border-radius: 16px;
    padding: 14px 14px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 18px;
  }
  
  .schedule-btn {
    width: 100%;
    border: 2px solid #7040eb;
    background: transparent;
    color: #7040eb;
    border-radius: 999px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }
  
  @media (max-width: 980px) {
    .publish-simple-grid {
      grid-template-columns: 1fr;
    }
  
    .publish-step-topbar {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }
  }

  .publish-targets-block {
    margin-top: 22px;
    margin-bottom: 28px;
    text-align: center;
  }
  
  .publish-targets-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.95;
  }
  
  .publish-targets-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .publish-target-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
  }
  
  .publish-target-empty {
    font-size: 0.95rem;
    opacity: 0.85;
  }

  .publish-targets-block {
    margin-top: 22px;
    margin-bottom: 28px;
    text-align: center;
  }
  
  .publish-targets-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.95;
  }
  
  .publish-targets-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .publish-target-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
  }
  
  .publish-target-empty {
    font-size: 0.95rem;
    opacity: 0.85;
  }