/* ==========================================================================
   SWISS 7N8D MOBILE TIMELINE - STYLESHEET
   Aesthetics: Luxury Alpine Clean, Frosted Glassmorphism, Rich Photography
   ========================================================================== */

:root {
  --primary-alp: #00818a;
  --primary-deep: #072a40;
  --accent-ice: #00b4d8;
  --accent-gold: #e76f51;
  --accent-green: #2a9d8f;
  --swiss-red: #e63946;
  
  --bg-page: #0b1320;
  --bg-mobile: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.8);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 10px 30px rgba(0, 129, 138, 0.25);
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Plus Jakarta Sans', var(--font-sans);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Outer Desktop Frame Container */
.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-mobile);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* Space for bottom dock */
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(13, 27, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swiss-flag {
  width: 18px;
  height: 18px;
  background-color: var(--swiss-red);
  border-radius: 4px;
  position: relative;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(230, 57, 70, 0.4);
}
.swiss-flag::before, .swiss-flag::after {
  content: '';
  position: absolute;
  background-color: white;
}
.swiss-flag::before {
  top: 3px;
  bottom: 3px;
  left: 7px;
  right: 7px;
}
.swiss-flag::after {
  left: 3px;
  right: 3px;
  top: 7px;
  bottom: 7px;
}

.brand-text {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text-white);
}
.brand-text span {
  font-weight: 400;
  color: var(--accent-ice);
  font-size: 0.85rem;
  margin-left: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-sync-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.25s ease;
  user-select: none;
}

.cloud-sync-badge.synced {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.cloud-sync-badge.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.header-dual-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.header-dual-pill strong {
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 700;
}

.pill-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
}

/* Hero Section Dual Time Banner Card */
.dual-time-container {
  display: flex;
  align-items: stretch;
  background: rgba(11, 27, 44, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.time-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.time-box-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.time-box-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.time-box-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.time-box-clock {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: #7ee8fa;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.korea-box .time-box-clock {
  color: #fed7aa;
}

.time-box-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover, .icon-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.96);
}

/* ==========================================================================
   Hero Section (Reference Design Alignment)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 400px;
  padding: 26px 18px 22px;
  background-image: url('./hero_matterhorn.png');
  background-size: cover;
  background-position: center 26%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 32, 0.22) 0%,
    rgba(11, 19, 32, 0.55) 45%,
    rgba(11, 19, 32, 0.95) 100%
  );
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #7ee8fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Weather & Temperature Widget with Select Bar
   ========================================================================== */
.weather-widget-card {
  background: rgba(11, 27, 44, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.weather-widget-top {
  margin-bottom: 8px;
}

.weather-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
}

.weather-pin-icon {
  font-size: 0.95rem;
}

.weather-select {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.weather-select option {
  background: #0f172a;
  color: #ffffff;
}

.weather-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.weather-main-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-icon-large {
  font-size: 1.85rem;
  line-height: 1;
}

.weather-temp-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.weather-temp-val {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.weather-condition {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7ee8fa;
}

.weather-range {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.weather-altitude-badge {
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.weather-tip-strip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 0.73rem;
  color: #fed7aa;
  line-height: 1.35;
}

/* ==========================================================================
   Sticky Day Selector Tabs (Swipeable)
   ========================================================================== */
.sticky-tabs-wrapper {
  position: sticky;
  top: 57px;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.tabs-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px;
  gap: 6px;
}
.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.day-tab-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s ease;
  min-width: 72px;
}

.day-tab-btn .tab-day {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.85rem;
  color: #475569;
}

.day-tab-btn .tab-date {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.day-tab-btn.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(7, 42, 64, 0.25);
  transform: translateY(-1px);
}
.day-tab-btn.active .tab-day {
  color: #ffffff;
}
.day-tab-btn.active .tab-date {
  color: var(--accent-ice);
  font-weight: 600;
}

/* ==========================================================================
   Main Content Area & Day Banner
   ========================================================================== */
.content-area {
  padding: 16px 16px 24px;
}

.active-day-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.active-day-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 64, 0.4) 0%, rgba(7, 42, 64, 0.9) 100%);
  z-index: 1;
}

.active-day-banner > * {
  position: relative;
  z-index: 2;
}

.day-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-index-pill {
  background: var(--accent-gold);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.day-date-str {
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
}

.day-expense-trigger-pill {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.day-expense-trigger-pill:hover, .day-expense-trigger-pill:active {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}
.day-expense-trigger-pill.empty {
  background: rgba(255, 255, 255, 0.15);
  border-style: dashed;
}

.active-day-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.active-day-summary {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.4;
}

.day-highlights-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-tag-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   Filter Chips
   ========================================================================== */
.filter-chips-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filter-chips-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--primary-alp);
  border-color: var(--primary-alp);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 129, 138, 0.3);
}

/* ==========================================================================
   Timeline Items
   ========================================================================== */
.timeline-container {
  position: relative;
  padding-left: 20px;
  margin-bottom: 24px;
}

/* Continuous timeline vertical track line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 3px;
  background: linear-gradient(180deg, #00818a 0%, #cbd5e1 95%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.timeline-item.hidden {
  display: none;
}

/* Node indicator circle */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 16px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 3px solid var(--primary-alp);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 129, 138, 0.2);
  z-index: 2;
  transition: all 0.2s ease;
}

.timeline-item.completed::before {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Card */
.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.timeline-item.completed .timeline-card {
  opacity: 0.65;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.timeline-item.completed .card-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e6f4f1;
  color: var(--primary-alp);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}
.category-badge.move { background: #e0f2fe; color: #0369a1; }
.category-badge.tour { background: #f3e8ff; color: #7e22ce; }
.category-badge.trek { background: #dcfce7; color: #15803d; }
.category-badge.eat  { background: #ffedd5; color: #c2410c; }
.category-badge.tip  { background: #fee2e2; color: #b91c1c; }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-photo-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-photo-box:hover img {
  transform: scale(1.04);
}

.card-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 8px;
}

/* Tip Highlight Box inside Card */
.card-highlight-tip {
  background: #fefce8;
  border-left: 3px solid #eab308;
  padding: 8px 12px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.78rem;
  color: #854d0e;
  line-height: 1.4;
  margin-bottom: 10px;
}
.card-highlight-tip strong {
  color: #713f12;
}

/* Action row with Copy, Link, and Complete Checkbox */
.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.btn-copy-address {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-address:hover, .btn-copy-address:active {
  background: #e2e8f0;
}

.btn-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.check-complete-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  margin-left: auto;
}
.check-complete-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-alp);
}

/* ==========================================================================
   Day Navigation Switcher Buttons
   ========================================================================== */
.day-navigation-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.nav-prev-btn, .nav-next-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.nav-next-btn {
  align-items: flex-end;
}
.nav-prev-btn span, .nav-next-btn span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-deep);
}
.nav-prev-btn small, .nav-next-btn small {
  font-size: 0.72rem;
  color: #64748b;
}

.nav-prev-btn:disabled, .nav-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* ==========================================================================
   Trip Gallery Mosaic (Reference Matching)
   ========================================================================== */
.trip-gallery-section, .useful-info-section {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.section-title-wrap {
  margin-bottom: 14px;
}

.sub-badge {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-alp);
  display: inline-block;
  margin-bottom: 2px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mosaic-item {
  height: 120px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.mosaic-item.large {
  grid-column: span 2;
  height: 160px;
}

.mosaic-item.wide {
  grid-column: span 2;
  height: 130px;
}

.mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  padding: 16px 10px 8px;
  color: white;
  display: flex;
  flex-direction: column;
}
.mosaic-label span {
  font-size: 0.82rem;
  font-weight: 700;
}
.mosaic-label small {
  font-size: 0.68rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Useful Tips Accordion
   ========================================================================== */
.info-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.accordion-header .arrow {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}
.accordion-item.open .accordion-body {
  display: block;
}
.accordion-body p {
  margin-bottom: 6px;
}
.accordion-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Bottom Footer
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 24px 16px 12px;
  color: #94a3b8;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.swiss-flag-small {
  width: 12px;
  height: 12px;
  background: var(--swiss-red);
  border-radius: 2px;
  display: inline-block;
}

.footer-copy {
  font-size: 0.74rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.scroll-top-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ==========================================================================
   Bottom Floating Dock Navigation
   ========================================================================== */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 70;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.dock-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.18s ease;
  border-radius: var(--radius-sm);
  user-select: none;
}

.dock-icon, .dock-label {
  pointer-events: none;
}

.dock-icon {
  font-size: 1.25rem;
}

.dock-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.dock-item.active, .dock-item:active {
  color: var(--primary-alp);
  transform: translateY(-2px);
}
.dock-item.active .dock-label {
  font-weight: 800;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-message {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  white-space: nowrap;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 32, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content, .drawer-content {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px 32px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content,
.modal-overlay.active .drawer-content {
  transform: translateY(0);
}

.modal-header, .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.modal-intro {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Webcam List inside Modal */
.webcam-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.webcam-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.webcam-card:hover, .webcam-card:active {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.webcam-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--primary-deep);
  margin-bottom: 2px;
}
.webcam-info small {
  font-size: 0.72rem;
  color: #64748b;
}

.webcam-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* ==========================================================================
   Travel Expense Calculator & Ledger Modal
   ========================================================================== */
.expense-modal-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.expense-modal-content .modal-header {
  padding: 16px 20px 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  font-size: 1.5rem;
}

.modal-header-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.expense-modal-body {
  padding: 16px 20px 32px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.expense-field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.field-label .text-muted {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* 1. Currency Toggle & Amount Input */
.expense-currency-toggle {
  display: flex;
  background: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  margin-bottom: 8px;
}

.curr-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curr-toggle-btn.active {
  background: #ffffff;
  color: var(--primary-deep);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.expense-amount-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px 16px;
  gap: 10px;
  transition: all 0.2s ease;
}

.expense-amount-box:focus-within {
  border-color: var(--primary-alp);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 129, 138, 0.12);
}

.expense-amount-symbol {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-alp);
  font-family: var(--font-brand);
  min-width: 38px;
}

.expense-amount-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-brand);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 0;
  width: 100%;
}

.expense-amount-input::placeholder {
  color: #cbd5e1;
}

.btn-clear-input {
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.exchange-preview-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 6px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.exchange-rate-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.exchange-val {
  font-weight: 800;
  color: var(--accent-gold);
}

.exchange-rate-desc {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* 2. Category 6-chip Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}

.cat-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cat-chip:active {
  transform: scale(0.97);
}

.cat-chip.active {
  border-color: var(--primary-alp);
  background: rgba(0, 129, 138, 0.08);
  box-shadow: 0 2px 8px rgba(0, 129, 138, 0.12);
}

.cat-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cat-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
}

.cat-chip.active .cat-text {
  color: var(--primary-deep);
  font-weight: 800;
}

/* 3. Payment Method & Settlement Segment Controls */
.expense-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.expense-dual-grid .expense-field-group {
  margin-bottom: 0;
}

.segment-group {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  min-height: 40px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.seg-btn:active {
  transform: scale(0.97);
}

.seg-btn.active {
  background: #ffffff;
  color: var(--primary-deep);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* 4. Single-line Memo Input */
.expense-memo-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.86rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.expense-memo-input:focus {
  border-color: var(--primary-alp);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 129, 138, 0.1);
}

.expense-memo-input::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
}

/* 5. Save Expense Action Button (Placed directly under Memo) */
.expense-submit-box {
  margin-top: 10px;
  margin-bottom: 22px;
}

.btn-save-expense {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, var(--primary-alp) 0%, #00666e 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 129, 138, 0.35);
  transition: all 0.18s ease;
}

.btn-save-expense:hover {
  filter: brightness(1.04);
}

.btn-save-expense:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 129, 138, 0.25);
}

.btn-save-icon {
  font-size: 1.3rem;
  font-weight: 900;
}

/* Day Selection Chip Scroll */
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.field-help {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-alp);
}

.day-select-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.day-select-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.day-select-chip small {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
}

.day-select-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.day-select-chip.active {
  border-color: var(--primary-alp);
  background: rgba(0, 129, 138, 0.1);
  color: var(--primary-deep);
  box-shadow: 0 2px 6px rgba(0, 129, 138, 0.15);
}

.day-select-chip.active small {
  color: var(--primary-alp);
  font-weight: 700;
}

/* ==========================================================================
   Expense Dashboard Panel: Grand Cumulative + Day 1 ~ Day 8 Breakdown
   ========================================================================== */
.expense-dashboard-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Grand Cumulative Total Card (At page bottom) */
.grand-cumul-card {
  background: linear-gradient(135deg, #072a40 0%, #0d3b59 100%);
  border-radius: 18px;
  padding: 16px 18px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 42, 64, 0.22);
  margin-top: 10px;
  margin-bottom: 24px;
}

.grand-cumul-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.grand-cumul-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 9px;
  border-radius: 20px;
  color: #e0f2fe;
}

.grand-cumul-card .btn-clear-history {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.grand-cumul-card .btn-clear-history:hover {
  color: #fca5a5;
}

.grand-cumul-main {
  margin-bottom: 12px;
}

.grand-cumul-label {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}

.grand-cumul-val {
  font-size: 1.95rem;
  font-weight: 800;
  font-family: var(--font-brand);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.grand-cumul-sub {
  font-size: 0.84rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 3px;
}

.grand-cumul-split {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.split-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.split-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.split-pill.shared .split-dot {
  background: #38bdf8;
}

.split-pill.personal .split-dot {
  background: #fb923c;
}

/* 2. Day 1 ~ Day 8 Daily Breakdown Section */
.daily-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.section-hint {
  font-size: 0.7rem;
  color: #94a3b8;
}

.daily-cards-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Daily Card */
.daily-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.daily-card.has-expense {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.daily-card.is-current {
  border-color: var(--primary-alp);
  background: #fafcfd;
}

.daily-card-summary-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 8px;
  transition: background 0.15s ease;
}

.daily-card-summary-row:hover {
  background: #f8fafc;
}

.daily-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.daily-day-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  font-family: var(--font-brand);
  flex-shrink: 0;
}

.daily-card.has-expense .daily-day-badge {
  background: #072a40;
  color: #ffffff;
}

.daily-card.is-current .daily-day-badge {
  background: var(--primary-alp);
  color: #ffffff;
}

.daily-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.daily-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-info-meta {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 1px;
}

.daily-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.daily-today-amt {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-deep);
  font-family: var(--font-brand);
}

.daily-today-amt.zero {
  color: #94a3b8;
  font-weight: 600;
}

/* Cumulative Running Total Badge (Highlight) */
.daily-cumul-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  margin-top: 2px;
}

.daily-card.has-expense .daily-cumul-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
}

.daily-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.daily-card.open .daily-chevron {
  transform: rotate(180deg);
}

/* Collapsible items panel */
.daily-items-panel {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px dashed #e2e8f0;
  background: #f8fafc;
}

.daily-card.open .daily-items-panel {
  display: block;
}

.daily-split-summary {
  display: flex;
  gap: 12px;
  padding: 10px 0 6px;
  font-size: 0.72rem;
  color: #64748b;
  border-bottom: 1px solid #edf2f7;
}

.daily-split-summary strong {
  color: var(--primary-deep);
}

.daily-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.history-item-cat {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.history-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.history-item-title {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  gap: 6px;
}

.history-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-left: 8px;
}

.history-item-amount {
  font-weight: 800;
  color: var(--primary-deep);
  font-family: var(--font-brand);
}

.history-item-del {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.history-item-del:hover {
  color: var(--swiss-red);
}

.daily-empty-msg {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 10px 0 4px;
}

/* Preserved Legacy Fare Accordion */
.legacy-fare-accordion {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.legacy-fare-summary {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.legacy-fare-summary::-webkit-details-marker {
  display: none;
}

.legacy-fare-content {
  padding: 10px 14px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* Calculator tables inside legacy accordion */
.calc-section {
  margin-bottom: 14px;
}

.calc-section:last-child {
  margin-bottom: 0;
}

.calc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.calc-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #475569;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.calc-row.free {
  color: #059669;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 7px;
}

.calc-total .highlight {
  color: var(--swiss-red);
}

.calc-tip-box {
  margin-top: 8px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  color: #92400e;
  line-height: 1.4;
}

/* Side Menu Drawer */
.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.drawer-avatar {
  font-size: 1.6rem;
}
.drawer-user-card strong {
  font-size: 0.9rem;
  color: var(--primary-deep);
  display: block;
}
.drawer-user-card p {
  font-size: 0.74rem;
  color: #64748b;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  color: #334155;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.drawer-nav-link:hover, .drawer-nav-link:active {
  background: #f1f5f9;
  color: var(--primary-alp);
}

.drawer-divider {
  border: none;
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

.drawer-actions-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-btn {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.drawer-btn.danger {
  color: var(--swiss-red);
  background: #fff5f5;
  border-color: #fecaca;
}
