:root {
  /* Lime (कागती) — rind, pulp, zest */
  --primary: #65a30d;
  --primary-dark: #4d7c0f;
  --primary-darker: #3f6212;
  --primary-light: #ecfccb;
  --primary-soft: #f7fee7;
  --lime: #84cc16;
  --lime-bright: #a3e635;
  --lime-pale: #d9f99d;
  --zest: #eab308;
  --zest-soft: #fef9c3;
  --rind: #365314;
  --accent-blue: #2563eb;
  --accent-blue-light: #dbeafe;
  --accent-orange: #f59e0b;
  --accent-orange-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --gray-50: #fafaf7;
  --gray-100: #f3f4f0;
  --gray-200: #e7e8e2;
  --gray-300: #d1d5c8;
  --gray-500: #6b7264;
  --gray-700: #374135;
  --gray-900: #1a1f16;
  --white: #ffffff;
  --border: #e4e7d9;
  --shadow: 0 1px 3px rgba(63, 98, 18, 0.08);
  --shadow-md: 0 4px 14px rgba(63, 98, 18, 0.12);
  --shadow-lime: 0 4px 16px rgba(101, 163, 13, 0.22);
  --radius: 12px;
  --radius-lg: 16px;
  --surface: #ffffff;
  --muted: #6b7264;
  --text: #1a1f16;
  --header-grad: linear-gradient(135deg, #ecfccb 0%, #f7fee7 45%, #fef9c3 100%);
  --btn-grad: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans Devanagari", sans-serif;
  background:
    radial-gradient(1200px 480px at 50% -120px, rgba(163, 230, 53, 0.28), transparent 70%),
    radial-gradient(800px 320px at 100% 0%, rgba(234, 179, 8, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fee7 0%, #fafaf7 220px, #fafaf7 100%);
  color: var(--gray-900);
  line-height: 1.55;
  min-height: 100vh;
}

.app-container { max-width: 960px; margin: 0 auto; padding: 12px 16px 80px; }

/* Header — fresh lime rind wash */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
  background: var(--header-grad);
  border: 1px solid #d9f99d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.header::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bef264 0%, #84cc16 45%, #65a30d 100%);
  opacity: 0.35;
  pointer-events: none;
}
.header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; z-index: 1; }
.header-logo { height: 48px; width: auto; border-radius: 10px; box-shadow: 0 2px 8px rgba(77, 124, 15, 0.2); }
.header-title h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; }
.header-title h1 .k { color: var(--rind); }
.header-title h1 .g { color: var(--primary); }
.header-title p { font-size: 0.8rem; color: var(--primary-dark); margin: 0; font-weight: 600; }

.auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid #bef264; color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.15s; white-space: nowrap;
  position: relative; z-index: 1;
  box-shadow: 0 1px 4px rgba(101, 163, 13, 0.12);
}
.auth-btn:hover { background: var(--primary-light); border-color: var(--lime); }
.auth-btn .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--btn-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}

/* Nav */
.nav {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px;
  padding: 8px 0; border-bottom: 1px solid #d9f99d;
}
.nav a {
  text-decoration: none; color: var(--gray-500); font-weight: 700;
  padding: 7px 13px; border-radius: 999px; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover, .nav a.active { background: linear-gradient(135deg, #ecfccb, #fef9c3); color: var(--primary-darker); }
.nav a .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
}

/* Cards */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
  border: 1px solid #e4e7d9;
}
.card-header {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--rind);
}
.card-header .icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #ecfccb, #fef9c3);
  border: 1px solid #d9f99d;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 4px;
  font-size: 0.86rem; color: var(--gray-700);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color 0.15s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.35);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s; font-family: inherit;
}
.btn-primary {
  background: var(--btn-grad); color: var(--white);
  box-shadow: var(--shadow-lime);
}
.btn-primary:hover { background: linear-gradient(135deg, #78d117 0%, #4d7c0f 100%); }
.btn-primary:active { transform: translateY(1px); }
.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1fbd5a 0%, #0f7a6e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline {
  background: transparent; color: var(--primary-dark); border: 1.5px solid var(--lime);
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-sm { padding: 7px 13px; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Alerts */
.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px;
  font-size: 0.9rem; font-weight: 500;
}
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--primary-light); color: var(--primary-darker); border: 1px solid #bef264; }
.alert-info { background: var(--accent-blue-light); color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: var(--zest-soft); color: #854d0e; border: 1px solid #fde047; }

/* Auth */
.auth-container { max-width: 420px; margin: 24px auto; }
.auth-container .card { padding: 28px 24px; }
.auth-title { text-align: center; font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; color: var(--primary-dark); }
.auth-subtitle { text-align: center; color: var(--muted); margin-bottom: 20px; font-size: 0.9rem; }

/* OTP / device code — pulp + zest */
.otp-box {
  background: linear-gradient(145deg, #f7fee7 0%, #ecfccb 50%, #fef9c3 100%);
  border: 2px dashed var(--lime); border-radius: var(--radius-lg);
  padding: 20px 16px; text-align: center; margin: 16px 0;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.otp-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary-darker); font-weight: 700; margin-bottom: 8px; opacity: 0.85;
}
.otp-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.4rem; font-weight: 700; letter-spacing: 8px;
  color: var(--rind); line-height: 1.15; text-indent: 8px;
}
.otp-timer { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); margin: 12px 0; justify-content: center; }
.otp-timer .bar { height: 5px; background: #d9f99d; border-radius: 3px; overflow: hidden; flex: 1; max-width: 180px; }
.otp-timer .bar span { display: block; height: 100%; background: linear-gradient(90deg, #84cc16, #65a30d); transition: width 1s linear; }
.otp-timer.low .bar span { background: var(--warning); }

/* Status banners */
.status-banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-lg); margin-bottom: 16px;
  font-size: 0.9rem; line-height: 1.55; border: 1px solid transparent;
}
.status-banner.trial { background: var(--zest-soft); border-color: #fde047; color: #854d0e; }
.status-banner.validated { background: #f7fee7; border-color: #bef264; color: #3f6212; }
.status-banner.blocked { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.status-banner.message { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.status-banner .icon { font-size: 1.3rem; line-height: 1.2; }
.status-banner strong { display: block; margin-bottom: 2px; }

/* Sections / advisory */
.section-grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .section-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .section-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-light); color: var(--primary-darker);
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid #d9f99d;
}
.chip.blue { background: var(--accent-blue-light); color: #1e40af; border-color: #bfdbfe; }
.chip.orange { background: var(--zest-soft); color: #854d0e; border-color: #fde047; }
.chip.lime { background: linear-gradient(135deg, #ecfccb, #fef9c3); color: var(--rind); border-color: #bef264; }

.variety {
  border: 1.5px solid #d9f99d; border-radius: var(--radius-lg);
  padding: 16px; background: linear-gradient(180deg, #ffffff 0%, #f7fee7 100%);
}
.variety.released { border-color: #bef264; background: linear-gradient(160deg, #f7fee7 0%, #fef9c3 100%); }
.variety h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; color: var(--primary-darker); }
.variety .code { font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.variety p { font-size: 0.88rem; color: var(--gray-700); margin-top: 6px; }
.variety .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
table.advisory { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.advisory th, table.advisory td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #eef3e0; }
table.advisory th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary-darker); font-weight: 700;
  background: linear-gradient(180deg, #ecfccb, #f7fee7);
}
table.advisory tr:hover td { background: #f7fee7; }

.pest-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.pest-row:last-child { border-bottom: none; }
.pest-row .emoji { font-size: 1.4rem; line-height: 1.2; }
.pest-row h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.pest-row p { font-size: 0.87rem; color: var(--gray-700); }
.pest-row .note { font-size: 0.8rem; color: var(--muted); margin-top: 3px; font-style: italic; }

.econ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .econ-grid { grid-template-columns: repeat(4, 1fr); } }
.econ {
  background: linear-gradient(180deg, #f7fee7, #ffffff);
  border: 1px solid #d9f99d;
  border-radius: var(--radius); padding: 12px; text-align: center;
}
.econ .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.econ .v { font-size: 1.15rem; font-weight: 800; color: var(--primary-darker); margin-top: 4px; }

.source-list { list-style: none; }
.source-list li { margin-bottom: 8px; }
.source-list a {
  color: var(--primary-dark); font-size: 0.88rem; text-decoration: none; font-weight: 600;
}
.source-list a:hover { color: var(--lime); text-decoration: underline; }

/* Calendar */
.cal-toolbar {
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 14px;
}
.month-nav { display: flex; gap: 6px; align-items: center; }
.month-nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid #d9f99d;
  background: var(--white); font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--gray-700);
}
.month-nav button:hover { border-color: var(--lime); color: var(--primary-darker); background: var(--primary-light); }
.month-label { font-size: 1.1rem; font-weight: 800; min-width: 140px; text-align: center; color: var(--primary-darker); }

.task {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1.5px solid #e4e7d9; border-radius: var(--radius-lg);
  background: var(--white); margin-bottom: 10px; transition: all 0.15s;
}
.task.key { border-color: #bef264; background: linear-gradient(135deg, #f7fee7, #fef9c3); }
.task.done { opacity: 0.65; background: var(--gray-100); border-color: var(--gray-200); }
.task .check {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid #c5d4a8;
  background: var(--white); cursor: pointer; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-size: 1rem; color: transparent; margin-top: 2px;
}
.task.done .check { background: var(--btn-grad); border-color: var(--primary); color: #fff; }
.task .body { flex: 1; min-width: 0; }
.task .body h5 { font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.task.done .body h5 { text-decoration: line-through; color: var(--muted); }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.empty-state {
  text-align: center; padding: 36px 16px; color: var(--muted);
  background: linear-gradient(180deg, rgba(247, 254, 231, 0.7), transparent);
  border: 1px dashed #d9f99d;
  border-radius: var(--radius-lg);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; }

/* Profile modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  z-index: 250; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #f7fee7 100%);
  border: 1px solid #d9f99d;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 24px;
  box-shadow: var(--shadow-md);
}
.profile-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: rgba(255, 255, 255, 0.85); border-radius: var(--radius);
  margin-bottom: 10px; border: 1px solid #e4e7d9; gap: 8px;
}
.profile-field .label { font-size: 0.84rem; color: var(--muted); }
.profile-field .value { font-size: 0.95rem; font-weight: 600; text-align: right; }

/* Toast */
.toast-stack {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px;
  z-index: 400; display: flex; flex-direction: column; gap: 8px;
  width: calc(100% - 32px); max-width: 420px;
}
.toast {
  background: #111827; color: #fff; padding: 13px 16px; border-radius: var(--radius);
  font-size: 0.9rem; box-shadow: var(--shadow-md); text-align: center;
}
.toast.ok { background: linear-gradient(135deg, #84cc16, #4d7c0f); }
.toast.err { background: var(--danger); }

/* Admin */
.admin-header {
  background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 55%, #365314 100%);
  color: #fff; padding: 16px 20px;
  border-bottom: 3px solid #a3e635;
}
.admin-header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.admin-header h1 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.admin-header p { font-size: 0.82rem; opacity: 0.9; margin: 0; }
.admin-header .auth-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.admin-header .auth-btn:hover { background: rgba(255,255,255,.22); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px; }
.gate { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.gate .card { width: 100%; max-width: 420px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat {
  background: linear-gradient(180deg, #ffffff, #f7fee7);
  border: 1px solid #d9f99d;
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.stat .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 800; line-height: 1.2; margin-top: 4px; color: var(--primary-darker); }

.toolbar {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px;
}
@media (min-width: 720px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.tabs { display: flex; gap: 6px; background: #ecfccb; padding: 4px; border-radius: 999px; overflow-x: auto; }
.tab {
  border: none; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
  color: var(--primary-dark); transition: all 0.15s; font-family: inherit;
}
.tab.active { background: var(--white); color: var(--primary-darker); box-shadow: var(--shadow); }

.registry { background: var(--white); border: 1px solid #d9f99d; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.registry-head, .registry-row {
  display: grid; grid-template-columns: 1.3fr 1.1fr .9fr .55fr .9fr 1.8fr;
  gap: 10px; align-items: center;
}
.registry-head {
  padding: 12px 14px; background: linear-gradient(180deg, #ecfccb, #f7fee7); border-bottom: 1px solid #d9f99d;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary-darker); font-weight: 700;
}
.registry-row { padding: 13px 14px; border-bottom: 1px solid #eef3e0; }
.registry-row:last-child { border-bottom: none; }
.registry-row:hover { background: #f7fee7; }
.registry-row.is-pending { box-shadow: inset 3px 0 0 #94a3b8; }
.registry-row.is-trial { box-shadow: inset 3px 0 0 var(--warning); }
.registry-row.is-validated { box-shadow: inset 3px 0 0 var(--primary); }
.registry-row.is-blocked { box-shadow: inset 3px 0 0 var(--danger); opacity: 0.75; }

.cell { font-size: 0.88rem; min-width: 0; }
.cell .muted { color: var(--muted); font-size: 0.78rem; }
.phone { font-weight: 700; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.badge.pending { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge.trial { background: var(--zest-soft); color: #a16207; border: 1px solid #fde047; }
.badge.validated { background: #f7fee7; color: var(--primary-darker); border: 1px solid #bef264; }
.badge.blocked { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini {
  border: 1px solid #d9f99d; background: var(--white); cursor: pointer;
  padding: 7px 11px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  color: var(--primary-dark); font-family: inherit; transition: all 0.15s;
}
.mini:hover { border-color: var(--lime); color: var(--rind); background: var(--primary-light); }
.mini.approve { background: var(--btn-grad); border-color: var(--primary); color: #fff; }
.mini.danger:hover { border-color: var(--danger); color: #fff; background: var(--danger); }

.msg-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; width: 100%; }
.msg-row input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 0.82rem;
  padding: 8px 10px; border: 1px solid #d9f99d; border-radius: 8px;
  background: var(--white); color: var(--text); outline: none;
}
.msg-row input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.3); }

/* Admin form panels */
.panel {
  background: var(--white); border: 1px solid #d9f99d; border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel h3 {
  font-size: 1.05rem; color: var(--rind); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 860px) {
  .registry { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .registry-head { display: none; }
  .registry-row {
    grid-template-columns: 1fr; gap: 8px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
  }
  .cell[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 2px;
  }
  .actions .mini { flex: 1; justify-content: center; }
}

/* Footer */
.app-footer {
  text-align: center; font-size: 0.78rem; color: var(--muted);
  padding: 20px 8px 10px; line-height: 1.6;
}
.app-footer a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.app-footer a:hover { color: var(--lime); }

/* Install banner */
.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 300; display: none; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fee7);
  border: 1.5px solid #bef264;
  border-radius: var(--radius-lg); padding: 14px 16px;
  box-shadow: var(--shadow-lime); max-width: 480px; margin: 0 auto;
}
.install-banner.show { display: flex; }
.install-banner .txt { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--gray-700); }
.install-banner .txt strong { display: block; font-size: 0.95rem; color: var(--rind); margin-bottom: 2px; }

/* Section label */
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); margin-bottom: 8px; }

/* Home — guest WhatsApp prompt */
.home-hero .card-header { margin-bottom: 4px; }
.guest-prompt {
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 50%, #f7fee7 100%);
  border: 1.5px dashed #86efac;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  margin: 8px 0 16px;
}
.guest-prompt-icon { font-size: 1.8rem; margin-bottom: 6px; }
.guest-prompt h4 { font-size: 1.05rem; font-weight: 800; color: #14532d; margin-bottom: 6px; }
.guest-prompt p { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.home-actions { margin-top: 4px; }

/* Period tabs (calendar months) */
.period-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.period-tab {
  border: 1.5px solid #d9f99d; background: var(--white); cursor: pointer;
  padding: 6px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  color: var(--gray-700); font-family: inherit; transition: all 0.15s;
}
.period-tab:hover { border-color: var(--lime); color: var(--primary-darker); background: var(--primary-light); }
.period-tab.active {
  background: var(--btn-grad); border-color: var(--primary); color: #fff;
  box-shadow: var(--shadow-lime);
}

/* Utilities */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.hint { font-size: 0.78rem; opacity: 0.85; margin-top: 4px; }

@media (max-width: 640px) {
  .app-container { padding: 8px 12px 72px; }
  .card { padding: 16px; }
  .header-logo { height: 40px; }
  .header-title h1 { font-size: 1.15rem; }
  .install-banner { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; }
}
