/* ── APP NAV ── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

/* ── APP LAYOUT ── */
.app-main {
  min-height: 100vh;
  padding-bottom: 4rem;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 560px;
}

.cal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* ── GENERATOR LAYOUT ── */
.gen-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── FORM ELEMENTS ── */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pill:hover {
  border-color: rgba(255, 77, 0, 0.4);
  color: var(--fg);
}

.pill.active {
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.12);
  color: var(--accent);
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.btn-generate {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

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

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.btn-primary-sm:hover { opacity: 0.85; }

.btn-calendar {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 77, 0, 0.4);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-calendar:hover {
  background: rgba(255, 77, 0, 0.08);
  border-color: var(--accent);
}

/* ── RESULTS ── */
.gen-results-panel {
  min-height: 400px;
}

.result-error {
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #ff6666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.formula-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 77, 0, 0.1);
  border: 1px solid rgba(255, 77, 0, 0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
}

.formula-label {
  color: var(--accent);
  font-weight: 600;
}

.result-section {
  margin-bottom: 2rem;
}

.result-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-count {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
}

/* Hooks */
.hooks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hook-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.hook-item:hover {
  border-color: rgba(255, 77, 0, 0.25);
}

.hook-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  min-width: 24px;
}

.hook-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--fg); }

/* Captions */
.captions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.caption-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1rem;
}

.caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.caption-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Hashtags */
.hashtags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.hashtag-chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-secondary);
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
}

.copy-all-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-all-btn:hover { color: var(--fg); border-color: rgba(255,255,255,0.25); }

/* Script box */
.script-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.copy-btn-abs {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Empty state */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  color: var(--fg-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-sub {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-cancel {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.btn-cancel:hover { color: var(--fg); }

.btn-confirm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-confirm:hover { opacity: 0.85; }

/* ── CALENDAR ── */
.cal-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.legend-item {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.platform-ig { background: rgba(225, 48, 108, 0.15); color: #e1306c; border: 1px solid rgba(225,48,108,0.3); }
.platform-tt { background: rgba(105, 201, 208, 0.15); color: #69c9d0; border: 1px solid rgba(105,201,208,0.3); }
.platform-yt { background: rgba(255, 0, 0, 0.12); color: #ff4444; border: 1px solid rgba(255,0,0,0.3); }

.status-planned { background: rgba(255,255,255,0.05); color: var(--fg-muted); border: 1px solid rgba(255,255,255,0.1); }
.status-drafted { background: rgba(255,140,0,0.12); color: var(--accent-secondary); border: 1px solid rgba(255,140,0,0.3); }
.status-posted  { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }

.cal-add-form {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.cal-add-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.add-entry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.add-entry-row .form-input-sm {
  flex: 1;
  min-width: 120px;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}

.cal-day {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-height: 120px;
}

.cal-day-today {
  border-color: rgba(255, 77, 0, 0.35);
  background: rgba(255, 77, 0, 0.04);
}

.cal-day-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cal-weekday {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.cal-date-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.today-dot {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 0.2rem;
}

.cal-slots {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cal-slot {
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

/* Platform colors for slots */
.cal-slot.platform-instagram { background: rgba(225, 48, 108, 0.1); border-color: rgba(225,48,108,0.25); }
.cal-slot.platform-tiktok    { background: rgba(105, 201, 208, 0.1); border-color: rgba(105,201,208,0.25); }
.cal-slot.platform-youtube-shorts { background: rgba(255, 0, 0, 0.08); border-color: rgba(255,0,0,0.2); }

/* Status overlays */
.cal-slot.status-posted { opacity: 0.6; }

.slot-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.slot-platform {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.slot-sport {
  font-size: 0.68rem;
  color: var(--fg-muted);
  font-weight: 600;
}

.slot-type {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: capitalize;
  margin-bottom: 0.3rem;
}

.slot-notes {
  font-size: 0.68rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 0.3rem;
  opacity: 0.75;
}

.slot-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.35rem;
}

.status-select {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  padding: 0.2rem 0.35rem;
  outline: none;
  cursor: pointer;
}

.slot-delete {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.slot-delete:hover { opacity: 1; color: #ff4444; }

.cal-day-empty {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.35;
  text-align: center;
  padding-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gen-layout {
    grid-template-columns: 1fr;
  }

  .cal-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .cal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .add-entry-row {
    flex-direction: column;
  }

  .add-entry-row .form-input-sm {
    width: 100%;
  }
}

/* ── PRICING PAGE ── */
.landing-nav-btn--outline {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
.landing-nav-btn--outline:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: var(--fg) !important;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.plan-badge {
  display: inline-block;
  background: rgba(255,77,0,0.15);
  border: 1px solid rgba(255,77,0,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.plan-period {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}
.plan-features li {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.plan-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  opacity: 0.6;
}

/* ── CHECKOUT SUCCESS ── */
.success-wrapper {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
}
.success-icon {
  font-size: 3rem;
  color: var(--green, #00ff88);
  margin-bottom: 1.5rem;
}
.success-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.success-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}
.success-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2.5rem;
}
.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--fg);
}
