/* DTS 1126 v2 — Brain2-inspired editorial × Diamond You Navy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
  --bg:        #03091e;
  --bg-2:      #060d25;
  --bg-card:   #0b1432;
  --bg-hover:  #111d45;
  --gold:      #d4af37;
  --gold-l:    #e6c265;
  --gold-d:    #b8940e;
  --gold-dim:  rgba(212,175,55,.12);
  --gold-line: rgba(212,175,55,.25);
  --text:      #e8edf5;
  --text-2:    #a8b5cc;
  --muted:     #6b7a99;
  --border:    rgba(255,255,255,.07);
  --border-g:  rgba(212,175,55,.18);
  --purple:    #7c3aed;
  --green:     #34c759;
  --radius:    12px;
  --radius-l:  20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scroll progress bar ── */
.progress-scroll {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l));
  transition: width .1s;
}

/* ── Login overlay ── */
.login-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(3,9,30,.97);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.login-overlay.active { opacity: 1; pointer-events: auto; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-g);
  border-radius: var(--radius-l);
  padding: 40px 36px;
  max-width: 480px; width: 100%;
  box-shadow: 0 0 60px rgba(212,175,55,.2), 0 30px 60px rgba(0,0,0,.5);
}
.login-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.login-eyebrow::before { content:''; width:24px; height:1px; background:var(--gold); }
.login-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--text); margin-bottom: 8px;
}
.login-sub { font-size: .9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 28px; }
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: .83rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-input {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .95rem;
  outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--gold-line); }
.form-input::placeholder { color: var(--muted); }
.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #03091e; border: none; border-radius: var(--radius);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: .5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.login-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; }
.login-err { color: #f87171; font-size: .83rem; margin-top: 8px; display: none; }

/* ── Site header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3,9,30,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 80px);
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.site-wordmark {
  font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 900;
  color: var(--text); letter-spacing: 1.5px; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.site-wordmark .gem { color: var(--gold); }
.site-tag {
  font-family: 'Outfit', sans-serif; font-size: .78rem;
  font-weight: 600; letter-spacing: 1.5px; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-line);
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}

/* ── Main container ── */
.site-main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px); }

/* ── Hero ── */
.hero { padding-bottom: 60px; border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.eyebrow {
  font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: 2px; color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content:''; width:32px; height:1px; background: var(--gold); }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  line-height: 1.2; color: var(--text); margin-bottom: 20px;
}
.hero h1 em { color: var(--gold-l); font-style: italic; }
.hero-lead {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.8;
  max-width: 560px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-hero-primary {
  padding: 12px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #03091e; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s, transform .2s;
}
.btn-hero-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-hero-secondary {
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid var(--border-g);
  color: var(--gold-l); font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: var(--gold-dim); }

/* ── Progress strip ── */
.progress-strip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--text-2); margin-bottom: 8px;
}
.progress-meta strong { color: var(--gold); font-family: 'Outfit', sans-serif; font-size: 1rem; }
.progress-bar-bg {
  height: 6px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 99px; width: 0%;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
  transition: width .5s ease;
}

/* ── Roadmap ── */
.roadmap-header { margin-bottom: 48px; }
.roadmap-header .eyebrow { margin-bottom: 12px; }
.roadmap-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text); margin-bottom: 10px;
}
.roadmap-header p { font-size: .95rem; color: var(--text-2); line-height: 1.7; }

/* ── Week section ── */
.week-section { margin-bottom: 56px; }
.week-header {
  display: flex; align-items: flex-start; gap: 20px;
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.week-number {
  font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--gold-dim); border: 1px solid var(--gold-line);
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
  margin-top: 3px;
}
.week-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--text); margin-bottom: 4px;
}
.week-info p { font-size: .88rem; color: var(--text-2); line-height: 1.6; }

/* ── Day item ── */
.day-list { list-style: none; }
.day-item { border-bottom: 1px solid var(--border); }
.day-item:last-child { border-bottom: none; }
.day-link {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; text-decoration: none; color: inherit;
  transition: background .15s;
  border-radius: var(--radius);
  position: relative;
}
.day-link:hover { padding-left: 12px; padding-right: 8px; background: var(--bg-hover); }
.day-link.completed .day-num { background: rgba(52,199,89,.15); border-color: rgba(52,199,89,.4); color: var(--green); }
.day-link.completed .day-title-text { color: var(--text-2); }
.day-num {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--gold); background: var(--gold-dim);
  border: 1px solid var(--gold-line); border-radius: 10px;
}
.day-copy { flex: 1; min-width: 0; }
.day-title-text {
  font-size: .98rem; font-weight: 600; color: var(--text);
  display: block; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.day-desc-text { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.day-badge {
  flex-shrink: 0; font-size: .75rem; font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.day-badge.done {
  background: rgba(52,199,89,.12); border: 1px solid rgba(52,199,89,.3);
  color: var(--green);
}
.day-badge.pending {
  background: var(--gold-dim); border: 1px solid var(--gold-line);
  color: var(--gold);
}

/* ── User greeting ── */
.user-greeting {
  display: none; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--text-2);
  background: var(--gold-dim); border: 1px solid var(--gold-line);
  padding: 8px 16px; border-radius: 99px; margin-bottom: 32px;
  width: fit-content;
}
.user-greeting.visible { display: flex; }
.user-greeting strong { color: var(--gold); }

/* ── Day page specific ── */
.day-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.day-nav a {
  font-size: .85rem; color: var(--text-2); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all .2s;
}
.day-nav a:hover { border-color: var(--border-g); color: var(--gold); }
.day-hero { margin-bottom: 40px; }
.day-hero .eyebrow { margin-bottom: 12px; }
.day-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--text);
  line-height: 1.3; margin-bottom: 12px;
}
.day-hero .day-lead { font-size: .95rem; color: var(--text-2); line-height: 1.7; }

/* ── Content sections ── */
.section-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 28px 28px;
  margin-bottom: 20px;
}
.section-label {
  font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.section-label::before { content:''; width:16px; height:1px; background:var(--gold); }
.section-title {
  font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 14px;
}
.journal-textarea {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .93rem; line-height: 1.7;
  resize: vertical; outline: none; min-height: 100px;
  transition: border-color .2s;
}
.journal-textarea:focus { border-color: var(--border-g); }
.journal-input-line {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .93rem;
  outline: none; transition: border-color .2s;
}
.journal-input-line:focus { border-color: var(--border-g); }
.callout {
  border-left: 3px solid var(--gold);
  padding: 14px 18px; margin: 16px 0;
  background: var(--gold-dim); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .93rem; color: var(--text-2); line-height: 1.7;
}
.callout strong { color: var(--gold-l); }
.framework-box {
  background: rgba(212,175,55,.08); border: 1px solid var(--border-g);
  border-radius: var(--radius); padding: 16px 20px; margin: 16px 0;
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-align: center;
}
.quote-card {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(212,175,55,.08));
  border: 1px solid var(--gold-line); border-radius: var(--radius-l);
  padding: 28px; margin-bottom: 20px;
}
.quote-byline {
  font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.quote-byline::before { content:''; width:20px; height:1px; background:var(--gold); }
.quote-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.2rem; color: var(--gold-l); line-height: 1.7;
}
.zen-player {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 16px;
}
.play-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  border: none; border-radius: 50%; cursor: pointer; color: #03091e;
  font-size: .9rem; transition: transform .2s;
}
.play-btn:hover { transform: scale(1.08); }
.player-info { flex: 1; min-width: 0; }
.player-name { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.player-status { font-size: .78rem; color: var(--muted); }
.player-timer { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-l); }
.tib-controls { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tib-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-2); padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; cursor: pointer; transition: all .15s;
}
.tib-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.mini-audio { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mini-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--gold-line);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .7rem; flex-shrink: 0; transition: all .15s;
}
.mini-play:hover { background: var(--gold); color: #03091e; }
.mini-label { font-size: .8rem; color: var(--muted); }

/* ── Complete section ── */
.complete-section { text-align: center; padding: 40px 0 60px; }
.btn-complete {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 48px; border-radius: 99px;
  background: linear-gradient(135deg, #e5ba48, var(--gold), #b88e28);
  color: #03091e; border: none;
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 8px 30px rgba(212,175,55,.35);
  transition: all .25s;
}
.btn-complete:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,175,55,.5); }
.bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(3,9,30,.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 12px 24px;
  display: flex; justify-content: center;
}

/* ── Celebration modal ── */
.modal-bg {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(3,9,30,.97); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-bg.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border-g);
  border-radius: var(--radius-l); padding: 40px; max-width: 500px; width: 100%;
  text-align: center; box-shadow: 0 0 60px rgba(212,175,55,.25);
}
.modal-gem { font-size: 4rem; color: var(--gold); margin-bottom: 20px; animation: glow 3s infinite; }
@keyframes glow { 0%,100%{text-shadow:0 0 20px var(--gold)}50%{text-shadow:0 0 40px var(--gold-l), 0 0 60px var(--gold)} }
.modal-title { font-family:'Playfair Display',serif; font-size:1.9rem; color:var(--gold-l); margin-bottom:8px; }
.modal-sub { font-size:.95rem; color:var(--text-2); margin-bottom:10px; }
.modal-quote { font-family:'Playfair Display',serif; font-style:italic; font-size:1rem; color:var(--text-2); margin-bottom:24px; line-height:1.6; }
.btn-modal {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #03091e; border: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; cursor: pointer;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(16px, 5vw, 80px);
  text-align: center; color: var(--muted); font-size: .82rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }

@media(max-width:640px){
  .hero h1{font-size:1.75rem}
  .login-card{padding:28px 20px}
  .section-card{padding:20px}
  .day-title-text{white-space:normal}
  .day-link.completed .day-num,.day-num{width:38px;height:38px;font-size:.88rem}
}