@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --bg:           #FAF7F2;
  --surface:      #FFFFFF;
  --ink:          #1A2332;
  --ink-muted:    #6B7280;
  --primary:      #1E3A5F;
  --primary-hover:#254668;
  --accent:       #C9A961;
  --accent-light: #E8D9A9;
  --success:      #4A7C59;
  --warning:      #D97706;
  --danger:       #B91C1C;
  --border:       #E5E0D8;
  --shadow-sm:    0 1px 3px rgba(26,35,50,.06);
  --shadow-md:    0 4px 16px rgba(26,35,50,.08);
  --shadow-lg:    0 16px 40px rgba(26,35,50,.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-ui:      'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r-card: 12px;
  --r-input: 8px;
  --r-chip: 999px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font: inherit; }

/* ================================================================
   MOCKUP PAGE
   ================================================================ */
body {
  background: #E8E2DA;
  font-family: var(--font-ui);
  color: var(--ink);
  padding: 48px 24px 96px;
}

.mockup-header {
  text-align: center;
  margin-bottom: 72px;
}
.mockup-header h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1.5px;
}
.mockup-header p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
  letter-spacing: .06em;
}

.mockup-section { margin-bottom: 96px; }
.desktop-section { margin-bottom: 96px; }

.screen-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.screen-label::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: #CCC6BC;
}
.screen-label span {
  position: relative;
  background: #E8E2DA;
  padding: 0 16px;
}

/* ================================================================
   DEVICE FRAME
   ================================================================ */
.device-frame {
  width: 375px;
  margin: 0 auto;
  border: 8px solid #1A2332;
  border-radius: 40px;
  padding: 8px 0;
  background: #1A2332;
  box-shadow: 0 24px 64px rgba(26,35,50,.22), inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.device-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #1A2332;
  border-radius: 18px;
  z-index: 10;
}

.screen {
  background: var(--bg);
  border-radius: 32px;
  height: 812px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ================================================================
   STATUS BAR
   ================================================================ */
.status-bar {
  height: 50px;
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.status-bar .time {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-ui);
}
.status-bar .icons { display: flex; align-items: center; gap: 5px; }
.status-bar.dark .time, .status-bar.dark .icons { color: var(--ink); }
.status-bar.light .time, .status-bar.light .icons { color: #fff; }
.status-bar.overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* ================================================================
   SCREEN BODY
   ================================================================ */
.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scroll-area {
  flex: 1;
  overflow: hidden;
  padding-bottom: 8px;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.t-display { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.1; }
.t-h1      { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.t-h2      { font-family: var(--font-ui);      font-size: 20px; font-weight: 600; line-height: 1.25; }
.t-h3      { font-family: var(--font-ui);      font-size: 16px; font-weight: 600; line-height: 1.4; }
.t-body    { font-family: var(--font-ui);      font-size: 15px; font-weight: 400; line-height: 1.55; }
.t-small   { font-family: var(--font-ui);      font-size: 13px; font-weight: 500; line-height: 1.4; }
.t-caption { font-family: var(--font-ui);      font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.t-mono    { font-family: var(--font-mono);    font-size: 14px; font-weight: 500; }
.t-mono-lg { font-family: var(--font-mono);    font-size: 22px; font-weight: 700; }
.t-mono-xl { font-family: var(--font-mono);    font-size: 36px; font-weight: 700; }
.t-mono-2xl{ font-family: var(--font-mono);    font-size: 52px; font-weight: 700; letter-spacing: -2px; }

.c-muted   { color: var(--ink-muted); }
.c-primary { color: var(--primary); }
.c-accent  { color: var(--accent); }
.c-success { color: var(--success); }
.c-warning { color: var(--warning); }
.c-danger  { color: var(--danger); }
.c-white   { color: #fff; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 24px;
  border-radius: var(--r-input);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: var(--primary); }
.btn-ghost   { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger  { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }
.btn-sm      { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-full    { width: 100%; }

/* ================================================================
   INPUTS
   ================================================================ */
.label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--ink-muted); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-input);
  background: var(--surface);
  font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  display: flex; align-items: center;
}
.input.focused { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,.08); }
.input.with-icon { padding-left: 44px; position: relative; }
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--ink-muted); pointer-events: none;
}
.textarea {
  width: 100%; min-height: 80px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-input);
  background: var(--surface); font-family: var(--font-ui);
  font-size: 15px; color: var(--ink); resize: none;
}
.input-row { display: flex; gap: 12px; }
.input-row > * { flex: 1; }

/* ================================================================
   CHIPS
   ================================================================ */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-chip); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
  flex-shrink: 0;
}
.chip-default { background: var(--surface); color: var(--ink-muted); border-color: var(--border); }
.chip-active  { background: var(--primary); color: #fff; }
.chip-accent  { background: var(--accent-light); color: #7A5C1E; border-color: var(--accent); }
.chip-sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 12px;
  flex-shrink: 0;
}
.top-bar-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: -0.5px; flex-shrink: 0;
}

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-input);
  padding: 0 12px; color: var(--ink-muted);
  margin: 0 16px;
}
.search-bar span { font-size: 14px; color: var(--ink-muted); }

/* ================================================================
   BOTTOM NAV
   ================================================================ */
.bottom-nav {
  display: flex; align-items: center; justify-content: space-around;
  height: 80px; background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 8px 8px; flex-shrink: 0; position: relative;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px; cursor: pointer; color: var(--ink-muted); min-width: 60px;
}
.nav-item.active { color: var(--primary); }
.nav-label { font-size: 10px; font-weight: 600; }
.nav-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(30,58,95,.30); margin-top: -18px; cursor: pointer;
}

/* ================================================================
   TAB NAV
   ================================================================ */
.tab-nav {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1.5px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-item {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink-muted); white-space: nowrap; cursor: pointer;
  position: relative; flex-shrink: 0; transition: color .15s;
}
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-item.active::after {
  content: ''; position: absolute; bottom: -1.5px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

/* ================================================================
   FAB
   ================================================================ */
.fab {
  position: absolute; bottom: 88px; right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(30,58,95,.28); cursor: pointer; z-index: 20;
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.section-link  { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; }

/* ================================================================
   TRIP CARDS
   ================================================================ */
.featured-card {
  border-radius: 16px; overflow: hidden; position: relative;
  height: 220px; cursor: pointer; box-shadow: var(--shadow-md); flex-shrink: 0;
}
.featured-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,.88) 0%, rgba(26,35,50,.22) 55%, transparent 100%);
}
.featured-card .card-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
}
.featured-card .days-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #7A5C1E;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-chip);
}
.featured-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.featured-meta { font-size: 13px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }

.trip-card {
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trip-card img { width: 100%; height: 140px; object-fit: cover; }
.trip-card-body { padding: 12px 14px; }
.trip-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.trip-dates { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.trip-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-muted); }
.badge {
  display: inline-flex; align-items: center; padding: 3px 8px;
  border-radius: var(--r-chip); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-planning  { background: #EEF3FA; color: var(--primary); }
.badge-upcoming  { background: var(--accent-light); color: #7A5C1E; }
.badge-active    { background: #ECFDF5; color: var(--success); }
.badge-past      { background: #F3F4F6; color: var(--ink-muted); }

/* ================================================================
   STAT CARDS
   ================================================================ */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stat-label {
  font-size: 10px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px;
}
.stat-value { font-family: var(--font-mono); font-size: 20px; font-weight: 700; line-height: 1; }
.sv-accent  { color: var(--accent); }
.sv-primary { color: var(--primary); }
.sv-success { color: var(--success); }
.sv-muted   { color: var(--ink-muted); }
.stat-sub   { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

/* ================================================================
   COUNTDOWN CARD
   ================================================================ */
.countdown-card {
  background: linear-gradient(135deg, #1E3A5F 0%, #2C4E7A 100%);
  border-radius: 16px; padding: 24px; text-align: center; color: #fff;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.countdown-card::before {
  content: ''; position: absolute; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.04);
  top: -70px; right: -50px;
}
.countdown-card::after {
  content: ''; position: absolute; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(201,169,97,.08);
  bottom: -40px; left: -30px;
}
.c-number {
  font-family: var(--font-display); font-size: 72px; font-weight: 800;
  line-height: 1; color: #fff;
}
.c-unit { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 2px; }
.c-sub  { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 8px; }

/* ================================================================
   DOCUMENT CARDS
   ================================================================ */
.doc-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer;
  margin-bottom: 8px;
}
.doc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.di-flight  { background: #EEF3FA; }
.di-hotel   { background: #FFF9EB; }
.di-ins     { background: #ECFDF5; }
.di-car     { background: #F3F4F6; }
.di-visa    { background: #FDF2F8; }
.di-ticket  { background: #F0FDF4; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta  { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.doc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.file-badge {
  padding: 2px 6px; border-radius: 4px; font-size: 9px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.fb-pdf { background: #FEE2E2; color: #991B1B; }
.fb-img { background: #DBEAFE; color: #1E40AF; }
.reminder-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }

/* ================================================================
   EXPENSE ROWS
   ================================================================ */
.expense-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); padding: 10px 16px 6px; background: var(--bg);
}
.expense-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.exp-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.exp-info { flex: 1; min-width: 0; }
.exp-merchant { font-size: 14px; font-weight: 600; }
.exp-meta     { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.exp-right    { text-align: right; flex-shrink: 0; }
.exp-amount   { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.split-badge  { display: inline-flex; padding: 2px 7px; border-radius: var(--r-chip); font-size: 10px; font-weight: 600; margin-top: 3px; }
.sb-shared { background: #EEF3FA; color: var(--primary); }
.sb-mine   { background: var(--accent-light); color: #7A5C1E; }

/* ================================================================
   BUDGET COMPONENTS
   ================================================================ */
.budget-ring-wrap {
  position: relative; width: 160px; height: 160px; margin: 0 auto 16px;
}
.ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.budget-cat-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: 12px 16px; border: 1px solid var(--border); margin-bottom: 8px;
}
.bcc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bcc-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.bcc-amounts { text-align: right; }
.bcc-planned { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.bcc-actual  { font-size: 12px; color: var(--ink-muted); }
.prog-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.prog-fill { height: 100%; border-radius: 3px; }
.pf-success { background: var(--success); }
.pf-warning { background: var(--warning); }
.pf-danger  { background: var(--danger); }
.bcc-diff { font-size: 11px; text-align: right; }

/* ================================================================
   PHOTO GRID
   ================================================================ */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photo-tile { aspect-ratio: 1; position: relative; overflow: hidden; cursor: pointer; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.star-overlay { position: absolute; top: 5px; right: 5px; color: var(--accent); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.photo-date-label {
  font-size: 11px; font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .08em; padding: 10px 4px 4px;
}

/* ================================================================
   TOGGLE
   ================================================================ */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-sub   { font-size: 12px; color: var(--ink-muted); }
.toggle {
  width: 44px; height: 26px; border-radius: 13px; background: var(--primary);
  position: relative; cursor: pointer; flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; top: 3px; right: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.off { background: var(--border); }
.toggle.off::after { right: auto; left: 3px; }

/* ================================================================
   OFFLINE
   ================================================================ */
.offline-status {
  border-radius: 16px; padding: 20px; margin-bottom: 20px;
}
.os-not-ready { background: #FEF2F2; border: 1px solid #FECACA; }
.os-caching   { background: #FFFBEB; border: 1px solid #FDE68A; }
.os-ready     { background: #ECFDF5; border: 1px solid #A7F3D0; }
.os-icon      { font-size: 28px; margin-bottom: 8px; }
.os-title     { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.checklist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.ci-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-done    { background: #ECFDF5; color: var(--success); }
.ci-pending { background: var(--bg); border: 1.5px solid var(--border); }
.ci-label   { flex: 1; font-size: 14px; font-weight: 500; }
.ci-size    { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* ================================================================
   REMINDERS
   ================================================================ */
.reminder-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface);
  border-radius: var(--r-input); border-left: 3px solid var(--warning);
  margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.ri-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex-shrink: 0; }
.ri-text { flex: 1; font-size: 13px; font-weight: 500; }
.ri-days { font-size: 12px; font-weight: 700; color: var(--warning); }

/* ================================================================
   DOC CHECKLIST
   ================================================================ */
.doc-check-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--surface); border-radius: 8px; margin-bottom: 4px;
}
.dcr-left  { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dcr-right { display: flex; align-items: center; gap: 6px; }
.check-circle { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-done    { background: var(--success); color: #fff; }
.cc-pending { background: var(--bg); border: 1.5px solid var(--border); }

/* ================================================================
   MODAL SHEET
   ================================================================ */
.modal-screen { position: relative; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(26,35,50,.45); backdrop-filter: blur(4px);
  z-index: 30; display: flex; align-items: flex-end;
}
.modal-sheet {
  background: var(--surface); border-radius: 24px 24px 0 0;
  width: 100%; max-height: 92%; overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); cursor: pointer;
}
.modal-body  { padding: 16px; overflow: hidden; }
.modal-footer {
  display: flex; gap: 12px; padding: 12px 16px 24px;
  border-top: 1px solid var(--border); background: var(--surface);
}

/* ================================================================
   UPLOAD ZONE
   ================================================================ */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-card);
  padding: 32px 24px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; background: var(--bg);
  cursor: pointer; text-align: center; margin-bottom: 16px;
}
.upload-zone:hover { border-color: var(--primary); }
.uz-icon { font-size: 36px; }
.cover-upload {
  border: 2px dashed var(--border); border-radius: var(--r-card);
  height: 130px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); cursor: pointer; margin-bottom: 16px;
}

/* ================================================================
   STEPPER
   ================================================================ */
.stepper { display: flex; align-items: center; gap: 16px; }
.step-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; font-weight: 400; color: var(--ink);
}
.step-val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; min-width: 32px; text-align: center; }

/* ================================================================
   AMOUNT INPUT (Expense)
   ================================================================ */
.amount-hero { text-align: center; padding: 24px 16px 8px; border-bottom: 1px solid var(--border); }
.amount-display {
  font-family: var(--font-mono); font-size: 56px; font-weight: 700;
  color: var(--ink); letter-spacing: -2px; line-height: 1;
}
.amount-currency { font-family: var(--font-mono); font-size: 22px; color: var(--accent); vertical-align: super; margin-right: 4px; }
.amount-placeholder { color: var(--border); }
.conversion-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono);
}

/* ================================================================
   ACTIVITY FEED
   ================================================================ */
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }
.act-text { flex: 1; font-size: 13px; color: var(--ink); }
.act-time { font-size: 11px; color: var(--ink-muted); flex-shrink: 0; }

/* ================================================================
   HERO IMAGE (Trip Detail)
   ================================================================ */
.hero-wrap { position: relative; height: 320px; flex-shrink: 0; }
.hero-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,.92) 0%, rgba(26,35,50,.35) 45%, rgba(26,35,50,.08) 100%);
}
.hero-back {
  position: absolute; top: 16px; left: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.hero-edit {
  position: absolute; top: 16px; right: 16px;
  height: 34px; padding: 0 12px; border-radius: var(--r-chip);
  background: rgba(255,255,255,.18); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; gap: 5px;
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hero-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px 16px; }
.hero-name { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.hero-meta { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--r-chip); background: var(--accent);
  color: #7A5C1E; font-size: 11px; font-weight: 700;
}

/* ================================================================
   EMPTY STATES
   ================================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px; gap: 12px;
}
.es-icon { font-size: 48px; }
.es-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.es-text  { font-size: 14px; color: var(--ink-muted); line-height: 1.6; max-width: 220px; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); max-width: 320px;
}
.toast-success { background: var(--primary); color: #fff; }
.toast-check   { color: var(--accent); }
.toast-error   { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }

/* ================================================================
   SKELETON
   ================================================================ */
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #E5E0D8 25%, #EDE8E0 50%, #E5E0D8 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
}
.sk-text  { height: 14px; border-radius: 4px; }
.sk-card  { height: 80px; border-radius: var(--r-card); }
.sk-img   { border-radius: var(--r-card); }
.sk-circle{ border-radius: 50%; }

/* ================================================================
   PULL TO REFRESH
   ================================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.ptr { display: flex; align-items: center; justify-content: center; padding: 12px; gap: 8px; color: var(--ink-muted); font-size: 13px; }
.spinning { animation: spin 1s linear infinite; }

/* ================================================================
   DELETE MODAL
   ================================================================ */
.confirm-modal {
  background: var(--surface); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow-lg); width: 280px; text-align: center;
}
.confirm-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.confirm-text  { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 12px; }
.confirm-actions .btn { flex: 1; }

/* ================================================================
   DESKTOP FRAME
   ================================================================ */
.desktop-frame {
  max-width: 1200px; margin: 0 auto;
  background: #2D3142; border-radius: 12px;
  box-shadow: 0 32px 80px rgba(26,35,50,.28); overflow: hidden;
}
.browser-chrome {
  background: #3A3F55; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.traffic-lights { display: flex; gap: 6px; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #FF5F57; }
.tl-y { background: #FEBC2E; }
.tl-g { background: #28C840; }
.addr-bar {
  flex: 1; height: 28px; background: rgba(0,0,0,.2); border-radius: 6px;
  display: flex; align-items: center; padding: 0 12px; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.5);
}
.browser-screen { background: var(--bg); display: flex; height: 680px; overflow: hidden; }
.sidebar {
  width: 220px; background: var(--primary); padding: 24px 0;
  flex-shrink: 0; display: flex; flex-direction: column;
}
.sidebar-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; padding: 0 24px 28px; letter-spacing: -0.5px; }
.si-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.55); cursor: pointer; transition: all .15s;
}
.si-item.active { color: #fff; background: rgba(255,255,255,.1); border-right: 3px solid var(--accent); }
.si-spacer { flex: 1; }
.si-user {
  padding: 14px 24px; display: flex; align-items: center; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.si-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.si-user-role { font-size: 11px; color: rgba(255,255,255,.4); }
.desk-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.desk-topbar {
  padding: 20px 28px; background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.desk-content { flex: 1; overflow: hidden; padding: 24px 28px; }
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.desk-trip-card {
  background: var(--surface); border-radius: var(--r-card);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.desk-trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.desk-trip-card img { width: 100%; height: 120px; object-fit: cover; }
.desk-card-body { padding: 12px; }

/* ================================================================
   POLISH SECTION
   ================================================================ */
.polish-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; max-width: 1100px; margin: 0 auto; }
.polish-card {
  background: var(--surface); border-radius: 16px; padding: 20px;
  min-width: 240px; flex: 1; max-width: 320px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.polish-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.gap-8 { gap: 8px; }
.gap-12{ gap: 12px; }
.gap-16{ gap: 16px; }
.flex  { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.spacer { flex: 1; }
.bg-surface { background: var(--surface); }
.bg-bg { background: var(--bg); }
.rounded-full { border-radius: var(--r-chip); }
.overflow-hidden { overflow: hidden; }
