body {
  font-family: system-ui;
  margin: 0;
  background: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(50, 50, 50);
  color: white;
}

main {
  padding: 20px;
}

h1 {
  text-align: center;
  margin: 10px 0 0;
}

h2 {
  margin-top: 40px;
  font-size: 1.2em;
}

p {
  opacity: 0.85;
  line-height: 1.5;
}

.site-header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: rgb(50, 50, 50);
  border-bottom: 2px solid rgb(64, 64, 64);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: white;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
}

.brand-text {
  position: absolute;
  left: -9999px;
}

.nav-item,
.dropdown-item {
  position: relative;
}

.nav-toggle {
  background: none;
  border: none;
  color: white;
  font: inherit;
  opacity: 0.85;
  padding: 0;
  cursor: pointer;
}

.nav-toggle:hover {
  opacity: 1;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: rgb(59, 59, 59);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.dropdown-item {
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item.open > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
}

.dropdown a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.submenu-toggle {
  font-weight: 500;
  box-sizing: border-box;
  width: 100%;
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 10px 16px;
  font: inherit;
  font-size: 1rem;
  opacity: 0.9;
  cursor: pointer;
}

.submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.submenu {
  display: none;
  padding: 4px 0 8px 0;
}

.dropdown-item.open > .submenu {
  display: block;
}

.dropdown-item:first-child {
  border-top: none;
}

.submenu a {
  display: block;
  padding: 8px 16px 8px 28px;
  padding-left: 28px;
  position: relative;
  color: white;
  text-decoration: none;
  opacity: 0.78;
  font-size: 0.92rem;
  white-space: nowrap;
}

.submenu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.submenu a::before {
  content: "–";
  position: absolute;
  left: 16px;
  opacity: 0.4;
}

.converter-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
  margin: 20px auto;
}

.field-group {
  width: 100%;
  text-align: center;
}

.field-label {
  margin-top: 10px;
  opacity: 0.9;
}

input,
select {
  width: 100%;
  padding: 15px;
  margin: 10px 0 20px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: black;
}

.result-box {
  width: 100%;
  margin: 10px 0 20px;
  padding: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: black;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pill {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: rgb(27, 45, 251);
  color: white;
  cursor: pointer;
}

.pill:hover {
  background: rgb(19, 35, 221);
}

.helper-text {
  text-align: center;
  opacity: 0.75;
  font-size: 0.95em;
}

.note-text {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9em;
}

.row-two {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .row-two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
  }
}

.page-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px 10px 4px;
}

.tool-panel {
  text-align: center;
  margin: 42px 0;
}

.content-panel {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 4px 10px 4px;
}

.intro {
  margin-top: 10px;
  margin-bottom: 15px;
  opacity: 0.8;
  font-size: 0.95em;
  text-align: center;
  line-height: 1.5;
}

ul {
  text-align: left;
  padding-left: 20px;
  margin-left: 0;
  display: block;
  opacity: 0.9;
}

ul li {
  margin-bottom: 6px;
}

.tool-panel button {
  padding: 15px;
  font-size: 16px;
}

#password {
  font-size: 1.5em;
  word-break: break-all;
  color: black;
  background: rgba(255, 255, 255, 0.82);
  padding: 15px;
  border-radius: 100px;
  max-width: 420px;
  width: 100%;
  margin: 18px auto 42px auto;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  box-sizing: border-box;
}

.copy-btn {
  background: rgb(90, 90, 90);
}

.copy-btn:hover {
  background: rgb(70, 70, 70);
}

footer {
  margin-top: auto;
  padding: 15px 20px;
  border-top: 2px solid rgb(64, 64, 64);
}

footer p {
  margin: 0;
}

.slider-wrap {
  max-width: 420px;
  margin: 20px auto 10px auto;
  text-align: center;
}

.slider-label {
  display: block;
  margin-bottom: 14px;
  font-size: 1em;
}

#length {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  margin: 0;
  padding: 0;
  outline: none;
}

#length::-webkit-slider-runnable-track {
  height: 6px;
  background: rgb(27, 45, 251);
  border-radius: 999px;
  border: none;
}

#length::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: none;
  margin-top: -11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#length::-moz-range-track {
  height: 6px;
  background: rgb(27, 45, 251);
  border-radius: 999px;
  border: none;
}

#length::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.95em;
  opacity: 0.8;
}

.password-options {
  max-width: 420px;
  margin: 24px auto 0 auto;
  text-align: left;
}

.password-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  font-size: 1em;
  opacity: 0.92;
}

input[type="checkbox"] {
  width: auto;
  margin: 0 10px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  accent-color: rgb(27, 45, 251);
  transform: scale(1.05);
  flex: 0 0 auto;
}
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  width: 100%;
  margin: 28px auto 0 auto;
}

.button-row .pill {
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.copy-btn {
  background: rgb(80, 80, 80);
}

.copy-btn:hover {
  background: rgb(65, 65, 65);
}

@media (max-width: 520px) {
  .button-row {
    grid-template-columns: 1fr;
  }
}

.home-featured-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.home-tool-card {
  display: block;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-tool-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.home-tool-card h3 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 1.1rem;
}

.home-tool-card p {
  margin: 0;
  opacity: 0.85;
}