@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,600;0,14..32,700;0,14..32,900;1,14..32,300&display=swap");

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:          #050508;
  --surface-1:   rgba(255,255,255,0.035);
  --surface-2:   rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.07);
  --border-glow:   rgba(139,92,246,0.35);
  --accent:      #7c3aed;
  --accent-2:    #4f46e5;
  --accent-soft: rgba(124,58,237,0.15);
  --text-primary: #f1f5f9;
  --text-muted:   #64748b;
  --text-dim:     #334155;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-3xl:  2.5rem;
}

/* ─── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle animated radial bg */
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(109,40,217,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(67,56,202,0.14) 0%, transparent 60%);
}

/* ─── Noise texture overlay ──────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.app-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
  min-height: 100vh;
}

/* ─── Main card ──────────────────────────────────────────────── */
.main-card {
  width: 100%;
  max-width: 700px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.018) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-3xl);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px -20px rgba(0,0,0,0.55),
    0 0 100px -40px rgba(109,40,217,0.2);
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 30%; right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), transparent);
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 0.9rem;
}

.site-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
}

/* ─── Snake mascot stage ─────────────────────────────────────── */
.snake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: -0.5rem 0 1.5rem;
}

.snake-chomp-wrap {
  position: relative;
  display: inline-block;
}

.snake-stage canvas {
  display: block;
  filter: drop-shadow(0 6px 18px rgba(34,197,94,0.25)) drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* CHOMP! pop-up text */
.snake-chomp {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(0) scale(0.4);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #4ade80;
  text-shadow: 0 0 18px rgba(74,222,128,0.9), 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
}

.snake-chomp.chomp-show {
  animation: chompPop 1.6s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes chompPop {
  0%   { opacity: 0;   transform: translateX(-50%) translateY(0)    scale(0.4); }
  18%  { opacity: 1;   transform: translateX(-50%) translateY(-28px) scale(1.25); }
  55%  { opacity: 1;   transform: translateX(-50%) translateY(-40px) scale(1.05); }
  100% { opacity: 0;   transform: translateX(-50%) translateY(-70px) scale(0.7); }
}

/* Stage shake when biting */
@keyframes stageBite {
  0%,100% { transform: translateX(0) rotate(0deg); }
  15%     { transform: translateX(-6px) rotate(-1deg); }
  35%     { transform: translateX(6px) rotate(1deg); }
  55%     { transform: translateX(-4px) rotate(-.5deg); }
  75%     { transform: translateX(4px) rotate(.5deg); }
}

.snake-stage.is-biting {
  animation: stageBite 0.55s ease;
}

.snake-caption {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74,222,128,0.5);
  min-height: 1.15em;
  text-align: center;
  transition: opacity 0.25s ease;
}

/* ─── Tab nav ────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 1.75rem;
}

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 0.5rem 0.9rem;
  border-radius: 1rem;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, transform 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tab-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.tab-btn.tab-active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(124,58,237,0.5);
  transform: translateY(-1px);
}

/* ─── Encrypt banner ─────────────────────────────────────────── */
.encrypt-banner {
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.encrypt-banner.is-active {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.06);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.12) inset;
}

.encrypt-banner.is-active .encrypt-title { color: #6ee7b7; }

.encrypt-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
  margin-top: 2px;
}

.encrypt-banner.is-active .encrypt-status-dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
}

.encrypt-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.25s;
}

.encrypt-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.45;
}

.encrypt-pass-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), margin-top 0.3s;
}

.encrypt-pass-wrap.open {
  max-height: 100px;
  margin-top: 0.75rem;
}

/* ─── Toggle switch ──────────────────────────────────────────── */
.toggle-track {
  width: 44px; height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.toggle-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-track.is-on {
  background: var(--green);
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

.toggle-track.is-on .toggle-thumb {
  transform: translateX(20px);
}

/* ─── Dropzone ───────────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  background: rgba(0,0,0,0.2);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.07);
  transform: translateY(-1px);
}

.drop-icon {
  width: 52px; height: 52px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.25), rgba(124,58,237,0.25));
  border: 1px solid rgba(139,92,246,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dropzone:hover .drop-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px -8px rgba(124,58,237,0.4);
}

.drop-icon svg { width: 24px; height: 24px; color: #a78bfa; }

.drop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.drop-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drop-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c4b5fd;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px -6px rgba(124,58,237,0.5);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover:not(:disabled)::after { opacity: 1; }

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(124,58,237,0.6);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-ghost svg { width: 14px; height: 14px; }

/* ─── Panel transition ───────────────────────────────────────── */
.panel { display: none; }
.panel.is-visible {
  display: block;
  animation: fadeSlide 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

/* ─── Form inputs ────────────────────────────────────────────── */
.field {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field:focus {
  outline: none;
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.field::placeholder { color: var(--text-dim); }

/* ─── Merge file list ────────────────────────────────────────── */
.file-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.file-chip:focus-within {
  border-color: rgba(124,58,237,0.4);
}

.file-chip-num {
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  border-radius: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  flex-shrink: 0;
}

.file-chip-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.file-chip-pass {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-family: inherit;
  color: var(--text-primary);
  width: 120px;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.file-chip-pass:focus {
  outline: none;
  border-color: rgba(124,58,237,0.5);
}

.file-chip-pass::placeholder {
  color: #4b5563;
  font-size: 0.68rem;
}

.file-chip-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  padding: 0.15rem;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.file-chip-del:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}

.file-chip-del svg { width: 13px; height: 13px; }

/* ─── Radio pills ────────────────────────────────────────────── */
.radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-pill input { display: none; }

.radio-pill label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  user-select: none;
}

.radio-pill label svg { width: 13px; height: 13px; }

.radio-pill input:checked + label {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
}

/* ─── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 1.25rem 0;
}

/* ─── Label ──────────────────────────────────────────────────── */
.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* ─── Notice ─────────────────────────────────────────────────── */
.notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notice-warn {
  font-size: 0.7rem;
  color: #fde68a;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}

/* ─── Source password row ────────────────────────────────────── */
.src-pass-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: var(--radius-xl);
  padding: 0.65rem 0.9rem;
}

.src-pass-row svg {
  width: 15px;
  height: 15px;
  color: #fbbf24;
  flex-shrink: 0;
}

.src-pass-row input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}

.src-pass-row input::placeholder { color: #78716c; }

/* ─── Language switcher ──────────────────────────────────────── */
.lang-switcher {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.3rem;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.lang-btn.lang-active {
  background: linear-gradient(135deg, rgba(79,70,229,0.35), rgba(124,58,237,0.35));
  border-color: rgba(139,92,246,0.45);
  color: #c4b5fd;
  box-shadow: 0 2px 10px -4px rgba(124,58,237,0.4);
}

/* ─── Spacer util ────────────────────────────────────────────── */
.space-y > * + * { margin-top: var(--gap, 1rem); }

@media (min-width: 640px) {
  .main-card { padding: 3rem 2.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   SHARED: Hub back-link
═══════════════════════════════════════════════════════════ */
.hub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  position: absolute;
  top: 0;
  left: 0;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.hub-back-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════════════════════════
   TOOLS PAGE: Scrollable tab nav
═══════════════════════════════════════════════════════════ */
.tools-tab-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.tools-tab-nav::-webkit-scrollbar { display: none; }
.tools-tab-nav .tab-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: max-content;
}

/* ═══════════════════════════════════════════════════════════
   TOOLS PAGE: Shared components
═══════════════════════════════════════════════════════════ */

/* Large textarea for tools */
.tool-textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  min-height: 80px;
}
.tool-textarea:focus { border-color: var(--border-glow); }

/* Result card */
.tool-result {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem;
}
.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

/* Stat grid (word counter, age, etc.) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}
.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Copy button */
.copy-btn {
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 0.5rem;
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}
.copy-btn:hover { background: rgba(124,58,237,0.35); }

/* Checkbox label */
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.check-label input { accent-color: var(--accent); cursor: pointer; }

/* Case converter buttons */
.case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.btn-case {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 0.6rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-case:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(139,92,246,0.4);
  color: #c4b5fd;
}

/* Random number chips */
.rng-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rng-chip {
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 0.5rem;
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  font-variant-numeric: tabular-nums;
}

/* Password display */
.pass-display-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  position: relative;
}
.pass-display {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
  word-break: break-all;
  cursor: pointer;
  letter-spacing: 0.04em;
}

/* Password strength bar */
.strength-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.strength-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s, background 0.3s;
}

/* Range input */
.range-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Jump Navigation (replaces scrollable tab bars) ─────── */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.jump-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .32rem .75rem;
  border-radius: .6rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.jump-link:hover {
  background: rgba(255,255,255,.09);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

/* ── Tool Page Section Cards ─────────────────────────── */
.tool-page-section {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1.2rem;
  padding: 1.3rem 1.5rem;
  scroll-margin-top: 1rem;
}
.tool-page-section + .tool-page-section { margin-top: 1rem; }

/* Section header with icon + title + desc */
.tps-header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.tps-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: .1rem; }
.tps-title { font-size: .92rem; font-weight: 800; color: var(--text-primary); }
.tps-desc  { font-size: .72rem; color: var(--text-muted); margin-top: .18rem; line-height: 1.4; }
.tps-badge {
  display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; flex-shrink: 0;
  padding: .15rem .5rem; border-radius: .4rem; font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.25);
}

/* Two-column tool grid for wider pages */
.tools-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 680px) { .tools-2col { grid-template-columns: 1fr; } }

/* BMI gauge */
.bmi-bar-wrap { position: relative; margin: 0.25rem 0 1.5rem; }
.bmi-bar-track {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}
.bmi-bar-seg { height: 100%; }
.bmi-needle {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  transform: translateX(-50%);
  transition: left 0.4s ease;
}
.bmi-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}
