@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bt-navy: #0b132b;
  --bt-navy-light: #1c2541;
  --bt-panel: rgba(255, 255, 255, .075);
  --bt-panel-strong: rgba(255, 255, 255, .10);
  --bt-line: rgba(255, 255, 255, .11);
  --bt-text: #f7f8ff;
  --bt-muted: #aeb4d2;
  --bt-cyan: #00dbde;
  --bt-pink: #fc00ff;
  --bt-field: rgba(9, 14, 34, .78);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.baddhi-tool-theme {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 88px !important;
  padding-bottom: 38px !important;
  color: var(--bt-text) !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  background:
    radial-gradient(950px circle at 8% 0%, rgba(0, 219, 222, .19), transparent 48%),
    radial-gradient(900px circle at 96% 82%, rgba(252, 0, 255, .15), transparent 50%),
    linear-gradient(145deg, var(--bt-navy), var(--bt-navy-light)) !important;
  background-attachment: fixed !important;
}

body.baddhi-tool-theme.baddhi-native-nav { padding-top: 0 !important; padding-bottom: 0 !important; }

body.baddhi-tool-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.baddhi-home {
  position: fixed;
  top: 22px;
  left: max(22px, env(safe-area-inset-left));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 14px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  color: var(--bt-text);
  background: rgba(12, 18, 43, .76);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.baddhi-home:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 219, 222, .38);
  background: rgba(17, 25, 56, .88);
}

.baddhi-home:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.baddhi-home__mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--bt-cyan), #a744ef 62%, var(--bt-pink)); box-shadow: 0 7px 18px rgba(161, 38, 226, .3); }
.baddhi-home__mark svg { width: 15px; height: 15px; }
.baddhi-home__name span { color: #66edf0; }

body.baddhi-tool-theme > .box,
body.baddhi-tool-theme > .card,
body.baddhi-tool-theme > .container,
body.baddhi-tool-theme > .wrap > .box,
body.baddhi-tool-theme > .section > .container,
body.baddhi-tool-theme .baddhi-standalone-card {
  border: 1px solid var(--bt-line) !important;
  border-radius: 24px !important;
  color: var(--bt-text) !important;
  background: var(--bt-panel) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .43), inset 0 1px rgba(255, 255, 255, .07) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
}

body.baddhi-tool-theme > .box,
body.baddhi-tool-theme > .card,
body.baddhi-tool-theme > .container,
body.baddhi-tool-theme > .wrap,
body.baddhi-tool-theme > .section { max-width: 100% !important; }

body.baddhi-tool-theme .baddhi-standalone-card {
  width: min(100%, 590px);
  margin: auto;
  padding: 46px;
  text-align: center;
}

body.baddhi-tool-theme h1,
body.baddhi-tool-theme h2,
body.baddhi-tool-theme .title {
  color: var(--bt-text);
  background: linear-gradient(90deg, var(--bt-cyan), #b859f7 62%, var(--bt-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.04em;
}

body.baddhi-tool-theme label,
body.baddhi-tool-theme .label { color: #c8cdec !important; font-weight: 600; }

body.baddhi-tool-theme input:not([type="checkbox"]):not([type="radio"]),
body.baddhi-tool-theme textarea,
body.baddhi-tool-theme select {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 14px !important;
  color: #eef0ff !important;
  background: var(--bt-field) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  caret-color: var(--bt-cyan);
}

body.baddhi-tool-theme input::placeholder,
body.baddhi-tool-theme textarea::placeholder { color: #858dab !important; }

body.baddhi-tool-theme input:not([type="checkbox"]):not([type="radio"]):focus,
body.baddhi-tool-theme textarea:focus,
body.baddhi-tool-theme select:focus {
  outline: none !important;
  border-color: rgba(0, 219, 222, .55) !important;
  box-shadow: 0 0 0 3px rgba(0, 219, 222, .10) !important;
}

body.baddhi-tool-theme input[type="checkbox"],
body.baddhi-tool-theme input[type="radio"] { accent-color: var(--bt-pink); }

body.baddhi-tool-theme button:not(#startButton):not(#retryButton),
body.baddhi-tool-theme .button:not(.tab-btn),
body.baddhi-tool-theme input[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(90deg, var(--bt-cyan), #a846ed 58%, var(--bt-pink)) !important;
  box-shadow: 0 15px 38px rgba(180, 31, 230, .30) !important;
  font-weight: 700 !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

body.baddhi-tool-theme button:not(#startButton):not(#retryButton):hover,
body.baddhi-tool-theme .button:not(.tab-btn):hover,
body.baddhi-tool-theme input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 21px 48px rgba(180, 31, 230, .40) !important;
}

body.baddhi-tool-theme button:focus-visible,
body.baddhi-tool-theme .button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

body.baddhi-tool-theme button:disabled,
body.baddhi-tool-theme .button:disabled { cursor: not-allowed; opacity: .58; filter: grayscale(.25); }

body.baddhi-tool-theme .tab-btn {
  border: 1px solid rgba(255, 255, 255, .11) !important;
  color: var(--bt-muted) !important;
  background: rgba(9, 14, 34, .60) !important;
  box-shadow: none !important;
}

body.baddhi-tool-theme .tab-btn.active {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(90deg, var(--bt-cyan), #a846ed 58%, var(--bt-pink)) !important;
  box-shadow: 0 14px 34px rgba(180, 31, 230, .26) !important;
}

body.baddhi-tool-theme .small,
body.baddhi-tool-theme #stats,
body.baddhi-tool-theme #stats2 { color: var(--bt-muted) !important; }

body.baddhi-tool-theme .result a {
  border-color: rgba(255, 255, 255, .11) !important;
  color: #e8eaff !important;
  background: rgba(9, 14, 34, .68) !important;
}

body.baddhi-tool-theme .progress-wrap { background: rgba(255, 255, 255, .08) !important; }
body.baddhi-tool-theme #bar { background: linear-gradient(90deg, var(--bt-cyan), var(--bt-pink)) !important; box-shadow: 0 0 14px rgba(0, 219, 222, .45); }
body.baddhi-tool-theme ::selection { color: #fff; background: rgba(166, 65, 235, .6); }
body.baddhi-tool-theme * { scrollbar-color: rgba(135, 78, 224, .8) rgba(255, 255, 255, .06); }

.baddhi-kicker { margin-bottom: 10px; color: #65edf0; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.baddhi-standalone-card p { margin: 12px 0 24px; color: var(--bt-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 620px) {
  body.baddhi-tool-theme { padding: 78px 14px 24px !important; }
  body.baddhi-tool-theme.baddhi-native-nav { padding: 0 !important; }
  .baddhi-home { top: 15px; left: 14px; }
  body.baddhi-tool-theme > .box,
  body.baddhi-tool-theme > .card,
  body.baddhi-tool-theme > .container,
  body.baddhi-tool-theme > .wrap > .box,
  body.baddhi-tool-theme > .section > .container,
  body.baddhi-tool-theme .baddhi-standalone-card { border-radius: 20px !important; }
  body.baddhi-tool-theme .baddhi-standalone-card { padding: 34px 24px; }
  body.baddhi-tool-theme .grid { grid-template-columns: 1fr !important; }
  body.baddhi-tool-theme .grid > * { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
