/* ===============================
   MOBILE-FIRST DESIGN SYSTEM
================================ */
:root {
  --ink: #1c1f24;
  --muted: #6b7280;
  --paper: #f4f3ef;
  --card: #ffffff;
  --accent: #b89b5e;
  --accent-soft: rgba(184,155,94,0.16);
  --border: rgba(0,0,0,0.08);
  --danger: #b42318;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
  padding-top: 88px;
  padding-bottom: 88px;
}

/* ===============================
   LOADING SCREEN
================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===============================
   ERROR SCREEN
================================ */
.error-screen {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.error-content {
  text-align: center;
  max-width: 400px;
}

.error-content h1 {
  font-size: 4rem;
  margin: 0 0 20px 0;
}

.error-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 15px 0;
}

.error-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: 920px;
  padding: 16px 14px;
  margin: 0 auto;
}

/* ===============================
   ITINERARY HEADER (HERO)
================================ */
.itinerary-header {
  margin-top: 18px;
  padding-bottom: 14px;
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.header-client {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
}

.header-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.header-print {
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--muted);
  padding: 6px;
}

.header-print:hover {
  color: var(--ink);
}

/* ===============================
   CARDS
================================ */
.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.05),
    0 1px 6px rgba(0,0,0,0.04);
  margin-bottom: 16px;
  animation: fadeUp 0.45s ease both;
}

.card-body {
  padding: 16px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 14px;
  line-height: 1.4;
  font-weight: 700;
}

/* ===============================
   SUMMARY – TRAVEL BUDGET SEAL
================================ */
.summary-hero-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 26px;
}

.summary-hero-wrap .card {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}

.summary-hero-wrap .card-body {
  padding: 22px 28px 24px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(184,155,94,0.18),
      rgba(184,155,94,0.06) 55%,
      transparent 70%
    );
  border: 1px solid rgba(184,155,94,0.35);
  min-width: 260px;
}

.summary-hero-wrap h5 {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-hero-wrap strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 2px;
}

.summary-hero-wrap .d-flex {
  justify-content: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .summary-hero-wrap .card-body {
    animation: summaryReveal 0.6s ease both;
  }

  @keyframes summaryReveal {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ===============================
   TEXT
================================ */
p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

.text-muted {
  color: var(--muted) !important;
}

/* ===============================
   BUTTONS
================================ */
.btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-primary:active {
  background: var(--accent);
  color: #fff;
}

/* ===============================
   BACK TO TOP
================================ */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1c1f24, #2a2f36);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
  cursor: pointer;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* RTL Support */
html[dir="rtl"] #backToTop {
  left: 20px;
  right: auto;
}

/* ===============================
   INFO BLOCKS (CARD CONTENT)
================================ */
.info-block {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfaf7);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.info-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.flight-block {
  background: linear-gradient(180deg, #f8fbff, #fbfaf7);
  border-left: 3px solid rgba(66, 133, 244, 0.3);
}

.hotel-block {
  background: linear-gradient(180deg, #fffaf5, #fbfaf7);
  border-left: 3px solid rgba(251, 140, 0, 0.3);
}

.ferry-block {
  background: linear-gradient(180deg, #f5f9ff, #fbfaf7);
  border-left: 3px solid rgba(33, 150, 243, 0.3);
}

.taxi-block {
  background: linear-gradient(180deg, #fffef5, #fbfaf7);
  border-left: 3px solid rgba(255, 193, 7, 0.3);
}

/* Connection Flight Styles */
.connection-flight {
  border-left: 3px solid var(--accent);
}

.connection-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--ink);
}

.flight-segment {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.flight-segment:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.segment-layover {
  padding-top: 16px;
}

.segment-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.layover-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.layover-location {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.layover-duration {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 16px;
  margin-top: 12px;
}

.info-item {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 600;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--ink);
}

/* ===============================
   NOTES & STATUS
================================ */
.info-notes {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(184,155,94,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.info-notes span {
  font-weight: 600;
  margin-right: 6px;
  font-size: 0.9rem;
}

.status-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--ink);
}

/* ===============================
   TIMELINE RAIL
================================ */
.timeline {
  position: relative;
  padding-left: 22px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.35;
}

.timeline-node {
  position: absolute;
  left: -2px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline.is-active {
  opacity: 1;
  transform: translateX(0);
}

.timeline.is-past {
  opacity: 0.45;
}

.timeline.is-active .timeline-node {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(13,110,253,0.15);
}

/* ===============================
   COUNTRY CHIP
================================ */
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.chip-divider {
  color: var(--muted);
  opacity: 0.5;
}

/* ===============================
   FLOATING DATE INDICATOR
================================ */
.floating-date {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0d6efd;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
}

.floating-date.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-date:active {
  background: rgba(230,240,255,0.95);
}

/* ── Day Navigator Bottom Sheet ─────────────────────────── */
.day-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.day-nav-overlay.open {
  opacity: 1;
}

.day-nav-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 9999;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

.day-nav-sheet.open {
  transform: translateY(0);
}

.day-nav-handle {
  width: 36px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.day-nav-header {
  padding: 12px 20px 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #1c1f24;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.day-nav-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0 env(safe-area-inset-bottom, 16px);
}

.day-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s;
}

.day-nav-item:last-child {
  border-bottom: none;
}

.day-nav-item:active {
  background: rgba(13,110,253,0.06);
}

.day-nav-item.current {
  background: rgba(13,110,253,0.05);
}

.day-nav-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #0d6efd;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.day-nav-item.current .day-nav-num {
  background: #0d6efd;
  color: #fff;
}

.day-nav-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1c1f24;
  line-height: 1.3;
}

.day-nav-sub {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 1px;
}

/* ===============================
   OFFLINE INDICATOR
================================ */
.offline-badge {
  position: fixed;
  top: 14px;
  right: 14px;
  background: rgba(251, 140, 0, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(251, 140, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offline-badge.show {
  opacity: 1;
}

/* Install prompt */
.install-prompt {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28,31,36,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-prompt.show {
  opacity: 1;
  visibility: visible;
}

.install-prompt button {
  background: var(--accent);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.install-prompt .close-prompt {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 8px;
}

/* ===============================
   CHIP BASE (PRICE + STATUS)
================================ */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
}

.info-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-chip.success {
  background: rgba(34,197,94,0.2);
  color: #166534;
  font-weight: 600;
}

.status-chip.paid {
  background: rgba(59,130,246,0.2);
  color: #1e3a8a;
  font-weight: 600;
}

.status-chip.neutral {
  background: rgba(0,0,0,0.08);
  color: var(--ink);
  font-weight: 600;
}

.status-chip.pending {
  background: rgba(184,155,94,0.22);
  color: #6b4e16;
  font-weight: 600;
}

/* ===============================
   CONNECTION FLIGHTS
================================ */
.connection-flight {
  border-left: 4px solid var(--accent);
}

.connection-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--ink);
}

.flight-segment {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.flight-segment:last-child {
  border-bottom: none;
}

.flight-segment:first-child {
  padding-top: 0;
}

.segment-layover {
  padding-top: 20px;
}

/* ===============================
   BUTTON IMPROVEMENTS
================================ */
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-success {
  border-width: 1.5px;
}

.btn-outline-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34,197,94,0.15);
}

.btn-outline-primary {
  border-width: 1.5px;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13,110,253,0.15);
}

.d-flex.gap-2 {
  gap: 10px !important;
}

/* ===============================
   DOWNLOAD ALL BUTTON
================================ */
.download-all-container {
  margin-top: 20px;
  text-align: center;
}

.btn-download-all {
  background: linear-gradient(135deg, var(--accent), #d4a96b);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184,155,94,0.25);
}

.btn-download-all:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184,155,94,0.35);
}

.btn-download-all:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   SECURE PORTAL (VERIFICATION MODAL)
================================ */
.secure-portal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.secure-portal.active {
  opacity: 1;
  pointer-events: all;
}

.secure-sheet {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.secure-portal.active .secure-sheet {
  transform: scale(1);
}

.secure-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.secure-close:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.secure-header {
  text-align: center;
  margin-bottom: 24px;
}

.secure-icon-ring {
  width: 72px;
  height: 72px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.secure-icon {
  font-size: 2rem;
}

.secure-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.secure-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.secure-content {
  margin-top: 24px;
}

.secure-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.secure-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: var(--paper);
}

.secure-input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.secure-error {
  background: #fee;
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

.secure-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.secure-btn:hover:not(:disabled) {
  background: #a5884f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,155,94,0.3);
}

.secure-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secure-loading {
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.secure-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ===============================
   NOTIFICATION MODAL (Custom Alert)
================================ */
.notification-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.notification-modal.active {
  opacity: 1;
  pointer-events: all;
}

.notification-sheet {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.notification-modal.active .notification-sheet {
  transform: scale(1);
}

.notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.notification-content {
  text-align: center;
}

.notification-icon-ring {
  width: 80px;
  height: 80px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: background 0.3s ease;
}

.notification-icon {
  font-size: 2.5rem;
}

.notification-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.notification-message {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
  white-space: pre-line;
}

.notification-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: #a5884f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,155,94,0.3);
}

/* ===============================
   OFFLINE BADGE ON BUTTONS
================================ */
.btn-success {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
}

.btn-success:hover {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34,197,94,0.25);
}

/* ===============================
   PRINT MODE
================================ */
@media print {
  body {
    background: #fff !important;
    padding-top: 88px;
  }

  .floating-date,
  #backToTop,
  .offline-badge,
  .install-prompt,
  .loading-screen,
  .error-screen,
  .secure-portal,
  .download-all-container,
  button,
  a[target="_blank"] {
    display: none !important;
  }

  .timeline {
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }

  .timeline-node {
    box-shadow: none !important;
    transform: scale(1);
  }

  hr {
    border-color: #ddd;
  }
}

