: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;
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(220,236,217,0.92) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(225,232,248,0.82) 0%, transparent 30%),
    linear-gradient(180deg, #FAFCF8 0%, #F1F6EE 42%, #EAF0F8 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.06) 0%, transparent 34%, rgba(25,118,210,0.05) 68%, transparent 100%);
  --panel-gradient: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(246,249,244,0.96) 100%);
  --panel-gradient-strong: linear-gradient(145deg, rgba(255,255,255,0.99) 0%, rgba(240,246,239,0.95) 100%);
  --canvas-overlay-opacity: 0.75;
  --canvas-drift-duration: 18s;
}
[data-theme="light"] {
  --surface: #FEFEFC;
  --surface-variant: #EAF1E6;
  --border: #D2D9D0;
  --border-light: #DDE5DB;
  --shadow-sm: 0 1px 2px rgba(37,58,38,0.05);
  --shadow: 0 2px 8px rgba(37,58,38,0.08);
  --shadow-md: 0 4px 16px rgba(37,58,38,0.12);
  --shadow-lg: 0 8px 24px rgba(37,58,38,0.16);
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(214,235,214,0.96) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(220,232,250,0.88) 0%, transparent 28%),
    linear-gradient(180deg, #F8FBF6 0%, #EEF5EA 46%, #EAF2FA 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.07) 0%, transparent 34%, rgba(25,118,210,0.06) 68%, transparent 100%);
  --panel-gradient: linear-gradient(145deg, rgba(255,255,255,0.99) 0%, rgba(242,247,239,0.98) 100%);
  --panel-gradient-strong: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(235,242,233,0.98) 100%);
}
[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);
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(46,125,50,0.18) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(25,118,210,0.14) 0%, transparent 28%),
    linear-gradient(180deg, #111712 0%, #151B18 46%, #121A26 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.08) 0%, transparent 34%, rgba(25,118,210,0.08) 68%, transparent 100%);
  --panel-gradient: linear-gradient(145deg, rgba(35,38,33,0.98) 0%, rgba(28,31,27,0.96) 100%);
  --panel-gradient-strong: linear-gradient(145deg, rgba(38,42,36,0.99) 0%, rgba(27,30,26,0.96) 100%);
  --canvas-overlay-opacity: 0.70;
  --canvas-drift-duration: 20s;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* Boot splash: the icon zooms from center to fill the screen on a fixed short
   timer (see startBootSplash() in init.js) — it never waits on real loading,
   since a slow network shouldn't make the app *feel* slower to open. White
   background matches manifest.json's background_color so there's no color
   flash handing off from the native OS splash (TWA/PWA) into this one. */
#bootSplash {
  position: fixed; inset: 0; z-index: 99999;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#bootSplash img {
  width: 140px; height: 140px; border-radius: 28px;
  animation: bootSplashZoom 620ms cubic-bezier(.4,0,.2,1) 60ms both;
}
#bootSplash.hide { animation: bootSplashFade 220ms ease forwards; pointer-events: none; }
@keyframes bootSplashZoom {
  from { transform: scale(1); }
  to { transform: scale(2); }
}
@keyframes bootSplashFade {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #bootSplash img { animation: none; }
  #bootSplash.hide { animation: bootSplashFade 1ms forwards; }
}
html, body { height: 100%; overflow-x: hidden; scrollbar-gutter: stable; touch-action: pan-x pan-y; }
body {
  font-family: var(--font);
  background: var(--canvas-gradient);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  position: relative;
  background-attachment: fixed;
  background-size: 100% 100%;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--canvas-overlay);
  opacity: var(--canvas-overlay-opacity);
  animation: canvasDrift var(--canvas-drift-duration) ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes canvasDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 14px, 0); }
}
body[data-theme="light"][data-screen-tone="onboarding"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(228,240,214,0.98) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(242,232,206,0.78) 0%, transparent 28%),
    linear-gradient(180deg, #FBFCF8 0%, #F1F6E7 50%, #E7F0E6 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.07) 0%, transparent 34%, rgba(183,134,11,0.05) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.78;
}
body[data-theme="dark"][data-screen-tone="onboarding"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(74,103,56,0.26) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(113,87,41,0.20) 0%, transparent 28%),
    linear-gradient(180deg, #11170F 0%, #141B12 52%, #10170F 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(86,140,87,0.10) 0%, transparent 34%, rgba(184,139,57,0.08) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.66;
}
body[data-theme="light"][data-screen-tone="today"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(224,240,216,0.96) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(223,236,250,0.84) 0%, transparent 30%),
    linear-gradient(180deg, #F9FCF7 0%, #EDF5EA 48%, #E6EEF8 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.06) 0%, transparent 33%, rgba(25,118,210,0.06) 66%, transparent 100%);
  --canvas-overlay-opacity: 0.74;
}
body[data-theme="dark"][data-screen-tone="today"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(58,100,61,0.22) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(46,84,120,0.20) 0%, transparent 30%),
    linear-gradient(180deg, #111812 0%, #151E18 48%, #111722 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(76,160,96,0.09) 0%, transparent 33%, rgba(77,135,200,0.08) 66%, transparent 100%);
  --canvas-overlay-opacity: 0.64;
}
body[data-theme="light"][data-screen-tone="history"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(232,239,224,0.96) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(221,230,243,0.84) 0%, transparent 28%),
    linear-gradient(180deg, #F8FBF5 0%, #EEF3E9 50%, #E7ECF5 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(110,124,92,0.06) 0%, transparent 36%, rgba(69,90,100,0.06) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.72;
}
body[data-theme="dark"][data-screen-tone="history"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(72,84,57,0.22) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(49,64,83,0.22) 0%, transparent 28%),
    linear-gradient(180deg, #111612 0%, #151B19 50%, #111723 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(120,140,100,0.09) 0%, transparent 36%, rgba(92,122,146,0.08) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.62;
}
body[data-theme="light"][data-screen-tone="reports"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(220,236,245,0.98) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(226,241,226,0.82) 0%, transparent 28%),
    linear-gradient(180deg, #F7FBFD 0%, #ECF5F9 48%, #E6F2E7 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(25,118,210,0.06) 0%, transparent 32%, rgba(46,125,50,0.06) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.76;
}
body[data-theme="dark"][data-screen-tone="reports"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(34,77,96,0.24) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(42,95,55,0.20) 0%, transparent 28%),
    linear-gradient(180deg, #10171E 0%, #131A21 48%, #0F1713 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(74,132,179,0.09) 0%, transparent 32%, rgba(68,138,88,0.08) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.64;
}
body[data-theme="light"][data-screen-tone="settings"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(228,234,243,0.96) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(224,241,232,0.82) 0%, transparent 28%),
    linear-gradient(180deg, #F7FAFD 0%, #EEF2F8 50%, #E8F3ED 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(66,85,115,0.06) 0%, transparent 36%, rgba(46,125,50,0.06) 70%, transparent 100%);
  --canvas-overlay-opacity: 0.70;
}
body[data-theme="dark"][data-screen-tone="settings"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(58,67,90,0.24) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(46,79,68,0.20) 0%, transparent 28%),
    linear-gradient(180deg, #10151E 0%, #151B20 50%, #101815 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(105,126,160,0.08) 0%, transparent 36%, rgba(82,151,110,0.08) 70%, transparent 100%);
  --canvas-overlay-opacity: 0.62;
}
body[data-theme="light"][data-screen-tone="hub"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(226,240,220,0.96) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(251,238,199,0.82) 0%, transparent 28%),
    linear-gradient(180deg, #F8FCF7 0%, #EDF5E8 50%, #FFF5DF 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(46,125,50,0.06) 0%, transparent 34%, rgba(245,124,0,0.05) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.76;
}
body[data-theme="dark"][data-screen-tone="hub"] {
  --canvas-gradient:
    radial-gradient(circle at top left, rgba(57,95,57,0.24) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(113,87,41,0.18) 0%, transparent 28%),
    linear-gradient(180deg, #111811 0%, #151C16 50%, #161711 100%);
  --canvas-overlay: linear-gradient(135deg, rgba(84,144,84,0.09) 0%, transparent 34%, rgba(181,133,54,0.07) 68%, transparent 100%);
  --canvas-overlay-opacity: 0.64;
}
body[data-screen-tone="onboarding"] .top-bar,
body[data-screen-tone="today"] .top-bar,
body[data-screen-tone="history"] .top-bar,
body[data-screen-tone="reports"] .top-bar,
body[data-screen-tone="settings"] .top-bar,
body[data-screen-tone="hub"] .top-bar {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.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; }
.star-rating { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.star-rating .material-symbols-rounded { font-size: 15px; }
.star-rating .star-filled { color: #F5A623; }
.star-rating .star-empty { color: var(--border); }
#app { max-width: 430px; margin: 0 auto; background: transparent; min-height: 100vh; min-height: 100dvh; position: relative; z-index: 1; }
#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: calc(12px + env(safe-area-inset-top)) var(--space-4) 12px; 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);
}
[data-theme="light"] .top-bar {
  background:
    linear-gradient(180deg, rgba(250,251,249,0.99) 0%, rgba(231,235,229,0.98) 100%),
    linear-gradient(90deg, rgba(136,144,133,0.12) 0%, rgba(255,255,255,0.00) 18%, rgba(255,255,255,0.00) 82%, rgba(136,144,133,0.12) 100%);
  box-shadow: inset 0 -1px 0 rgba(96,104,93,0.10), 0 1px 0 rgba(255,255,255,0.64);
}
[data-theme="light"] .top-bar .back,
[data-theme="light"] .top-bar .right button {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(128,141,124,0.14);
  box-shadow: 0 2px 8px rgba(37,58,38,0.06);
}
[data-theme="light"] .top-bar .back:hover,
[data-theme="light"] .top-bar .right button:hover {
  background: rgba(242,246,240,0.98);
}
[data-theme="dark"] .top-bar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.00) 20%, rgba(255,255,255,0.00) 80%, rgba(255,255,255,0.10) 100%);
  border-bottom-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}
.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 .left-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.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: 14px;
  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: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.notif-row .row-subtitle { font-size: 14px; 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: 14px; }
.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-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.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: 14px;
  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: 40px; height: 40px;
  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: 14px;
  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: 14px;
  margin-bottom: 2px;
  line-height: 1.25;
}
.journey-card-desc {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  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: 14px; 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: 14px; 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.tts-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.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: 14px; 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: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,244,0.96)); color: var(--text-primary);
  -webkit-appearance: none; appearance: none;
  transition: all var(--transition); font-family: var(--font); font-weight: 500;
}
.input-group select,
.input-group textarea {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,241,0.96));
}
[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select,
[data-theme="dark"] .input-group textarea {
  background: linear-gradient(180deg, rgba(39,43,38,0.98), rgba(31,34,29,0.96));
}
.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;
  display: flex; align-items: center;
}
.input-group .prefix input { padding-left: 36px; }
.input-group .helper { font-size: 14px; color: var(--text-muted); margin-top: var(--space-2); line-height: 1.4; }
.input-group .error { color: var(--error); font-size: 14px; 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);
}
[data-theme="light"] .loc-field .loc-list,
[data-theme="light"] .settings-list {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,249,244,0.95));
}
[data-theme="dark"] .loc-field .loc-list,
[data-theme="dark"] .settings-list {
  background: linear-gradient(180deg, rgba(34,37,32,0.99), rgba(27,30,26,0.95));
}
.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(--panel-gradient); 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);
}
[data-theme="light"] .card,
[data-theme="light"] .why-card,
[data-theme="light"] .quick-action,
[data-theme="light"] .settings-list,
[data-theme="light"] .row-card,
[data-theme="light"] .modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(246,250,244,0.98) 100%);
  border-color: rgba(142,156,138,0.18);
  box-shadow:
    0 1px 2px rgba(37,58,38,0.04),
    0 10px 28px rgba(37,58,38,0.07);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .why-card:hover,
[data-theme="light"] .quick-action:hover,
[data-theme="light"] .row-card:hover,
[data-theme="light"] .settings-list:hover,
[data-theme="light"] .modal:hover {
  box-shadow:
    0 2px 6px rgba(37,58,38,0.06),
    0 14px 34px rgba(37,58,38,0.09);
}
.land-parts-shell {
  margin: 0 auto;
  width: min(100%, 480px);
  min-height: 100dvh;
  padding: var(--space-3);
  background:
    radial-gradient(circle at top left, rgba(84, 160, 255, 0.16), transparent 42%),
    radial-gradient(circle at right center, rgba(46, 125, 50, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(247, 249, 252, 0.98), rgba(229, 239, 255, 0.94));
  box-shadow: 0 20px 60px rgba(20, 28, 36, 0.10);
  border-left: 1px solid rgba(255,255,255,0.45);
  border-right: 1px solid rgba(120,140,170,0.12);
}
[data-theme="dark"] .land-parts-shell {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 42%),
    radial-gradient(circle at right center, rgba(34, 197, 94, 0.10), transparent 38%),
    linear-gradient(145deg, rgba(15, 20, 28, 0.98), rgba(22, 30, 42, 0.96));
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.land-parts-shell .top-bar {
  background: transparent;
  border-bottom-color: rgba(127, 144, 168, 0.20);
}
.land-parts-shell .content {
  color: var(--text-primary);
}
.land-parts-shell .text-muted,
.land-parts-shell .input-group label {
  color: var(--text-secondary);
}
.land-parts-shell .input-group input {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.land-parts-shell .input-group input::placeholder {
  color: var(--text-muted);
}
.land-parts-shell .btn-link {
  color: var(--primary);
}
.block-count-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.block-count-input {
  flex: 1;
  min-width: 0;
}
.block-count-input::-webkit-outer-spin-button,
.block-count-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.block-count-input {
  appearance: textfield;
  -moz-appearance: textfield;
}
.block-count-stepper {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.block-count-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.block-count-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
}
.block-count-btn:active { transform: scale(0.96); }
.block-count-btn .material-symbols-rounded { font-size: 22px; }
[data-theme="dark"] .block-count-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
[data-theme="dark"] .block-count-btn:hover {
  background: rgba(46,125,50,0.22);
  border-color: rgba(110,180,120,0.45);
  color: white;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  font-size: 14px; 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, rgba(46,125,50,0.96) 0%, rgba(30,107,44,0.96) 42%, rgba(21,90,35,0.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  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;
  animation: summaryOrbFloat 7s ease-in-out infinite;
}
@keyframes summaryOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 16px) scale(1.08); }
}
.summary-card .label { font-size: 14px; 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: 14px; 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(--panel-gradient);
  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: 14px; 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: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,241,0.95));
  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);
}
[data-theme="light"] .bottom-tabs {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,247,240,0.98) 100%);
  border-top: 1px solid rgba(142,156,138,0.14);
  box-shadow: 0 -10px 28px rgba(37,58,38,0.07);
}
[data-theme="light"] .bottom-tabs .tab.active {
  background: linear-gradient(180deg, rgba(229,241,226,0.98) 0%, rgba(216,231,213,0.98) 100%);
}
[data-theme="dark"] .bottom-tabs {
  background: linear-gradient(180deg, rgba(29,32,28,0.98), rgba(22,24,21,0.95));
}
.bottom-tabs .tab {
  flex: 1; text-align: center; padding: var(--space-2) var(--space-1);
  cursor: pointer; color: var(--text-muted); font-size: 14px;
  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(--panel-gradient); 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: 14px; font-weight: 600; color: var(--text-primary); }
.chooser-card {
  background: var(--panel-gradient); 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: 14px; color: var(--text-muted); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.task-grid.crop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) {
  .task-grid.crop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.task-card {
  background: var(--panel-gradient); 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: 14px; font-weight: 600; color: var(--text-primary); }
.task-card.crop-card {
  padding: var(--space-3);
  min-height: 142px;
  text-align: center;
  align-items: stretch;
  gap: var(--space-3);
}
.task-card.crop-card .crop-visual {
  min-height: 78px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.task-card.crop-card .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  color: white;
}
.task-card.crop-card.selected .icon-wrap { background: rgba(255,255,255,0.92); color: var(--primary); }
.task-card.crop-card .icon-wrap .material-symbols-rounded { font-size: 26px; }
.task-card.crop-card .label { font-size: 14px; line-height: 1.2; min-height: 2.4em; }
.task-card.crop-card[data-crop="coffee"] .crop-visual { background: linear-gradient(145deg, #4e342e, #8d6e63); }
.task-card.crop-card[data-crop="pepper"] .crop-visual { background: linear-gradient(145deg, #2e5b3f, #446f52); }
.task-card.crop-card[data-crop="ginger"] .crop-visual { background: linear-gradient(145deg, #7a4c1d, #a56a2d); }
.task-card.crop-card[data-crop="arecanut"] .crop-visual { background: linear-gradient(145deg, #3e5f35, #617e3d); }
.task-card.crop-card[data-crop="coconut"] .crop-visual { background: linear-gradient(145deg, #0f5d6a, #1f7a8c); }
.task-card.crop-card[data-crop="ragi"] .crop-visual { background: linear-gradient(145deg, #8a5b24, #b47d35); }
.task-card.crop-card[data-crop="rice"] .crop-visual { background: linear-gradient(145deg, #557a63, #7c9a82); }
.task-card.crop-card[data-crop="jowar"] .crop-visual { background: linear-gradient(145deg, #6f7c45, #8e9a5a); }
.task-card.crop-card[data-crop="sugarcane"] .crop-visual { background: linear-gradient(145deg, #1f6d3b, #3b8e58); }
.task-card.crop-card[data-crop="other"] .crop-visual { background: linear-gradient(145deg, #5f6368, #7b8085); }
.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: 14px; 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: 14px; 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: 14px; font-weight: 600; color: var(--text-primary); flex-shrink: 0; }
.split-total {
  display: flex; justify-content: flex-end; gap: 6px; font-size: 14px;
  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: linear-gradient(145deg, rgba(255,235,238,0.96), rgba(255,242,244,0.94)); 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; }
.warning-box .warning-close {
  background: none; border: none; color: var(--error); cursor: pointer;
  flex-shrink: 0; margin-left: auto; padding: 2px; display: flex;
  align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.warning-box .warning-close .material-symbols-rounded { font-size: 18px; margin-top: 0; }
.warning-box .warning-close:focus-visible,
.install-banner-close:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.info-box {
  background: linear-gradient(145deg, rgba(227,242,253,0.96), rgba(239,246,253,0.94)); 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: linear-gradient(145deg, rgba(241,244,240,0.98), rgba(232,240,233,0.95)); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); margin: var(--space-3) 0;
  font-size: 14px; 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: 40px; height: 40px; 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);
  min-height: 44px;
}
.mode-btn {
  flex: 1; padding: var(--space-2) var(--space-3); border: none;
  background: none; border-radius: var(--radius-full);
  cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px;
  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, rgba(232,245,233,0.98) 0%, rgba(200,230,201,0.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  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, rgba(27,58,29,0.98) 0%, rgba(42,74,44,0.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.total-card .label { font-size: 14px; 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: 14px; 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; }
.month-compare-chip {
  display: flex; align-items: center; gap: var(--space-1);
  padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin: var(--space-2) 0 var(--space-3); width: fit-content;
}
.month-compare-chip .material-symbols-rounded { font-size: 16px; }
.month-compare-chip.up { background: rgba(229,57,53,0.10); color: #C62828; }
.month-compare-chip.down { background: rgba(46,125,50,0.10); color: #2E7D32; }
.month-compare-chip.neutral { background: var(--surface-card); color: var(--text-secondary); }
.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(--panel-gradient); 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);
}
[data-theme="light"] .profile-section {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(117,163,117,0.82) 0%, rgba(193,219,188,0.72) 30%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(102,154,102,0.78) 0%, rgba(180,208,172,0.68) 35%, transparent 60%),
    linear-gradient(145deg, rgba(250,253,248,0.98) 0%, rgba(237,244,232,0.98) 100%);
  box-shadow:
    0 18px 44px rgba(37,58,38,0.12),
    0 6px 14px rgba(37,58,38,0.06),
    0 1px 0 rgba(255,255,255,0.72) inset;
}
.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: 40px; height: 40px; 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: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(46,125,50,0.94) 0%, rgba(32,96,38,0.96) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 8px 18px rgba(18, 64, 27, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
  color: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.profile-section .id-phone .phone-icon:hover { transform: translateY(-1px); filter: brightness(1.03); }
.profile-section .id-phone .phone-icon .material-symbols-rounded { font-size: 18px; color: #ffffff; }
.profile-section .id-phone .number { font-size: 14px; 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: 14px; 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: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: background var(--transition);
}
[data-theme="light"] .share-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,241,0.98) 100%);
  border-color: rgba(142,156,138,0.16);
  box-shadow: 0 4px 14px rgba(37,58,38,0.08);
}
.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(--panel-gradient-strong); 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: 14px; 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: 14px; }
.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; }
.install-banner {
  position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  max-width: 480px; width: calc(100% - 32px);
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-3);
  display: flex; align-items: center; gap: var(--space-3);
  z-index: 95; animation: popSoft var(--motion-medium) var(--motion-ease);
}
body.has-install-banner .fab { bottom: 172px; }
.pending-sync-banner {
  position: fixed; top: env(safe-area-inset-top); left: 50%; transform: translateX(-50%);
  max-width: 480px; width: calc(100% - 32px); margin-top: var(--space-2);
  background: var(--surface-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: var(--space-2) var(--space-3);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  z-index: 90;
}
.pending-sync-banner .material-symbols-rounded { font-size: 16px; flex-shrink: 0; }
.install-banner-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0; }
.install-banner-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.install-banner-btn {
  background: var(--primary); color: white; border: none;
  border-radius: var(--radius-full); padding: var(--space-2) var(--space-4);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: var(--font); flex-shrink: 0;
}
.install-banner-btn:active { transform: scale(0.97); }
.install-banner-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: var(--space-1);
}
.install-banner-close .material-symbols-rounded { font-size: 18px; }
@media (max-width: 480px) {
  .install-banner { width: calc(100% - 24px); }
}
@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: 14px; color: var(--text-muted); margin-left: 6px;
}
.help-bar {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); 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); }
  .top-bar .right { margin-right: 56px; }
}
.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;
  touch-action: none;
  transition: width var(--motion-medium) var(--motion-ease),
              border-radius var(--motion-medium) var(--motion-ease),
              padding var(--motion-medium) var(--motion-ease);
}
[data-theme="light"] .help-btn,
[data-theme="light"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(39,42,38,0.98) 0%, rgba(20,22,19,0.98) 100%);
  color: #F4F6F2;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(37,58,38,0.16);
}
.help-btn.magnifier-btn {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-light);
  width: 40px;
  height: 40px;
  position: relative;
}
[data-theme="light"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(39,42,38,0.99) 0%, rgba(20,22,19,0.97) 100%);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .help-btn,
[data-theme="dark"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240,245,238,0.98) 100%);
  color: #111111;
  border-color: rgba(128,141,124,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
[data-theme="dark"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,247,240,0.97) 100%);
  border-color: rgba(128,141,124,0.18);
}
.help-btn.magnifier-btn:hover { background: var(--surface-variant); }
.help-btn.magnifier-btn .material-symbols-rounded {
  font-size: 23px;
  line-height: 1;
  transform-origin: center;
  animation: magnifierIconZoom 2.8s ease-in-out infinite;
}
@keyframes magnifierIconZoom {
  0%, 100% { transform: scale(0.90); opacity: 0.95; }
  50% { transform: scale(1.10); opacity: 1; }
}
.help-btn .hint-text {
  display: none; font-size: 14px; font-weight: 700; margin-left: 6px;
  white-space: normal; line-height: 1.15; text-align: left;
}
.help-btn.hint-active .hint-text {
  display: inline;
}
.help-btn.hint-active {
  width: min(255px, 72vw); min-height: 36px; height: auto;
  max-width: 72vw; border-radius: 18px;
  justify-content: flex-start; align-items: center; padding: 7px 12px;
}
.help-btn:active { transform: scale(0.95); }
.help-btn .material-symbols-rounded { font-size: 20px; }
.help-btn[data-action="openUnderstandThis"] .material-symbols-rounded {
  font-size: 21px;
  transform-origin: center;
  animation: magnifierIconZoom 2.8s ease-in-out infinite;
}
.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.active .kannada-label,
.help-btn.kannada-btn.active .kannada-hint-text {
  animation: none;
}
[data-theme="light"] .help-btn,
[data-theme="light"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(39,42,38,0.98) 0%, rgba(20,22,19,0.98) 100%);
  color: #F4F6F2;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(37,58,38,0.16);
}
[data-theme="light"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(39,42,38,0.99) 0%, rgba(20,22,19,0.97) 100%);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="light"] .help-btn.magnifier-btn:hover {
  background: linear-gradient(180deg, rgba(50,54,48,0.99) 0%, rgba(28,31,27,0.98) 100%);
}
[data-theme="dark"] .help-btn,
[data-theme="dark"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240,245,238,0.98) 100%);
  color: var(--text-primary);
  border-color: rgba(128,141,124,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
[data-theme="dark"] .help-btn.magnifier-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,247,240,0.97) 100%);
  border-color: rgba(128,141,124,0.18);
}
[data-theme="dark"] .help-btn.magnifier-btn:hover {
  background: linear-gradient(180deg, rgba(246,250,243,0.99) 0%, rgba(232,239,230,0.98) 100%);
}
.help-btn,
.help-btn .material-symbols-rounded,
.help-btn .hint-text,
.help-btn .kannada-label,
.help-btn .kannada-hint-text {
  color: inherit;
}
[data-theme="dark"] .help-btn,
[data-theme="dark"] .help-btn .material-symbols-rounded,
[data-theme="dark"] .help-btn .hint-text,
[data-theme="dark"] .help-btn .kannada-label,
[data-theme="dark"] .help-btn .kannada-hint-text {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  opacity: 1;
}
[data-theme="dark"] .help-btn.kannada-btn.active {
  color: #111111 !important;
}
[data-theme="dark"] .help-btn.kannada-btn.active .kannada-label,
[data-theme="dark"] .help-btn.kannada-btn.active .kannada-hint-text {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
}
.help-btn .material-symbols-rounded,
.help-btn .hint-text,
.help-btn .kannada-label,
.help-btn .kannada-hint-text {
  color: inherit;
}
.help-btn.kannada-btn .kannada-label,
.help-btn.kannada-btn .kannada-hint-text { position: relative; z-index: 2; }
.help-btn.kannada-btn .kannada-label {
  display: inline-block;
  transform-origin: center;
  animation: magnifierIconZoom 2.8s ease-in-out infinite;
}
.help-btn.kannada-btn .kannada-hint-text {
  display: none;
  font-size: 14px;
  transform-origin: center;
  animation: magnifierIconZoom 2.8s ease-in-out infinite;
}
.help-btn.kannada-btn.hint-active {
  width: min(162px, 64vw); min-height: 36px; height: auto;
  max-width: 64vw; border-radius: 18px;
  justify-content: flex-start; align-items: center; padding: 7px 12px;
  overflow: hidden;
}
.help-btn.kannada-btn.hint-active .kannada-label { display: none; }
.help-btn.kannada-btn.hint-active .kannada-hint-text {
  display: inline;
  white-space: normal;
  line-height: 1.15;
  text-align: left;
  animation: magnifierIconZoom 2.8s ease-in-out infinite;
}
.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;
}
.magnifier-lens {
  position: fixed;
  left: 0;
  top: 0;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) translate(-50%, -50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 92;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.20) 18%, rgba(255,255,255,0.08) 34%, rgba(255,255,255,0.03) 58%, rgba(255,255,255,0.00) 72%),
    linear-gradient(180deg, rgba(252,252,249,0.99) 0%, rgba(241,245,239,0.98) 100%);
  border: 1px solid rgba(113,126,110,0.18);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -1px 0 rgba(103,118,99,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}
.magnifier-lens::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, transparent 58%, rgba(255,255,255,0.16) 74%, rgba(103,118,99,0.12) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.20),
    inset 0 8px 18px rgba(255,255,255,0.08);
}
.magnifier-lens::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,0.05),
    inset 0 0 0 16px rgba(103,118,99,0.06),
    inset 0 -12px 18px rgba(103,118,99,0.05);
  pointer-events: none;
}
.magnifier-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  will-change: transform;
  background: transparent;
  filter: saturate(1.04) contrast(1.02);
}
.magnifier-app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
[data-theme="dark"] .magnifier-lens {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 18%, rgba(255,255,255,0.03) 34%, rgba(255,255,255,0.01) 58%, rgba(255,255,255,0.00) 72%),
    linear-gradient(180deg, rgba(30,34,28,0.99) 0%, rgba(21,24,20,0.98) 100%);
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.magnifier-lens.open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) translate(-50%, -50%) scale(1);
}
@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: 14px; 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: 14px; 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-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.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) calc(var(--space-6) + env(safe-area-inset-bottom));
}
.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);
  max-height: calc(100dvh - (var(--space-6) * 2));
  overflow-y: auto;
}
[data-theme="light"] .auth-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(242,247,240,0.88) 100%);
  border: 1px solid rgba(142,156,138,0.20);
  box-shadow: 0 24px 60px rgba(37,58,38,0.12);
  color: var(--text-primary);
}
/* `body[data-screen-tone] .top-bar` (an attribute selector) outranks a plain
   two-class selector, so this needs the `body` prefix just to tie on
   specificity and win on source order — otherwise that shared rule's
   backdrop-filter: blur(22px) re-applies on top of this panel's own blur
   and shows up as a visible extra frosted rectangle behind the title. */
body .auth-panel .top-bar {
  position: static;
  background: none;
  border-bottom: none;
  padding: 0 0 var(--space-4);
  min-height: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
[data-theme="light"] .auth-panel .top-bar {
  background: none;
  border-bottom: none;
  box-shadow: none;
}
.auth-panel .top-bar .title,
.auth-panel .top-bar .back,
.auth-panel .top-bar .right button {
  color: white;
}
[data-theme="light"] .auth-panel .top-bar .title,
[data-theme="light"] .auth-panel .top-bar .back,
[data-theme="light"] .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);
}
[data-theme="light"] .auth-panel .top-bar .back:hover,
[data-theme="light"] .auth-panel .top-bar .right button:hover {
  background: rgba(232,238,229,0.92);
}
.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;
}
@media (min-width: 700px) {
  body {
    padding: 14px 0;
  }
  #app {
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.26);
    overflow: clip;
  }
  body::before {
    opacity: calc(var(--canvas-overlay-opacity) * 0.9);
  }
}
.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: 14px; 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: 14px; 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: linear-gradient(135deg, rgba(232,245,233,0.95) 0%, rgba(241,248,237,0.95) 55%, rgba(227,242,253,0.92) 100%);
  margin-bottom: var(--space-4);
  cursor: pointer; border: none; width: 100%; text-align: left;
}
[data-theme="dark"] .hub-banner {
  background: linear-gradient(135deg, rgba(27,58,29,0.96) 0%, rgba(24,38,44,0.94) 100%);
}
.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: 14px; color: var(--text-secondary); margin-top: 2px; }
.hub-banner .arrow { color: var(--primary); font-size: 22px; flex-shrink: 0; }

.guest-banner {
  border-radius: var(--radius); padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.guest-banner .text { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-3); }
.guest-banner .text strong { display: block; font-size: 14px; color: var(--text-primary); margin-bottom: 2px; }
.guest-banner .btn-primary { min-height: 44px; }
.block-digest-fill { transition: width 0.9s cubic-bezier(.16,.84,.44,1); }
@media (prefers-reduced-motion: reduce) {
  .block-digest-fill { transition: none; }
}
#demoWatermarkOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url('../assets/demo-watermark.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
}
[data-theme="dark"] #demoWatermarkOverlay { mix-blend-mode: screen; }
#demoWatermarkOverlay.active { display: block; }
.guest-banner.demo {
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.guest-banner.demo .text { margin-bottom: 0; }
.guest-banner.demo .text strong { margin-bottom: var(--space-2); }
.guest-banner.demo .btn-primary {
  width: auto; min-height: 36px; padding: 0 var(--space-4); font-size: 13px; box-shadow: none; flex: 0 0 auto;
}
.guest-banner.demo .erase-link {
  display: inline-flex; align-items: center; background: none; cursor: pointer; font-family: var(--font);
  border: 1px solid rgba(46,125,50,0.35); border-radius: var(--radius-full); color: var(--primary);
  padding: 3px var(--space-3); font-size: 12px; font-weight: 500;
}
[data-theme="dark"] .guest-banner.demo .erase-link { border-color: rgba(129,199,132,0.4); }
.guest-banner.demo {
  background: rgba(251,140,0,0.08);
  border: none; border-left: 3px solid #FB8C00;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .guest-banner.demo {
  background: rgba(255,183,77,0.07);
  border-left-color: #FFB74D;
}
.guest-banner.save {
  background: linear-gradient(135deg, rgba(232,245,233,0.95) 0%, rgba(227,242,253,0.92) 100%);
  border: 1px solid rgba(46,125,50,0.25);
}
[data-theme="dark"] .guest-banner.save {
  background: linear-gradient(135deg, rgba(27,58,29,0.96) 0%, rgba(24,38,44,0.94) 100%);
}
.guest-save-modal .google-signin-mount { display: flex; justify-content: center; margin: var(--space-4) 0; }

.hub-warning-modal.modal {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-5);
}
.hub-warning-modal .hub-warning-icon { font-size: 56px; line-height: 1; color: var(--error); }
.hub-warning-modal .hub-warning-text { font-size: 20px; font-weight: 600; color: var(--text-primary); line-height: 1.5; max-width: 640px; }
.hub-warning-modal .btn-primary.hub-warning-close-btn {
  font-size: 20px;
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  min-width: 200px;
  border-radius: var(--radius-lg);
}

/* ===== Google Sign-in Button ===== */
.google-signin-mount {
  display: flex;
  justify-content: center;
  margin: var(--space-3) auto;
  width: 100%;
}
.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.24);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
  padding: 8px 18px;
  text-decoration: none;
}
.google-signin-btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(60,64,67,0.2), 0 1px 3px rgba(60,64,67,0.24);
}
.google-signin-btn:active {
  background-color: #f1f3f4;
  transform: scale(0.98);
}
.google-signin-btn .google-icon {
  flex-shrink: 0;
}
[data-theme="dark"] .google-signin-btn {
  background: #202124;
  color: #e8eaed;
  border-color: #5f6368;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="dark"] .google-signin-btn:hover {
  background-color: #303134;
}
.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
[data-theme="dark"] .spinner-small {
  border-color: rgba(255,255,255,0.2);
  border-top-color: var(--primary-light);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PWA Install Guide Modal ===== */
.install-sheet-modal.modal {
  max-width: 440px;
  padding: var(--space-5);
}
.install-guide-modal {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.install-guide-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}
.install-guide-app-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.install-guide-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-2) 0;
}
.install-guide-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.install-guide-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.install-guide-step .step-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.install-guide-step .step-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}
.install-guide-step .step-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
}
.install-guide-step .step-icon-badge .material-symbols-rounded {
  font-size: 20px;
}

/* ===== Block Suggestion Chips ===== */
.block-suggestions-panel {
  margin-bottom: var(--space-4);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 12px 14px;
}
.suggestions-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.suggestion-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggestion-chip {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: var(--primary);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.suggestion-chip .chip-add-icon {
  font-size: 16px;
}
.suggestion-chip:hover {
  background: rgba(46, 125, 50, 0.16);
}
.suggestion-chip:active {
  transform: scale(0.96);
}
[data-theme="dark"] .block-suggestions-panel {
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .suggestion-chip {
  background: rgba(46, 125, 50, 0.22);
  border-color: rgba(76, 175, 80, 0.4);
  color: #81c784;
}

/* ===== Weekly Labour Card (Saturday Settlement) ===== */
.weekly-labour-card {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 14px 16px;
  margin-bottom: var(--space-3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-family: var(--font);
  transition: border-color 0.2s ease;
}
.weekly-labour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.weekly-labour-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.weekly-labour-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.weekly-labour-icon .material-symbols-rounded {
  font-size: 22px;
}
.weekly-labour-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.weekly-labour-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.weekly-labour-amount-wrap {
  text-align: right;
  flex-shrink: 0;
}
.weekly-labour-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.weekly-labour-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.weekly-labour-whatsapp-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease, transform 0.1s ease;
}
.weekly-labour-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2);
}
.weekly-labour-whatsapp-btn:active {
  transform: scale(0.99);
}
[data-theme="dark"] .weekly-labour-card {
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .weekly-labour-icon {
  background: rgba(46, 125, 50, 0.25);
  color: #81c784;
}
[data-theme="dark"] .weekly-labour-amount {
  color: #81c784;
}
[data-theme="dark"] .weekly-labour-whatsapp-btn {
  background: rgba(37, 211, 102, 0.18);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
}

/* ===== Farmer Offer Banner & Modal ===== */
.farmer-offer-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(46,125,50,0.12) 0%, rgba(245,166,35,0.14) 100%);
  border: 1px solid rgba(46,125,50,0.28);
  border-radius: var(--radius-md, 12px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.farmer-offer-banner:hover {
  background: linear-gradient(135deg, rgba(46,125,50,0.16) 0%, rgba(245,166,35,0.18) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.farmer-offer-banner:active {
  transform: scale(0.99);
}
.offer-badge-gift {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(46,125,50,0.3);
}
.offer-badge-gift .material-symbols-rounded {
  font-size: 20px;
}
.offer-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.offer-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.offer-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.offer-action-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.offer-action-link .material-symbols-rounded {
  font-size: 18px;
}

[data-theme="dark"] .farmer-offer-banner {
  background: linear-gradient(135deg, rgba(46,125,50,0.2) 0%, rgba(245,166,35,0.15) 100%);
  border-color: rgba(76,175,80,0.35);
}
[data-theme="dark"] .offer-tag {
  color: #81c784;
}
[data-theme="dark"] .offer-action-link {
  color: #81c784;
}

.guest-banner-offer-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal styles */
.offer-sheet-modal.modal {
  max-width: 440px;
  padding: var(--space-5);
}
.farmer-offer-modal {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.fom-header {
  text-align: center;
  padding-bottom: var(--space-2);
}
.fom-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(46,125,50,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
}
.fom-icon-wrap .material-symbols-rounded {
  font-size: 28px;
}
.fom-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.fom-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.fom-card-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fom-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 10px);
}
.fom-card.highlight {
  border-color: rgba(46,125,50,0.35);
  background: rgba(46,125,50,0.06);
}
.fom-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fom-card-icon .material-symbols-rounded {
  font-size: 20px;
}
.fom-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fom-card-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fom-card-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.fom-hook-box {
  background: linear-gradient(135deg, rgba(230,81,0,0.08) 0%, rgba(245,166,35,0.12) 100%);
  border: 1.5px dashed rgba(230,81,0,0.35);
  border-radius: var(--radius-md, 10px);
  padding: 12px 14px;
}
.fom-hook-headline {
  font-size: 14.5px;
  font-weight: 800;
  color: #e65100;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fom-hook-headline .material-symbols-rounded {
  font-size: 18px;
}
[data-theme="dark"] .fom-hook-headline {
  color: #ff9800;
}
.fom-hook-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 4px 0 0;
}

