:root {
  --dk-red: #b30019;
  --dk-red-dark: #7d0011;
  --dk-ink: #101114;
  --dk-muted: #60636b;
  --dk-gold: #c88b16;
  --dk-blue: #173b72;
}

.dk-app-bottom-menu,
.dk-app-bottom-menu *,
.dk-app-menu-sheet,
.dk-app-menu-sheet * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.dk-app-bottom-menu {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(380px, calc(100% - 18px));
  min-height: 62px;
  padding: 8px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,247,251,.96));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 24px 54px rgba(0,0,0,.25),
    0 8px 18px rgba(179,0,25,.10),
    inset 0 1px 0 rgba(255,255,255,.98);
  overflow: hidden;
}

.dk-app-bottom-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% -12%, rgba(179,0,25,.14), transparent 40%),
    radial-gradient(circle at 78% -10%, rgba(200,139,22,.12), transparent 38%);
}

.dk-app-tab {
  position: relative;
  z-index: 1;
  border: 0;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border-radius: 19px;
  background: transparent;
  color: #4e5158;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.dk-app-icon {
  width: 33px;
  height: 33px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, #f1f2f6);
  color: var(--dk-red);
  border: 1px solid rgba(0,0,0,.045);
  box-shadow: 0 5px 12px rgba(0,0,0,.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.dk-app-tab small {
  display: none !important;
}

.dk-app-tab:active {
  transform: scale(.94);
}

.dk-app-tab.active,
.dk-app-tab.sheet-open {
  background: linear-gradient(145deg, #101114 0%, #26272c 54%, var(--dk-red) 145%);
  color: #fff;
  box-shadow:
    0 11px 24px rgba(179,0,25,.25),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.dk-app-tab.active .dk-app-icon,
.dk-app-tab.sheet-open .dk-app-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
  transform: translateY(-1px);
}

.dk-app-tab[data-page="calculatorView"].active {
  background: linear-gradient(145deg, #c88b16 0%, #7a4b00 110%);
  box-shadow: 0 11px 24px rgba(200,139,22,.25);
}

.dk-app-tab[data-page="supportView"].active {
  background: linear-gradient(145deg, #173b72 0%, #101827 115%);
  box-shadow: 0 11px 24px rgba(23,59,114,.25);
}

.dk-app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482980;
  background: rgba(8,9,12,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.dk-app-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.dk-app-menu-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px) scale(.985);
  z-index: 2147482990;
  width: min(390px, calc(100% - 18px));
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,249,252,.98));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow:
    0 28px 70px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.dk-app-menu-sheet.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dk-app-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 2px 2px 12px;
}

.dk-app-sheet-header strong {
  display: block;
  font-size: 17px;
  color: var(--dk-ink);
  font-weight: 900;
  line-height: 1.1;
}

.dk-app-sheet-header small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--dk-red);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#dkAppMenuClose {
  width: 39px;
  height: 39px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(145deg, #111, #303138);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.dk-app-primary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.dk-app-primary-actions a {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow:
    0 14px 28px rgba(179,0,25,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.dk-app-primary-actions a.call-action {
  background: linear-gradient(145deg, var(--dk-red) 0%, var(--dk-red-dark) 100%);
}

.dk-app-primary-actions a.whatsapp-action {
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
  box-shadow:
    0 14px 28px rgba(18,140,126,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.dk-app-primary-actions span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
}

.dk-app-menu-list {
  display: grid;
  gap: 9px;
}

.dk-app-menu-list a {
  min-height: 58px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.055);
  color: var(--dk-ink);
  text-decoration: none;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  box-shadow: 0 7px 18px rgba(0,0,0,.045);
}

.dk-app-menu-list a > span {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff4f6, #ffffff);
  color: var(--dk-red);
  border: 1px solid rgba(179,0,25,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.dk-app-menu-list b {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
}

.dk-app-menu-list small {
  margin-top: 3px;
  font-size: 11px;
  color: var(--dk-muted);
  line-height: 1.2;
}

.dk-app-menu-list a:active,
.dk-app-primary-actions a:active {
  transform: scale(.985);
}

@media (max-width: 380px) {
  .dk-app-bottom-menu {
    width: calc(100% - 12px);
    min-height: 60px;
    padding: 7px;
    gap: 5px;
  }
  .dk-app-tab {
    min-height: 44px;
    border-radius: 17px;
  }
  .dk-app-icon {
    width: 30px;
    height: 30px;
    border-radius: 13px;
    font-size: 15px;
  }
  .dk-app-menu-sheet {
    width: calc(100% - 14px);
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 12px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dk-app-menu-sheet,
  .dk-app-backdrop,
  .dk-app-tab,
  .dk-app-icon {
    transition: none !important;
  }
}

.dk-app-primary-actions a.round-quick-icon:active {
  transform: scale(.94);
}

.dk-common-footer {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 12px 10px 94px;
  color: #555;
  font-size: 11px;
  line-height: 1.45;
}

.dk-common-footer-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  padding: 10px;
}

.dk-footer-compact {
  overflow: hidden;
}

.dk-footer-office-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.dk-footer-office {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  align-items: start;
  padding: 9px;
  border-radius: 15px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,.055);
}

.dk-footer-office-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4f6, #ffffff);
  color: #b30019;
  border: 1px solid rgba(179,0,25,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.dk-footer-office strong {
  display: block;
  margin-bottom: 2px;
  color: #111;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.1;
}

.dk-footer-office p {
  margin: 0;
  color: #555;
  font-size: 10.7px;
  line-height: 1.35;
}

.dk-common-footer-copy {
  margin-top: 8px;
  color: #777;
  font-size: 10.5px;
  text-align: center;
}

@media (max-width: 360px) {
  .dk-common-footer {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 92px;
  }
  .dk-footer-office-row {
    gap: 6px;
  }
  .dk-footer-office {
    grid-template-columns: 26px 1fr;
    gap: 6px;
    padding: 8px;
  }
  .dk-footer-office-icon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    font-size: 13px;
  }
  .dk-footer-office strong {
    font-size: 11px;
  }
  .dk-footer-office p {
    font-size: 10px;
    line-height: 1.32;
  }
}




/* SVG icon rendering for app menu */
.dk-app-icon svg,
.dk-app-primary-actions span svg,
.dk-app-menu-list a > span svg,
.dk-svg-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.dk-app-primary-actions span svg {
  width: 21px;
  height: 21px;
}

.dk-app-menu-list a > span svg {
  width: 18px;
  height: 18px;
}




/* Page-level Debtkart icon for non-home pages */
.dk-page-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 16px 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid rgba(179,0,25,.09);
  box-shadow: 0 10px 24px rgba(0,0,0,.055);
}

.dk-page-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.055);
  padding: 3px;
}

.dk-page-logo strong {
  display: block;
  color: #111;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.4px;
}

.dk-page-logo span {
  display: block;
  margin-top: 5px;
  color: #b30019;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .02em;
}

@media (max-width: 380px) {
  .dk-page-logo {
    margin: 12px 12px 10px;
    padding: 9px 10px;
    border-radius: 20px;
  }

  .dk-page-logo img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .dk-page-logo strong {
    font-size: 18px;
  }

  .dk-page-logo span {
    font-size: 11px;
  }
}




/* Match page-level logo size with Home header logo */
.dk-page-logo {
  gap: 12px;
  margin: 16px 16px 12px;
  padding: 11px 12px;
  border-radius: 26px;
}

.dk-page-logo img {
  width: 86px !important;
  height: 86px !important;
  object-fit: contain;
  border-radius: 24px !important;
  background: #fff;
  border: 1px solid rgba(179,0,25,.10);
  box-shadow:
    0 16px 34px rgba(179,0,25,.14),
    inset 0 1px 0 rgba(255,255,255,.96);
  padding: 6px !important;
}

.dk-page-logo strong {
  font-size: 24px;
  letter-spacing: -.6px;
}

.dk-page-logo span {
  font-size: 11.8px;
}

@media (max-width: 380px) {
  .dk-page-logo {
    margin: 12px 12px 10px;
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
  }

  .dk-page-logo img {
    width: 78px !important;
    height: 78px !important;
    border-radius: 22px !important;
    padding: 5px !important;
  }

  .dk-page-logo strong {
    font-size: 22px;
  }

  .dk-page-logo span {
    font-size: 11px;
  }
}
