:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-lighter: #81C784;
  --primary-bg: #E8F5E9;
  --secondary: #6D4C41;
  --secondary-light: #8D6E63;
  --accent: #66BB6A;
  --bg: #F7F8F6;
  --surface: #FFFFFF;
  --surface-variant: #F1F4F0;
  --text-primary: #1A1C19;
  --text-secondary: #5E6157;
  --text-muted: #8A8D83;
  --border: #E2E5DF;
  --border-light: #EFF1EC;
  --success: #2E7D32;
  --warning: #F57C00;
  --error: #D32F2F;
  --error-bg: #FFEBEE;
  --info: #1976D2;
  --info-bg: #E3F2FD;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 160ms;
  --motion-medium: 280ms;
  --motion-slow: 420ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', 'Noto Sans Kannada', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #121410;
  --surface: #1E201D;
  --surface-variant: #2A2D29;
  --text-primary: #E3E5E0;
  --text-secondary: #B0B3AC;
  --text-muted: #7A7D76;
  --border: #3A3D38;
  --border-light: #2F322E;
  --primary-bg: #1B3A1D;
  --error-bg: #3A1A1A;
  --info-bg: #1A2B3A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow-x: hidden; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
#app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; min-height: 100dvh; position: relative; }
#app.has-bottom-nav { padding-bottom: 100px; }
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popSoft {
  0% { opacity: 0; transform: scale(0.94); }
  70% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes slideDownSoft {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}
.top-bar {
  position: sticky; top: 0; background: var(--surface);
  padding: 12px var(--space-4); display: flex; align-items: center;
  border-bottom: 1px solid var(--border-light); z-index: 50; min-height: 60px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.top-bar .back {
  background: none; border: none; cursor: pointer; color: var(--text-primary);
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.top-bar .back:hover { background: var(--surface-variant); }
.top-bar .back .material-symbols-rounded { font-size: 24px; }
.top-bar .title { flex: 1; font-size: 18px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.top-bar .right { min-width: 40px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.top-bar .right button {
  background: none; border: none; cursor: pointer; color: var(--text-primary);
  width: 40px; height: 40px; border-radius: var(--radius-full); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.top-bar .right button:hover { background: var(--surface-variant); }
.top-bar .right button .material-symbols-rounded { font-size: 22px; }
.notif-bell { position: relative; }
.notif-bell.has-unread::after {
  content: ''; position: absolute; top: 8px; right: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #E53935; border: 2px solid var(--surface);
}
.notif-panel {
  position: fixed; top: 68px; right: calc(50% - 220px);
  width: 300px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  z-index: 89; animation: scaleIn var(--motion-medium) var(--motion-ease);
}
@media (max-width: 480px) {
  .notif-panel { right: var(--space-4); }
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-light);
}
.notif-panel-header .title { font-size: 14px; font-weight: 700; }
.notif-panel-header .clear-btn {
  background: none; border: none; color: var(--primary); font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: var(--font);
}
.notif-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); cursor: pointer;
  border-bottom: 1px solid var(--border-light); transition: background var(--transition);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--surface-variant); }
.notif-row .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notif-row .dot.unread { background: var(--primary); }
.notif-row .dot.read { background: var(--border); }
.notif-row .body { flex: 1; min-width: 0; }
.notif-row .row-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.notif-row .row-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-row .dismiss-btn {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  flex-shrink: 0; padding: 2px; display: flex; border-radius: var(--radius-full);
}
.notif-row .dismiss-btn:hover { background: var(--border-light); }
.notif-row .dismiss-btn .material-symbols-rounded { font-size: 16px; }
.notif-empty { padding: var(--space-5) var(--space-4); text-align: center; color: var(--text-secondary); font-size: 13px; }
.content { padding: var(--space-5) var(--space-4); animation: screenEnter var(--motion-medium) var(--motion-ease); }
#app > * { animation: screenEnter var(--motion-medium) var(--motion-ease); }
#app > .welcome,
#app > .top-bar,
#app > .content { will-change: transform, opacity; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpCentered { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes checkmark { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.welcome-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: var(--space-7) var(--space-6);
  overflow: hidden;
}
.welcome-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04) brightness(0.72);
  transform: scale(1.03);
  animation: gentleFloat 9s ease-in-out infinite;
}
.welcome-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.30) 36%, rgba(0,0,0,0.62) 100%),
    radial-gradient(circle at top, rgba(46,125,50,0.32), transparent 45%);
}
.welcome-page .welcome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-6);
  min-height: calc(100vh - var(--space-7) * 2);
  min-height: calc(100dvh - var(--space-7) * 2);
}
.welcome-page .logo {
  width: 72px; height: 72px; margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.welcome-page .logo .material-symbols-rounded { font-size: 40px; color: white; }
.welcome-page h1 {
  font-size: clamp(26px, 6vw, 36px);
  margin-bottom: var(--space-3);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.welcome-page p {
  color: rgba(255,255,255,0.84);
  margin-bottom: var(--space-7);
  font-size: 16px;
  line-height: 1.6;
  max-width: 330px;
}
.type-headline {
  min-height: calc(3 * clamp(26px, 6vw, 36px) * 1.2);
  max-width: 340px;
}
.type-white { color: white; }
.type-green { color: #7ED957; }
.welcome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-6);
}
.welcome-dots .dash { width: 22px; height: 2px; background: rgba(255,255,255,0.4); border-radius: 1px; }
.welcome-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ED957; }
.welcome-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.welcome-reveal.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.welcome-audience-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  width: 100%;
  max-width: 360px;
}
.welcome-audience-item {
  flex: 1;
  background: rgba(20,30,20,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  backdrop-filter: blur(6px);
}
.welcome-audience-icon {
  width: 44px; height: 44px; margin: 0 auto 10px;
  background: rgba(200,240,190,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.welcome-audience-icon .material-symbols-rounded { font-size: 22px; color: var(--primary); }
.welcome-audience-label {
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.welcome-audience-desc {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.4;
}
.welcome-audience-underline {
  width: 26px; height: 2px; margin: var(--space-2) auto 0;
  background: #7ED957; border-radius: 1px;
}
.welcome-page .btn-link { color: rgba(255,255,255,0.94); }
.welcome-page .btn-link:hover { color: white; }
.welcome-page .login-row { color: rgba(255,255,255,0.88); }
.welcome-page .login-row .btn-link { padding: 0; }
.welcome-trust-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  width: 100%;
  max-width: 380px;
}
.welcome-trust-item { flex: 1; text-align: center; }
.welcome-trust-icon { color: #7ED957; margin-bottom: 4px; }
.welcome-trust-icon .material-symbols-rounded { font-size: 20px; }
.welcome-trust-label {
  color: #7ED957;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 2px;
}
.welcome-trust-desc {
  color: rgba(255,255,255,0.72);
  font-size: 10.5px;
  line-height: 1.35;
}

/* ===== Journey page (S02TYPE) — fixed viewport, no scroll ===== */
.journey-page {
  position: relative;
  background: #0e1a0e;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.journey-back {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: white;
  border: none;
}
.journey-accent-green { color: #7ED957; font-size: 1.2em; }
.journey-accent-blue { color: #64B5F6; font-size: 1.2em; }

.journey-section {
  position: relative;
  overflow: hidden;
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: 5dvh var(--space-4) 0;
}
.journey-section-content { height: 38dvh; overflow: hidden; }
.journey-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.journey-section-farmer .journey-bg { object-position: top; }
.journey-section-provider .journey-bg { object-position: bottom; }
.journey-overlay {
  position: absolute;
  inset: 0;
}
.journey-overlay-green {
  background: linear-gradient(180deg, rgba(6,20,8,0.42) 0%, rgba(6,20,8,0.52) 100%);
}
.journey-overlay-blue {
  background: linear-gradient(180deg, rgba(6,12,22,0.42) 0%, rgba(4,9,18,0.56) 100%);
}
.journey-section-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.journey-section-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.journey-head-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.journey-head-icon.green { background: rgba(126,217,87,0.9); }
.journey-head-icon.blue { background: rgba(100,181,246,0.9); }
.journey-head-icon .material-symbols-rounded { font-size: 18px; color: #0e1a0e; }
.journey-head-title {
  font-size: clamp(15px, 4.4vw, 19px);
  font-weight: 800;
  line-height: 1.2;
}
.journey-head-tagline {
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  margin-top: 1px;
}
.journey-grid-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.journey-grid-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.journey-grid-pair.journey-grid-pair-sliding {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.journey-card {
  background: rgba(10,20,10,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-2);
  backdrop-filter: blur(4px);
  animation: journeyCardIn 0.4s ease;
}
.journey-grid-pair-sliding .journey-card,
.journey-grid-pair-carousel .journey-card { animation: none; }
.journey-grid-blue .journey-card { background: rgba(8,14,24,0.6); }
.journey-card-icon { color: #7ED957; margin-bottom: 3px; }
.journey-grid-blue .journey-card-icon { color: #64B5F6; }
.journey-card-icon .material-symbols-rounded { font-size: 18px; }
.journey-card-title {
  color: white;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 2px;
  line-height: 1.25;
}
.journey-card-desc {
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  line-height: 1.3;
}
@keyframes journeyCardIn {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}
.journey-pair-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: var(--space-2);
}
.journey-pair-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.25s, width 0.25s;
}
.journey-pair-dot.active {
  width: 14px;
  border-radius: 3px;
  background: white;
}
.journey-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 70%;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  padding: calc(var(--space-2) * 1.1) var(--space-4);
  cursor: pointer;
}
.journey-cta-green { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.journey-cta-blue { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.journey-cta-icon { color: white; display: flex; }
.journey-cta-icon .material-symbols-rounded { font-size: 18px; }
.journey-cta-text { flex: 1; text-align: left; min-width: 0; }
.journey-cta-title { display: block; color: white; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-cta-sub { display: block; color: rgba(255,255,255,0.85); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-cta-arrow { color: white; display: flex; animation: journeyArrowNudge 1.4s ease-in-out infinite; }
.journey-cta-arrow .material-symbols-rounded { font-size: 18px; }
@keyframes journeyArrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.icon-big {
  width: 120px; height: 120px; margin: 0 auto var(--space-6);
  background: var(--primary-bg); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.icon-big .material-symbols-rounded { font-size: 64px; color: var(--primary); }
.icon-big.accent { background: #FFF3E0; }
.icon-big.accent .material-symbols-rounded { color: var(--warning); }
.icon-big.blue { background: var(--info-bg); }
.icon-big.blue .material-symbols-rounded { color: var(--info); }
.welcome-page .logo,
.welcome-page .icon-big,
.summary-card,
.card,
.why-card,
.chooser-card,
.task-card,
.profile-section,
.settings-list,
.row-card,
.first-time-tooltip,
.celebration,
.empty-state,
.modal,
.snackbar,
.toast,
.success-overlay,
.fab-menu,
.bottom-tabs {
  will-change: transform, opacity;
}
.why-card {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-5); margin-bottom: var(--space-4);
  border: 1px solid var(--border-light); text-align: left;
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
.why-card .item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-light);
}
.why-card .item:last-child { border-bottom: none; }
.why-card .item .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-card .item .icon-wrap .material-symbols-rounded { font-size: 20px; }
.why-card .item .text { flex: 1; }
.why-card .item .text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.why-card .item .text span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.btn-primary {
  background: var(--primary); color: white; border: none;
  border-radius: var(--radius-full); padding: 0 var(--space-6);
  font-size: 15px; font-weight: 600; cursor: pointer; width: 100%;
  min-height: 56px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  font-family: var(--font); letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--primary-light); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(0.98); box-shadow: var(--shadow-sm); }
.btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; box-shadow: none; opacity: 0.6; }
.btn-primary .material-symbols-rounded { font-size: 20px; }
.btn-secondary {
  background: var(--surface); color: var(--primary); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 0 var(--space-6);
  font-size: 15px; font-weight: 600; cursor: pointer; width: 100%;
  min-height: 56px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font);
}
.btn-secondary:hover { background: var(--surface-variant); border-color: var(--primary); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary .material-symbols-rounded { font-size: 20px; }
.btn-danger {
  background: var(--surface); color: var(--error); border: 1.5px solid var(--error);
  border-radius: var(--radius-full); padding: 0 var(--space-5);
  font-size: 14px; font-weight: 600; cursor: pointer; width: 100%;
  min-height: 44px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font);
}
.btn-danger:hover { background: var(--error-bg); }
.btn-link {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-size: 14px; padding: var(--space-2); font-weight: 600; font-family: var(--font);
}
.input-group { margin-bottom: var(--space-4); }
.input-group label {
  display: block; margin-bottom: var(--space-2);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 16px var(--space-4);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; background: var(--surface); color: var(--text-primary);
  -webkit-appearance: none; appearance: none;
  transition: all var(--transition); font-family: var(--font); font-weight: 500;
}
.input-group textarea { resize: vertical; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}
.input-group input.valid {
  border-color: var(--primary);
  background-image: linear-gradient(135deg, transparent, transparent);
}
.input-group .prefix { position: relative; }
.input-group .prefix span {
  position: absolute; left: var(--space-4); top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
  font-size: 16px; pointer-events: none; font-weight: 500;
}
.input-group .prefix input { padding-left: 36px; }
.input-group .helper { font-size: 12px; color: var(--text-muted); margin-top: var(--space-2); line-height: 1.4; }
.input-group .error { color: var(--error); font-size: 12px; margin-top: var(--space-2); font-weight: 500; }
.loc-field { position: relative; }
.loc-field .loc-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  max-height: 240px; overflow-y: auto; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.loc-field .loc-list-item {
  padding: 12px var(--space-4); font-size: 15px; font-weight: 500;
  color: var(--text-primary); cursor: pointer;
}
.loc-field .loc-list-item:active, .loc-field .loc-list-item.active { background: var(--primary-bg, rgba(46,125,50,0.08)); }
.loc-field .loc-list-item + .loc-list-item { border-top: 1px solid var(--border); }
.loc-field .loc-list-empty { padding: 12px var(--space-4); font-size: 14px; color: var(--text-muted); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-5); margin-bottom: var(--space-3);
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  transition: all var(--transition);
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-3);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.summary-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1B5E20 100%);
  color: white; border-radius: var(--radius-lg); padding: var(--space-6);
  margin-bottom: var(--space-5); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
.summary-card::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 200px; height: 200px; background: rgba(255,255,255,0.08);
  border-radius: 50%; pointer-events: none;
}
.summary-card .label { font-size: 13px; opacity: 0.9; margin-bottom: var(--space-2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-card .amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.summary-card .breakdown { font-size: 13px; opacity: 0.9; margin-top: var(--space-3); }
.summary-card .breakdown-row { display: flex; justify-content: space-between; padding: 4px 0; }
.row-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) var(--space-4); background: var(--surface);
  border-radius: var(--radius-sm); margin-bottom: var(--space-2);
  cursor: pointer; border: 1px solid var(--border-light);
  transition: all var(--transition); position: relative; overflow: hidden;
  animation: slideDownSoft var(--motion-medium) var(--motion-ease);
}
.row-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.row-card:active { transform: scale(0.99); background: var(--surface-variant); }
.row-card .left { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; }
.row-card .icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); color: var(--primary); flex-shrink: 0;
}
.row-card .icon-wrap .material-symbols-rounded { font-size: 22px; }
.row-card .icon-wrap.accent { background: #FFF3E0; color: var(--warning); }
.row-card .text { flex: 1; min-width: 0; }
.row-card .title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.row-card .subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.row-card .amount { font-size: 16px; font-weight: 700; flex-shrink: 0; margin-left: var(--space-3); color: var(--text-primary); letter-spacing: -0.01em; }
.row-card.request-row { border-color: var(--info); background: var(--info-bg); }
.badge-needed {
  display: inline-block; background: var(--info); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.03em; flex-shrink: 0; margin-left: var(--space-3);
}
.bottom-tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  max-width: 480px; width: 100%; background: var(--surface);
  border-top: 1px solid var(--border-light); display: flex; z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding: var(--space-2) var(--space-2) calc(var(--space-3) + env(safe-area-inset-bottom));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: slideUpCentered var(--motion-medium) var(--motion-ease);
}
.bottom-tabs .tab {
  flex: 1; text-align: center; padding: var(--space-2) var(--space-1);
  cursor: pointer; color: var(--text-muted); font-size: 11px;
  border: none; background: none; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-radius: var(--radius-sm); transition: all var(--transition);
  font-family: var(--font); font-weight: 500;
}
.bottom-tabs .tab.active { color: var(--primary); background: var(--primary-bg); }
.bottom-tabs .tab .material-symbols-rounded { font-size: 24px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.quick-action {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-5) var(--space-2); text-align: center; cursor: pointer;
  border: 1px solid var(--border-light); transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  animation: popSoft var(--motion-medium) var(--motion-ease);
}
.quick-action:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action:active { transform: translateY(0) scale(0.98); }
.quick-action.disabled { opacity: 0.4; cursor: not-allowed; }
.quick-action.disabled:hover { transform: none; border-color: var(--border-light); box-shadow: none; }
.quick-action .icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.quick-action .icon-wrap .material-symbols-rounded { font-size: 24px; }
.quick-action .icon-wrap.accent { background: #FFF3E0; color: var(--warning); }
.quick-action .icon-wrap.purple { background: #F3E5F5; color: #7B1FA2; }
.quick-action .label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.chooser-card {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-5); margin-bottom: var(--space-3); cursor: pointer;
  display: flex; align-items: center; gap: var(--space-4);
  border: 1.5px solid var(--border-light); transition: all var(--transition);
  animation: cardRise var(--motion-medium) var(--motion-ease);
}
.chooser-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.chooser-card:active { transform: scale(0.99); }
.chooser-card.disabled { opacity: 0.4; cursor: not-allowed; }
.chooser-card .icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chooser-card .icon-wrap .material-symbols-rounded { font-size: 28px; }
.chooser-card .icon-wrap.accent { background: #FFF3E0; color: var(--warning); }
.chooser-card .icon-wrap.purple { background: #F3E5F5; color: #7B1FA2; }
.chooser-card .icon-wrap.blue, .row-card .icon-wrap.blue, .icon-big.blue, .why-card .item .icon-wrap.blue { background: var(--info-bg); color: var(--info); }
.chooser-card .text { flex: 1; }
.chooser-card .title { font-size: 16px; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.chooser-card .subtitle { font-size: 13px; color: var(--text-muted); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.task-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: var(--space-4) var(--space-2);
  text-align: center; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  position: relative;
  animation: popSoft var(--motion-medium) var(--motion-ease);
}
.task-card:hover { border-color: var(--primary-lighter); }
.task-card:active { transform: scale(0.96); }
.task-card.selected {
  border-color: var(--primary); background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.task-card.selected::after {
  content: 'check';
  position: absolute; top: 6px; right: 6px;
  font-family: 'Material Symbols Rounded';
  font-size: 16px; color: var(--primary);
  font-variation-settings: 'FILL' 1, 'wght' 600;
}
.task-card .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface-variant); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.task-card.selected .icon-wrap { background: var(--primary); color: white; }
.task-card .icon-wrap .material-symbols-rounded { font-size: 22px; }
.task-card .label { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.block-chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.block-chip {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: var(--text-primary); cursor: pointer; transition: all var(--transition);
  user-select: none;
}
.block-chip:active { transform: scale(0.96); }
.block-chip.selected {
  border-color: var(--primary); background: var(--primary-bg); color: var(--primary);
}
.hint-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.split-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.split-block-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex-shrink: 0; }
.split-total {
  display: flex; justify-content: flex-end; gap: 6px; font-size: 13px;
  color: var(--text-secondary); margin-top: var(--space-2);
}
.pin-input { display: flex; gap: var(--space-2); justify-content: center; margin: var(--space-6) 0; }
.pin-box {
  width: 48px; height: 56px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
  font-size: 24px; font-weight: 700; background: var(--surface);
  color: var(--text-primary); transition: all var(--transition);
  font-family: var(--font);
}
.pin-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1); }
.recovery-code {
  background: linear-gradient(135deg, #FFF9C4, #FFF59D);
  border: 2px solid var(--warning); border-radius: var(--radius);
  padding: var(--space-5); text-align: center; margin: var(--space-5) 0;
  font-size: 32px; font-weight: 800; letter-spacing: 8px;
  color: var(--text-primary); font-family: 'Courier New', monospace;
}
[data-theme="dark"] .recovery-code { background: linear-gradient(135deg, #3A3520, #2A2510); }
.warning-box {
  background: var(--error-bg); border-left: 4px solid var(--error);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  margin: var(--space-3) 0; font-size: 14px; color: var(--error);
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.warning-box .material-symbols-rounded { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.info-box {
  background: var(--info-bg); border-left: 4px solid var(--info);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  margin: var(--space-3) 0; font-size: 14px; color: var(--info);
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.info-box .material-symbols-rounded { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.summary-card .info-box span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  line-height: 1.35;
}
.help-box {
  background: var(--surface-variant); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); margin: var(--space-3) 0;
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.help-box .material-symbols-rounded { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.labour-row {
  background: var(--surface-variant); border-radius: var(--radius);
  padding: var(--space-4); margin-bottom: var(--space-3); position: relative;
  border: 1px solid var(--border-light);
}
.remove-row {
  position: absolute; top: var(--space-2); right: var(--space-2);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 16px; color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.remove-row:hover { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.mode-toggle {
  display: flex; background: var(--surface); border-radius: var(--radius-full);
  padding: 4px; margin-bottom: var(--space-3); border: 1px solid var(--border);
}
.mode-btn {
  flex: 1; padding: var(--space-2) var(--space-3); border: none;
  background: none; border-radius: var(--radius-full);
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); transition: all var(--transition);
  font-family: var(--font);
}
.mode-btn.active {
  background: var(--primary); color: white;
  box-shadow: var(--shadow-sm);
  animation: countPulse 1.6s ease-in-out;
}
.row-subtotal { text-align: right; font-size: 14px; color: var(--text-secondary); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dashed var(--border); }
.row-subtotal span { font-weight: 700; color: var(--primary); font-size: 16px; }
.add-row-btn {
  background: transparent; border: 2px dashed var(--border);
  border-radius: var(--radius); padding: var(--space-3); width: 100%;
  cursor: pointer; color: var(--text-secondary); font-size: 14px;
  margin-top: var(--space-2); font-weight: 600; transition: all var(--transition);
  font-family: var(--font); display: flex; align-items: center; justify-content: center; gap: var(--space-2);
}
.add-row-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.total-card {
  background: linear-gradient(135deg, var(--primary-bg), #C8E6C9);
  border: 1.5px solid var(--primary-lighter); border-radius: var(--radius);
  padding: var(--space-5); margin: var(--space-4) 0; text-align: center;
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
[data-theme="dark"] .total-card { background: linear-gradient(135deg, #1B3A1D, #2A4A2C); }
.total-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-1); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.total-card .amount { font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: var(--space-2); vertical-align: middle; }
.color-picker { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.color-option {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all var(--transition);
}
.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: var(--text-primary); transform: scale(1.1); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.section-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin-bottom: var(--space-3); margin-top: var(--space-2);
  letter-spacing: -0.01em;
}
.list-section { margin-bottom: var(--space-5); }
.list-section .header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-2) 0 var(--space-3); margin-bottom: var(--space-2);
}
.list-section .header h3 { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--space-1); }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: var(--space-2) var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  font-weight: 600; color: var(--text-secondary); transition: all var(--transition);
  font-family: var(--font);
}
.filter-chip:hover { border-color: var(--primary); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.demo-badge {
  display: inline-block; background: var(--surface-variant); color: var(--text-muted);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.empty-state { text-align: center; padding: var(--space-8) var(--space-5); }
.empty-state .icon-wrap {
  width: 80px; height: 80px; margin: 0 auto var(--space-4);
  background: var(--surface-variant); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.empty-state .icon-wrap .material-symbols-rounded { font-size: 40px; color: var(--text-muted); }
.empty-state .text { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-5); line-height: 1.5; }
.month-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; margin-bottom: var(--space-4);
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border-light);
}
.month-nav .month { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.month-nav button {
  background: var(--surface-variant); border: none;
  border-radius: var(--radius-full); width: 40px; height: 40px;
  cursor: pointer; font-size: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-primary);
}
.month-nav button:hover { background: var(--primary-bg); color: var(--primary); }
.month-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.month-nav button .material-symbols-rounded { font-size: 20px; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-light);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .name { font-size: 14px; color: var(--text-primary); display: flex; align-items: center; }
.breakdown-row .value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.settings-list {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--space-4);
  border: 1px solid var(--border-light);
  animation: cardRise var(--motion-medium) var(--motion-ease);
}
.settings-item {
  display: flex; align-items: center; padding: var(--space-4);
  border-bottom: 1px solid var(--border-light); cursor: pointer; gap: var(--space-3);
  transition: background var(--transition);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--surface-variant); }
.settings-item:active { background: var(--surface-variant); }
.settings-item .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-item .icon-wrap .material-symbols-rounded { font-size: 20px; }
.settings-item .label { flex: 1; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.settings-item .arrow { color: var(--text-muted); font-size: 0; }
.settings-item .arrow::after { content: '›'; font-size: 24px; line-height: 1; }
.profile-section {
  position: relative; overflow: hidden;
  border-radius: 22px;
  margin-bottom: var(--space-4);
  background:
    radial-gradient(ellipse at 0% 0%, #7aaa7a 0%, #b8d4b2 30%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #6a9e6a 0%, #a8c8a2 35%, transparent 60%),
    #eef4ec;
  box-shadow: 0 18px 44px rgba(0,0,0,0.24), 0 6px 14px rgba(0,0,0,0.14), 0 1px 0 rgba(255,255,255,0.5) inset;
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
.profile-section .id-map-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62%; height: 78%;
  opacity: 0.195; z-index: 0; pointer-events: none;
}
.profile-section .id-edit-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: #2E7D32; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.profile-section .id-content {
  position: relative; z-index: 1;
  padding: var(--space-4) var(--space-4) var(--space-4) 26px;
}
.profile-section .id-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.profile-section .id-name-row .name {
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700;
  color: #16241F; letter-spacing: 0.2px; text-transform: uppercase;
}
.profile-section .id-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.profile-section .id-meta span { font-size: 10.5px; color: #43463D; white-space: nowrap; }
.profile-section .id-meta span:first-child b { color: #2E7D32; }
.profile-section .id-meta span:last-child b { color: #16241F; }
.profile-section .id-phone { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.profile-section .id-phone .phone-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #E8F5E9; display: flex; align-items: center; justify-content: center;
}
.profile-section .id-phone .number { font-size: 13px; font-weight: 600; color: #16241F; }
.profile-section .id-stats { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.profile-section .id-stat { text-align: center; flex: 1; }
.profile-section .id-stat svg { margin-bottom: 2px; }
.profile-section .id-stat .stat-label { display: block; font-size: 8.5px; color: #5C5F55; text-transform: uppercase; letter-spacing: 0.05em; }
.profile-section .id-stat .stat-value { display: block; font-size: 11px; font-weight: 700; color: #16241F; }
.profile-section .id-tagline { display: flex; gap: 6px; }
.profile-section .id-tagline .quote-mark {
  font-family: 'Playfair Display', serif; font-size: 26px; line-height: 1;
  color: #2E7D32; flex-shrink: 0;
}
.profile-section .id-tagline .quote-mark-end {
  display: inline-block; vertical-align: -6px; margin-left: 2px;
}
.profile-section .id-tagline p { margin: 0; font-size: 10.5px; line-height: 1.4; color: #43463D; font-style: italic; }
.profile-section .id-gloss {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 26%);
  mix-blend-mode: overlay;
}
.profile-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.profile-actions .love-app {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.profile-actions .love-app .material-symbols-rounded { font-size: 16px; color: var(--primary); }
.share-btn {
  background: var(--surface); border: 1px solid var(--border-light); color: var(--text-primary);
  padding: 6px 12px; border-radius: var(--radius-full); cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow); transition: background var(--transition);
}
.share-btn .material-symbols-rounded { font-size: 15px; color: var(--primary); }
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); display: flex; align-items: center;
  justify-content: center; z-index: 200; padding: var(--space-5);
  animation: fadeIn var(--motion-fast) ease; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-6); max-width: 400px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  animation: scaleIn var(--motion-medium) var(--motion-ease);
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 20px; margin-bottom: var(--space-2); font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.modal p { color: var(--text-secondary); margin-bottom: var(--space-5); font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.modal-actions button { flex: 1; min-height: 48px; padding: var(--space-3); font-size: 14px; }
.snackbar {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--surface);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-full);
  display: flex; align-items: center; gap: var(--space-3); z-index: 150;
  max-width: 90%; box-shadow: var(--shadow-lg);
  animation: slideUpCentered var(--motion-medium) var(--motion-ease);
  font-size: 14px; font-weight: 500;
}
.snackbar button { background: transparent; border: none; color: var(--primary-lighter); font-weight: 700; cursor: pointer; font-size: 14px; padding: 0 var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; }
.success-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 300;
  animation: fadeIn 0.2s;
}
.success-overlay .icon-wrap {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  animation: checkmark var(--motion-medium) var(--motion-ease);
}
.success-overlay .icon-wrap .material-symbols-rounded { font-size: 56px; }
.success-overlay .text { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.celebration { text-align: center; padding: var(--space-8) var(--space-6); }
.celebration .emoji-wrap {
  width: 120px; height: 120px; margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--primary-bg), #C8E6C9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: gentleFloat 3.2s ease-in-out infinite;
}
.celebration .emoji-wrap .material-symbols-rounded { font-size: 64px; color: var(--primary); font-variation-settings: 'FILL' 1, 'wght' 600; }
.celebration h1 { font-size: 32px; margin-bottom: var(--space-3); color: var(--text-primary); font-weight: 800; letter-spacing: -0.02em; }
.celebration p { color: var(--text-secondary); margin-bottom: var(--space-7); font-size: 15px; line-height: 1.6; }
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--error); color: white; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full); z-index: 200; max-width: 90%;
  box-shadow: var(--shadow-lg); animation: slideDown 0.3s;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: var(--space-2);
}
.toast .material-symbols-rounded { font-size: 20px; }
@keyframes slideDown { from { transform: translate(-50%, -100px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-light);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.detail-row .value { font-weight: 600; font-size: 14px; text-align: right; max-width: 60%; color: var(--text-primary); }
.text-center { text-align: center; }
.mt-8 { margin-top: var(--space-2); }
.mt-16 { margin-top: var(--space-4); }
.mb-8 { margin-bottom: var(--space-2); }
.mb-16 { margin-bottom: var(--space-4); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 13px; }
.text-green { color: var(--success); }
.text-red { color: var(--error); }
.text-bold { font-weight: 700; }
.hidden { display: none !important; }
.checkbox-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.checkbox-row label { font-size: 14px; color: var(--text-primary); cursor: pointer; }
.divider { height: 1px; background: var(--border-light); margin: var(--space-4) 0; }
.summary-card .amount,
.total-card .amount,
.row-card .amount {
  transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease);
}
.summary-card:hover .amount,
.total-card:hover .amount,
.row-card:hover .amount {
  transform: translateY(-1px);
}
.export-row { display: flex; justify-content: space-between; padding: var(--space-2) 0; }
.fab {
  position: fixed; bottom: 100px; right: calc(50% - 220px);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white; border: none;
  box-shadow: var(--shadow-lg); cursor: pointer; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  animation: popSoft var(--motion-medium) var(--motion-ease);
}
.fab:hover { background: var(--primary-light); transform: scale(1.05); }
.fab:active { transform: scale(0.95); }
.fab .material-symbols-rounded { font-size: 28px; transition: transform var(--transition); flex-shrink: 0; }
.fab.expanded .material-symbols-rounded { transform: rotate(45deg); }
.fab .fab-hint-text { display: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.fab.hint-active {
  width: auto; border-radius: var(--radius-full, 28px);
  padding: 0 20px 0 16px; justify-content: flex-start; gap: 8px;
}
.fab.hint-active .fab-hint-text { display: inline; }
@media (max-width: 480px) {
  .fab { right: var(--space-4); }
}
.fab-menu {
  position: fixed; bottom: 170px; right: var(--space-4);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--space-2);
  z-index: 89; min-width: 220px;
  animation: scaleIn var(--motion-medium) var(--motion-ease);
  border: 1px solid var(--border-light);
}
.fab-menu .fab-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font); color: var(--text-primary);
}
.fab-menu .fab-item:hover { background: var(--surface-variant); }
.fab-menu .fab-item .icon-wrap {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fab-menu .fab-item .icon-wrap.accent { background: #FFF3E0; color: var(--warning); }
.fab-menu .fab-item .icon-wrap.purple { background: #F3E5F5; color: #7B1FA2; }
.fab-menu .fab-item .icon-wrap .material-symbols-rounded { font-size: 18px; }
.fab-menu .fab-item .label { font-size: 14px; font-weight: 600; }
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
  color: var(--text-primary);
}
.theme-toggle .material-symbols-rounded { font-size: 20px; }
.theme-active-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted); margin-left: 6px;
}
.help-bar {
  position: fixed; top: 12px; right: calc(50% - 220px); z-index: 70;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px;
}
@media (max-width: 480px) {
  .help-bar { right: var(--space-4); }
}
.help-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--text-primary); border: 1px solid var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); color: var(--surface);
  padding: 0; overflow: hidden; white-space: nowrap; flex-shrink: 0;
  transition: width var(--motion-medium) var(--motion-ease),
              border-radius var(--motion-medium) var(--motion-ease),
              padding var(--motion-medium) var(--motion-ease);
}
.help-btn .hint-text {
  display: none; font-size: 12px; font-weight: 700; margin-left: 6px;
}
.help-btn.hint-active .hint-text {
  display: inline;
}
.help-btn.hint-active {
  width: 200px; max-width: 65vw; border-radius: 20px;
  justify-content: flex-start; padding: 0 14px;
}
.help-btn:active { transform: scale(0.95); }
.help-btn .material-symbols-rounded { font-size: 20px; }
.help-btn.kannada-btn {
  font-size: 10px; font-weight: 700; line-height: 1.1; position: relative; overflow: visible;
  --kannada-color: #39ff14; --kannada-duration: 4.5s;
}
.help-btn.kannada-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
}
.help-btn.kannada-btn .kannada-label,
.help-btn.kannada-btn .kannada-hint-text { position: relative; z-index: 2; }
.help-btn.kannada-btn .kannada-hint-text { display: none; font-size: 12px; }
.help-btn.kannada-btn.hint-active {
  width: 110px; max-width: 60vw; border-radius: 20px;
  justify-content: flex-start; padding: 0 14px;
  overflow: hidden;
}
.help-btn.kannada-btn.hint-active .kannada-label { display: none; }
.help-btn.kannada-btn.hint-active .kannada-hint-text { display: inline; }
.help-btn.kannada-btn.hint-active::before,
.help-btn.kannada-btn.hint-active::after {
  display: none;
}
.help-btn.kannada-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg,
    transparent 0deg, transparent 270deg,
    color-mix(in srgb, var(--kannada-color) 0%, transparent) 270deg,
    color-mix(in srgb, var(--kannada-color) 12%, transparent) 300deg,
    color-mix(in srgb, var(--kannada-color) 30%, transparent) 322deg,
    color-mix(in srgb, var(--kannada-color) 55%, transparent) 342deg,
    color-mix(in srgb, var(--kannada-color) 80%, transparent) 353deg,
    var(--kannada-color) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 83%, #000 88%, #000 92%, transparent 97%);
  mask: radial-gradient(farthest-side, transparent 83%, #000 88%, #000 92%, transparent 97%);
  transform-origin: center;
  animation: kannadaTrail var(--kannada-duration) cubic-bezier(0.45,0,0.2,1) infinite;
  z-index: 0;
  pointer-events: none;
}
.help-btn.kannada-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--kannada-color) 70%);
  box-shadow: 0 0 2.5px 0.5px var(--kannada-color), 0 0 5px 1.5px color-mix(in srgb, var(--kannada-color) 60%, transparent);
  transform: rotate(0deg) translateX(18.2px);
  animation: kannadaOrbit var(--kannada-duration) cubic-bezier(0.45,0,0.2,1) infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes kannadaTrail {
  0% { transform: rotate(0deg); opacity: 0; }
  6% { opacity: 1; }
  62% { transform: rotate(360deg); opacity: 1; }
  72% { opacity: 0; }
  100% { transform: rotate(360deg); opacity: 0; }
}
@keyframes kannadaOrbit {
  0% { transform: rotate(0deg) translateX(18.2px); opacity: 0; }
  6% { opacity: 1; }
  62% { transform: rotate(360deg) translateX(18.2px); opacity: 1; }
  72% { opacity: 0; }
  100% { transform: rotate(360deg) translateX(18.2px); opacity: 0; }
}
.first-time-tooltip {
  position: relative; background: linear-gradient(135deg, var(--primary), #1B5E20);
  color: white; border-radius: var(--radius);
  padding: var(--space-5); margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  animation: cardRise var(--motion-slow) var(--motion-ease);
}
.first-time-tooltip .dismiss {
  position: absolute; top: var(--space-2); right: var(--space-2);
  background: rgba(255,255,255,0.15); border: none;
  color: white; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.first-time-tooltip h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.first-time-tooltip p { font-size: 14px; opacity: 0.95; line-height: 1.5; }
.first-time-tooltip .pointer {
  display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-2);
  font-size: 13px; opacity: 0.9; font-style: italic;
}
.recovery-reveal {
  background: linear-gradient(135deg, #FFF9C4, #FFF59D);
  border: 2px dashed var(--warning); border-radius: var(--radius);
  padding: var(--space-5); text-align: center; margin: var(--space-4) 0;
}
[data-theme="dark"] .recovery-reveal { background: linear-gradient(135deg, #3A3520, #2A2510); }
.recovery-reveal .label { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.recovery-reveal .code { font-size: 28px; font-weight: 800; letter-spacing: 6px; color: var(--text-primary); font-family: 'Courier New', monospace; }
.recovery-reveal .hidden-code { font-size: 28px; font-weight: 800; letter-spacing: 4px; color: var(--text-muted); font-family: 'Courier New', monospace; }
.auth-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
.auth-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04) brightness(0.84);
  transform: scale(1.03);
  animation: gentleFloat 11s ease-in-out infinite;
}
.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.24) 100%),
    radial-gradient(circle at top, rgba(46,125,50,0.10), transparent 52%);
}
.auth-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}
.auth-panel {
  width: min(100%, 420px);
  background: rgba(18, 20, 16, 0.20);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: white;
  padding: var(--space-5);
}
.auth-panel .top-bar {
  position: static;
  background: transparent;
  border-bottom: none;
  padding: 0 0 var(--space-4);
  min-height: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-panel .top-bar .title,
.auth-panel .top-bar .back,
.auth-panel .top-bar .right button {
  color: white;
}
.auth-panel .top-bar .back:hover,
.auth-panel .top-bar .right button:hover {
  background: rgba(255,255,255,0.10);
}
.auth-panel .content {
  padding: 0;
  animation: none;
}
.auth-panel .input-group label,
.auth-panel .helper,
.auth-panel .text-muted {
  color: rgba(255,255,255,0.78);
}
.auth-panel .input-group input {
  background: rgba(255,255,255,0.97);
  color: #1A1C19;
  font-weight: 700;
  text-align: center;
  opacity: 1;
  -webkit-text-fill-color: #1A1C19;
}
.auth-panel .input-group input::placeholder {
  color: #6D726A;
}
.auth-panel .prefix span {
  color: #5E6157;
  left: 18px;
}
.auth-panel .prefix input {
  padding-left: 60px;
  padding-right: 60px;
  letter-spacing: 0.02em;
}
.auth-panel .btn-link {
  color: rgba(255,255,255,0.92);
}
.auth-panel .btn-secondary {
  background: rgba(255,255,255,0.10);
  color: white;
  border-color: rgba(255,255,255,0.18);
}
.auth-panel .btn-secondary:hover {
  background: rgba(255,255,255,0.16);
}
.auth-panel .btn-primary {
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.auth-panel .input-group input:focus,
.auth-panel .input-group select:focus {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.auth-panel .pin-input {
  gap: 6px;
  justify-content: space-between;
}
.auth-panel .pin-box {
  width: 42px;
  height: 52px;
  padding: 0;
  font-size: 22px;
  line-height: 52px;
  background: rgba(255,255,255,0.96);
  color: #1A1C19;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
.auth-panel .pin-box::placeholder {
  color: #6D726A;
}
@keyframes panAcross {
  0% { object-position: 0% 50%; }
  100% { object-position: 100% 50%; }
}
.auth-bg-image.plot-hero-image {
  animation: panAcross 18s ease-in-out infinite alternate;
}
.content > :nth-child(1) { animation-delay: 0ms; }
.content > :nth-child(2) { animation-delay: 40ms; }
.content > :nth-child(3) { animation-delay: 80ms; }
.content > :nth-child(4) { animation-delay: 120ms; }
.content > :nth-child(5) { animation-delay: 160ms; }
.content > :nth-child(6) { animation-delay: 200ms; }
.content > :nth-child(7) { animation-delay: 240ms; }
.content > :nth-child(8) { animation-delay: 280ms; }
.content > :nth-child(9) { animation-delay: 320ms; }
.content > :nth-child(10) { animation-delay: 360ms; }
[data-motion="count-up"] {
  transition: transform var(--motion-medium) var(--motion-ease), opacity var(--motion-medium) var(--motion-ease);
}
[data-motion="count-up"].is-updating {
  transform: translateY(-2px);
  opacity: 0.88;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
.month-context {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); background: var(--primary-bg);
  border-radius: var(--radius-sm); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-3);
}
.net-reassure {
  background: var(--surface-variant); border-radius: var(--radius);
  padding: var(--space-4); margin-top: var(--space-3); text-align: center;
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}
.net-reassure strong { color: var(--text-primary); }
.net-reassure.profit { background: var(--primary-bg); color: var(--primary); }
.net-reassure.profit strong { color: var(--primary); }

/* ===== Hub banner ===== */
.hub-banner {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius);
  background: var(--primary-bg); margin-bottom: var(--space-4);
  cursor: pointer; border: none; width: 100%; text-align: left;
}
.hub-banner .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hub-banner .icon-wrap .material-symbols-rounded { font-size: 20px; }
.hub-banner .text { flex: 1; min-width: 0; }
.hub-banner .title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.hub-banner .subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.hub-banner .arrow { color: var(--primary); font-size: 22px; flex-shrink: 0; }

