/* ============================================
   ANCHOR Student Portal — Global Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-card: #2a2a2a;
  --bg-card-hover: #333333;
  --bg-input: #1e1e1e;
  --bg-sidebar: #151515;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --teal: #6AAFAB;
  --teal-dim: rgba(106, 175, 171, 0.15);
  --teal-hover: #7ec4c0;
  --gold: #C9A84C;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-hover: #d4b85e;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #787878;
  --text-dim: #555555;

  --border: #333333;
  --border-light: #3a3a3a;
  --border-teal: rgba(106, 175, 171, 0.3);
  --border-gold: rgba(201, 168, 76, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --sidebar-width: 260px;
  --topbar-height: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
}

input, textarea, select {
  font-family: var(--font-body);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.938rem;
  transition: border-color var(--transition);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

textarea { resize: vertical; min-height: 100px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23787878' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   AUTH / LOGIN SCREEN
   ============================================ */
#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg-primary);
  position: relative;
}

.auth-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(106, 175, 171, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.auth-logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.auth-logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-card p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.auth-input-group {
  margin-bottom: 20px;
}

.auth-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-input-group input {
  font-size: 1rem;
  padding: 14px 16px;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--teal-dim);
  color: var(--teal);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-teal);
}

.btn-secondary:hover {
  background: rgba(106, 175, 171, 0.25);
  border-color: var(--teal);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--teal);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.btn-teal:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(106, 175, 171, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.auth-success {
  text-align: center;
  padding: 20px 0;
}

.auth-success .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-success .icon-circle svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.auth-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

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

.auth-footer a {
  color: var(--text-muted);
}

/* ============================================
   MAIN APP SHELL
   ============================================ */
#app-shell {
  display: none;
  min-height: 100vh;
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 16px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-logo svg {
  width: 32px;
  height: 32px;
}

.topbar-logo span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}

.tab-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--teal);
  background: var(--teal-dim);
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 2px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
}

.user-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.btn-logout:hover {
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.1);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 99;
}

.mobile-nav-inner {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav .tab-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.mobile-nav .user-info-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* Tab Content */
.tab-content {
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TAB 1: DASHBOARD
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
}

/* Dashboard Sidebar */
.dash-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
}

.dash-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.dash-sidebar-header h3 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.dash-sidebar-progress {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
}

.dash-sidebar-progress .progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.dash-nav-item.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-left-color: var(--teal);
}

.dash-nav-item .nav-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dash-nav-item.active .nav-icon {
  background: var(--teal-dim);
  color: var(--teal);
}

.dash-nav-enroll {
  margin: 16px 20px 0;
}

/* Dashboard Main */
.dash-main {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  max-width: 1100px;
}

.dash-hero {
  margin-bottom: 32px;
}

.dash-hero-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dash-hero h1 {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.dash-hero p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card .stat-value.teal { color: var(--teal); }
.stat-card .stat-value.gold { color: var(--gold); }

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Module Grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0.5;
}

.module-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.module-week {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.module-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.module-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.module-progress {
  margin-top: auto;
}

.module-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.module-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
}

.module-status.not-started {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.module-status.in-progress {
  color: var(--teal);
  background: var(--teal-dim);
}

.module-status.completed {
  color: var(--gold);
  background: var(--gold-dim);
}

/* Enrollment CTA Section */
.enroll-section {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(106, 175, 171, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.enroll-section h2 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.enroll-section p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ============================================
   TAB 2: RETREAT VISION GENERATOR
   ============================================ */
.vision-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Welcome Screen */
.vision-welcome {
  text-align: center;
  padding: 60px 0;
}

.vision-welcome h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.2;
}

.vision-welcome .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 24px;
}

.vision-welcome p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Wizard Steps */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.wizard-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.wizard-step-dot.active {
  border-color: var(--teal);
  background: var(--teal-dim);
  color: var(--teal);
}

.wizard-step-dot.complete {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.wizard-step-connector {
  width: 24px;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.wizard-step-connector.complete {
  background: var(--gold);
}

/* Wizard Card */
.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.wizard-card .step-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wizard-card h2 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.wizard-card .step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.wizard-card .prompt-hint {
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 20px;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-group .field-help {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Blueprint */
.blueprint-container {
  animation: fadeIn 0.4s ease;
}

.blueprint {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blueprint-header {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(106, 175, 171, 0.1));
  padding: 40px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blueprint-header h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.blueprint-header .bp-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal);
}

.blueprint-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.blueprint-section:last-child { border-bottom: none; }

.blueprint-section h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blueprint-section p,
.blueprint-section li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.blueprint-section ul {
  list-style: none;
  padding: 0;
}

.blueprint-section ul li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.blueprint-section ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.6rem;
  top: 7px;
}

.anchor-arc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.arc-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.arc-item .arc-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.arc-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.arc-item p {
  font-size: 0.8rem;
}

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

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.pricing-card .price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blueprint-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 28px 32px;
  flex-wrap: wrap;
}

/* Saved Blueprints */
.saved-blueprints {
  margin-top: 40px;
}

.saved-blueprints h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.saved-bp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
}

.saved-bp-card:hover {
  border-color: var(--border-teal);
}

.saved-bp-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.saved-bp-card .bp-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================
   TAB 3: MARKETING HUB
   ============================================ */
.marketing-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
}

.mkt-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
}

.mkt-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mkt-sidebar-header h3 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mkt-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.mkt-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.mkt-nav-item.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-left-color: var(--teal);
}

.mkt-nav-item .nav-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.mkt-nav-item.active .nav-num {
  background: var(--teal-dim);
  color: var(--teal);
}

/* Marketing Main Content */
.mkt-main {
  flex: 1;
  padding: 32px 40px;
  max-width: 960px;
}

.mkt-tool-header {
  margin-bottom: 28px;
}

.mkt-tool-header h1 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.mkt-tool-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.form-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Output Cards */
.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.output-card h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.output-card .output-text {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-top: 10px;
}

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

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.calendar-day-header {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 0;
}

.calendar-day {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 72px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.calendar-day:hover {
  border-color: var(--border-teal);
}

.calendar-day .day-num {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.calendar-day .day-platform {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day .day-topic {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Promotion Toolkit Tabs */
.platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.platform-tab {
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.platform-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.platform-tab.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: var(--border-teal);
}

/* Countdown Timeline */
.countdown-timeline {
  position: relative;
}

.countdown-week {
  margin-bottom: 24px;
  padding-left: 32px;
  position: relative;
}

.countdown-week::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.countdown-week-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.countdown-week-header::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg-primary);
}

.countdown-week-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
}

.countdown-week-header .week-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

.countdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.countdown-item .check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.countdown-item .check.checked {
  background: var(--teal);
  border-color: var(--teal);
}

.countdown-item .check.checked::after {
  content: '✓';
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

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

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.app-footer a {
  color: var(--text-muted);
}

/* Print Styles */
@media print {
  .topbar, .dash-sidebar, .mkt-sidebar, .tab-nav,
  .wizard-nav, .blueprint-actions, .btn-primary,
  .btn-secondary, .btn-outline, .app-footer { display: none !important; }

  body { background: white !important; color: black !important; }
  .blueprint { border: 1px solid #ddd !important; }
  .blueprint-header { background: #f8f6f0 !important; }
  .blueprint-section h3 { color: #8B7B3A !important; }
  .arc-item { background: #f9f9f9 !important; border: 1px solid #ddd !important; }
  .tab-pane { display: block !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .anchor-arc-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tab-nav { display: none; }
  .hamburger { display: flex; }
  .user-email { display: none; }

  .topbar { padding: 0 16px; }

  .dash-sidebar, .mkt-sidebar { display: none; }

  .dashboard-layout, .marketing-layout {
    flex-direction: column;
  }

  .dash-main, .mkt-main {
    padding: 24px 16px;
  }

  .dash-hero h1 { font-size: 1.7rem; }

  .module-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }

  .vision-container { padding: 24px 16px; }
  .vision-welcome h1 { font-size: 1.8rem; }

  .wizard-card { padding: 24px 20px; }
  .blueprint-header { padding: 28px 20px; }
  .blueprint-section { padding: 20px; }

  .blueprint-header h1 { font-size: 1.5rem; }

  .mobile-nav.open { display: block; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.5rem; }

  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .wizard-progress { gap: 4px; }
  .wizard-step-dot { width: 32px; height: 32px; font-size: 0.65rem; }
  .wizard-step-connector { width: 12px; }
}
