:root { --green: #03472d; --green2: #002f1d; --gold: #d1a12e; --gold-light: #f0d278; --paper: #f7f3e9; --surface: #fffbf2; --line: #e1d8c6; }
.journey-shell { max-width: 1440px; min-height: 80vh; margin: auto; padding: clamp(46px, 6vw, 84px) clamp(20px, 5vw, 72px) 90px; }
.journey-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; margin-bottom: 30px; }
.journey-hero h1 { margin: 0; color: var(--green2); font: 400 clamp(3rem, 5.5vw, 5rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
.journey-hero h1 em { color: var(--gold); font-weight: 400; }
.journey-hero > div:first-child > p:last-child { max-width: 650px; margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.journey-sync { display: flex; align-items: center; gap: 12px; min-width: 235px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 11px; }
.journey-sync > span { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb,var(--green) 10%,transparent); }
.journey-sync div { display: grid; gap: 4px; }
.journey-sync strong { color: var(--green2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.journey-sync small { color: var(--muted); }
.journey-guest { max-width: 720px; margin: 70px auto; padding: clamp(38px, 6vw, 70px); text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 24px; }
.journey-guest > span { display: block; margin-bottom: 18px; color: var(--gold); font-size: 42px; }
.journey-guest h2 { margin: 0; color: var(--green2); font: 400 clamp(2rem, 4vw, 3rem) Georgia, serif; }
.journey-guest > p:not(.eyebrow) { max-width: 500px; margin: 16px auto 25px; color: var(--muted); line-height: 1.7; }
.journey-tabs { display: flex; gap: 10px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.journey-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 20px; color: var(--green2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; cursor: pointer; }
.journey-tabs button.active { color: #fff; background: var(--green); border-color: var(--green); }
.journey-panel { display: none; }
.journey-panel.active { display: block; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.journey-card { min-width: 0; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 44px rgba(0,47,29,.055); }
.journey-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.journey-card .eyebrow { margin-bottom: 8px; }
.journey-card h2 { margin: 0; color: var(--green2); font: 400 clamp(2rem, 3.5vw, 2.8rem)/1.05 Georgia, serif; }
.card-count { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; color: var(--gold); background: color-mix(in srgb,var(--gold) 11%,transparent); border-radius: 50%; font-weight: 900; }
.journey-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.journey-stats div { padding: 17px; background: color-mix(in srgb,var(--gold) 7%,var(--surface)); border: 1px solid color-mix(in srgb,var(--gold) 30%,var(--line)); border-radius: 12px; }
.journey-stats strong, .journey-stats small { display: block; }
.journey-stats strong { color: var(--green2); font: 700 1.85rem Georgia, serif; }
.journey-stats small { margin-top: 4px; color: var(--muted); font-weight: 700; }
.journey-list { display: grid; }
.journey-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.journey-list a span { display: grid; gap: 4px; }
.journey-list a small { color: var(--muted); }
.journey-list a b { color: var(--green); font-size: 12px; }
.journey-empty { margin: 0; padding: 28px 0; color: var(--muted); text-align: center; }
.next-list { display: grid; gap: 12px; }
.next-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 17px 18px; color: var(--ink); background: color-mix(in srgb,var(--paper) 65%,var(--surface)); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.next-list > a:hover { border-color: var(--gold); transform: translateY(-2px); }
.next-list div { display: grid; gap: 6px; }
.next-list small { color: var(--muted); line-height: 1.4; }
.next-list > a > span { flex: 0 0 auto; padding: 12px 14px; color: var(--green); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 900; }
.milestone-list { display: grid; gap: 11px; }
.milestone { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; padding: 17px; overflow: hidden; background: color-mix(in srgb,var(--paper) 58%,var(--surface)); border: 1px solid var(--line); border-radius: 12px; }
.milestone.unlocked { border-left: 4px solid var(--gold); }
.milestone div { display: grid; gap: 6px; }
.milestone small { color: var(--muted); }
.milestone > span { align-self: start; padding: 6px 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 900; }
.milestone.unlocked > span { color: var(--green); border-color: color-mix(in srgb,var(--gold) 45%,var(--line)); }
.milestone i { position: relative; grid-column: 1/-1; height: 7px; overflow: hidden; background: color-mix(in srgb,var(--gold) 10%,var(--paper)); border-radius: 99px; }
.milestone i::after { content: ""; display: block; width: var(--progress, 0%); height: 100%; background: var(--green); border-radius: inherit; transition: width .4s ease; }
.last-read-card { position: relative; min-height: 370px; overflow: hidden; color: #fff; background: radial-gradient(circle at 95% 10%, rgba(240,210,120,.16), transparent 34%), linear-gradient(135deg, var(--green), var(--green2)); border-color: rgba(209,161,46,.45); }
.last-read-card h2 { max-width: 75%; color: #fff; }
.last-read-card > p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.last-read-card .eyebrow { color: var(--gold-light); }
.last-read-mark { position: absolute; right: 46px; top: 130px; color: rgba(255,255,255,.92); font: 3.8rem "Traditional Arabic", serif; transform: rotate(-5deg); }
.journey-gold { position: absolute; right: 34px; bottom: 34px; color: var(--green2); background: var(--gold-light); }
.wide-card { min-height: 480px; }
.wide-card .journey-card-heading a { color: var(--green); font-weight: 800; text-decoration: none; }
.journey-panel-copy { max-width: 680px; color: var(--muted); line-height: 1.7; }
.milestone-summary { margin-top: 30px; padding: 26px; background: color-mix(in srgb,var(--green) 6%,var(--surface)); border-left: 4px solid var(--gold); border-radius: 5px 14px 14px 5px; }
.milestone-summary strong { color: var(--green2); font: 400 1.5rem Georgia, serif; }
.milestone-summary p { margin-bottom: 0; color: var(--muted); }
.saved-journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.saved-journey-grid a { display: grid; gap: 12px; padding: 20px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.saved-journey-grid span, .saved-journey-grid small { color: var(--muted); font-size: 11px; }

[data-theme=night] .last-read-card { background: linear-gradient(135deg,#075037,#03291d); }
@media (max-width: 900px) {
  .journey-hero { align-items: flex-start; flex-direction: column; }
  .journey-sync { width: 100%; }
  .journey-grid { grid-template-columns: 1fr; }
  .saved-journey-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .journey-shell { padding: 30px 14px 100px; }
  .journey-hero { gap: 22px; margin-bottom: 24px; padding: 10px 6px 0; }
  .journey-hero h1 { font-size: clamp(2.6rem, 13vw, 3.5rem); }
  .journey-sync { padding: 13px 15px; }
  .journey-tabs { position: sticky; top: 68px; z-index: 10; margin-inline: -14px; padding: 10px 14px; background: color-mix(in srgb,var(--paper) 92%,transparent); backdrop-filter: blur(14px); }
  .journey-card { padding: 21px 17px; border-radius: 17px; }
  .journey-card h2 { font-size: 2rem; }
  .journey-stats { gap: 7px; }
  .journey-stats div { padding: 13px 10px; }
  .journey-stats strong { font-size: 1.55rem; }
  .journey-stats small { font-size: 10px; }
  .next-list > a { align-items: flex-start; flex-direction: column; min-height: 0; }
  .next-list > a > span { width: 100%; text-align: center; }
  .last-read-card { min-height: 340px; }
  .last-read-card h2 { max-width: 100%; }
  .last-read-mark { right: 28px; top: 150px; }
  .journey-gold { right: 18px; bottom: 18px; left: 18px; }
  .saved-journey-grid { grid-template-columns: 1fr; }
}
