*, *::before, *::after { box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

/* ── Landing shared ── */
.accent {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #c084fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(7,1,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,58,237,0.12);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: #e2d9f3; letter-spacing: -0.03em;
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 10rem 2rem 5rem;
  max-width: 900px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 999px; padding: 6px 18px;
  color: #c4b5fd; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(124,58,237,0.2), inset 0 1px 0 rgba(167,139,250,0.15);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.04em; color: #e2d9f3;
  margin: 0 0 1.4rem;
}

.hero-sub {
  color: rgba(149,117,205,0.85);
  font-size: 1.1rem; line-height: 1.7;
  max-width: 560px; margin: 0 0 2.5rem;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.btn-hero {
  width: auto !important; padding: 0 40px !important;
  height: 58px !important; font-size: 1rem !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #7c3aed 100%) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 3s ease infinite !important;
  box-shadow: 0 8px 48px rgba(124,58,237,0.55), 0 0 0 1px rgba(167,139,250,0.2) !important;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-note { color: rgba(107,91,149,0.55); font-size: 0.78rem; margin: 0; }

/* ── App preview mockup ── */
.app-preview {
  margin-top: 4rem;
  width: 100%; max-width: 680px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.15),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(124,58,237,0.15),
    0 0 160px rgba(124,58,237,0.08);
}

.preview-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(124,58,237,0.12);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.preview-url {
  color: rgba(107,91,149,0.5); font-size: 0.72rem;
}

.preview-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.preview-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px; padding: 16px;
}

.preview-tag {
  display: inline-flex; align-items: center;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 999px; padding: 2px 10px;
  color: #c4b5fd; font-size: 0.75rem; font-weight: 600;
}

.preview-comment-text {
  background: rgba(0,0,0,0.2);
  border-left: 2px solid rgba(124,58,237,0.4);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px; color: rgba(196,181,253,0.65);
  font-size: 0.83rem; line-height: 1.6; font-style: italic;
  margin: 8px 0;
}

.preview-reply-box {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px; padding: 10px 14px;
  color: #c4b5fd; font-size: 0.83rem; line-height: 1.6;
}

.preview-btn-pub {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px; padding: 6px 16px;
  color: #6ee7b7; font-size: 0.75rem; font-weight: 600;
}

.preview-btn-sec {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px; padding: 6px 12px;
  color: #9575cd; font-size: 0.75rem;
}

.preview-btn-pri {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(91,33,182,0.3));
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 8px; padding: 6px 16px;
  color: #c4b5fd; font-size: 0.75rem; font-weight: 600;
}

/* ── Stats bar ── */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 700px; margin: 0 auto 5rem;
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px; padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(124,58,237,0.08), inset 0 1px 0 rgba(167,139,250,0.08);
}

.stat-item { text-align: center; flex: 1; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 6px;
}

.stat-label { color: rgba(107,91,149,0.8); font-size: 0.78rem; }

.stat-divider {
  width: 1px; height: 40px;
  background: rgba(124,58,237,0.2); flex-shrink: 0;
}

/* ── Sections ── */
.section {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto 6rem;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #7c3aed;
  font-weight: 700; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: #e2d9f3;
  letter-spacing: -0.03em; line-height: 1.15;
  margin: 0 0 3rem;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px; padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.15), 0 0 0 1px rgba(124,58,237,0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: #e2d9f3; margin: 0 0 8px;
}

.feature-card p {
  color: rgba(149,117,205,0.75);
  font-size: 0.875rem; line-height: 1.65; margin: 0;
}

/* ── Steps ── */
.steps { display: flex; align-items: center; gap: 0; }

.step { display: flex; align-items: flex-start; gap: 20px; flex: 1; }

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: rgba(124,58,237,0.3); line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: #e2d9f3; margin: 0 0 8px;
}

.step-content p {
  color: rgba(149,117,205,0.75);
  font-size: 0.875rem; line-height: 1.65; margin: 0;
}

.step-line {
  width: 60px; height: 1px; flex-shrink: 0;
  background: linear-gradient(to right, rgba(124,58,237,0.4), rgba(124,58,237,0.1));
  margin: 0 8px;
}

/* ── Pricing ── */
.pricing-sub {
  color: rgba(149,117,205,0.75); font-size: 0.95rem;
  margin: -1.5rem 0 2.5rem; text-align: center;
}

.pricing-note {
  text-align: center; margin-top: 2rem;
  color: rgba(107,91,149,0.65); font-size: 0.85rem;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 680px; margin: 0 auto;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
}

.pricing-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 8px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
}

.pricing-featured {
  background: rgba(124,58,237,0.08);
  position: relative;
  border: none;
  padding: 33px 29px;
}

.pricing-featured::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa, #5b21b6, #c084fc);
  background-size: 300% 300%;
  animation: borderGradient 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pricing-featured:hover { box-shadow: 0 8px 48px rgba(124,58,237,0.25); }

.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 999px;
}

.pricing-name {
  color: rgba(107,91,149,0.8); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: #e2d9f3; line-height: 1; margin: 4px 0;
}

.pricing-period { color: rgba(107,91,149,0.7); font-size: 0.83rem; margin-bottom: 20px; }

.pricing-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}

.pricing-list li {
  color: rgba(196,181,253,0.8); font-size: 0.875rem;
  display: flex; align-items: center; gap: 8px;
}

.pricing-list li::before { content: '✓'; color: #7c3aed; font-weight: 700; }

/* ── Final CTA ── */
.final-cta {
  position: relative; z-index: 1;
  text-align: center; padding: 6rem 2rem 7rem;
  max-width: 700px; margin: 0 auto;
}

.final-cta::before {
  content: '';
  position: absolute; inset: -2px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

.final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800; color: #e2d9f3;
  letter-spacing: -0.03em; margin: 0 0 12px;
}

.final-cta p { color: rgba(149,117,205,0.75); font-size: 1rem; margin: 0 0 8px; }

/* ── Footer ── */
.landing-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem;
  border-top: 1px solid rgba(124,58,237,0.1);
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: #e2d9f3;
}

.landing-footer p { color: rgba(107,91,149,0.5); font-size: 0.8rem; margin: 6px 0 0; }

/* ── Responsive landing ── */
@media (max-width: 768px) {
  .landing-nav { padding: 1rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: flex-start; gap: 24px; }
  .step-line { width: 2px; height: 30px; background: linear-gradient(to bottom, rgba(124,58,237,0.4), rgba(124,58,237,0.1)); margin: 0 0 0 20px; }
  .stats-bar { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
}


body {
  background: #07010f;
  color: #e2d9f3;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(139,92,246,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(79,70,229,0.14) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.45;
}

.app-container {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 0 1.8rem 5rem;
}

/* ── Dashboard two-column layout ── */
.dash-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.dash-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}
.dash-sidebar::-webkit-scrollbar { display: none; }

.dash-main { flex: 1; min-width: 0; }

.dash-sidebar .metrics {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.2rem;
}
.dash-sidebar .metric-value { font-size: 1.55rem; }
.dash-sidebar .metric-card { padding: 12px 14px 10px; }

.dash-sidebar .search-bar { flex-direction: column; }
.dash-sidebar .search-bar .btn { width: 100%; flex: none; }
.dash-sidebar .search-bar .btn:first-child { height: auto; min-height: 42px; padding: 10px 16px; line-height: 1.3; }

.dash-sidebar .bulk-actions { flex-direction: column; gap: 6px; }
.dash-sidebar .bulk-actions .btn { flex: none; width: 100%; }

@media (max-width: 920px) {
  .dash-layout { flex-direction: column; gap: 0; }
  .dash-sidebar { width: 100%; position: static; max-height: none; overflow-y: visible; }
  .dash-sidebar .metrics { grid-template-columns: repeat(4, 1fr); }
  .dash-sidebar .metric-value { font-size: 2rem; }
  .dash-sidebar .metric-card { padding: 16px 18px 14px; }
  .dash-sidebar .search-bar { flex-direction: row; }
  .dash-sidebar .search-bar .btn { width: auto; flex: 1; }
  .dash-sidebar .bulk-actions { flex-direction: row; }
  .dash-sidebar .bulk-actions .btn { flex: 1; width: auto; }
}

::-webkit-scrollbar { width: 5px; background: #07010f; }
::-webkit-scrollbar-thumb { background: #3b0764; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* ── Welcome ── */
.welcome-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  position: relative; z-index: 1;
}

.welcome-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px; padding: 6px 16px;
  color: #a78bfa; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 2rem;
}

.welcome-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7c3aed; animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.welcome-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800; color: #e2d9f3;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 1.2rem;
}

.welcome-logo-accent { color: #7c3aed; }

.welcome-sub {
  color: rgba(149,117,205,0.85); font-size: 1.05rem;
  line-height: 1.7; max-width: 420px;
  margin: 0 auto 2.2rem;
}

.welcome-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  width: 100%; max-width: 300px;
}

.demo-note { color: rgba(107,91,149,0.5); font-size: 0.72rem; margin: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; font-size: 0.83rem;
  letter-spacing: 0.02em; transition: all 0.22s;
  height: 42px; padding: 0 20px; cursor: pointer;
  text-decoration: none; border: none;
  font-family: 'Inter', sans-serif;
}

.btn-large {
  height: 56px; font-size: 1rem; letter-spacing: 0.15em;
  border-radius: 14px; width: 100%;
  box-shadow: 0 8px 40px rgba(124,58,237,0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 28px rgba(124,58,237,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.28); color: #9575cd;
}

.btn-secondary:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.55); color: #e2d9f3;
}

.btn-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7;
}

.btn-icon { width: 42px; padding: 0; flex: 0 0 42px !important; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── Header ── */
.tr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 0 1.4rem;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  margin-bottom: 2rem;
}

.tr-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  color: #e2d9f3; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}

.tr-logo-accent { color: #7c3aed; }

.tr-sub {
  font-size: 0.65rem; color: rgba(107,91,149,0.75);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 3px; font-weight: 500;
}

.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 999px; padding: 3px 12px;
  color: #fbbf24; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-left: 12px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  margin-bottom: 1.8rem;
}

.tab-btn {
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  color: rgba(107,91,149,0.8); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 12px 26px; margin-bottom: -1px;
  cursor: pointer; transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active { color: #e2d9f3; border-bottom-color: #7c3aed; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Metrics ── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,58,237,0.18);
  border-top: 2px solid #7c3aed;
  border-radius: 14px; padding: 16px 18px 14px;
  transition: border-color 0.2s;
}

.metric-card:hover { border-color: rgba(124,58,237,0.4); border-top-color: #8b5cf6; }
.metric-label { color: rgba(107,91,149,0.85); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.metric-value { color: #e2d9f3; font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }

/* ── Mode selector ── */
.mode-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #7c3aed; font-weight: 700; margin-bottom: 8px; }

.mode-selector {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px;
}

.mode-btn {
  flex: 1; text-align: center; padding: 9px 16px;
  border-radius: 8px; font-size: 0.83rem; font-weight: 600;
  color: rgba(107,91,149,0.9); cursor: pointer;
  transition: all 0.2s; background: transparent; border: none;
  font-family: 'Inter', sans-serif;
}

.mode-btn.active { background: rgba(124,58,237,0.28); color: #e2d9f3; }

/* ── Batch ── */
.batch-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(107,91,149,0.8); font-weight: 700; margin-bottom: 6px; }

.batch-selector { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.batch-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 8px; color: rgba(107,91,149,0.8);
  font-size: 0.83rem; font-weight: 600; padding: 6px 14px;
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}

.batch-btn.active { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.45); color: #e2d9f3; }

/* ── Search / Bulk ── */
.search-bar { display: flex; gap: 8px; margin-bottom: 1rem; }
.search-bar .btn:first-child { flex: 1; }
.bulk-actions { display: flex; gap: 8px; margin-bottom: 1rem; }
.bulk-actions .btn { flex: 1; }

/* ── Comment Cards ── */
.comments-list { display: flex; flex-direction: column; gap: 12px; }

.comment-card {
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 16px; padding: 1.3rem 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(6px);
}

.comment-card:hover { border-color: rgba(124,58,237,0.38); box-shadow: 0 4px 32px rgba(124,58,237,0.1); }

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

.author-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 999px; padding: 3px 12px 3px 8px;
  color: #c4b5fd; font-weight: 600; font-size: 0.78rem;
}

.author-tag.replied { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.28); color: #6ee7b7; }

.video-link {
  color: #6b5b95; font-size: 0.78rem; text-decoration: none;
  border: 1px solid rgba(107,91,149,0.3); border-radius: 6px; padding: 3px 8px;
}

.comment-text {
  background: rgba(0,0,0,0.2);
  border-left: 2px solid rgba(124,58,237,0.45);
  border-radius: 0 10px 10px 0; padding: 12px 16px;
  color: rgba(196,181,253,0.65); font-size: 0.875rem;
  line-height: 1.7; margin: 10px 0; font-style: italic;
}

.reply-ai {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 10px; padding: 12px 16px;
  color: #c4b5fd; font-size: 0.875rem; line-height: 1.65; margin: 8px 0;
}

.reply-sent {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 10px; padding: 12px 16px;
  color: #6ee7b7; font-size: 0.875rem; line-height: 1.65; margin: 8px 0;
}

.reply-textarea {
  width: 100%; background: rgba(0,0,0,0.25); color: #e2d9f3;
  border: 1px solid rgba(124,58,237,0.25); border-radius: 10px;
  font-size: 0.875rem; line-height: 1.65; padding: 10px 14px;
  resize: vertical; min-height: 80px; font-family: 'Inter', sans-serif;
  margin: 8px 0;
}

.reply-textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124,58,237,0.18); outline: none; }

.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.card-actions .btn { flex: 1; }

/* ── Style tab ── */
.style-tab h3 { color: #e2d9f3; margin: 0 0 6px; }
.style-tab p { color: rgba(107,91,149,0.8); font-size: 0.875rem; margin-bottom: 16px; }

.style-textarea {
  width: 100%; background: rgba(0,0,0,0.25); color: #e2d9f3;
  border: 1px solid rgba(124,58,237,0.25); border-radius: 10px;
  font-size: 0.875rem; line-height: 1.65; padding: 14px;
  resize: vertical; min-height: 200px; font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.style-textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124,58,237,0.18); outline: none; }

.style-textarea-tall { min-height: 420px; margin-bottom: 0; }

.style-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: stretch;
}
.style-col { display: flex; flex-direction: column; padding: 0 20px; }
.style-col:first-child { padding-left: 0; }
.style-col:last-child { padding-right: 0; }
.style-col h3 { margin-bottom: 6px; }
.style-col .style-textarea { flex: 1; }

.preset-chip {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 20px;
  color: rgba(232,224,240,0.75);
  font-size: 0.72rem;
  padding: 4px 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.preset-chip:hover {
  background: rgba(124,58,237,0.22);
  border-color: rgba(124,58,237,0.55);
  color: #e2d9f3;
}

.style-col-divider {
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.35) 15%, rgba(124,58,237,0.35) 85%, transparent);
  width: 1px;
  align-self: stretch;
}

@media (max-width: 680px) {
  .style-columns { grid-template-columns: 1fr; }
  .style-col-divider { display: none; }
  .style-col { padding: 0; }
}

/* ── Divider ── */
.divider { border: none; height: 1px; background: linear-gradient(to right, transparent, rgba(124,58,237,0.25), transparent); margin: 1rem 0; }

/* ── Tutorial ── */
.tut-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(124,58,237,0.07); border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px; padding: 18px 20px;
}
.tut-card strong { display: block; color: #e2d9f3; margin-bottom: 6px; font-size: 0.95rem; }
.tut-card p { color: rgba(232,224,240,0.6); font-size: 0.84rem; line-height: 1.6; margin: 0; }
.tut-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800;
  color: rgba(124,58,237,0.5); flex-shrink: 0; width: 32px; padding-top: 2px;
}

/* ── Wizard ── */
.wiz-progress {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 24px;
}
.wiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  transition: all 0.3s;
}
.wiz-dot-active {
  background: #7c3aed; border-color: #7c3aed;
  width: 24px; border-radius: 4px;
}

.wiz-mode-card {
  display: flex; gap: 14px; align-items: center;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.wiz-mode-card strong { display: block; color: #e2d9f3; font-size: 0.9rem; margin-bottom: 2px; }
.wiz-mode-card p { color: rgba(232,224,240,0.55); font-size: 0.78rem; margin: 0; line-height: 1.4; }
.wiz-mode-icon { font-size: 1.5rem; flex-shrink: 0; }
.wiz-mode-featured { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.12); }

.wiz-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(124,58,237,0.05);
  border-radius: 10px; padding: 10px 14px;
  color: rgba(232,224,240,0.8); font-size: 0.83rem; line-height: 1.5;
}
.wiz-tip-num {
  color: #7c3aed; font-weight: 800; font-size: 0.75rem;
  flex-shrink: 0; padding-top: 2px;
}

/* ── Wizard header button ── */
.btn-wizard-header {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 20px;
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.btn-wizard-header:hover {
  background: rgba(124,58,237,0.25);
  border-color: #7c3aed;
  color: #e2d9f3;
}
@media (max-width: 680px) { .btn-wizard-header { display: none; } }

/* ── Onboarding ── */
.ob-cat {
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.28);
  border-radius: 20px; color: rgba(232,224,240,0.75); font-size: 0.8rem;
  padding: 6px 14px; cursor: pointer; transition: all 0.15s;
}
.ob-cat:hover { background: rgba(124,58,237,0.2); color: #e2d9f3; }
.ob-cat-active {
  background: rgba(124,58,237,0.35) !important;
  border-color: #7c3aed !important; color: #fff !important;
}

/* ── Alerts ── */
.alert { border-radius: 12px; border: 1px solid; font-size: 0.875rem; padding: 12px 16px; margin: 8px 0; }
.alert-info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); color: #93c5fd; }
.alert-warning { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); color: #fde68a; }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #fca5a5; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 12px; padding: 12px 20px;
  color: #6ee7b7; font-size: 0.875rem; font-weight: 500;
  z-index: 1000; transform: translateY(100px); opacity: 0; transition: all 0.3s;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── Spinner ── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(124,58,237,0.3); border-top-color: #7c3aed;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}

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

/* ── Empty state ── */
.empty-state { text-align: center; padding: 3rem 2rem; color: rgba(107,91,149,0.6); }
.empty-state p { margin: 8px 0; font-size: 0.9rem; }

/* ── Particles canvas ── */
#particles-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; z-index: 0;
  pointer-events: none;
}

/* ── Buy credits modal ── */
.buy-pack-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.buy-pack-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.5);
}
.buy-pack-featured {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.13);
}
.bpb-name { color: #e8e0f0; font-weight: 600; font-size: 0.9rem; flex: 1; text-align: left; }
.bpb-credits { color: rgba(232,224,240,0.5); font-size: 0.78rem; }
.bpb-price { color: #a78bfa; font-weight: 700; font-size: 1rem; min-width: 36px; text-align: right; }

/* ── Profile chip ── */
.profile-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 12px; padding: 7px 14px;
  cursor: default; max-width: 220px;
}
.profile-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.profile-name {
  color: #e2d9f3; font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}
.profile-credits-badge {
  color: #a78bfa; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
}

/* ── Toggle switch ── */
.toggle-switch {
  position: relative; display: inline-block;
  width: 44px; height: 24px; cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px; transition: 0.25s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(124,58,237,0.7); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Scheduler interval buttons ── */
.sched-btn {
  padding: 4px 12px; font-size: 0.75rem;
  border: 1px solid rgba(124,58,237,0.25);
  background: rgba(0,0,0,0.2);
  color: rgba(232,224,240,0.6);
  border-radius: 20px; cursor: pointer; transition: all 0.15s;
}
.sched-btn:hover { border-color: rgba(124,58,237,0.5); color: #e2d9f3; }
.sched-btn.active {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.5);
  color: #e2d9f3;
}

/* ── Auto mode warning modal ── */
.auto-warn-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: rgba(232,224,240,0.8);
  padding: 8px 0; border-bottom: 1px solid rgba(124,58,237,0.1);
}
.auto-warn-check:last-child { border-bottom: none; }
.auto-warn-credit-badge {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 8px; padding: 1px 8px;
  color: #c4b5fd; font-weight: 700; font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .app-container { padding: 0 1rem 5rem; }
  #btn-search { font-size: 0.75rem; padding: 0 12px; }
  .batch-btn { padding: 5px 9px; font-size: 0.78rem; }
}
