/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark theme (default) */
  --bg:         #101010;
  --section-bg: #1b1b1b;
  --item-bg:    #2a2a2a;
  --text:       #e2e8ef;
  --text-sec:   #9ea3ad;
  --tab-bar-bg: #101010;
  --tab-active: #6bc26b;
  --tab-inactive:#9ea3ad;
  --border:     #333333;

  /* Semantic (same in both themes) */
  --expense:  #d4534c;
  --income:   #6bc26b;
  --bills:    #3c88d5;
  --premium:  #eab933;
  --warning:  #e6b800;

  /* Layout */
  --tab-bar-height: 64px;
  --header-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.light-theme {
  --bg:         #e6e7e8;
  --section-bg: #dcdcdd;
  --item-bg:    #d2d3d4;
  --text:       #141414;
  --text-sec:   #303030;
  --tab-bar-bg: #e6e7e8;
  --border:     #c4c4c5;
}

html, body {
  height: 100%;
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── App Shell ────────────────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* ── Admin Banner ────────────────────────────────────────────────────────── */
.admin-banner {
  background: var(--warning);
  color: #111;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--bg);
  min-height: var(--header-height);
  flex-shrink: 0;
}

.screen-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-sec);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.15s;
}
.header-btn:active { background: var(--item-bg); }

/* ── Tab Panels ──────────────────────────────────────────────────────────── */
.tab-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
}
.tab-panel.active { display: flex; flex-direction: column; }

/* ── Balance Carousel ─────────────────────────────────────────────────────── */
.carousel-wrap {
  padding: 16px 16px 8px;
  flex-shrink: 0;
}

.carousel-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
}
.carousel-scroll::-webkit-scrollbar { display: none; }

.balance-card {
  flex-shrink: 0;
  width: calc(100vw - 64px);
  background: var(--section-bg);
  border-radius: 16px;
  padding: 20px;
  scroll-snap-align: start;
}

.balance-card .card-label {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 6px;
  font-weight: 500;
}

.balance-card .card-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.balance-card .card-amount.red    { color: var(--expense); }
.balance-card .card-amount.yellow { color: var(--warning); }

.balance-card .card-rows { display: flex; flex-direction: column; gap: 6px; }

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.card-row .row-label { color: var(--text-sec); }
.card-row .row-val   { font-weight: 600; color: var(--text); }
.card-row .row-val.green  { color: var(--income); }
.card-row .row-val.red    { color: var(--expense); }
.card-row .row-val.blue   { color: var(--bills); }

/* pagination dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-sec);
  opacity: 0.4;
  transition: opacity 0.2s, background 0.2s;
}
.dot.active { opacity: 1; background: #fff; }

/* ── Section Container ────────────────────────────────────────────────────── */
.section {
  margin: 8px 16px;
  background: var(--section-bg);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
}

/* ── Item Card ────────────────────────────────────────────────────────────── */
.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--item-bg);
  margin: 0 10px 8px;
  border-radius: 10px;
  padding: 12px 14px;
  gap: 8px;
}
.item-card:last-child { margin-bottom: 10px; }

.item-left  { flex: 1; min-width: 0; }
.item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
}

.item-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.item-amount.green  { color: var(--income); }
.item-amount.red    { color: var(--expense); }
.item-amount.blue   { color: var(--bills); }
.item-amount.yellow { color: var(--premium); }

.item-sub {
  font-size: 11px;
  color: var(--text-sec);
}

/* 3-dot menu button on items */
.item-menu-btn {
  background: none;
  border: none;
  color: var(--text-sec);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 18px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}
.item-menu-btn:active { background: var(--bg); }

/* ── Show More Button ─────────────────────────────────────────────────────── */
.show-more-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--tab-active);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px 14px;
  cursor: pointer;
  text-align: center;
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-sec);
  font-size: 14px;
}

/* ── Bottom Scroll Padding ────────────────────────────────────────────────── */
.scroll-pad {
  height: calc(var(--tab-bar-height) + var(--safe-bottom) + 80px);
  flex-shrink: 0;
}

/* ── Bottom Tab Bar ───────────────────────────────────────────────────────── */
#tab-bar {
  display: flex;
  background: var(--tab-bar-bg);
  border-top: 1px solid var(--border);
  height: calc(var(--tab-bar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tab-inactive);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  padding-bottom: 2px;
}
.tab-btn .tab-icon { font-size: 22px; line-height: 1; }
.tab-btn.active { color: var(--tab-active); }
.tab-btn[data-tab="home"].active   { color: var(--expense); }
.tab-btn[data-tab="bills"].active  { color: var(--bills); }
.tab-btn[data-tab="income"].active { color: var(--income); }

/* ── FAB ─────────────────────────────────────────────────────────────────── */
#fab {
  position: fixed;
  right: 20px;
  bottom: calc(var(--tab-bar-height) + var(--safe-bottom) + 16px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #000;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform 0.15s;
}
#fab:active { transform: scale(0.93); }

/* ── Add-Transaction Sheet ────────────────────────────────────────────────── */
#add-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--section-bg);
  border-radius: 20px 20px 0 0;
  z-index: 400;
  padding: 0 0 calc(var(--safe-bottom) + 16px);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
#add-sheet.open { transform: translateY(0); }

#variable-bill-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--section-bg);
  border-radius: 20px 20px 0 0;
  z-index: 400;
  padding: 0 0 calc(var(--safe-bottom) + 16px);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
#variable-bill-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 16px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  padding: 0 20px 12px;
  color: var(--text);
}

.sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  border-top: 1px solid var(--border);
  transition: background 0.1s;
}
.sheet-option:active { background: var(--item-bg); }

.option-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.option-icon.expense { background: rgba(212,83,76,0.15); }
.option-icon.income  { background: rgba(107,194,107,0.15); }
.option-icon.bills   { background: rgba(60,136,213,0.15); }
.option-icon.premium { background: rgba(234,185,51,0.15); }

.option-text { flex: 1; }
.option-title { font-size: 14px; font-weight: 600; color: var(--text); }
.option-desc  { font-size: 12px; color: var(--text-sec); margin-top: 1px; }

/* ── Overlay ─────────────────────────────────────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#overlay.visible { opacity: 1; pointer-events: auto; }

/* ── Modals ──────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
}
.modal.open { display: flex; }

.modal-box {
  background: var(--section-bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  padding: 0 0 calc(var(--safe-bottom) + 24px);
  max-height: 90dvh;
  overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 4px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-sec);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-body { padding: 16px 20px 0; }

.modal-hint {
  background: var(--item-bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
}
.modal-hint p { margin: 0 0 6px; }
.modal-hint p:last-child { margin-bottom: 0; }
.modal-hint strong { color: var(--text); }
.modal-hint ul { margin: 4px 0; padding-left: 18px; }
.modal-hint li { margin-bottom: 3px; }
.modal-hint .hint-premium {
  color: var(--premium);
  font-weight: 600;
}

.field-locked {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.sheet-option-disabled {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.log-payment-bill-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.log-payment-bill-item {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.log-payment-bill-item:last-child {
  border-bottom: none;
}

.log-payment-bill-item:active {
  background: var(--item-bg);
}

.log-payment-bill-item.selected {
  background: var(--premium);
  color: #fff;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px 20px 0;
}

.btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-cancel { background: var(--item-bg); color: var(--text); }
.btn-save   { background: var(--income); color: #fff; }
.btn-save.expense-btn { background: var(--expense); }
.btn-save.bills-btn   { background: var(--bills); }
.btn-save.premium-btn { background: var(--premium); }

/* ── Form Fields ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select {
  width: 100%;
  background: var(--item-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus {
  border-color: var(--income);
}
#modal-purchase .field input:focus,
#modal-purchase .field select:focus {
  border-color: var(--expense);
}
#modal-bill .field input:focus,
#modal-bill .field select:focus {
  border-color: var(--bills);
}
#modal-variable-bill .field input:focus,
#modal-variable-bill .field select:focus,
#modal-log-payment .field input:focus,
#modal-log-payment .field select:focus {
  border-color: var(--warning);
}
.field input.field-error {
  border-color: var(--expense);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ea3ad' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Due day picker grid */
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-btn {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: var(--item-bg);
  color: var(--text-sec);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  padding: 0;
}
.day-btn.selected {
  background: var(--income);
  color: #fff;
}
.day-btn.selected.expense-accent { background: var(--expense); }
.day-btn.selected.bills-accent    { background: var(--bills); }
.day-btn.selected.premium-accent { background: var(--premium); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.month-btn {
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: var(--item-bg);
  color: var(--text-sec);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.month-btn.selected { background: var(--income); color: #fff; }
.month-btn.selected.bills-accent    { background: var(--bills); }
.month-btn.selected.premium-accent  { background: var(--premium); }

/* ── Popup Menu ───────────────────────────────────────────────────────────── */
.popup-menu {
  position: fixed;
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 600;
  min-width: 140px;
  overflow: hidden;
}

.popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.popup-item:last-child { border-bottom: none; }
.popup-item:active { background: var(--item-bg); }
.popup-item.danger { color: var(--expense); }

/* ── Settings Drawer ──────────────────────────────────────────────────────── */
#settings-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--section-bg);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: var(--safe-top);
}
#settings-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}
.drawer-title { font-size: 20px; font-weight: 700; color: var(--text); }

.drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px 4px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  border-top: 1px solid var(--border);
  text-align: left;
  transition: background 0.1s;
}
.drawer-item:active { background: var(--item-bg); }
.drawer-kofi { text-decoration: none; }
.drawer-kofi .drawer-item-title { color: #ff5e1a; }

.drawer-item-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.drawer-item-text { flex: 1; }
.drawer-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.drawer-item-desc  { font-size: 12px; color: var(--text-sec); margin-top: 1px; }

.drawer-version {
  margin-top: auto;
  padding: 20px;
  font-size: 12px;
  color: var(--text-sec);
  text-align: center;
}

/* ── Info Panel (About / How-To / Privacy) ─────────────────────────────── */
.info-modal .modal-box {
  max-height: 85dvh;
}
.info-content {
  padding: 0 20px 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.info-content h2 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; color: var(--text); }
.info-content p  { margin-bottom: 10px; color: var(--text-sec); }
.info-content ul { padding-left: 18px; margin-bottom: 10px; }
.info-content li { margin-bottom: 4px; color: var(--text-sec); }

/* ── Theme Toggle ─────────────────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.toggle-track {
  width: 48px; height: 28px;
  border-radius: 14px;
  background: var(--item-bg);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle-track.on { background: var(--income); }
.toggle-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.2s;
  pointer-events: none;
}
.toggle-track.on .toggle-thumb { transform: translateX(20px); }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Payment History ──────────────────────────────────────────────────────── */
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.payment-item:last-child { border-bottom: none; }
.payment-date { font-size: 13px; color: var(--text-sec); }
.payment-amt  { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Danger Button ────────────────────────────────────────────────────────── */
.btn-danger { background: var(--expense); color: #fff; }

/* ── Welcome Modal ────────────────────────────────────────────────────────── */
.welcome-formula {
  background: var(--item-bg);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 6px 0 12px;
}

.welcome-breakdown {
  background: var(--item-bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row span:first-child { color: var(--text-sec); }
.breakdown-row span:last-child  { font-weight: 600; color: var(--text); }

#modal-welcome .info-content { padding-bottom: 0; }
#modal-welcome .modal-footer { padding-top: 8px; }

/* ── Locked Purchases Tab ─────────────────────────────────────────────────── */
/* Opacity intentionally omitted — the tutorial overlay handles all visual dimming */
.tab-btn.tab-locked { }

/* ── Tutorial Overlay (blocks all UI except FAB + guide card) ─────────────── */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background: rgba(0,0,0,0);
  transition: background 0.25s;
}
#tutorial-overlay.active {
  pointer-events: auto;
  background: rgba(0,0,0,0.35);
}

/* ── Tutorial Guide Card ──────────────────────────────────────────────────── */
#tutorial-guide {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tab-bar-height) + var(--safe-bottom) + 84px);
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  z-index: 98;
}

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

.guide-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: var(--income);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.guide-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.guide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.guide-dot.active { background: var(--income); }

#tutorial-skip {
  background: none;
  border: none;
  color: var(--text-sec);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0 2px 6px;
  flex-shrink: 0;
}

.guide-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-icon { font-size: 22px; flex-shrink: 0; line-height: 1.3; }

.guide-content { flex: 1; }

.guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.guide-desc {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.45;
}

/* ── Add-sheet tutorial mode — dim all but the target option ─────────────── */
#add-sheet.tutorial-mode .sheet-option {
  opacity: 0.2;
  pointer-events: none;
}
#add-sheet.tutorial-mode .sheet-option.tutorial-target {
  opacity: 1;
  pointer-events: auto;
}

/* ── Web Notice Modal ─────────────────────────────────────────────────────── */
.notice-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px calc(var(--safe-bottom) + 8px);
}

.notice-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
  cursor: pointer;
}

.notice-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--income);
  cursor: pointer;
  flex-shrink: 0;
}
