:root {
  --wine: #741c32;
  --wine-deep: #4d1123;
  --green: #0e3a31;
  --green-deep: #071f1b;
  --green-soft: #1d5547;
  --cream: #f4efe4;
  --paper: #fbf7ef;
  --sand: #d5c19a;
  --gold: #c8a45c;
  --ink: #17201d;
  --muted: #69716d;
  --white: #fff;
  --danger: #a83c44;
  --shadow: 0 18px 55px rgba(22, 28, 25, .1);
  --shadow-soft: 0 8px 30px rgba(22, 28, 25, .08);
  --radius: 24px;
  --radius-sm: 16px;
  --shell: min(1180px, calc(100% - 40px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 12px 16px; background: var(--paper); border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.topbar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 82px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.14); transition: background .3s, height .3s, transform .3s; }
.topbar.scrolled { position: fixed; height: 68px; background: rgba(7,31,27,.94); backdrop-filter: blur(16px); box-shadow: 0 6px 30px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(213,193,154,.7); border-radius: 50%; color: var(--sand); font-family: var(--serif); font-size: 12px; letter-spacing: .06em; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.brand small { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.desktop-nav { display: flex; gap: 28px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav a { position: relative; opacity: .78; transition: opacity .2s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--sand); transition: right .25s; }
.desktop-nav a:hover { opacity: 1; }
.desktop-nav a:hover::after { right: 0; }
.topbar-date { font-size: 10px; letter-spacing: .14em; opacity: .7; }

.travel-mode { position: fixed; z-index: 25; top: 68px; left: 0; right: 0; padding: 10px max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; color: var(--white); background: var(--wine); box-shadow: 0 8px 25px rgba(65, 11, 28, .25); }
.travel-mode[hidden] { display: none; }
.travel-mode > div:first-child { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .08em; }
.travel-mode > div:first-child span:last-child { opacity: .75; border-left: 1px solid rgba(255,255,255,.3); padding-left: 10px; }
.live-dot { width: 7px; height: 7px; background: #8de4a7; border-radius: 50%; box-shadow: 0 0 0 5px rgba(141,228,167,.12); animation: live 1.8s infinite; }
.travel-mode-copy { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.travel-mode-copy span { opacity: .72; }
@keyframes live { 50% { box-shadow: 0 0 0 9px rgba(141,228,167,0); } }

.hero { min-height: 760px; height: 100svh; position: relative; display: flex; color: var(--white); overflow: hidden; background: var(--green-deep); }
.hero-image { position: absolute; inset: 0; background: url('../assets/images/hero-rio.svg') center 44% / cover no-repeat; transform: scale(1.02); animation: hero-in 1.5s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,25,21,.91) 0%, rgba(4,25,21,.58) 48%, rgba(4,25,21,.18) 100%), linear-gradient(0deg, rgba(4,20,17,.82) 0%, transparent 52%); }
.hero-grain { position: absolute; inset: 0; background: radial-gradient(circle at 72% 30%, rgba(212,185,129,.17), transparent 26%); }
@keyframes hero-in { from { opacity: .3; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
.hero-content { position: relative; z-index: 2; padding-top: 124px; padding-bottom: 72px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-eyebrow { display: flex; align-items: center; gap: 20px; }
.couple-badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.couple-badge i { font-family: var(--serif); color: var(--sand); font-style: italic; font-size: 15px; }
.coordinates { font-size: 9px; opacity: .55; letter-spacing: .15em; }
.hero-main { max-width: 760px; margin-top: auto; margin-bottom: auto; }
.kicker, .eyebrow { margin: 0 0 13px; font-size: 10px; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); }
.hero .kicker { color: var(--sand); }
.hero h1 { margin: 0; max-width: 720px; font-family: var(--serif); font-weight: 400; font-size: clamp(62px, 8vw, 112px); line-height: .88; letter-spacing: -.05em; }
.hero h1 em { display: block; margin-left: 1.2em; color: var(--sand); font-weight: 400; }
.hero-date { margin: 27px 0 13px; font-size: 13px; letter-spacing: .23em; text-transform: uppercase; }
.hero-date span { color: var(--sand); margin: 0 9px; }
.hero-quote { max-width: 460px; margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.76); }
.hero-bottom { display: grid; grid-template-columns: minmax(360px, 1fr) 270px; gap: 14px; max-width: 760px; }
.glass-card { border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.085); backdrop-filter: blur(16px); border-radius: var(--radius-sm); }
.match-mini { padding: 15px 17px; display: flex; gap: 15px; align-items: center; }
.match-mini > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.match-mini strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.match-mini span { font-size: 9px; letter-spacing: .08em; opacity: .65; text-transform: uppercase; }
.match-mini > a { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background .2s, transform .2s; }
.match-mini > a:hover { background: var(--wine); transform: translateX(2px); }
.flag { width: 29px; height: 36px; display: flex; overflow: hidden; border-radius: 3px; transform: skewY(-6deg); box-shadow: 0 6px 12px rgba(0,0,0,.18); flex: none; }
.flag i:nth-child(1), .flag i:nth-child(3) { width: 33.3%; background: var(--green-soft); }
.flag i:nth-child(2) { width: 33.4%; background: var(--white); position: relative; }
.flag i:nth-child(2)::after { content: ""; position: absolute; inset: 0 33%; background: var(--wine); }
.countdown { padding: 13px 17px; display: flex; flex-direction: column; justify-content: center; }
.countdown span, .countdown small { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.countdown strong { margin: 3px 0; font-family: var(--serif); color: var(--sand); font-size: 22px; font-weight: 500; }
.scroll-cue { position: absolute; right: 34px; bottom: 42px; z-index: 3; display: flex; flex-direction: column; gap: 12px; align-items: center; color: rgba(255,255,255,.6); }
.scroll-cue span { font-size: 8px; text-transform: uppercase; letter-spacing: .2em; writing-mode: vertical-rl; }
.scroll-cue i { font-style: normal; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.section { padding: 110px 0; position: relative; }
.section-heading { max-width: 690px; margin-bottom: 45px; }
.section-heading h2 { margin: 0 0 15px; font: 400 clamp(38px, 5vw, 61px)/1.04 var(--serif); letter-spacing: -.035em; }
.section-heading > p:last-child, .split-heading > p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.split-heading > div:first-child { max-width: 740px; }
.split-heading > p { max-width: 330px; margin: 0 0 5px; }
.dashboard-section { background: var(--paper); }
.dashboard-section::before { content: ""; position: absolute; top: 38px; left: 4%; width: 150px; height: 150px; border: 1px solid rgba(116,28,50,.1); border-radius: 50%; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.day-card { position: relative; min-height: 176px; padding: 23px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-sm); background: #efe7d8; overflow: hidden; transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer; border: 0; text-align: left; color: var(--ink); }
.day-card::after { content: attr(data-number); position: absolute; right: -3px; bottom: -27px; font: 78px var(--serif); color: rgba(22,32,29,.055); }
.day-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); background: var(--white); }
.day-card.active { color: var(--white); background: var(--wine); box-shadow: 0 15px 30px rgba(116,28,50,.2); }
.day-card.active::after { color: rgba(255,255,255,.08); }
.day-card .date { font-size: 9px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.day-card .date strong { display: block; margin-bottom: 3px; font: 32px var(--serif); font-weight: 400; letter-spacing: -.03em; }
.day-card h3 { position: relative; z-index: 1; margin: 0; font: 22px var(--serif); font-weight: 400; }
.day-card p { position: relative; z-index: 1; margin: 5px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .68; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 12px; }
.parchment-card, .soft-card, .dark-card { border-radius: var(--radius); padding: 28px; }
.parchment-card { position: relative; background: #e8dcc7; box-shadow: var(--shadow-soft); }
.parchment-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(91,65,35,.11); border-radius: 19px; pointer-events: none; }
.dark-card { color: var(--white); background: var(--green-deep); box-shadow: var(--shadow); }
.soft-card { background: var(--white); border: 1px solid rgba(28,48,42,.08); }
.card-label { font-size: 9px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; color: var(--wine); }
.card-label.light { color: var(--sand); }
.next-card { min-height: 220px; display: flex; flex-direction: column; }
.next-card .card-label { display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 5px rgba(116,28,50,.1); }
.next-event-main { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.next-event-main time { display: block; margin-bottom: 5px; font: 35px var(--serif); color: var(--wine); }
.next-event-main h3 { margin: 0; font: 26px var(--serif); font-weight: 400; }
.next-event-main p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.next-event-main > strong { font-size: 11px; padding: 10px 13px; border: 1px solid rgba(116,28,50,.2); border-radius: 999px; white-space: nowrap; }
.quick-info { display: flex; flex-direction: column; }
.quick-info .card-label { color: var(--sand); }
.quick-info h3 { margin: auto 0 5px; font: 31px var(--serif); font-weight: 400; }
.quick-info p { margin: 0; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.65); }
.text-link { margin-top: 18px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--sand); }
.text-link span { margin-left: 4px; }
.weather-note { display: flex; flex-direction: column; }
.weather-note p { margin: auto 0 15px; font: italic 20px/1.45 var(--serif); }
.weather-note > span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.itinerary-section { background: var(--cream); }
.day-tabs { display: flex; gap: 8px; padding-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { min-width: 170px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(19,48,40,.14); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: all .2s; }
.day-tab span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e6dece; font-family: var(--serif); }
.day-tab div { display: flex; flex-direction: column; align-items: start; }
.day-tab strong { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.day-tab small { margin-top: 2px; color: var(--muted); }
.day-tab[aria-selected="true"] { color: var(--white); background: var(--green); border-color: var(--green); box-shadow: 0 10px 25px rgba(14,58,49,.18); }
.day-tab[aria-selected="true"] span { background: var(--wine); color: var(--white); }
.day-tab[aria-selected="true"] small { color: rgba(255,255,255,.58); }
.itinerary-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 28px; animation: panel-in .35s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.timeline-wrap { padding: 38px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.itinerary-title { display: flex; justify-content: space-between; align-items: end; padding-bottom: 27px; margin-bottom: 8px; border-bottom: 1px solid rgba(34,47,42,.1); }
.itinerary-title span { font: 48px var(--serif); color: var(--wine); }
.itinerary-title h3 { margin: 0; font: 30px var(--serif); font-weight: 400; }
.itinerary-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.timeline { margin-top: 18px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 84px 20px 1fr; gap: 10px; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item time { padding-top: 2px; font-size: 11px; font-weight: 750; color: var(--wine); }
.timeline-pin { position: relative; }
.timeline-pin::before { content: ""; position: absolute; top: 4px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); border: 4px solid #f2e4dd; box-sizing: content-box; }
.timeline-pin::after { content: ""; position: absolute; top: 18px; bottom: -11px; left: 12px; width: 1px; background: rgba(116,28,50,.2); }
.timeline-item:last-child .timeline-pin::after { display: none; }
.timeline-copy h4 { margin: 0 0 4px; font: 20px var(--serif); font-weight: 400; }
.timeline-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; white-space: pre-line; }
.timeline-copy .event-note { display: inline-block; margin-top: 9px; padding: 7px 10px; color: var(--wine); background: rgba(116,28,50,.07); border-radius: 9px; font-size: 10px; }
.itinerary-aside { display: flex; flex-direction: column; gap: 14px; }
.objective-card { min-height: 220px; display: flex; flex-direction: column; }
.objective-card h3 { margin: auto 0 10px; font: 28px var(--serif); font-weight: 400; }
.objective-card p { margin: 0; color: rgba(255,255,255,.68); font: italic 16px/1.55 var(--serif); }
.route-card { padding: 25px; background: #e8dcc7; border-radius: var(--radius); }
.route-card h4 { margin: 8px 0 18px; font: 21px var(--serif); }
.route-stops { display: flex; flex-direction: column; }
.route-stop { display: block; font-size: 11px; color: var(--muted); }
.route-stop:not(:last-child)::after { content: "↓"; display: block; color: var(--wine); margin: 5px 0 5px 8px; }
.route-stop span { display: block; }
.option-cards { display: grid; gap: 9px; }
.option-card { padding: 17px; border: 1px solid rgba(16,58,49,.12); border-radius: 14px; background: rgba(255,255,255,.52); }
.option-card span { font-size: 8px; letter-spacing: .15em; color: var(--wine); font-weight: 800; }
.option-card strong { display: block; margin-top: 4px; font: 17px var(--serif); font-weight: 400; }
.day-quick-check { padding: 22px; background: var(--wine); color: var(--white); border-radius: var(--radius); }

.checklist-section { background: var(--green-deep); color: var(--white); }
.checklist-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 95% 5%, rgba(116,28,50,.35), transparent 25%); }
.checklist-section .shell { position: relative; z-index: 1; }
.checklist-section .eyebrow { color: var(--sand); }
.progress-summary { min-width: 260px; }
.progress-summary span { display: block; margin-bottom: 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.mini-progress { height: 4px; background: rgba(255,255,255,.12); border-radius: 9px; overflow: hidden; }
.mini-progress i { display: block; width: 0; height: 100%; background: var(--sand); transition: width .3s; }
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checklist-category { padding: 25px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.checklist-category-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.checklist-category h3 { margin: 0; font: 21px var(--serif); font-weight: 400; }
.checklist-category-head span { font-size: 9px; color: var(--sand); }
.check-row { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.4; }
.check-row:last-child { border-bottom: 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; flex: none; transition: all .2s; }
.custom-check::after { content: "✓"; opacity: 0; transform: scale(.5); font-size: 11px; transition: all .2s; }
.check-row input:checked + .custom-check { background: var(--sand); color: var(--green-deep); border-color: var(--sand); }
.check-row input:checked + .custom-check::after { opacity: 1; transform: scale(1); }
.check-row input:checked ~ span:last-child { opacity: .45; text-decoration: line-through; }
.center-action { margin-top: 35px; text-align: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--wine); box-shadow: 0 10px 22px rgba(116,28,50,.2); }
.button-light { color: var(--wine); background: var(--white); }
.button-small { min-height: 34px; padding: 8px 14px; font-size: 8px; }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.2); background: transparent; }
.button-ghost.danger:hover { background: rgba(168,60,68,.22); }

.expenses-section { background: var(--paper); }
.budget-panel { padding: 34px; }
.budget-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.budget-stats > div { padding: 0 28px; border-right: 1px solid rgba(255,255,255,.12); }
.budget-stats > div:first-child { padding-left: 0; }
.budget-stats > div:last-child { border: 0; }
.budget-stats span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.5); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.budget-stats strong { font: 31px var(--serif); font-weight: 400; }
.budget-progress { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.budget-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sand), #e3c778); transition: width .4s, background .3s; }
.budget-panel.warning .budget-progress i { background: #ef9a59; }
.budget-panel.over .budget-progress i { background: #df5965; }
.budget-caption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.budget-caption strong { color: #ffadad; }
.expense-layout { display: grid; grid-template-columns: 360px 1fr; gap: 25px; margin-top: 25px; }
.expense-form { display: flex; flex-direction: column; gap: 17px; }
.expense-form .card-label { margin-bottom: 4px; }
.expense-form label { position: relative; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.expense-form input, .expense-form select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(49,45,36,.14); outline: 0; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.54); font-size: 13px; text-transform: none; letter-spacing: 0; transition: border .2s, box-shadow .2s; }
.expense-form input:focus, .expense-form select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(116,28,50,.08); }
.expense-history { padding: 12px 0; }
.expense-history-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 15px; }
.expense-history-head h3 { margin: 5px 0 0; font: 27px var(--serif); font-weight: 400; }
.expense-history-head > span { color: var(--muted); font-size: 10px; }
.expense-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 5px; }
.expense-item { display: grid; grid-template-columns: 44px 1fr auto 34px; gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(24,43,37,.08); border-radius: 15px; background: var(--white); }
.expense-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); font-size: 18px; }
.expense-item h4 { margin: 0 0 3px; font-size: 12px; }
.expense-item p { margin: 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.expense-item > strong { font: 18px var(--serif); white-space: nowrap; }
.remove-expense { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #9d8e86; cursor: pointer; font-size: 18px; transition: background .2s, color .2s; }
.remove-expense:hover { color: var(--danger); background: rgba(168,60,68,.08); }
.empty-state { padding: 40px; text-align: center; border: 1px dashed rgba(28,48,42,.15); border-radius: 16px; color: var(--muted); font-size: 12px; }

.map-section { background: var(--cream); }
.route-line { display: flex; align-items: center; justify-content: space-between; padding: 25px 28px; margin-bottom: 28px; border-radius: var(--radius); background: var(--green); color: var(--white); overflow-x: auto; }
.route-node { display: flex; align-items: center; white-space: nowrap; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.route-node::before { content: ""; width: 8px; height: 8px; margin-right: 7px; border: 2px solid var(--sand); border-radius: 50%; }
.route-arrow { margin: 0 10px; color: var(--sand); opacity: .55; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.place-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s; }
.place-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.place-image { position: relative; aspect-ratio: 1.65; background: #d5d2c4; overflow: hidden; }
.place-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.place-card:hover img { transform: scale(1.04); }
.place-image span { position: absolute; left: 13px; top: 13px; padding: 6px 9px; border-radius: 99px; color: var(--white); background: rgba(7,31,27,.7); backdrop-filter: blur(8px); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.place-copy { padding: 20px; }
.place-copy h3 { margin: 0; font: 24px var(--serif); font-weight: 400; }
.place-copy p { min-height: 38px; margin: 7px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.map-button { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid rgba(22,41,35,.08); color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .12em; }

.game-section { position: relative; padding: 115px 0; overflow: hidden; color: var(--white); background: linear-gradient(125deg, #4f1022 0%, #7b1f36 48%, #0d3b31 48.2%, #08251f 100%); }
.game-section::before { content: "FLU"; position: absolute; right: -2vw; top: -15px; font: 300px/.8 var(--serif); color: rgba(255,255,255,.035); }
.game-noise { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.15) 50%, transparent 50.2%); }
.game-section .shell { position: relative; z-index: 1; }
.game-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.ticket-status { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ticket-status b { margin-left: 7px; color: #a8ebbd; }
.game-grid { display: grid; grid-template-columns: 1.2fr .8fr .75fr; gap: 20px; align-items: stretch; }
.game-main { padding: 20px 0; }
.flag-large { width: 52px; height: 65px; margin-bottom: 26px; }
.game-date { margin: 0 0 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.game-main h2 { margin: 0; font: 54px/.95 var(--serif); font-weight: 400; }
.game-main h2 span { color: var(--sand); }
.game-countdown { display: flex; flex-direction: column; margin-top: 35px; }
.game-countdown span { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; opacity: .5; }
.game-countdown strong { margin-top: 5px; font: 25px var(--serif); color: var(--sand); }
.ticket-card { position: relative; overflow: hidden; padding: 27px; color: var(--ink); background: var(--paper); border-radius: var(--radius); box-shadow: 0 24px 45px rgba(0,0,0,.2); }
.ticket-card::before, .ticket-card::after { content: ""; position: absolute; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--wine-deep); }
.ticket-card::before { top: 42%; }
.ticket-card::after { bottom: 23%; }
.ticket-top { padding-bottom: 23px; border-bottom: 1px dashed rgba(24,41,35,.2); }
.ticket-top span, .ticket-total span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .15em; color: var(--wine); }
.ticket-top strong { display: block; margin-top: 5px; font: 27px var(--serif); font-weight: 400; }
.ticket-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px dashed rgba(24,41,35,.2); }
.ticket-people div { display: flex; flex-direction: column; }
.ticket-people span { font-size: 9px; color: var(--muted); }
.ticket-people strong { margin: 4px 0; font: 17px var(--serif); font-weight: 400; }
.ticket-people b { font-size: 11px; color: var(--wine); }
.ticket-total { padding-top: 22px; display: flex; justify-content: space-between; align-items: end; }
.ticket-total strong { font: 28px var(--serif); font-weight: 400; }
.game-checklist { padding: 25px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(5,25,21,.25); backdrop-filter: blur(12px); }
.game-checklist .card-label { margin-bottom: 12px; }
.game-checklist .check-row { padding: 9px 0; }

.memories-section { background: var(--paper); }
.memory-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 13px; }
.memory-card { padding: 10px; border: 1px solid rgba(26,45,39,.1); border-radius: var(--radius); background: var(--cream); transform: rotate(.6deg); }
.memory-card:nth-child(2n) { transform: rotate(-.8deg); }
.memory-card.featured { grid-row: span 2; }
.memory-placeholder { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed rgba(26,45,39,.18); background: linear-gradient(135deg, rgba(116,28,50,.06), rgba(14,58,49,.08)); color: var(--muted); }
.featured .memory-placeholder { height: calc(100% - 46px); min-height: 414px; }
.memory-placeholder span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(26,45,39,.2); border-radius: 50%; font: 25px var(--serif); }
.memory-placeholder small { font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.memory-card p { margin: 12px 8px 7px; font: italic 17px var(--serif); }

footer { padding: 55px 0 110px; color: var(--white); background: #061b17; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner > div { display: flex; align-items: center; gap: 15px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.6; letter-spacing: .07em; text-transform: uppercase; }
.footer-inner p strong { color: var(--sand); }
.footer-inner > a { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--sand); }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 12px 18px; color: var(--white); background: rgba(7,31,27,.95); border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 11px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .desktop-nav { gap: 16px; }
  .topbar-date { display: none; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1.3fr 1fr; }
  .weather-note { grid-column: 1 / -1; min-height: 160px; }
  .weather-note p { margin-top: 28px; }
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .places-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-checklist { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --shell: min(100% - 30px, 560px); --radius: 20px; }
  html { scroll-padding-top: 78px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .topbar { height: 66px; padding: 0 16px; }
  .topbar.scrolled { height: 60px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 15px; }
  .desktop-nav { display: none; }
  .travel-mode { top: 60px; grid-template-columns: 1fr auto; padding: 8px 15px; gap: 8px; }
  .travel-mode > div:first-child { display: none; }
  .travel-mode-copy { flex-direction: column; gap: 2px; font-size: 10px; }
  .travel-mode-copy strong { font-size: 11px; }
  .hero { min-height: 720px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,25,21,.65) 0%, rgba(4,25,21,.45) 34%, rgba(4,20,17,.94) 100%); }
  .hero-image { background-position: 64% center; }
  .hero-content { padding: 94px 0 45px; }
  .hero-eyebrow { justify-content: space-between; }
  .coordinates { display: none; }
  .hero-main { margin-top: auto; margin-bottom: 42px; }
  .hero h1 { font-size: clamp(55px, 18vw, 78px); line-height: .9; }
  .hero h1 em { margin-left: .55em; }
  .hero-date { margin-top: 22px; font-size: 11px; }
  .hero-quote { font-size: 15px; max-width: 310px; }
  .hero-bottom { grid-template-columns: 1fr; max-width: none; }
  .match-mini { min-width: 0; }
  .match-mini strong { font-size: 15px; }
  .countdown { min-height: 69px; }
  .scroll-cue { display: none; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 40px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 13px; }
  .dashboard-section::before { display: none; }
  .day-grid { display: flex; gap: 10px; width: calc(100vw - 15px); overflow-x: auto; padding-right: 15px; margin-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .day-grid::-webkit-scrollbar { display: none; }
  .day-card { min-width: 205px; min-height: 155px; scroll-snap-align: start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .next-card { min-height: 205px; }
  .next-event-main { align-items: start; flex-direction: column; }
  .quick-info { min-height: 210px; }
  .weather-note { grid-column: auto; min-height: 170px; }
  .day-tabs { width: calc(100vw - 15px); padding-right: 15px; }
  .day-tab { min-width: 145px; padding: 11px 13px; }
  .itinerary-panel { grid-template-columns: 1fr; }
  .timeline-wrap { padding: 24px 18px; }
  .itinerary-title { align-items: start; }
  .itinerary-title span { font-size: 37px; }
  .itinerary-title h3 { font-size: 24px; text-align: right; }
  .timeline-item { grid-template-columns: 62px 17px 1fr; gap: 6px; padding-bottom: 24px; }
  .timeline-item time { font-size: 10px; }
  .timeline-pin::before { left: 2px; }
  .timeline-pin::after { left: 8px; }
  .timeline-copy h4 { font-size: 18px; }
  .checklist-section .split-heading { display: block; }
  .progress-summary { margin-top: 20px; min-width: 0; }
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-category { padding: 22px; }
  .check-row { min-height: 45px; }
  .budget-panel { padding: 25px 20px; }
  .budget-stats { gap: 13px; }
  .budget-stats > div { padding: 0 12px; }
  .budget-stats strong { font-size: 22px; }
  .budget-stats span { font-size: 7px; }
  .budget-caption { align-items: start; flex-direction: column; gap: 6px; }
  .expense-layout { grid-template-columns: 1fr; }
  .expense-form { padding: 24px; }
  .expense-item { grid-template-columns: 42px minmax(0, 1fr) auto 30px; gap: 8px; }
  .expense-item > strong { font-size: 16px; }
  .route-line { justify-content: start; width: calc(100vw - 15px); border-radius: 20px 0 0 20px; }
  .route-arrow { min-width: 22px; text-align: center; }
  .places-grid { grid-template-columns: 1fr; }
  .place-copy p { min-height: auto; }
  .game-section { padding: 78px 0; background: linear-gradient(160deg, #69192f 0%, #4c1022 45%, #0d3b31 45.3%, #08251f 100%); }
  .game-section::before { font-size: 190px; top: 140px; }
  .game-heading { margin-bottom: 38px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-main h2 { font-size: 47px; }
  .game-main { padding-bottom: 30px; }
  .ticket-card { min-height: 330px; }
  .game-checklist { grid-column: auto; }
  .memory-grid { grid-template-columns: 1fr 1fr; }
  .memory-card.featured { grid-column: 1 / -1; grid-row: auto; }
  .featured .memory-placeholder { min-height: 290px; }
  .memory-placeholder { min-height: 145px; }
  .memory-card p { font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: start; }
  .mobile-nav { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 62px; padding: 5px 6px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; color: rgba(255,255,255,.6); background: rgba(6,27,23,.94); backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
  .mobile-nav a { height: 51px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 15px; transition: color .2s, background .2s; }
  .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav span { font-size: 8px; }
  .mobile-nav a.active { color: var(--sand); background: rgba(255,255,255,.07); }
  .toast { bottom: 86px; }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 24px); }
  .hero-main { margin-bottom: 30px; }
  .hero h1 { font-size: 56px; }
  .hero-quote { max-width: 275px; }
  .match-mini { padding: 13px; gap: 10px; }
  .match-mini strong { font-size: 14px; }
  .match-mini > a { width: 30px; height: 30px; }
  .section-heading h2 { font-size: 36px; }
  .timeline-wrap { padding-inline: 14px; }
  .timeline-item { grid-template-columns: 56px 15px 1fr; }
  .budget-stats strong { font-size: 19px; }
  .expense-item { grid-template-columns: 38px minmax(0, 1fr) auto 27px; }
  .expense-icon { width: 38px; height: 38px; }
  .memory-card { padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
