:root {
  --rausch: #FF385C;
  --rausch-dark: #D70466;
  --babu: #00A699;
  --arches: #FC642D;
  --hof: #222222;
  --foggy: #717171;
  --line: #EBEBEB;
  --bg-Warm: #F7F7F7;
  --surface: #FFFFFF;
  --shadow-pill: 0 3px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius-xl: 20px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #EFEFEF;
  color: var(--hof);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.device-wrapper {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.app-header {
  padding: 14px 18px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rausch);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-Warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hof);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

.sync-badge.online .sync-dot {
  background: var(--babu);
  box-shadow: 0 0 0 3px rgba(0, 166, 153, 0.18);
}

.sync-badge.offline .sync-dot {
  background: var(--foggy);
}

.pill-chip {
  background: var(--bg-Warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--hof);
  cursor: pointer;
}

.icon-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--hof);
}

.search-pill-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-pill);
  margin-bottom: 12px;
}

.search-icon {
  color: var(--hof);
  flex-shrink: 0;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-input-wrap input {
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hof);
  font-family: inherit;
  background: transparent;
}

.search-subtext {
  font-size: 0.68rem;
  color: var(--foggy);
}

.filter-circle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-Warm);
  font-size: 0.72rem;
  cursor: pointer;
}

.category-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--foggy);
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.18s ease;
}

.cat-tab .cat-emoji {
  font-size: 1.2rem;
  opacity: 0.75;
}

.cat-tab .cat-name {
  font-size: 0.72rem;
  font-weight: 600;
}

.cat-tab.active {
  color: var(--hof);
  border-bottom-color: var(--hof);
}

.cat-tab.active .cat-emoji {
  opacity: 1;
  transform: scale(1.06);
}

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 96px;
  background: var(--bg-Warm);
}

.view-section {
  display: none;
  animation: fadeIn 0.2s ease;
}

.view-section.active {
  display: block;
}

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

.luxe-wallet-card {
  background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 55%, #191919 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  margin-bottom: 22px;
  cursor: pointer;
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 56, 92, 0.42) 0%, transparent 70%);
  pointer-events: none;
}

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

.luxe-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--rausch), var(--rausch-dark));
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.balance-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.eye-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 18px;
}

.card-metrics-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
}

.metric-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.inflow-dot { background: var(--babu); }
.outflow-dot { background: var(--rausch); }

.metric-caption {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.68);
}

.metric-val {
  font-size: 0.92rem;
  font-weight: 700;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 12px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.type-pills {
  display: flex;
  background: #EAEAEA;
  padding: 3px;
  border-radius: 999px;
}

.type-pill {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--foggy);
  cursor: pointer;
}

.type-pill.active {
  background: var(--surface);
  color: var(--hof);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tx-item:active {
  transform: scale(0.99);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-Warm);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border: 1px solid var(--line);
}

.tx-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hof);
  margin-bottom: 2px;
}

.tx-meta {
  font-size: 0.74rem;
  color: var(--foggy);
}

.tx-amount {
  font-size: 0.94rem;
  font-weight: 800;
}

.tx-amount.income { color: var(--babu); }
.tx-amount.expense { color: var(--hof); }

.insights-hero-card,
.airbnb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.eyebrow-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rausch);
}

.insights-net-value {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

.insights-subtitle {
  font-size: 0.78rem;
  color: var(--foggy);
  margin-bottom: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-tile {
  background: var(--bg-Warm);
  border-radius: 12px;
  padding: 10px;
}

.kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--foggy);
  margin-bottom: 4px;
}

.kpi-number {
  font-size: 0.95rem;
  font-weight: 800;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-heading {
  font-size: 1rem;
  font-weight: 800;
}

.card-subtext {
  font-size: 0.74rem;
  color: var(--foggy);
}

.subtle-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-Warm);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--foggy);
}

.donut-layout {
  display: flex;
  align-items: center;
  gap: 16px;
}

.donut-chart-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.budgets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.budget-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.budget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.budget-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-Warm);
  border-radius: 999px;
  overflow: hidden;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--rausch);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 20;
}

.tab-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--foggy);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tab-item.active {
  color: var(--rausch);
  font-weight: 700;
}

.fab-add-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--rausch) 0%, var(--rausch-dark) 100%);
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.38);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-10px);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 50;
}

.hidden {
  display: none !important;
}

.booking-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px 20px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #DDDDDD;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--hof);
}

.sheet-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.sheet-delete-btn {
  background: none;
  border: none;
  color: var(--rausch);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.segmented-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-Warm);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--foggy);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--hof);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.grouped-input-card {
  border: 1px solid #B0B0B0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.input-cell {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.input-cell label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--foggy);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.input-cell input {
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hof);
  font-family: inherit;
}

.cell-divider {
  height: 1px;
  background: #B0B0B0;
}

.input-cell-row {
  display: flex;
}

.input-cell.half {
  flex: 1;
}

.cell-vertical-divider {
  width: 1px;
  background: #B0B0B0;
}

.grid-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--foggy);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.amenity-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.amenity-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.amenity-tile.selected {
  border: 2px solid var(--hof);
  background: var(--bg-Warm);
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-caption {
  display: block;
  font-size: 0.68rem;
  color: var(--foggy);
}

.preview-status {
  font-size: 0.78rem;
  color: var(--hof);
}

.rausch-submit-btn {
  background: linear-gradient(90deg, var(--rausch) 0%, var(--rausch-dark) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
