:root {
  --green-900: #006d2f;
  --green-800: #008f3d;
  --green-700: #0a9c46;
  --green-100: #eaf8e5;
  --text: #141719;
  --muted: #596068;
  --line: #e5e9e8;
  --shadow: 0 8px 22px rgba(22, 36, 28, .12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
  font-weight: 500;
}

body {
  animation: pageIn .36s ease both;
}

button,
a {
  border: 0;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.phone-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  padding-bottom: 90px;
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: block;
}

.top-header {
  min-height: 92px;
  padding: 12px 24px 10px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(115deg, #047b36, #009742 62%, #006f30);
}

.brand-row {
  display: grid;
  grid-template-columns: 58px 1fr 42px 52px;
  align-items: center;
  gap: 13px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #09823a;
  font-size: 7px;
  font-weight: 900;
  line-height: .92;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.logo-mark svg {
  width: 43px;
  height: 43px;
  margin-bottom: -7px;
}

.logo-mark small {
  display: block;
  font-size: 9px;
}

.brand-copy h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 800;
  white-space: nowrap;
}

.brand-copy p {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 500;
  opacity: .94;
}

.menu-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.header-share-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}

.header-share-button svg {
  width: 25px;
  height: 25px;
}

.app-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(7, 25, 15, .38);
}

.app-menu-overlay.is-open {
  display: block;
}

.app-menu-panel {
  position: absolute;
  top: 10px;
  right: 12px;
  left: 12px;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .2);
  padding: 14px;
  animation: cardIn .24s ease both;
}

.app-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.app-menu-head strong {
  color: #075d2a;
  font-size: 16px;
  font-weight: 800;
}

.app-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf8e5;
  color: #075d2a;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.menu-calculator-list {
  display: grid;
  gap: 8px;
}

.menu-calculator-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f7fbf8;
  color: #151a17;
  font-size: 13px;
  font-weight: 650;
}

.menu-policy-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e4ebe6;
}

.menu-policy-row a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 99px;
  background: #eef7ff;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
}

.menu-button span {
  width: 25px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

.menu-button b {
  display: none;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  align-items: center;
  min-height: 136px;
  margin: 14px 19px 20px;
  padding: 17px 20px 22px;
  border: 1px solid #d7e5d2;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(245, 255, 238, .98) 0%, rgba(238, 250, 223, .94) 44%, rgba(228, 246, 204, .75) 100%),
    repeating-linear-gradient(105deg, transparent 0 18px, rgba(109, 173, 66, .12) 19px 22px);
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  margin: 0;
  color: #0f5d24;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 950;
}

.hero-text p {
  margin: 11px 0 0;
  color: #214829;
  font-size: 16px;
  font-weight: 650;
}

.map-illustration {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin-left: -16px;
  margin-right: -22px;
}

.map-illustration svg {
  width: 100%;
  max-width: 176px;
  filter: drop-shadow(0 8px 10px rgba(42, 127, 45, .15));
}

.slider-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 9px;
  height: 7px;
  border-radius: 99px;
  background: #c8cbcb;
}

.slider-dots .active {
  width: 13px;
  background: var(--green-800);
}

.services {
  padding: 0 19px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.title-rail {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: #00a24a;
}

.title-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9f8eb;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 104px;
  padding: 10px 8px;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.service-card:active {
  transform: translateY(1px);
}

.service-card strong {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 760;
  text-align: center;
}

.service-card span:last-child {
  display: block;
  margin-top: 6px;
  color: #4d535a;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.icon-bubble {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.green {
  color: #0d8a3d;
  background: #ddf3e1;
}

.blue {
  color: #1e5ec0;
  background: #e0e9ff;
}

.amber {
  color: #e38b00;
  background: #fff0d7;
}

.violet {
  color: #743bc0;
  background: #eee2ff;
}

.rose {
  color: #c32d43;
  background: #ffe2e7;
}

.teal {
  color: #0d8d8a;
  background: #dff8f6;
}

.trust-strip {
  display: grid;
  grid-template-columns: 42px 1fr 68px;
  align-items: center;
  gap: 12px;
  margin: 12px 19px 12px;
  padding: 10px 14px;
  border: 1px solid #dbe9d5;
  border-radius: 10px;
  background: linear-gradient(90deg, #f5fff1, #fbfff9);
}

.shield {
  width: 35px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: #009f45;
  clip-path: polygon(50% 0, 91% 12%, 88% 61%, 50% 100%, 12% 61%, 9% 12%);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.trust-strip span {
  margin-top: 5px;
  color: #27312c;
  font-size: 12px;
  font-weight: 500;
}

.gov-mark {
  display: grid;
  justify-items: center;
  color: #188040;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.gov-mark svg {
  width: 44px;
  height: 44px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  width: 100%;
  min-height: 78px;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom));
  border-radius: 15px 15px 0 0;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(29, 42, 35, .12);
  transform: translateX(-50%);
}

.bottom-nav button,
.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #111;
  background: transparent;
  border-right: 1px solid #d6dadd;
  cursor: pointer;
}

.bottom-nav button:last-child,
.bottom-nav a:last-child {
  border-right: 0;
}

.bottom-nav .active {
  color: #078b3e;
}

.bottom-nav b {
  color: #111;
  font-size: 13px;
  font-weight: 500;
}

.bottom-nav .active b {
  font-weight: 650;
}

.title-icon {
  background: currentColor;
}

.icon-svg {
  width: 37px;
  height: 37px;
  color: currentColor;
}

.nav-svg {
  display: block;
  width: 38px;
  height: 38px;
  color: #0b913f;
}

.bottom-nav .active .nav-svg {
  color: #078b3e;
}

.icon-home {
  position: relative;
  color: #0b8b3c;
  background: #e8f8ec;
}

.icon-home::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  width: 14px;
  height: 13px;
  border: 3px solid currentColor;
  border-top: 0;
}

.icon-home::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 17px;
  height: 17px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}

.calculator-page {
  padding: 18px 19px 0;
}

.calculator-menu-page {
  padding: 18px 19px 0;
}

.calculator-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.calculator-menu-hero {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dbe9d5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fff1, #fff);
  box-shadow: 0 8px 22px rgba(22, 36, 28, .08);
  animation: cardIn .42s ease both;
}

.calculator-menu-hero h2 {
  margin: 0;
  color: #075d2a;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
}

.calculator-menu-hero p {
  margin: 7px 0 0;
  color: #4f5a54;
  font-size: 13px;
  font-weight: 650;
}

.hero-calc-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #078b3e;
  background: #e4f8e8;
}

.hero-calc-icon svg {
  width: 40px;
  height: 40px;
}

.calculator-list {
  display: grid;
  gap: 12px;
}

.calc-menu-card {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .42s ease both;
}

.calc-menu-card:nth-child(2) {
  animation-delay: .04s;
}

.calc-menu-card:nth-child(3) {
  animation-delay: .08s;
}

.calc-menu-card:nth-child(4) {
  animation-delay: .12s;
}

.calc-menu-card .icon-bubble {
  width: 52px;
  height: 52px;
}

.calc-menu-card strong,
.calc-menu-card span {
  display: block;
}

.calc-menu-card strong {
  color: #151a17;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.calc-menu-card span {
  margin-top: 5px;
  color: #596068;
  font-size: 12px;
  font-weight: 650;
}

.card-arrow {
  color: #078b3e;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.coming-soon {
  opacity: .78;
}

.coming-soon .card-arrow {
  color: #a0a9a4;
  font-size: 13px;
}

.age-page {
  padding: 18px 19px 0;
}

.age-card,
.age-info-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .42s ease both;
}

.age-card {
  overflow: hidden;
}

.age-card-header {
  padding: 18px 16px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0284c7, #004f7c);
}

.age-card-header svg {
  width: 42px;
  height: 42px;
  color: #ffe28a;
}

.age-card-header h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.age-card-header p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  opacity: .92;
}

.age-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.age-form label {
  display: grid;
  gap: 7px;
  color: #25302a;
  font-size: 13px;
  font-weight: 850;
}

.age-form input {
  height: 48px;
  border: 2px solid #dce5df;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--text);
  font: 850 16px/1 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans", Arial, sans-serif;
  outline: none;
}

.age-form input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .16);
}

.age-action {
  height: 50px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #004f7c);
  font-size: 15px;
  font-weight: 950;
}

.age-result {
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid #cfe8d7;
  border-radius: 11px;
  background: #f4faf6;
  animation: cardIn .32s ease both;
}

.age-result h3 {
  margin: 0 0 12px;
  color: #078b3e;
  text-align: center;
  font-size: 16px;
  font-weight: 950;
}

.main-age-box {
  padding: 14px;
  border: 1px solid #e3ebe5;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.main-age-box span,
.main-age-box strong {
  display: block;
}

.main-age-box span {
  color: #667069;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-age-box strong {
  margin-top: 5px;
  color: #151a17;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.age-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.age-summary div {
  padding: 11px;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fff;
}

.age-summary span,
.age-summary b {
  display: block;
}

.age-summary span {
  color: #667069;
  font-size: 11px;
  font-weight: 900;
}

.age-summary b {
  margin-top: 4px;
  color: #151a17;
  font-size: 16px;
  font-weight: 950;
}

.age-info-card {
  margin-top: 14px;
  padding: 16px;
}

.age-info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 950;
}

.age-info-card p {
  margin: 0;
  color: #596068;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 650;
}

.bansawali-page {
  padding: 18px 19px 0;
  max-width: 100%;
  overflow-x: hidden;
}

.bansawali-hero,
.bansawali-form,
.member-panel,
.tree-panel {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .42s ease both;
}

.bansawali-hero {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #dbe9d5;
  background: linear-gradient(135deg, #f4fff1, #fff);
}

.bansawali-title-card {
  border-top: 4px solid #0284c7;
}

.bansawali-hero h2 {
  margin: 0;
  color: #075d2a;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 950;
}

.bansawali-hero p {
  margin: 7px 0 0;
  color: #4f5a54;
  font-size: 13px;
  font-weight: 650;
}

.tree-hero-icon {
  color: #078b3e;
}

.bansawali-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.bansawali-form h3 {
  margin: 0 0 4px;
  color: #151a17;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.bansawali-tool-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bansawali-left {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bansawali-form label {
  display: grid;
  gap: 7px;
  color: #25302a;
  font-size: 13px;
  font-weight: 850;
}

.bansawali-form input,
.bansawali-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce5df;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: 750 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
  outline: none;
}

.bansawali-form input:focus,
.bansawali-form select:focus {
  border-color: #0b913f;
  box-shadow: 0 0 0 3px rgba(11, 145, 63, .12);
}

.bansawali-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.bansawali-actions button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  color: #075d2a;
  background: #eaf8e5;
  font-size: 13px;
  font-weight: 900;
}

.bansawali-actions button:first-child {
  color: #b42335;
  background: #fff0f2;
}

.member-panel,
.tree-panel {
  padding: 15px;
  margin-top: 12px;
  min-width: 0;
  overflow: hidden;
}

.tree-panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.member-panel h3,
.tree-panel h3 {
  margin: 0 0 12px;
  color: #151a17;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.tree-panel-head h3 {
  margin-bottom: 0;
}

.member-list {
  display: grid;
  gap: 9px;
  max-height: 210px;
  overflow: auto;
}

.member-table {
  border: 1px solid #e3ebe5;
  border-radius: 10px;
  padding: 8px;
  background: #fbfdfc;
}

.member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fbfdfc;
  min-width: 0;
}

.member-row div {
  min-width: 0;
}

.member-row strong,
.member-row span {
  overflow-wrap: anywhere;
}

.member-row:first-child::before {
  content: "नाम / Parent / Tag";
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: #667069;
  font-size: 11px;
  font-weight: 900;
}

.member-row strong,
.member-row span {
  display: block;
}

.member-row strong {
  color: #151a17;
  font-size: 14px;
  font-weight: 900;
}

.member-row span {
  margin-top: 3px;
  color: #596068;
  font-size: 12px;
  font-weight: 650;
}

.delete-member {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #b42335;
  background: #fff0f2;
  font-size: 18px;
  font-weight: 900;
}

.tree-scroll {
  min-height: 390px;
  overflow: auto;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  background: #fcfdfd;
  padding: 18px;
}

.tree-empty {
  display: block;
  margin-top: 90px;
  color: #667069;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.v-tree {
  min-width: max-content;
  text-align: center;
}

.v-tree ul {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 20px 0 0;
  margin: 0;
}

.v-tree li {
  position: relative;
  list-style: none;
  text-align: center;
  padding: 20px 6px 0;
}

.v-tree li::before,
.v-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 20px;
  border-top: 2px solid #9aa5a0;
}

.v-tree li::before {
  right: 50%;
}

.v-tree li::after {
  left: 50%;
  border-left: 2px solid #9aa5a0;
}

.v-tree li:only-child {
  padding-top: 0;
}

.v-tree li:only-child::before,
.v-tree li:only-child::after {
  display: none;
}

.v-tree li:first-child::before,
.v-tree li:last-child::after {
  border: 0;
}

.v-tree li:last-child::before {
  border-right: 2px solid #9aa5a0;
  border-radius: 0 7px 0 0;
}

.v-tree li:first-child::after {
  border-radius: 7px 0 0 0;
}

.v-tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 20px;
  border-left: 2px solid #9aa5a0;
}

.tree-node {
  display: inline-block;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid #0b91bf;
  color: #151a17;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.tree-node small {
  display: block;
  margin-top: 4px;
  color: #596068;
  font-size: 10px;
  font-weight: 750;
}

.node-root {
  color: #fff;
  background: #075d2a;
  border-color: #075d2a;
}

.node-root small {
  color: rgba(255, 255, 255, .78);
}

@media print {
  body {
    background: #fff;
  }

  .top-header,
  .bottom-nav,
  .bansawali-form,
  .bansawali-actions,
  .member-panel,
  .bansawali-hero {
    display: none !important;
  }

  .phone-shell {
    padding: 0;
  }

  .tree-panel {
    box-shadow: none;
    margin: 0;
  }
}

@media (min-width: 760px) {
  .bansawali-tool-grid {
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.3fr);
    align-items: start;
  }

  .tree-panel {
    margin-top: 0;
  }
}

.back-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f8ec;
  color: #078b3e;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.calculator-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
}

.calculator-head p {
  margin: 5px 0 0;
  color: #596068;
  font-size: 13px;
  font-weight: 600;
}

.calc-panel,
.result-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calc-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.calc-panel label {
  display: grid;
  gap: 7px;
  color: #25302a;
  font-size: 13px;
  font-weight: 800;
}

.calc-panel input {
  width: 100%;
  height: 48px;
  border: 1px solid #dce5df;
  border-radius: 9px;
  padding: 0 13px;
  color: var(--text);
  font: 800 20px/1 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans", Arial, sans-serif;
  outline: none;
}

.calc-panel input:focus {
  border-color: #0b913f;
  box-shadow: 0 0 0 3px rgba(11, 145, 63, .12);
}

.calc-action {
  height: 48px;
  border-radius: 9px;
  background: #078b3e;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.result-card {
  margin-top: 15px;
  padding: 18px;
  background: linear-gradient(135deg, #f4fff1, #fff);
  border: 1px solid #dbe9d5;
}

.result-card > span {
  display: block;
  color: #4f5a54;
  font-size: 13px;
  font-weight: 800;
}

.result-card > strong {
  display: block;
  margin-top: 6px;
  color: #075d2a;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.result-grid div {
  padding: 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e3ebe5;
}

.result-grid small,
.result-grid b {
  display: block;
}

.result-grid small {
  color: #667069;
  font-size: 12px;
  font-weight: 800;
}

.result-grid b {
  margin-top: 4px;
  color: #151a17;
  font-size: 18px;
  font-weight: 900;
}

.land-laggi-page {
  padding: 18px 19px 0;
}

.laggi-card,
.laggi-results,
.laggi-info {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .42s ease both;
}

.laggi-card {
  padding: 16px;
}

.laggi-title {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.laggi-title svg {
  width: 48px;
  height: 48px;
  padding: 9px;
  border-radius: 50%;
  color: #078b3e;
  background: #e4f8e8;
}

.laggi-title h3 {
  margin: 0;
  color: #075d2a;
  font-size: 18px;
  font-weight: 950;
}

.laggi-title p {
  margin: 5px 0 0;
  color: #596068;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.laggi-form {
  display: grid;
  gap: 13px;
}

.laggi-form label {
  display: grid;
  gap: 7px;
  color: #25302a;
  font-size: 13px;
  font-weight: 850;
}

.laggi-form input,
.laggi-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid #dce5df;
  border-radius: 9px;
  padding: 0 12px;
  background: #f8fbf9;
  color: var(--text);
  font: 800 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
  outline: none;
}

.laggi-form input:focus,
.laggi-form select:focus {
  border-color: #0b913f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 145, 63, .12);
}

.laggi-results {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #dbe9d5;
}

.laggi-results h3 {
  margin: 0 0 7px;
  color: #075d2a;
  font-size: 18px;
  font-weight: 950;
}

.laggi-results p {
  margin: 0 0 12px;
  color: #596068;
  font-size: 12px;
  font-weight: 750;
}

.laggi-result-list {
  display: grid;
  gap: 8px;
}

.laggi-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fbfdfc;
}

.laggi-result-row span {
  color: #25302a;
  font-size: 13px;
  font-weight: 850;
}

.laggi-result-row b {
  color: #078b3e;
  font-size: 16px;
  font-weight: 950;
}

.laggi-info {
  margin-top: 14px;
  padding: 16px;
  border-left: 5px solid #0d6efd;
}

.laggi-info h3 {
  margin: 0 0 9px;
  color: #151a17;
  font-size: 17px;
  font-weight: 950;
}

.laggi-info p,
.laggi-info strong {
  display: block;
  margin: 0;
  color: #596068;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
}

.laggi-info strong {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #644300;
  background: #fff8df;
}

.static-page {
  margin: 18px 19px 0;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .32s ease both;
}

.static-page h2 {
  margin: 0 0 10px;
  color: #075d2a;
  font-size: 22px;
  font-weight: 800;
}

.static-page p {
  margin: 0;
  color: #4f5a54;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.byaj-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: cardIn .42s ease both;
}

.byaj-card-header {
  padding: 17px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3498db, #1769aa);
}

.byaj-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.rupee-mark {
  color: #ffdd7a;
  font-size: 24px;
  vertical-align: -1px;
}

.glossary-page {
  padding: 18px 19px 0;
}

.glossary-card {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: cardIn .42s ease both;
}

.glossary-card h2 {
  margin: 0 0 14px;
  color: #075d2a;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
}

.gl-search,
.gl-select {
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  padding: 0 12px;
  font: 650 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
}

.gl-search {
  margin-bottom: 12px;
  border: 1px solid #dce5df;
}

.gl-select {
  margin-bottom: 14px;
  border: 2px solid #0274be;
  background: #fff;
}

.gl-result {
  min-height: 130px;
  padding: 15px;
  border-left: 5px solid #0274be;
  border-radius: 9px;
  background: #f8fafd;
}

.gl-term {
  display: block;
  margin-bottom: 8px;
  color: #0274be;
  font-size: 19px;
  font-weight: 800;
}

.gl-desc {
  color: #444;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.byaj-action {
  background: linear-gradient(135deg, #3498db, #1769aa);
}

.byaj-result {
  display: grid;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 14px;
  border-left: 5px solid #3498db;
  border-radius: 10px;
  background: #e8f4fd;
}

.byaj-result h3 {
  margin: 0 0 4px;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 800;
}

.total-byaj {
  border-top: 1px solid #c6d8e5;
  background: #fff;
}

@media (max-width: 380px) {
  .top-header {
    padding-inline: 20px;
  }

  .brand-row {
    grid-template-columns: 54px 1fr 38px 46px;
  }

  .logo-mark {
    width: 58px;
    height: 58px;
  }

  .header-share-button {
    width: 35px;
    height: 35px;
  }

  .brand-copy h1 {
    font-size: 18px;
  }

  .brand-copy p {
    font-size: 15px;
  }

  .hero-text h2 {
    font-size: 25px;
  }

  .service-card strong {
    font-size: 15px;
  }
}
