:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --fg: #e8e8ed;
  --fg-muted: #8a8a9a;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --accent-light: #ff8f66;
  --surface: #1a1a26;
  --surface-border: #2a2a3a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  /* Extra top padding to clear fixed nav (60px height) */
  padding: 160px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #fff;
}

.hero .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--surface-border);
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 24px;
  background: var(--bg-subtle);
}

.problem-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 56px;
  max-width: 600px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.problem-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
}

.problem-icon {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== HOW ===== */
.how {
  padding: 100px 24px;
}

.how-inner {
  max-width: 800px;
  margin: 0 auto;
}

.how-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 64px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

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

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 53, 0.25);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ===== PACKAGES ===== */
.packages {
  padding: 100px 24px;
  background: var(--bg-subtle);
}

.packages-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.packages h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 56px;
  text-align: center;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.package {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
}

.package.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.1);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.package-tier {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

.package-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.package ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package li {
  font-size: 0.92rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.package li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.package.featured li::before {
  opacity: 1;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.25;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  line-height: 1.7;
}

.closing-niches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.niche {
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.3s;
}

.niche:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--surface-border);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== SITE NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  padding: 8px 18px;
  font-size: 0.88rem;
  border: 1px solid var(--surface-border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 48px 40px;
}

.auth-header { margin-bottom: 32px; }

.auth-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.auth-sub { color: var(--fg-muted); font-size: 0.95rem; }

.auth-error {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.form-group input {
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--fg-muted); opacity: 0.6; }

.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 24px;
}

.auth-link { color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* ===== APP LAYOUT (DASHBOARD) ===== */
.app-body {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border-right: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  padding: 24px 24px 20px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--surface-border);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-display);
  font-weight: 500;
}
.sidebar-link:hover { background: var(--surface); color: var(--fg); }
.sidebar-link.active { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(255, 107, 53, 0.2); }

.sidebar-icon { font-size: 0.85rem; opacity: 0.8; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--surface-border);
}

.sidebar-user { margin-bottom: 12px; }
.sidebar-user-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--fg); }
.sidebar-user-tier { font-size: 0.78rem; color: var(--accent); margin-top: 2px; }

.btn-logout {
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

.app-main {
  flex: 1;
  margin-left: 240px;
  padding: 40px 48px;
  min-height: 100vh;
}

.app-header {
  margin-bottom: 36px;
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.app-subtitle { color: var(--fg-muted); font-size: 0.95rem; }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 24px 20px;
}

.stat-card-accent {
  border-color: rgba(255, 107, 53, 0.3);
  background: var(--accent-glow);
}

.stat-card-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-card-label { font-size: 0.82rem; color: var(--fg-muted); }

/* ===== DASHBOARD GRID ===== */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px;
}

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

.panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.panel-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}
.panel-link:hover { text-decoration: underline; }

.empty-state {
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 16px 0;
}

/* ===== CALENDAR LIST ===== */
.cal-list { display: flex; flex-direction: column; gap: 12px; }

.cal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  transition: border-color 0.2s;
}
.cal-item:hover { border-color: rgba(255, 107, 53, 0.25); }

.cal-item-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 44px;
  text-align: center;
}

.cal-item-body { flex: 1; min-width: 0; }

.cal-item-title {
  font-size: 0.88rem;
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cal-item-meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== FULL CALENDAR ===== */
.cal-full-list { display: flex; flex-direction: column; gap: 0; }

.cal-month-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 8px;
}

.cal-item-full {
  margin-bottom: 8px;
}

.cal-item-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cal-day {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.cal-weekday {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-item-status { margin-left: auto; }

.cal-notes {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ===== TAGS & BADGES ===== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag-platform {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.tag-type {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
  border: 1px solid var(--surface-border);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.badge-scheduled, .badge-pending { background: rgba(138, 138, 154, 0.15); color: var(--fg-muted); }
.badge-in_progress, .badge-in\ progress { background: rgba(255, 200, 80, 0.15); color: #ffc850; }
.badge-completed, .badge-published { background: rgba(72, 199, 142, 0.15); color: #48c78e; }
.badge-draft { background: rgba(80, 120, 255, 0.12); color: #8099ff; }

/* Status dots (mini circle indicators) */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-scheduled { background: var(--fg-muted); }
.status-published { background: #48c78e; }
.status-draft { background: #8099ff; }
.status-in_progress { background: #ffc850; }

/* ===== DELIVERABLES ===== */
.del-list { display: flex; flex-direction: column; gap: 10px; }

.del-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 10px;
  border: 1px solid var(--surface-border);
}

.del-item-full { margin-bottom: 10px; }

.del-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.del-status-completed { background: rgba(72, 199, 142, 0.15); color: #48c78e; }
.del-status-in_progress { background: rgba(255, 200, 80, 0.15); color: #ffc850; }
.del-status-pending { background: rgba(138, 138, 154, 0.1); color: var(--fg-muted); }

.del-body { flex: 1; min-width: 0; }
.del-title { font-size: 0.9rem; color: var(--fg); font-weight: 500; margin-bottom: 3px; }
.del-desc { font-size: 0.83rem; color: var(--fg-muted); margin-bottom: 4px; }
.del-due { font-size: 0.78rem; color: var(--fg-muted); }
.del-completed { font-size: 0.78rem; color: #48c78e; }
.del-meta-row { display: flex; gap: 12px; }

.del-group { margin-bottom: 28px; }

.del-group-header {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-border);
}

/* ===== LEGEND ===== */
.legend-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ===== EMPTY PANEL ===== */
.empty-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ===== PACKAGES CTA (landing) ===== */
.package-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.package-cta:hover { background: var(--accent-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .problem-grid,
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem,
  .how,
  .packages,
  .closing {
    padding: 64px 20px;
  }

  .step {
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .closing-niches {
    gap: 8px;
  }

  .niche {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  /* App layout */
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
  }

  .sidebar-brand { padding: 0; border-bottom: none; margin-right: 16px; }
  .sidebar-nav { flex-direction: row; padding: 0; gap: 8px; flex: 1; }
  .sidebar-footer { display: none; }

  .app-body { flex-direction: column; }
  .app-main { margin-left: 0; padding: 24px 16px; }

  .dash-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}