/* =========================================================
   SARDINIA 2026 · COMPANION
   Visual system from the design package:
     Palette  · sea/terra/sand/cream/ink/gold/leaf
     Type     · DM Serif Display + Geist + JetBrains Mono
     Texture  · sand-striped placeholders, mono labels
   ========================================================= */

:root {
  --sea: #1E5C7E;
  --sea-2: #2A7FA6;
  --sea-deep: #143F57;
  --terra: #C8643C;
  --terra-2: #E08254;
  --terra-deep: #8E3F1E;
  --sand: #EFE3CE;
  --sand-2: #E5D5B8;
  --cream: #FAF5ED;
  --cream-2: #F4ECDC;
  --ink: #1F1A14;
  --ink-2: #4A3F30;
  --ink-3: #7A6E5C;
  --gold: #B8893E;
  --leaf: #5C7A4A;
  --line: rgba(31, 26, 20, 0.10);
  --line-2: rgba(31, 26, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.05), 0 1px 3px rgba(31, 26, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 26, 20, 0.08), 0 1px 3px rgba(31, 26, 20, 0.04);
  --shadow-lg: 0 12px 40px rgba(31, 26, 20, 0.12), 0 2px 6px rgba(31, 26, 20, 0.05);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --serif: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.hidden { display: none !important; }

/* ============== APP CONTAINER ============== */
#app {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

/* ============== APP BAR ============== */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-2);
  padding-top: max(12px, env(safe-area-inset-top));
}
.appbar .left { display: flex; align-items: center; gap: 10px; }
.appbar .title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.appbar .icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink);
  background: transparent;
  position: relative;
  transition: background .15s;
}
.appbar .icon-btn:hover { background: var(--line-2); }
.appbar .icon-btn svg { width: 20px; height: 20px; }
.appbar .icon-wrap { position: relative; }
.appbar .badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--terra);
  box-shadow: 0 0 0 2px var(--cream);
}

/* NN orange-amber wordmark dot */
.nn-dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #FFB266 0%, #E08254 30%, #C8643C 60%, #8E3F1E 100%);
  box-shadow: inset 0 -1px 3px rgba(0,0,0,0.2), 0 2px 8px rgba(200,100,60,0.3);
  display: grid; place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nn-dot.large {
  width: 56px; height: 56px;
  font-size: 18px;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3), 0 4px 16px rgba(200,100,60,0.4);
}

/* Language toggle in topbar — prominent terracotta */
.lang-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--terra);
  color: var(--cream);
  transition: transform .15s, box-shadow .15s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(200,100,60,0.35);
}
.lang-toggle:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(200,100,60,0.5); }
.lang-toggle::after {
  content: '⇄';
  font-size: 12px;
  opacity: .85;
}

/* Language picker in Info page */
.lang-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.lang-picker button {
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: white;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .15s;
}
.lang-picker button:hover { border-color: var(--sea); }
.lang-picker button.active {
  background: var(--sea);
  color: var(--cream);
  border-color: var(--sea);
}
.lang-picker .flag {
  font-size: 22px;
  line-height: 1;
}
.lang-picker .label-mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 4px;
  opacity: .55;
}
.lang-picker button.active .label-mono { opacity: .85; }

/* Language toggle on welcome screen — visible RO · EN switcher */
.welcome-lang-toggle {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(250,245,237,0.14);
  border: 1px solid rgba(250,245,237,0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(250,245,237,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s;
}
.welcome-lang-toggle:hover { transform: translateY(-1px); }
.welcome-lang-toggle .lang-opt {
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  transition: color .15s;
}
.welcome-lang-toggle .lang-opt.active { color: var(--cream); }
.welcome-lang-toggle .lang-divider { opacity: .4; }

/* Cloud status pill in topbar */
.cloud-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--cream-2);
  border-radius: 999px;
}
.cloud-pill .cloud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
}
.cloud-pill.online .cloud-dot {
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(92,122,74,0.18);
}
.cloud-pill.online { color: var(--leaf); background: rgba(92,122,74,0.08); }
.cloud-pill.syncing .cloud-dot {
  background: var(--terra);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: .35; } }

/* ============== TAB BAR ============== */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px max(10px, env(safe-area-inset-bottom));
  gap: 2px;
  z-index: 40;
  max-width: 460px;
  margin: 0 auto;
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-radius: 10px;
  transition: color 0.15s;
}
.tab-btn.active { color: var(--sea); }
.tab-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.tab-btn span { font-size: 22px; line-height: 1; } /* fallback if emoji */
.tab-btn small { font-size: 9px; }

/* ============== VIEW ============== */
.view {
  padding: 0 0 24px;
  animation: viewIn .24s cubic-bezier(.2,.8,.2,1);
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============== HERO (Today) ============== */
.hero {
  position: relative;
  margin: 16px 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--cream);
  padding: 24px 22px 22px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 240px at 110% -20%, rgba(255,178,102,0.35), transparent 60%),
    radial-gradient(500px 300px at -10% 120%, rgba(184,137,62,0.25), transparent 60%);
  z-index: -1;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.75);
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: #FFB266;
  box-shadow: 0 0 0 0 rgba(255,178,102,0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,178,102,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(255,178,102,0); }
}
.hero-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.0;
  margin: 12px 0 4px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.hero-title em { font-style: italic; color: #FFB88A; font-weight: 400; }
.hero-sub {
  font-size: 14px;
  color: rgba(250,245,237,0.8);
  margin-bottom: 4px;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.hero-meta .cell {
  background: rgba(250,245,237,0.08);
  border: 1px solid rgba(250,245,237,0.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.hero-meta .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,245,237,0.6);
  margin-bottom: 4px;
}
.hero-meta .val {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  line-height: 1.1;
}
.hero-meta .val small {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,245,237,0.7);
  margin-left: 4px;
}

/* ============== LIVE NOW STRIP ============== */
.live-strip {
  display: flex; align-items: center; gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 20px 16px;
  cursor: pointer;
  transition: transform .12s;
}
.live-strip:hover { transform: translateY(-1px); }
.live-strip > .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(200,100,60,0.12);
  color: var(--terra);
  flex-shrink: 0;
}
.live-strip .body { flex: 1; min-width: 0; }
.live-strip .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.live-strip .nm {
  font-weight: 500; font-size: 14px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-strip .tm {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.live-strip .arr { color: var(--ink-3); width: 16px; height: 16px; flex-shrink: 0; }

/* ============== SECTION ============== */
.section {
  padding: 0 20px;
  margin-bottom: 24px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.section-link, .section-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-meta { color: var(--ink-3); }

/* ============== CARDS ============== */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }

/* ============== ACTIVITY ROW ============== */
.activity {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.activity:last-child { border-bottom: none; }
.activity .time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.activity .body { display: flex; flex-direction: column; gap: 4px; }
.activity .head { display: flex; align-items: center; gap: 8px; }
.activity .icon-tag {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.activity .icon-tag svg { width: 14px; height: 14px; }
.activity .ttl {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
}
.activity .det {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.activity .loc {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 4px;
}
.activity .loc svg { width: 11px; height: 11px; }

/* type-colored icon backgrounds */
.t-flight   { background: #DCE9F0; color: var(--sea); }
.t-transit  { background: #EAE3D6; color: var(--ink-2); }
.t-hotel    { background: #F0DFD0; color: var(--terra); }
.t-dining   { background: #EFE7D6; color: var(--gold); }
.t-tour     { background: #DCE6D6; color: var(--leaf); }
.t-free     { background: #E5D5B8; color: var(--ink-2); }
.t-gala     { background: #F0DFD0; color: var(--terra); }

/* ============== QUICK TILES ============== */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 24px;
}
.tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
  min-height: 110px;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
}
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tile .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
}
.tile .ico svg { width: 16px; height: 16px; }
.tile .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tile .nm {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
}
.tile .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: auto;
}

/* ============== WEATHER STRIP ============== */
.weather-row {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 0 20px 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.weather-row::-webkit-scrollbar { display: none; }
.wx-cell {
  flex-shrink: 0;
  width: 56px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  align-items: center;
}
.wx-cell.today { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.wx-cell .d { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); }
.wx-cell.today .d { color: rgba(250,245,237,0.7); }
.wx-cell svg { width: 20px; height: 20px; margin: 2px 0; }
.wx-cell .h { font-family: var(--serif); font-size: 16px; line-height: 1; }
.wx-cell .l { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.wx-cell.today .l { color: rgba(250,245,237,0.6); }

/* ============== PLACEHOLDER (sand stripes) ============== */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      var(--sand-2) 0 12px,
      var(--sand) 12px 24px);
  display: grid; place-items: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  border-radius: var(--radius);
}
.placeholder.sea {
  background: repeating-linear-gradient(135deg, rgba(30,92,126,0.18) 0 12px, rgba(30,92,126,0.10) 12px 24px);
  color: var(--sea-deep);
}
.placeholder.terra {
  background: repeating-linear-gradient(135deg, rgba(200,100,60,0.22) 0 12px, rgba(200,100,60,0.12) 12px 24px);
  color: #7E3A1A;
}
.placeholder.leaf {
  background: repeating-linear-gradient(135deg, rgba(92,122,74,0.22) 0 12px, rgba(92,122,74,0.12) 12px 24px);
  color: #2F4326;
}
.placeholder span {
  background: rgba(250,245,237,0.8);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,26,20,0.08);
}

/* ============== WELCOME / ONBOARDING ============== */
.welcome {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--sea-deep) 0%, var(--sea) 60%, var(--terra) 130%);
  color: var(--cream);
  padding: 60px 28px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.welcome::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 90% -10%, rgba(255,178,102,0.35), transparent 55%),
    radial-gradient(500px 400px at -20% 110%, rgba(184,137,62,0.4), transparent 55%);
  pointer-events: none;
}
.welcome-content {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.welcome-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,245,237,0.7);
  margin-top: 28px;
}
.welcome-title {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.95;
  margin: 8px 0 16px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.welcome-title em { font-style: italic; color: #FFB88A; font-weight: 400; }
.welcome-sub {
  font-size: 15px;
  color: rgba(250,245,237,0.78);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 0 4px;
}
.welcome-card {
  background: rgba(250,245,237,0.10);
  border: 1px solid rgba(250,245,237,0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.welcome-card .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,245,237,0.6);
  margin-bottom: 3px;
}
.welcome-card .val {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream);
  font-weight: 400;
}
.welcome-form { display: grid; gap: 14px; margin-top: 8px; }
.welcome-field { display: block; }
.welcome-field > .field-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,245,237,0.7);
  margin-bottom: 8px;
}
.welcome-field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(250,245,237,0.10);
  border: 1px solid rgba(250,245,237,0.18);
  border-radius: 14px;
  color: var(--cream);
  font-size: 15px;
  transition: border-color .15s;
}
.welcome-field input::placeholder { color: rgba(250,245,237,0.4); }
.welcome-field input:focus {
  outline: none;
  border-color: rgba(250,245,237,0.45);
  background: rgba(250,245,237,0.14);
}
.welcome-segmented {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.welcome-segmented button {
  flex: 1; min-width: 40%;
  padding: 11px 12px;
  background: rgba(250,245,237,0.10);
  border: 1px solid rgba(250,245,237,0.18);
  color: rgba(250,245,237,0.85);
  border-radius: 12px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.welcome-segmented button.active {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.welcome-segmented .bus-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.bus-dot.red   { background: #C0392B; }
.bus-dot.blue  { background: #2E86C1; }
.bus-dot.green { background: #27AE60; }

.welcome-actions { display: grid; gap: 10px; margin-top: 24px; }
.btn-primary {
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.005em;
  transition: transform 0.12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; }
.btn-primary.dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: rgba(250,245,237,0.85);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}

/* on light surfaces */
.btn-ghost.on-light {
  color: var(--sea);
  background: var(--cream-2);
  border-radius: 12px;
}

/* ============== SCHEDULE / PAGE HEAD ============== */
.page-head {
  padding: 16px 20px 8px;
}
.page-head .crumb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.0;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.page-head h1 em { font-style: italic; font-weight: 400; }
.page-head h1 em.terra { color: var(--terra); }
.page-head h1 em.sea { color: var(--sea); }
.page-head .meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.filter-row {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 0 20px 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============== DAY CARD (schedule list) ============== */
.day-list { padding: 0 20px 24px; }
.day-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  transition: transform 0.12s, box-shadow 0.12s;
}
.day-card.has-thumb {
  grid-template-columns: 56px 1fr 76px auto;
}
.day-card .day-thumb {
  width: 76px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-2);
}
.day-card .day-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.day-card.today .day-thumb { box-shadow: 0 0 0 2px rgba(250,245,237,0.3); }
.day-card:hover { box-shadow: var(--shadow-md); }
.day-card.today {
  background: var(--sea);
  color: var(--cream);
  border-color: var(--sea-deep);
}
.day-card.today .num,
.day-card.today .lbl,
.day-card.today .sub { color: var(--cream); }
.day-card.today .num { background: rgba(250,245,237,0.15); color: var(--cream); }
.day-card.today .arr { color: var(--cream); }
.day-card.featured {
  background: linear-gradient(160deg, #F0DFD0, #FAF5ED);
  border-color: rgba(200, 100, 60, 0.3);
}
.day-card.past { opacity: .6; }
.day-card .num {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.day-card .num small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
  color: var(--ink-3);
}
.day-card.today .num small { color: rgba(250,245,237,0.7); }
.day-card .lbl { font-family: var(--serif); font-size: 18px; line-height: 1.1; color: var(--ink); font-weight: 400; }
.day-card .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.day-card .arr { color: var(--ink-3); width: 16px; height: 16px; }

/* ============== DAY HERO PHOTO ============== */
.day-hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-sm);
}
.day-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.day-hero-photo .day-hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 16px 14px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(31,26,20,0.7));
}

/* ============== SUGGESTIONS (free-time ideas) ============== */
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.suggestion {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
  transition: transform .12s, box-shadow .12s;
}
.suggestion:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.sug-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand-2), var(--sand));
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.sug-body { min-width: 0; }
.sug-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.sug-head strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.sug-distance {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.sug-body p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.45;
}

/* ============== DAY DETAIL ============== */
.detail-hero {
  position: relative;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line-2);
}
.detail-back {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
}
.detail-back svg { width: 14px; height: 14px; }
.detail-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 8px;
}
.detail-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.0;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.detail-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.detail-summary {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.detail-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31,26,20,0.06);
  color: var(--ink-2);
}
.chip.sea { background: rgba(30,92,126,0.10); color: var(--sea); }
.chip.terra { background: rgba(200,100,60,0.10); color: var(--terra); }
.chip.leaf { background: rgba(92,122,74,0.12); color: var(--leaf); }

/* ============== MAP ============== */
.map-wrap {
  position: relative;
  margin: 16px 16px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 50% 30%, rgba(42,127,166,0.18), transparent 60%),
    linear-gradient(180deg, #E0EDF2 0%, #C8DDE6 100%);
  height: 460px;
  border: 1px solid var(--line);
}
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-pin-list {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.map-pin-list::-webkit-scrollbar { display: none; }
.map-card {
  flex-shrink: 0;
  background: white;
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map-card .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.map-card .nm { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.1; font-weight: 400; }

/* ============== NOTIFICATIONS / UPDATES ============== */
.notif-list { padding: 8px 16px 24px; }
.notif {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.notif:last-child { border-bottom: none; }
.notif.unread {
  background: linear-gradient(90deg, rgba(30,92,126,0.04), transparent 60%);
  border-radius: 12px;
}
.notif-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cream-2);
  color: var(--ink-2);
}
.notif-ico svg { width: 16px; height: 16px; }
.notif-ico.system    { background: #DCE9F0; color: var(--sea); }
.notif-ico.logistics { background: #EAE3D6; color: var(--gold); }
.notif-ico.dining    { background: #F0DFD0; color: var(--terra); }
.notif-ico.info      { background: #DCE6D6; color: var(--leaf); }
.notif-ico.wall      { background: rgba(184,137,62,0.14); color: var(--gold); }
.notif .ttl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.notif .ttl { font-weight: 500; font-size: 14px; color: var(--ink); }
.notif .tm { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
.notif .bd { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.notif.unread .ttl::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--terra);
  margin-left: 8px;
  vertical-align: middle;
}

/* Wall compose, inside Updates view */
.wall-compose {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 0 16px 14px;
}
.wall-compose textarea {
  width: 100%; min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--cream);
  font-size: 14px;
  resize: vertical;
  margin-bottom: 8px;
}
.wall-compose textarea:focus { outline: none; border-color: var(--sea); }

/* ============== INFO PAGE ============== */
.info-list { padding: 0 0 4px; }
.info-row {
  display: flex; align-items: start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.info-row:last-child { border-bottom: none; }
.info-row .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--cream-2);
  color: var(--ink-2);
  flex-shrink: 0;
}
.info-row .ico svg { width: 16px; height: 16px; }
.info-row .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.info-row .nm { font-size: 14px; color: var(--ink); margin-top: 2px; line-height: 1.4; }

/* Guide cards */
.guide-row {
  display: flex; align-items: center; gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}
.guide-row .av {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand-2), var(--terra-2));
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  flex-shrink: 0;
}
.guide-row .nm { font-weight: 500; font-size: 14.5px; }
.guide-row .rl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.guide-row .ph {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--sea);
  color: white;
  display: grid; place-items: center;
}
.guide-row .ph svg { width: 16px; height: 16px; }

/* Coach tag */
.coach-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.coach-tag .dot { width: 16px; height: 16px; border-radius: 999px; }

.bus-status {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream-2);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}
.bus-status .dot {
  width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0;
}
.bus-status .dot.unset { background: var(--line); }
.bus-status strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.bus-status small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Notify & install cards */
.notify-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 8px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.notify-row span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.notify-row span.granted { color: var(--leaf); }
.notify-row span.denied  { color: var(--terra); }
.notify-row .btn-pill {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-pill { background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.btn-pill.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-pill.terra { background: var(--terra); color: var(--cream); }

/* ============== PHOTO GALLERY ============== */
.photo-empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  margin: 0 16px 16px;
}
.photo-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.photo-empty .placeholder {
  height: 80px;
  margin-bottom: 14px;
  border-radius: var(--radius);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 0 16px;
}
.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(31,26,20,0.7));
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: end;
}
.photo .like-btn {
  background: rgba(250,245,237,0.2);
  border-radius: 999px;
  padding: 2px 7px;
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cream);
}
.photo .like-btn.liked { background: var(--terra); }
.photo .photo-author {
  position: absolute; top: 8px; left: 8px;
  background: rgba(31,26,20,0.55);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 999px;
  max-width: 70%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo .photo-marker {
  position: absolute; top: 8px; left: 8px; right: 38px;
  background: rgba(31,26,20,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}
.photo-marker-serial {
  position: absolute; top: 6px; left: 6px;
  background: rgba(31,26,20,0.7);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 999px;
}
.modal-marker {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.photo .photo-mine {
  position: absolute; top: 8px; right: 8px;
  background: var(--terra);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
}
.photo .local-badge {
  position: absolute; bottom: 28px; left: 8px;
  background: rgba(250,245,237,0.85);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 1px 6px; border-radius: 999px;
}

.photo-filter {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}
.photo-filter::-webkit-scrollbar { display: none; }

/* ============== CHALLENGES (Provocări) ============== */
.tabs {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 0 20px 14px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.tab-panel { animation: viewIn .24s ease; }

.mission-day {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 20px 14px;
}
.mission-day-head {
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--cream-2), white);
  border-bottom: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center;
}
.mission-day-head strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.mission-day-head small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mission {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .15s;
}
.mission:last-child { border-bottom: none; }
.mission:hover { background: var(--cream); }
.mission .mission-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mission .mission-text { flex: 1; min-width: 0; }
.mission .mission-text strong { display: block; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.mission .mission-text span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.mission .mission-points {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--terra);
  font-weight: 600;
  white-space: nowrap;
}
.mission .mission-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: white;
}
.mission.done { background: rgba(92,122,74,0.06); }
.mission.done .mission-text strong { text-decoration: line-through; color: var(--ink-3); }
.mission.done .mission-check { background: var(--leaf); border-color: var(--leaf); }

.bingo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin: 0 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
}
.bingo-cell {
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 8px;
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.bingo-cell:hover { background: var(--sand); }
.bingo-cell.done {
  background: var(--sea);
  color: var(--cream);
  font-weight: 500;
}
.bingo-cell.free {
  background: var(--terra);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  cursor: default;
}

.badge-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  padding: 0 20px;
}
.badge {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px 12px;
  text-align: center;
  transition: transform .15s;
}
.badge.locked { opacity: .4; filter: grayscale(.7); }
.badge-icon { font-size: 32px; display: block; margin-bottom: 6px; }
.badge-name { font-family: var(--serif); font-size: 13px; line-height: 1.15; font-weight: 400; }
.badge-desc {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.3;
}

.quiz-q, .poll {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0 20px 12px;
}
.quiz-q strong, .poll strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 400;
}
.quiz-options, .poll-options { display: flex; flex-direction: column; gap: 6px; }
.quiz-option, .poll-option {
  text-align: left;
  padding: 10px 14px;
  background: var(--cream-2);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.quiz-option:hover, .poll-option:hover { border-color: var(--sea); }
.quiz-option.correct { background: rgba(92,122,74,0.12); border-color: var(--leaf); color: var(--leaf); font-weight: 500; }
.quiz-option.wrong   { background: rgba(200,100,60,0.10); border-color: var(--terra); color: var(--terra); }
.quiz-explain {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}
.poll-option {
  display: flex; justify-content: space-between; align-items: center;
}
.poll-option.voted { border-color: var(--sea); }
.poll-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(30,92,126,0.10);
  z-index: 0;
  transition: width .3s ease;
}
.poll-option > * { position: relative; z-index: 1; }
.poll-pct {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.wishlist {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 20px;
  margin-bottom: 12px;
}
.wishlist li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.wishlist li.done { opacity: .55; }
.wishlist li.done span { text-decoration: line-through; }
.wishlist li .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.wishlist li.done .check { background: var(--leaf); border-color: var(--leaf); }
.wishlist li > span { flex: 1; font-size: 14px; }
.wishlist li button { color: var(--ink-3); font-size: 18px; padding: 4px; }

.wishlist-add {
  display: flex; gap: 8px;
  padding: 0 20px 12px;
}
.wishlist-add input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 14px;
}
.wishlist-add input:focus { outline: none; border-color: var(--sea); }
.wishlist-add button { padding: 10px 18px; background: var(--ink); color: var(--cream); border-radius: 10px; }

/* ============== RECAP ============== */
.recap-hero {
  position: relative;
  margin: 16px 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 200px;
  display: flex; align-items: flex-end;
  padding: 24px 22px 22px;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 10%, rgba(244,199,192,0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(184,137,62,0.5) 0%, transparent 60%),
    linear-gradient(160deg, var(--terra) 0%, var(--sea-deep) 100%);
}
.recap-hero h1 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.0;
  margin: 8px 0 4px;
  font-weight: 400;
}
.recap-hero h1 em { font-style: italic; color: #FFB88A; font-weight: 400; }

.recap-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 24px;
}
.recap-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.recap-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recap-stat-value {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--sea);
  margin-top: 6px;
  font-weight: 400;
}
.recap-stat-foot {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
@media (min-width: 480px) {
  .recap-stats { grid-template-columns: repeat(4, 1fr); }
}

.recap-podium {
  display: flex; align-items: end; gap: 8px;
  margin: 14px 0;
  justify-content: center;
}
.recap-podium-spot {
  flex: 1; max-width: 100px;
  background: var(--cream-2);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.recap-podium-spot .place { font-family: var(--serif); font-size: 24px; }
.recap-podium-spot.gold   { background: linear-gradient(135deg, #F5C674, #EDA830); height: 130px; color: #5C3A0E; }
.recap-podium-spot.silver { background: linear-gradient(135deg, #E5E5EC, #C8C8D6); height: 110px; color: #2A2A38; }
.recap-podium-spot.bronze { background: linear-gradient(135deg, #E0A578, #B97A4E); height: 100px; color: #4D2F1B; }
.recap-podium-spot strong { display: block; font-family: var(--serif); font-size: 14px; margin-top: 4px; font-weight: 400; }
.recap-podium-spot small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; opacity: .85; }

.recap-day {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0 20px 12px;
}
.recap-day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.recap-day-emoji { font-size: 28px; }
.recap-day-info h4 { font-family: var(--serif); margin: 0; font-size: 18px; font-weight: 400; }
.recap-day-info small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.recap-day-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.recap-day-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; }

.recap-teaser {
  margin: 0 20px 16px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  color: var(--cream);
  position: relative; overflow: hidden;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
}
.recap-teaser::before {
  content: ""; position: absolute; top: -50%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,198,116,0.4) 0%, transparent 60%);
  border-radius: 50%;
}
.recap-teaser .body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.recap-teaser .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.recap-teaser h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 4px; font-weight: 400; }
.recap-teaser p { margin: 0; font-size: 13px; color: rgba(250,245,237,0.85); line-height: 1.4; }
.recap-teaser .icon-big { font-size: 48px; flex-shrink: 0; position: relative; z-index: 1; }

/* ============== FAB ============== */
.fab {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: 16px;
  z-index: 35;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--terra);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(200,100,60,0.45);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.05); }
.fab:active { transform: scale(.96); }
.fab svg { width: 22px; height: 22px; }

@media (min-width: 480px) {
  .fab { right: calc(50% - 220px); }
}

/* ============== EMPTY STATES ============== */
.empty-state {
  text-align: center;
  padding: 32px 20px;
  margin: 0 20px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state span { font-size: 32px; display: block; margin-bottom: 8px; opacity: .55; }
.empty-state p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}
.empty-state strong { color: var(--terra); }

/* ============== MODAL ============== */
.modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(31,26,20,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: viewIn .25s ease;
}
.modal img { max-width: 100%; border-radius: var(--radius); display: block; margin: 0 auto 14px; }
.modal h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 400;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(31,26,20,0.06);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--ink-2);
}

.modal .field { display: block; margin-bottom: 14px; }
.modal .field > span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.modal .field input,
.modal .field select,
.modal .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 14px;
}
.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus {
  outline: none;
  border-color: var(--sea);
}

/* Comments inside photo modal */
.comment-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 14px 0;
  max-height: 220px; overflow-y: auto;
}
.comment {
  padding: 10px 12px;
  background: var(--cream-2);
  border-radius: 10px;
}
.comment-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 2px;
}
.comment-head strong { font-size: 13px; font-weight: 500; }
.comment-head time { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-3); }
.comment p { margin: 0; font-size: 13px; }
.comment-compose { display: flex; gap: 6px; }
.comment-compose input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 13px;
}
.comment-compose input:focus { outline: none; border-color: var(--sea); }

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease;
  max-width: 88vw;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============== CONFETTI ============== */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -20px;
  width: 8px; height: 12px;
  animation: confetti-fall 2.6s ease-out forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============== ACCESSIBILITY ============== */
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
.btn-primary:focus-visible, .btn-pill:focus-visible { outline-offset: 4px; }

/* ============== RESPONSIVE ============== */
@media (min-width: 480px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
}
