:root {
  --bg: #0a0c10;
  --card: #13161c;
  --card-deep: #101318;
  --card-hover: #1b2028;
  --border: rgba(255, 255, 255, 0.075);
  --border-active: rgba(236, 72, 153, 0.42);
  --primary: #ec4899;
  --secondary: #8b5cf6;
  --text: #ffffff;
  --muted: #9ca3af;
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  border-radius: 50%;
  content: "";
  filter: blur(130px);
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  background: var(--secondary);
  height: 520px;
  left: -190px;
  top: -150px;
  width: 520px;
}

body::after {
  background: var(--primary);
  height: 480px;
  right: -170px;
  top: 230px;
  width: 480px;
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(236, 72, 153, 0.25);
  outline-offset: 3px;
}

::selection {
  background: rgba(236, 72, 153, 0.35);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #090b0f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border: 3px solid #090b0f;
  border-radius: 999px;
}

.ambient {
  display: none;
}

/* Link hub */
.home-shell {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding: 62px 20px 38px;
  position: relative;
}

.home-shell::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.7px);
  background-size: 19px 19px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  opacity: 0.22;
  pointer-events: none;
  position: absolute;
}

.link-profile {
  margin: auto;
  max-width: 590px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.profile-mark {
  display: inline-block;
  filter: drop-shadow(0 0 27px rgba(236, 72, 153, 0.38));
  height: 105px;
  position: relative;
  width: 105px;
}

.profile-mark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.profile-copy {
  margin: 21px auto 30px;
}

.eyebrow,
.tools-kicker {
  color: #f0abfc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin-bottom: 11px;
}

.profile-copy h1 {
  font-size: clamp(39px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.profile-copy h1,
.tools-hero h1 span {
  background: linear-gradient(90deg, #ffffff 5%, #f9a8d4 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-description,
.tools-subtitle {
  color: var(--muted);
  line-height: 1.75;
}

.profile-description {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  margin: 14px auto 0;
  max-width: 430px;
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-card {
  align-items: center;
  animation: card-appear 0.55s ease both;
  animation-delay: var(--delay);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.035), rgba(139, 92, 246, 0.025)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: grid;
  gap: 15px;
  grid-template-columns: 56px 1fr;
  overflow: hidden;
  padding: 14px 17px 14px 14px;
  position: relative;
  text-align: left;
  transition: 0.3s;
}

.link-card::after {
  background: var(--gradient);
  content: "";
  inset: auto 0 0;
  height: 2px;
  opacity: 0;
  position: absolute;
  transition: 0.3s;
}

.link-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34), 0 0 25px rgba(236, 72, 153, 0.1);
  transform: translateY(-5px);
}

.link-card:hover::after {
  opacity: 1;
}

.link-icon {
  align-items: center;
  border-radius: 17px;
  display: flex;
  font-size: 22px;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.link-icon.green {
  background: rgba(34, 197, 94, 0.13);
  color: #4ade80;
}

.link-icon.orange {
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
}

.link-icon.blue {
  background: rgba(59, 130, 246, 0.13);
  color: #60a5fa;
}

.link-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  font-size: 16px;
  letter-spacing: -0.015em;
}

.link-copy small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
}

.profile-footer {
  color: #686e79;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

/* Tools layout */
.tools-shell {
  min-height: 100svh;
  padding: 0 20px 70px;
}

.tools-container {
  margin: 0 auto;
  max-width: 1180px;
}

.tools-topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(10, 12, 16, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  justify-content: space-between;
  margin: 0 calc(50% - 50vw) 70px;
  padding: 16px max(4vw, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-link {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 750;
  gap: 11px;
  letter-spacing: -0.025em;
}

.mini-mark {
  display: inline-flex;
  filter: drop-shadow(0 0 13px rgba(236, 72, 153, 0.3));
  height: 42px;
  width: 42px;
}

.mini-mark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.back-link {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d1d5db;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  min-height: 42px;
  padding: 0 18px;
  transition: 0.25s;
}

.back-link:hover {
  border-color: var(--border-active);
  color: white;
  transform: translateY(-2px);
}

.tools-hero {
  margin: 0 auto 42px;
  max-width: 760px;
  text-align: center;
}

.tools-kicker {
  margin-bottom: 15px;
}

.tools-hero h1 {
  font-size: clamp(43px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.tools-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin: 20px auto 0;
  max-width: 620px;
}

.tool-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-bottom: 25px;
}

.tool-tab {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: #d7d9de;
  cursor: pointer;
  min-height: 142px;
  padding: 18px;
  text-align: left;
  transition: 0.3s;
}

.tool-tab:hover {
  background: var(--card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.tool-tab.active {
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(139, 92, 246, 0.19)),
    var(--card);
  border-color: rgba(236, 72, 153, 0.52);
  box-shadow: 0 0 28px rgba(236, 72, 153, 0.13);
  color: white;
}

.tool-tab-icon {
  align-items: center;
  background: rgba(139, 92, 246, 0.14);
  border-radius: 14px;
  color: #c4b5fd;
  display: flex;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  margin-bottom: 19px;
  width: 44px;
}

.tool-tab.active .tool-tab-icon {
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.22);
  color: white;
}

.tool-tab strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.downloader-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
}

.downloader-layout .primary-button {
  margin-top: 6px;
  width: fit-content;
}

.downloader-note {
  background: var(--card-deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.downloader-note .tool-tab-icon {
  margin-bottom: 15px;
}

.downloader-note h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.downloader-note p {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

.downloader-note a {
  color: #f0abfc;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 17px;
}

.tool-workspace {
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.06), transparent 36%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.07), transparent 40%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  min-height: 450px;
  overflow: hidden;
  padding: 32px;
}

.tool-panel[hidden] {
  display: none;
}

.workspace-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 25px;
}

.workspace-head h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
  margin-bottom: 7px;
}

.workspace-head p {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-pill {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 999px;
  color: #4ade80;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  padding: 8px 12px;
}

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

.field {
  display: grid;
  gap: 9px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
}

.text-input,
.text-area,
.select-input {
  background: var(--card-deep);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  padding: 15px 16px;
  transition: 0.25s;
  width: 100%;
}

.fee-slider {
  accent-color: var(--primary);
  cursor: pointer;
  width: 100%;
}

.text-input::placeholder,
.text-area::placeholder {
  color: #616670;
}

.text-input:focus,
.text-area:focus,
.select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.text-area {
  line-height: 1.55;
  min-height: 220px;
  resize: vertical;
}

.field-note {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.field-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-label {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  gap: 8px;
}

.check-label input {
  accent-color: var(--primary);
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  min-height: 44px;
  padding: 0 18px;
  transition: 0.28s;
}

.primary-button {
  background: #252a33;
  color: white;
}

.primary-button.accent {
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.2);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #e5e7eb;
}

.primary-button:hover,
.secondary-button:hover {
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.result-card {
  background: var(--card-deep);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  padding: 25px;
  position: relative;
}

.result-card::before {
  background: var(--gradient);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.result-card.light {
  background: var(--card-deep);
}

.result-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.result-value {
  font-size: clamp(31px, 6vw, 48px);
  font-weight: 750;
  letter-spacing: 0.055em;
}

.result-value.currency {
  letter-spacing: -0.045em;
}

.result-detail {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 9px;
}

.totp-progress,
.date-progress {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  height: 6px;
  margin-top: 19px;
  overflow: hidden;
}

.date-summary {
  align-items: center;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 96px;
}

.date-summary span {
  color: var(--muted);
}

.date-summary strong {
  color: #4ade80;
}

.totp-progress span,
.date-progress span {
  background: var(--gradient);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.25s linear;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 14px;
  color: #fca5a5;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  margin-top: 12px;
  padding: 12px 14px;
}

.error-message[hidden] {
  display: none;
}

.stats-row {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 17px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  padding: 15px;
}

.mini-stat span,
.mini-stat strong {
  display: block;
}

.mini-stat span {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  margin-bottom: 6px;
}

.mini-stat strong {
  color: white;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.email-address {
  align-items: center;
  background: var(--card-deep);
  border: 1px dashed rgba(236, 72, 153, 0.38);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: space-between;
  padding: 16px;
}

.maintenance-card {
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  display: flex;
  gap: 14px;
  padding: 20px;
}

.maintenance-icon {
  align-items: center;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 14px;
  color: #fbbf24;
  display: flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.maintenance-card strong,
.maintenance-card p {
  display: block;
}

.maintenance-card strong {
  font-size: 14px;
  margin: 2px 0 6px;
}

.maintenance-card p {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.email-address code {
  color: #f9a8d4;
  font-family: "Inter", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.inbox {
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 19px;
  overflow: hidden;
}

.inbox-head {
  align-items: center;
  background: var(--card-deep);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.inbox-head strong {
  font-size: 13px;
}

.inbox-list {
  display: grid;
}

.message-button {
  background: transparent;
  border-top: 1px solid var(--border);
  cursor: pointer;
  padding: 15px 16px;
  text-align: left;
  transition: 0.2s;
}

.message-button:hover {
  background: rgba(236, 72, 153, 0.05);
}

.message-button strong,
.message-button span {
  display: block;
}

.message-button strong {
  font-size: 13px;
}

.message-button span {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  margin-top: 4px;
}

.empty-inbox {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  padding: 25px 15px;
  text-align: center;
}

.message-detail {
  background: var(--card-deep);
  border: 1px solid var(--border);
  border-radius: 17px;
  margin-top: 19px;
  padding: 18px;
}

.message-detail h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.message-detail p,
.message-detail pre {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

.message-detail pre {
  margin-top: 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.attribution {
  color: #777d87;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  margin-top: 13px;
}

.attribution a {
  color: #f0abfc;
  text-decoration: underline;
}

.tools-footer {
  color: #686e79;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  margin-top: 25px;
  text-align: center;
}

.button-spacer {
  margin-top: 16px;
}

.dark-text {
  color: white;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .home-shell {
    align-items: flex-start;
    padding: 38px 14px 26px;
  }

  .profile-mark {
    height: 84px;
    width: 84px;
  }

  .profile-copy h1 {
    font-size: 41px;
  }

  .link-card {
    border-radius: 20px;
    gap: 12px;
    grid-template-columns: 52px 1fr;
    padding: 12px 14px 12px 12px;
  }

  .link-card:hover {
    transform: none;
  }

  .link-icon {
    border-radius: 15px;
    height: 52px;
    width: 52px;
  }

  .profile-footer {
    flex-wrap: wrap;
  }

  .tools-shell {
    padding: 0 13px 50px;
  }

  .tools-topbar {
    margin-bottom: 48px;
    padding: 13px 14px;
  }

  .brand-link {
    font-size: 14px;
  }

  .mini-mark {
    height: 36px;
    width: 36px;
  }

  .back-link {
    font-size: 11px;
    min-height: 38px;
    padding: 0 14px;
  }

  .tools-hero {
    margin-bottom: 33px;
  }

  .tools-hero h1 {
    font-size: 42px;
  }

  .tools-subtitle {
    font-size: 14px;
  }

  .tool-grid {
    display: flex;
    margin: 0 -13px 22px;
    overflow-x: auto;
    padding: 0 13px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .tool-grid::-webkit-scrollbar {
    display: none;
  }

  .tool-tab {
    flex: 0 0 147px;
    min-height: 132px;
    scroll-snap-align: start;
  }

  .tool-tab:hover {
    transform: none;
  }

  .downloader-layout {
    grid-template-columns: 1fr;
  }

  .tool-workspace {
    border-radius: 24px;
    padding: 20px;
  }

  .workspace-head {
    display: block;
  }

  .privacy-pill {
    display: inline-block;
    margin-top: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
