    /* Local fonts keep the app readable offline. */
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-300.ttf') format('truetype'); font-weight:300; font-display:swap; }
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-400.ttf') format('truetype'); font-weight:400; font-display:swap; }
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-500.ttf') format('truetype'); font-weight:500; font-display:swap; }
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-600.ttf') format('truetype'); font-weight:600; font-display:swap; }
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-700.ttf') format('truetype'); font-weight:700; font-display:swap; }
    @font-face { font-family:'Rubik'; src:url('/assets/fonts/rubik-900.ttf') format('truetype'); font-weight:900; font-display:swap; }
    /* ── CSS Variables ── */
    :root {
      --brand:      #2d6a9f;
      --brand-l:    #4a9fd4;
      --brand-d:    #1a3a5c;
      --bg:         #f5f7fa;
      --card:       #ffffff;
      --text:       #1a202c;
      --text2:      #718096;
      --border:     #e2e8f0;
      --border-l:   #f0f4f8;
      --label:      #a0aec0;
    }
    body.dark {
      --bg:       #0e1117;
      --card:     #161c2a;
      --text:     #dde3f0;
      --text2:    #7a90aa;
      --border:   #243048;
      --border-l: #1e2c40;
      --label:    #4d6070;
    }

    /* ── JS-generated content classes (dark mode safe) ── */
    .phrase-row { display:flex;justify-content:space-between;align-items:center;padding:11px 18px;border-bottom:1px solid var(--border-l); }
    .phrase-row:last-child { border-bottom:none; }
    .phrase-he { font-weight:700;color:var(--text);font-size:13px; }
    .phrase-cz { font-size:13px;color:var(--brand);font-weight:600; }
    .phrase-tr { font-size:11px;color:var(--label); }
    .sh-time-row { display:flex;gap:16px;flex-wrap:wrap;font-size:13px;padding:10px 0;color:var(--text2); }
    .sh-time-row strong { color:var(--text); }
    .sh-parasha-txt { color:var(--label); }
    .emrg-row { display:flex;align-items:center;gap:12px;padding:13px 18px;text-decoration:none;border-bottom:1px solid var(--border-l); }
    .emrg-row:last-child { border-bottom:none; }
    .emrg-title { font-weight:700;color:var(--text);font-size:14px; }
    .emrg-sub { font-size:12px;color:var(--text2); }
    #tab-info input, #tab-info select {
      background:var(--card);color:var(--text);border-color:var(--border);
      font-family:inherit;
    }

    /* ── Skeleton shimmer ── */
    .skeleton {
      background: linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 8px;
    }
    body.dark .skeleton {
      background: linear-gradient(90deg,#1e2c40 25%,#243048 50%,#1e2c40 75%);
      background-size: 200% 100%;
    }
    @keyframes shimmer {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ── scrollbar hiding ── */
    * { margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
    ::-webkit-scrollbar { display: none; }

    body {
      font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
      background: #f5f7fa;
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
      overflow-x: hidden;
      color: #1a202c;
      min-height: 100vh;
    }

    /* HERO */
    .hero {
      background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 60%, #4a9fd4 100%);
      color: white;
      padding: calc(28px + env(safe-area-inset-top)) 20px 22px;
      position: sticky;
      top: 0;
      z-index: 200;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
      transition: padding 0.3s ease, box-shadow 0.3s ease;
    }
    .hero.compact { padding: 10px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
    .hero.compact .hero-logo { max-height: 0; opacity: 0; margin: 0; pointer-events: none; }
    .hero.compact .hero-dates,
    .hero.compact .hero-badge,
    .hero.compact .hero-weather { max-height: 0; opacity: 0; margin: 0; overflow: hidden; pointer-events: none; }
    .hero.compact h1 { font-size: 15px !important; }
    .hero-logo { transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease; max-height: 300px; }
    .hero-dates, .hero-badge, .hero-weather { transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease; max-height: 80px; }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .hero-logo {
      width: 195px;
      height: 195px;
      object-fit: contain;
      margin-bottom: 10px;
    }
    .hero-text {
      text-align: center;
    }
    .hero h1 {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.5px;
      text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }
    .hero-dates {
      margin-top: 6px;
      font-size: 14px;
      opacity: 0.85;
      font-weight: 500;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      backdrop-filter: blur(4px);
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 12px;
    }

    /* TABS */
    .tabs-bar {
      display: flex;
      background: white;
      border-bottom: 2px solid #e2e8f0;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .tab-btn {
      flex: 1;
      padding: 14px 10px;
      border: none;
      background: none;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      color: #718096;
      transition: all 0.2s;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }
    .tab-btn.active {
      color: #2d6a9f;
    }
    .tab-btn.active::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0; right: 0;
      height: 3px;
      background: #2d6a9f;
      border-radius: 2px 2px 0 0;
    }
    .tab-btn:hover:not(.active) { background: #f7fafc; color: #4a5568; }
    .tab-icon { font-size: 18px; }

    /* CONTENT */
    .tab-content { display: none; padding: 20px 16px 96px; max-width: 680px; margin: 0 auto; }
    .tab-content.active { display: block; animation: fadeIn 0.22s ease; }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0);   }
    }

    /* SECTION LABEL */
    .section-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #a0aec0;
      margin: 24px 0 10px;
    }
    .section-label:first-child { margin-top: 4px; }

    /* CARDS */
    .card {
      background: white;
      border-radius: 16px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
      overflow: hidden;
      margin-bottom: 16px;
    }
    .card-header {
      padding: 16px 18px 12px;
      border-bottom: 1px solid #f0f4f8;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .card-header-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .card-header-info { flex: 1; }
    .card-title { font-size: 16px; font-weight: 700; color: #1a202c; letter-spacing: -.2px; }
    .card-subtitle { font-size: 13px; color: #8a98a8; margin-top: 2px; }

    /* FLIGHT CARD */
    .flight-row {
      display: flex;
      align-items: center;
      padding: 18px;
      gap: 12px;
    }
    .flight-city { text-align: center; flex: 1; }
    .flight-city .code { font-size: 28px; font-weight: 800; color: #1a202c; }
    .flight-city .name { font-size: 12px; color: #718096; margin-top: 2px; }
    .flight-city .time { font-size: 20px; font-weight: 700; color: #2d6a9f; margin-top: 6px; }
    .flight-middle {
      text-align: center;
      flex: 1;
      position: relative;
    }
    .flight-line {
      height: 2px;
      background: linear-gradient(to left, #4a9fd4, #2d6a9f);
      border-radius: 1px;
      position: relative;
      margin: 0 10px;
    }
    .flight-line::before {
      content: '';
      position: absolute;
      right: -4px; top: -4px;
      width: 10px; height: 10px;
      background: #4a9fd4;
      border-radius: 50%;
    }
    .flight-duration {
      font-size: 11px;
      color: #a0aec0;
      margin-top: 6px;
      font-weight: 600;
    }
    .flight-plane {
      font-size: 22px;
      margin-bottom: 4px;
    }
    .flight-badge {
      display: inline-block;
      background: #ebf8ff;
      color: #2b6cb0;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      margin: 0 18px 16px;
    }

    /* ACCOMMODATION CARD */
    .accom-card .card-header-icon { background: #ebf8ff; }

    .accom-dates {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 18px;
      background: #f7fafc;
      border-bottom: 1px solid #e2e8f0;
      font-size: 13px;
      color: #4a5568;
      font-weight: 600;
    }
    .nights-badge {
      margin-right: auto;
      background: #2d6a9f;
      color: white;
      padding: 2px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 700;
    }

    .accom-address {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 14px 18px;
      border-bottom: 1px solid #f0f4f8;
    }
    .accom-address-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
    .accom-address-text { font-size: 13px; color: #4a5568; line-height: 1.5; }

    .accom-sleeping {
      padding: 12px 18px;
      border-bottom: 1px solid #f0f4f8;
    }
    .accom-sleeping-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: #a0aec0;
      margin-bottom: 6px;
    }
    .accom-sleeping-text {
      font-size: 13px;
      color: #4a5568;
      line-height: 1.6;
    }


    .accom-actions {
      display: flex;
      gap: 8px;
      padding: 14px 18px;
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 10px 18px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.18s;
      border: none;
      cursor: pointer;
      min-height: 42px;
      letter-spacing: .1px;
    }
    .btn:active { transform: scale(0.96); }
    .btn-booking {
      background: #003580;
      color: white;
    }
    .btn-booking:hover { background: #002a65; }
    .btn-airbnb {
      background: #ff5a5f;
      color: white;
    }
    .btn-airbnb:hover { background: #e0484d; }
    .btn-gmaps {
      background: #34a853;
      color: white;
    }
    .btn-gmaps:hover { background: #2d9247; }
    .btn-waze {
      background: #05c8f0;
      color: white;
    }
    .btn-waze:hover { background: #04b2d6; }
    .btn-outline {
      background: #f0f4f8;
      color: #4a5568;
      border: 1px solid #e2e8f0;
    }
    .btn-outline:hover { background: #e2e8f0; }

    /* TIMELINE connector */
    .timeline-connector {
      display: flex;
      align-items: center;
      padding: 0 18px;
      height: 24px;
      position: relative;
    }
    .timeline-connector::before {
      content: '';
      position: absolute;
      right: 37px;
      top: 0; bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, #e2e8f0, #cbd5e0);
    }

    /* TRIP PROGRESS */
    .trip-summary {
      background: linear-gradient(135deg, #2d6a9f, #4a9fd4);
      border-radius: 16px;
      padding: 18px;
      color: white;
      margin-bottom: 16px;
    }
    .trip-summary-title { font-size: 13px; opacity: 0.8; margin-bottom: 12px; font-weight: 600; }
    .trip-legs {
      display: flex;
      gap: 0;
    }
    .trip-leg {
      flex: 1;
      text-align: center;
      position: relative;
    }
    .trip-leg:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 0; top: 14px;
      width: 100%;
      height: 2px;
      background: rgba(255,255,255,0.3);
    }
    .trip-leg-dot {
      width: 28px; height: 28px;
      background: rgba(255,255,255,0.2);
      border: 2px solid rgba(255,255,255,0.6);
      border-radius: 50%;
      margin: 0 auto 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px;
      position: relative;
      z-index: 1;
    }
    .trip-leg-city { font-size: 11px; font-weight: 700; }
    .trip-leg-dates { font-size: 9px; opacity: 0.75; margin-top: 2px; }

    /* DAILY SCHEDULE */
    .day-group-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #a0aec0;
      margin: 24px 0 10px;
    }
    .day-group-label:first-child { margin-top: 4px; }

    .day-card {
      background: white;
      border-radius: 16px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
      overflow: hidden;
      margin-bottom: 12px;
    }
    .day-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 16px;
      border-bottom: 1px solid #f0f4f8;
      cursor: pointer;
      user-select: none;
    }
    .day-header:hover { background: #fafbff; }
    .day-number {
      width: 42px; height: 42px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      font-weight: 900;
      color: white;
      flex-shrink: 0;
      box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }
    /* Today highlight */
    .day-card.today {
      box-shadow: 0 0 0 2px #2d6a9f, 0 6px 24px rgba(45,106,159,0.15);
    }
    .today-badge {
      font-size: 10px; font-weight: 700; color: white;
      background: #2d6a9f; padding: 3px 9px; border-radius: 20px;
      flex-shrink: 0; letter-spacing: .3px;
    }
    body.dark .day-card.today { box-shadow: 0 0 0 2px #4a9fd4, 0 6px 24px rgba(74,159,212,0.2); }
    body.dark .today-badge { background: #4a9fd4; }
    .day-header-info { flex: 1; }
    .day-title { font-size: 15px; font-weight: 700; color: #1a202c; letter-spacing: -.2px; }
    .day-date { font-size: 12px; color: #8a98a8; margin-top: 1px; }
    .day-chevron {
      font-size: 14px;
      color: #a0aec0;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-block;
    }
    .day-card.open .day-chevron { transform: rotate(180deg); }

    .day-body {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .day-card.open .day-body { max-height: 3000px; }

    @media (min-width: 560px) {
      .day-body { display: grid; grid-template-columns: 1.6fr 1fr; }
      .day-section { border-bottom: none; border-left: 1px solid #f0f4f8; }
      .day-section:first-child { border-left: none; }
      body.dark .day-section { border-left-color: #1e2c40; }
    }
    .day-section {
      padding: 14px 16px;
      border-bottom: 1px solid #f0f4f8;
    }
    .day-section:last-child { border-bottom: none; }
    .day-section-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 6px;
    }
    .day-section-label.activities { color: #2d6a9f; }
    .day-section-label.food { color: #c05621; }
    .day-section-text {
      font-size: 13px;
      color: #718096;
      line-height: 1.6;
      font-style: italic;
    }
    .location-pill {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 12px;
      margin-right: auto;
    }

    /* GALLERY */
    .btn-gallery-header {
      background: #ebf8ff;
      color: #2d6a9f;
      border: 1.5px solid #bee3f8;
      padding: 7px 13px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .btn-gallery-header:hover { background: #bee3f8; }

    .gallery-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 1000;
      flex-direction: column;
    }
    .gallery-overlay.open { display: flex; }

    .gallery-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      color: white;
    }
    .gallery-title { font-size: 15px; font-weight: 700; }
    .gallery-counter { font-size: 13px; opacity: 0.6; }
    .gallery-close {
      background: rgba(255,255,255,0.12);
      border: none;
      color: white;
      width: 34px; height: 34px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .gallery-close:hover { background: rgba(255,255,255,0.22); }

    .gallery-main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      padding: 0 56px;
    }
    .gallery-main img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 8px;
      user-select: none;
    }
    .gallery-nav {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,0.12);
      border: none;
      color: white;
      width: 42px; height: 42px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .gallery-nav:hover { background: rgba(255,255,255,0.25); }
    .gallery-nav.prev { right: 8px; }
    .gallery-nav.next { left: 8px; }

    .gallery-thumbs {
      display: flex;
      gap: 8px;
      padding: 12px 16px;
      overflow-x: auto;
      justify-content: center;
    }
    .gallery-thumb {
      width: 56px; height: 56px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      opacity: 0.5;
      border: 2px solid transparent;
      transition: all 0.15s;
      flex-shrink: 0;
    }
    .gallery-thumb.active { opacity: 1; border-color: white; }
    .gallery-thumb:hover { opacity: 0.85; }

    /* ATTRACTION ITEMS */
    .attraction-item {
      padding: 10px 16px;
      border-bottom: 1px solid #f0f4f8;
    }
    .attraction-item:last-child { border-bottom: none; }
    .attraction-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 3px;
    }
    .attraction-emoji { font-size: 17px; flex-shrink: 0; }
    .attraction-name { font-size: 13px; font-weight: 700; color: #1a202c; }
    .attraction-photo {
      width: 100%; height: 130px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 7px;
      display: block;
    }
    .attraction-desc {
      font-size: 12px;
      color: #718096;
      line-height: 1.55;
      margin-bottom: 7px;
    }
    .attraction-links { display: flex; gap: 6px; flex-wrap: wrap; }
    .btn-sm { padding: 5px 10px !important; font-size: 11px !important; border-radius: 8px !important; }

    /* MEALS */
    .meal-grid { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #4a5568; }
    .meal-item { display: flex; gap: 6px; line-height: 1.5; }
    .meal-label { font-weight: 700; color: #c05621; white-space: nowrap; min-width: 58px; }

    /* OPENSKY TRACKER */
    .tracker-card {
      background: #0d1f35; border: 1px solid rgba(74,159,212,.2);
      border-radius: 14px; overflow: hidden; margin-bottom: 8px;
    }
    .tracker-head {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 14px; background: rgba(74,159,212,.08);
      font-size: 11px; font-weight: 700; color: #4a9fd4;
      letter-spacing: .5px; text-transform: uppercase;
    }
    .tracker-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .tracker-dot.live { background: #48bb78; animation: blink 1.5s infinite; }
    .tracker-dot.off  { background: #4a5568; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
    .tracker-body { padding: 12px 14px; }
    .tracker-stats { display: flex; gap: 0; }
    .tracker-stat { flex: 1; text-align: center; padding: 6px 0; }
    .tracker-stat + .tracker-stat { border-right: 1px solid rgba(255,255,255,.07); }
    .tracker-num { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; }
    .tracker-lbl { font-size: 10px; color: rgba(255,255,255,.38); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }
    .tracker-status-line {
      font-size: 12px; padding: 6px 14px; font-weight: 700;
      border-top: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.5);
    }
    .tracker-status-line.airborne { color: #68d391; background: rgba(72,187,120,.06); }
    body.dark .tracker-card { border-color: rgba(74,159,212,.18); }

    /* COUNTDOWN */
    .countdown-card {
      background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
      border-radius: 20px; padding: 22px 18px; margin-bottom: 20px;
      text-align: center; color: white;
    }
    .countdown-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.7; margin-bottom: 14px; }
    .countdown-digits { display: flex; justify-content: center; align-items: center; gap: 6px; }
    .cd-unit { text-align: center; min-width: 64px; }
    .cd-num {
      display: block; font-size: 38px; font-weight: 900; line-height: 1;
      background: rgba(0,0,0,0.28); border-radius: 12px; padding: 10px 6px;
      letter-spacing: -1px; min-width: 62px;
      border: 1px solid rgba(255,255,255,0.14);
      box-shadow: 0 4px 14px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .cd-lbl { display: block; font-size: 10px; opacity: 0.65; margin-top: 6px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
    .cd-sep { font-size: 26px; font-weight: 900; opacity: 0.35; margin-bottom: 20px; }
    .countdown-card.done .cd-num { background: rgba(255,255,255,0.2); }

    /* FLIGHT STATUS BUTTON — full width */
    .btn-iaa {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 700;
      text-decoration: none; background: linear-gradient(135deg,#1a3a5c,#2d6a9f);
      color: white; transition: all 0.18s; letter-spacing: .2px;
      box-shadow: 0 3px 12px rgba(45,106,159,0.3);
    }
    .btn-iaa:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(45,106,159,0.4); }

    /* TODAY BANNER */
    .today-banner {
      background: linear-gradient(135deg, #2d6a9f, #4a9fd4);
      border-radius: 16px; padding: 16px 18px; margin-bottom: 18px;
      display: flex; align-items: center; gap: 14px; color: white;
      box-shadow: 0 4px 16px rgba(45,106,159,0.3);
    }
    body.dark .today-banner { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
    .today-icon { font-size: 28px; flex-shrink: 0; }
    .today-text { flex: 1; }
    .today-label { font-size: 13px; font-weight: 800; opacity: 0.85; }
    .today-desc  { font-size: 15px; font-weight: 700; margin-top: 2px; }
    .today-btn {
      background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35);
      color: white; padding: 8px 16px; border-radius: 10px;
      font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
      flex-shrink: 0; transition: background 0.15s;
    }
    .today-btn:hover { background: rgba(255,255,255,0.32); }

    /* ── HIDE OLD TAB BAR ── */
    .tabs-bar { display: none !important; }

    /* ── BOTTOM NAVIGATION — glassmorphism ── */
    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
      background: rgba(255,255,255,0.82);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-top: 1px solid rgba(0,0,0,.07);
      box-shadow: 0 -2px 20px rgba(0,0,0,.08);
      display: flex; height: 64px;
      padding-bottom: env(safe-area-inset-bottom);
    }
    /* nav-item styles — defined below with CSS variables (line ~1012) */
    .nav-label { font-size: 10px; font-weight: 600; letter-spacing: .2px; }

    /* dark mode nav */
    body.dark .bottom-nav { background: rgba(17,24,39,0.85); border-top-color: rgba(255,255,255,.06); }

    /* WEATHER BADGE */
    .hero-weather {
      display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
      background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
      padding: 4px 12px; border-radius: 20px; font-size: 11px; color: rgba(255,255,255,0.88);
    }

    /* CHECKLIST */
    .checklist-card {
      background: white; border-radius: 16px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
      overflow: hidden; margin-bottom: 14px;
    }
    .checklist-card-header {
      padding: 13px 18px; border-bottom: 1px solid #f0f4f8;
      display: flex; align-items: center; gap: 10px;
    }
    .checklist-card-icon {
      width: 38px; height: 38px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 19px; flex-shrink: 0;
    }
    .checklist-card-title { font-size: 15px; font-weight: 700; color: #1a202c; flex: 1; }
    .checklist-prog {
      background: #ebf8ff; color: #2b6cb0;
      padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
    }
    .check-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 18px; border-bottom: 1px solid #f7fafc;
      cursor: pointer; user-select: none; transition: background 0.1s;
    }
    .check-item:last-child { border-bottom: none; }
    .check-box {
      width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e0;
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      transition: all 0.15s; font-size: 13px; color: white; font-weight: 700;
    }
    .check-item.done .check-box { background: #2d6a9f; border-color: #2d6a9f; }
    .check-item.done .check-box::after { content: '✓'; }
    .check-label { flex: 1; font-size: 13px; color: #4a5568; transition: color 0.15s; }
    .check-item.done .check-label { text-decoration: line-through; color: #a0aec0; }
    .check-tag {
      font-size: 10px; color: #718096; background: #f0f4f8;
      padding: 2px 7px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
    }
    .checklist-reset {
      display: block; text-align: center; margin: 10px 18px 14px;
      padding: 8px; border-radius: 10px; background: #fff5f5;
      color: #c53030; border: 1px solid #fed7d7; font-size: 12px;
      font-weight: 600; cursor: pointer;
    }
    .pack-progress-bar {
      height: 4px; background: #e2e8f0; margin: 0 18px 14px; border-radius: 2px; overflow: hidden;
    }
    .pack-progress-fill { height: 100%; background: #2d6a9f; transition: width 0.3s; }
    .who-grid { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; }
    .who-row { display: flex; gap: 8px; font-size: 12px; color: #4a5568; padding: 3px 0; }
    .who-name { font-weight: 700; color: #2d6a9f; min-width: 80px; }

    /* FAMILY SELECTOR */
    .family-selector {
      background: white; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    }
    .family-selector-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #a0aec0; margin-bottom: 10px; }
    .family-btns { display: flex; flex-wrap: wrap; gap: 7px; }
    .family-btn {
      padding: 7px 15px; border-radius: 20px; border: 2px solid #e2e8f0;
      background: #f7fafc; font-size: 13px; font-weight: 600; cursor: pointer;
      color: #4a5568; transition: all 0.15s;
    }
    .family-btn.active { background: #2d6a9f; border-color: #2d6a9f; color: white; }
    .family-btn:hover:not(.active) { border-color: #2d6a9f; color: #2d6a9f; background: #ebf8ff; }
    .family-no-select {
      background: #fffbeb; border: 1px solid #fef08a; border-radius: 10px;
      padding: 9px 14px; font-size: 12px; color: #92400e; margin-top: 10px;
      display: none; font-weight: 600;
    }
    .family-no-select.visible { display: block; }

    /* RESPONSIVE */
    @media (max-width: 400px) {
      .hero h1 { font-size: 22px; }
      .flight-city .code { font-size: 22px; }
      .flight-city .time { font-size: 17px; }
    }

    /* ── DARK MODE ── */
    body.dark {
      background: #0e1117;
      color: #dde3f0;
    }
    .dark-toggle {
      position: absolute; top: 14px; left: 14px;
      background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
      border-radius: 20px; padding: 5px 12px; cursor: pointer;
      font-size: 14px; color: white; font-weight: 600; z-index: 10;
      transition: background 0.2s; display: flex; align-items: center; gap: 5px;
    }
    .dark-toggle:hover { background: rgba(255,255,255,0.24); }

    body.dark .card,
    body.dark .day-card,
    body.dark .checklist-card,
    body.dark .family-selector,
    body.dark .trip-summary ~ .card { background: #161c2a; border: 1px solid #243048; box-shadow: none; }

    body.dark .tabs-bar { background: #111827; border-bottom-color: #1f2d42; box-shadow: none; }
    body.dark .tab-btn { color: #7a90aa; }
    body.dark .tab-btn.active { color: #4a9fd4; }
    body.dark .tab-btn.active::after { background: #4a9fd4; }
    body.dark .tab-btn:hover:not(.active) { background: #1a2338; color: #b0c4d8; }

    body.dark .card-title,
    body.dark .day-title,
    body.dark .attraction-name,
    body.dark .checklist-card-title { color: #dde3f0; }

    body.dark .card-subtitle,
    body.dark .day-date,
    body.dark .attraction-desc,
    body.dark .day-section-text,
    body.dark .accom-address-text,
    body.dark .accom-sleeping-text { color: #7a90aa; }

    body.dark .card-header,
    body.dark .day-header,
    body.dark .day-section,
    body.dark .attraction-item,
    body.dark .accom-dates,
    body.dark .accom-address,
    body.dark .accom-sleeping,
    body.dark .accom-actions,
    body.dark .who-row { border-bottom-color: #1e2c40; border-color: #1e2c40; }

    body.dark .accom-dates { background: #111827; }
    body.dark .day-header:hover { background: #1a2338; }
    body.dark .section-label,
    body.dark .day-group-label,
    body.dark .accom-sleeping-title,
    body.dark .family-selector-title { color: #4d6070; }

    body.dark .check-box { border-color: #35485e; }
    body.dark .check-label { color: #b8cfe0; }
    body.dark .check-item.done .check-label { color: #3d5060; }
    body.dark .check-item { border-bottom-color: #1e2c40; }
    body.dark .check-tag { background: #1a2338; color: #607a90; }

    body.dark .meal-grid { color: #b0c4d8; }
    body.dark .meal-label { color: #e07030; }

    body.dark .flight-city .code { color: #dde3f0; }
    body.dark .flight-city .name { color: #7a90aa; }
    body.dark .flight-city .time { color: #4a9fd4; }
    body.dark .flight-duration { color: #7a90aa; }
    body.dark .flight-badge { background: #111827; color: #4a9fd4; }

    body.dark .btn-outline { background: #161c2a; color: #7a90aa; border-color: #243048; }
    body.dark .btn-outline:hover { background: #1e2c40; }

    body.dark .checklist-prog { background: #1a2f4a; color: #4a9fd4; }
    body.dark .pack-progress-bar { background: #1e2c40; }
    body.dark .checklist-reset { background: #1a0a0a; border-color: #4a1515; color: #e07070; }

    body.dark .who-name { color: #4a9fd4; }
    body.dark .who-v { color: #7a90aa; }

    body.dark .family-btn { background: #1a2338; border-color: #243048; color: #b0c4d8; }
    body.dark .family-btn.active { background: #2d6a9f; border-color: #2d6a9f; }
    body.dark .family-btn:hover:not(.active) { background: #1e2c40; border-color: #4a9fd4; }

    body.dark .day-section-label.activities { color: #4a9fd4; }
    body.dark .day-section-label.food { color: #e07030; }

    body.dark .countdown-card { /* already dark gradient, fine */ }

    body.dark .tab-content { color: #dde3f0; }
    body.dark .card-header-icon { background: #1a2338 !important; }
    body.dark .nights-badge { background: #1e3a5f; }
    body.dark .location-pill { opacity: 0.85; }
    /* ── APP SHELL 2.0 ── */
    body {
      background: var(--bg);
      color: var(--text);
      padding-top: calc(62px + env(safe-area-inset-top));
      transition: background .25s ease, color .25s ease;
    }
    .card,.day-card,.checklist-card,.family-selector { background:var(--card); }
    .card-title,.day-title,.attraction-name,.checklist-card-title { color:var(--text); }
    .card-subtitle,.day-date,.attraction-desc,.day-section-text,.accom-address-text,.accom-sleeping-text,.check-label,.who-row { color:var(--text2); }
    .card-header,.day-header,.day-section,.attraction-item,.accom-dates,.accom-address,.accom-sleeping,.accom-actions,.check-item,.checklist-card-header { border-color:var(--border-l); }
    .section-label,.day-group-label,.accom-sleeping-title,.family-selector-title { color:var(--label); }
    .accom-dates,.btn-outline,.check-tag,.family-btn { background:color-mix(in srgb,var(--card) 72%,var(--border-l));color:var(--text2);border-color:var(--border); }
    .hero { display: none !important; }
    .app-bar {
      position: fixed; inset: 0 0 auto 0; z-index: 250;
      min-height: calc(62px + env(safe-area-inset-top));
      padding: env(safe-area-inset-top) 16px 0;
      display: flex; align-items: center; gap: 12px;
      background: var(--card);
      background: color-mix(in srgb, var(--card) 88%, transparent);
      border-bottom: 1px solid var(--border-l);
      box-shadow: 0 2px 16px rgba(15,23,42,.06);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
    .app-bar-logo { width: 38px; height: 38px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
    .app-bar-copy { min-width: 0; flex: 1; }
    .app-bar-title { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .app-bar-subtitle { font-size: 11px; color: var(--text2); margin-top: 2px; }
    .app-weather {
      border: 0; background: var(--border-l); color: var(--text);
      min-height: 36px; padding: 0 10px; border-radius: 12px;
      font: 700 11px 'Rubik',sans-serif; cursor: pointer; white-space: nowrap;
    }
    .app-dark-toggle {
      width: 36px; height: 36px; border: 0; border-radius: 12px;
      background: var(--border-l); color: var(--text); cursor: pointer;
      display: grid; place-items: center;
    }
    .icon { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .nav-icon .icon { width: 22px; height: 22px; }
    .bottom-nav { height: calc(64px + env(safe-area-inset-bottom)); }
    .nav-item {
      flex: 1; display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 3px; border: none; background: none;
      cursor: pointer; color: var(--label);
      transition: color 0.2s, transform 0.15s;
      font-family: 'Rubik', sans-serif; font-size: 11px; font-weight: 600;
      padding: 0; -webkit-tap-highlight-color: transparent; position: relative;
    }
    .nav-item:active { transform: scale(0.92); }
    .nav-item.active { color: var(--brand); }
    .nav-item.active::before {
      content:''; position:absolute; top:5px; width:28px; height:3px;
      border-radius:3px; background:currentColor;
    }
    .tab-content { padding-top: 18px; }
    .tab-content.enter-forward { animation: tabForward .24s ease; }
    .tab-content.enter-back { animation: tabBack .24s ease; }
    @keyframes tabForward { from { opacity:0; transform:translateX(-18px) } to { opacity:1; transform:none } }
    @keyframes tabBack { from { opacity:0; transform:translateX(18px) } to { opacity:1; transform:none } }

    /* Home dashboard and navigation hubs */
    .home-welcome {
      position: relative; overflow: hidden; padding: 22px; border-radius: 24px;
      color: white; margin-bottom: 16px;
      background: linear-gradient(135deg,var(--brand-d),var(--brand),var(--brand-l));
      box-shadow: 0 10px 28px rgba(45,106,159,.25);
    }
    .home-kicker { font-size: 12px; opacity:.75; font-weight:700; }
    .home-title { font-size: 23px; line-height:1.25; font-weight:900; margin-top:5px; }
    .home-desc { font-size:13px; opacity:.86; margin-top:10px; line-height:1.5; }

    /* ── Home compact countdown ── */
    .home-cd { display:flex; align-items:center; gap:7px; margin-top:14px; }
    .home-cd-unit { text-align:center; }
    .home-cd-num {
      display:block; font-size:22px; font-weight:900; letter-spacing:-1px;
      background:rgba(0,0,0,0.22); border-radius:8px; padding:5px 8px; min-width:38px;
      border:1px solid rgba(255,255,255,0.13);
    }
    .home-cd-lbl { display:block; font-size:9px; opacity:0.6; margin-top:3px; font-weight:600; letter-spacing:.3px; text-transform:uppercase; }
    .home-cd-sep { font-size:18px; font-weight:900; opacity:0.35; margin-bottom:14px; }
    .dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
    .dash-card {
      min-height:112px; padding:16px; border:1px solid var(--border-l); border-radius:18px;
      background:var(--card); color:var(--text); box-shadow:0 3px 14px rgba(15,23,42,.05);
      cursor:pointer; text-align:right; font-family:inherit; transition:transform .15s, box-shadow .15s;
    }
    .dash-card:active,.hub-card:active { transform:scale(.97); }
    .dash-icon {
      width:36px;height:36px;border-radius:11px;background:#ebf8ff;background:color-mix(in srgb,var(--brand) 12%,var(--card));
      color:var(--brand);display:grid;place-items:center;margin-bottom:10px;
    }
    .dash-title { font-size:13px;font-weight:800; }
    .dash-value { font-size:12px;color:var(--text2);margin-top:4px;line-height:1.4; }
    .quick-actions { display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px; }
    .quick-action {
      border:0;background:transparent;color:var(--text2);font:600 10px 'Rubik',sans-serif;
      display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;
    }
    .quick-icon { width:46px;height:46px;border-radius:15px;background:var(--card);border:1px solid var(--border-l);display:grid;place-items:center;color:var(--brand);box-shadow:0 2px 9px rgba(15,23,42,.05); }
    .hub-grid { display:grid;gap:12px; }
    .hub-card {
      display:flex;align-items:center;gap:14px;width:100%;padding:17px;border:1px solid var(--border-l);
      border-radius:18px;background:var(--card);color:var(--text);text-align:right;font-family:inherit;cursor:pointer;
      box-shadow:0 3px 14px rgba(15,23,42,.05);
    }
    .hub-icon { width:44px;height:44px;border-radius:14px;background:#ebf8ff;background:color-mix(in srgb,var(--brand) 12%,var(--card));color:var(--brand);display:grid;place-items:center;flex-shrink:0; }
    .hub-copy { flex:1; }
    .hub-title { font-size:15px;font-weight:800; }
    .hub-desc { font-size:12px;color:var(--text2);margin-top:3px; }
    .hub-chevron { color:var(--label);transform:rotate(180deg); }
    .section-heading { font-size:18px;font-weight:900;color:var(--text);margin:2px 0 4px; }
    .section-intro { font-size:13px;color:var(--text2);margin-bottom:16px; }

    /* Pull to refresh and micro interactions */
    .refresh-indicator {
      position:fixed; top:calc(70px + env(safe-area-inset-top)); left:50%; z-index:240;
      transform:translate(-50%,-90px); opacity:0; transition:.22s;
      background:var(--text);color:var(--card);border-radius:20px;padding:8px 14px;
      font-size:12px;font-weight:700;box-shadow:0 5px 20px rgba(0,0,0,.2);
    }
    .refresh-indicator.visible { transform:translate(-50%,0);opacity:1; }
    .check-item.done .check-box { animation:checkPop .28s cubic-bezier(.2,.9,.3,1.4); }
    @keyframes checkPop { 50% { transform:scale(1.25) rotate(-5deg); } }
    .cd-num.tick { animation:digitTick .24s ease; }
    @keyframes digitTick { 50% { transform:translateY(-2px);filter:brightness(1.18); } }
    .ripple-host { position:relative;overflow:hidden; }
    .ripple-wave {
      position:absolute;border-radius:50%;pointer-events:none;
      background:currentColor;opacity:.12;transform:scale(0);
      animation:rippleWave .5s ease-out;
    }
    @keyframes rippleWave { to { transform:scale(3);opacity:0; } }
    .btn,.nav-item,.dash-card,.hub-card,.quick-action,.app-dark-toggle,.app-weather { -webkit-tap-highlight-color:transparent; }
    @media (prefers-reduced-motion:reduce) {
      *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
    }
    @media (min-width:700px) {
      .dashboard-grid { grid-template-columns:repeat(4,1fr); }
      .hub-grid { grid-template-columns:1fr 1fr; }
    }
