@font-face {
font-family: 'Syne';
font-style: normal;
font-weight: 700;
font-display: block;
src: url('../fonts/syne.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Syne';
font-style: normal;
font-weight: 800;
font-display: block;
src: url('../fonts/syne.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: block;
src: url('../fonts/jetbrains-mono.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 500;
font-display: block;
src: url('../fonts/jetbrains-mono.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
--bg: #080b10;
--surface: #111620;
--surface2: #161d2b;
--border: rgba(99, 179, 237, 0.13);
--accent: #63b3ed;
--accent2: #4fd1c5;
--text: #e2e8f0;
--muted: #718096;
--success: #68d391;
--glow: rgba(99, 179, 237, 0.15);
--grid-line: rgba(99, 179, 237, 0.18);
}

[data-theme="light"] {
--bg: #f0f4f8;
--surface: #ffffff;
--surface2: #f7fafc;
--border: rgba(49, 130, 206, 0.15);
--accent: #2b6cb0;
--accent2: #2c7a7b;
--text: #1a202c;
--muted: #718096;
--success: #276749;
--glow: rgba(49, 130, 206, 0.1);
--grid-line: rgba(49, 130, 206, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky header */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  transition: background .3s, color .3s;
}

/* ── Global Entrance Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staggered-fade > * {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

.staggered-fade > *:nth-child(2) { animation-delay: 0.1s; }
.staggered-fade > *:nth-child(3) { animation-delay: 0.2s; }
.staggered-fade > *:nth-child(4) { animation-delay: 0.3s; }
.staggered-fade > *:nth-child(5) { animation-delay: 0.4s; }
.staggered-fade > *:nth-child(6) { animation-delay: 0.5s; }

/* ── Global Documentation Styles (Shared) ── */
.doc-hero { text-align: center; margin-bottom: 48px; }
.doc-tag {
  display: inline-block; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}
.doc-hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(28px, 5vw, 50px); font-weight: 800;
  letter-spacing: -2px; line-height: 1.05; margin-bottom: 16px;
}
.doc-hero h1 em {
  font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.doc-toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; margin-bottom: 40px;
}
.toc-title {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.doc-toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.doc-toc a {
  color: var(--accent); text-decoration: none; font-size: 13px; display: inline-block;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.doc-toc a:hover { transform: translateX(6px); text-shadow: 0 0 10px var(--glow); }

.doc-body { display: flex; flex-direction: column; gap: 56px; }
.doc-body section h2 {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.sec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(99,179,237,0.1);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.doc-body section:hover .sec-num { transform: scale(1.15) rotate(-5deg); box-shadow: 0 0 12px var(--glow); }
.doc-body p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }

.field-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

.field-note span {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.field-note span:hover {
  color: var(--accent);
}

/* ── Info Cards (Reason/Benefit) ── */
.reason-list { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.reason {
  display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  backface-visibility: hidden;
}
.reason:hover {
  border-color: var(--accent); box-shadow: 0 12px 48px -12px var(--glow);
  transform: translateY(-4px);
}
.reason-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99, 179, 237, 0.15), rgba(99, 179, 237, 0.05));
  color: var(--accent); box-shadow: inset 0 0 0 1px rgba(99, 179, 237, 0.2);
}
.reason-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.reason p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 0; }

body::before {
content: '';
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 0;
pointer-events: none;
background-image:
linear-gradient(var(--grid-line) 1.5px, transparent 1.5px),
linear-gradient(90deg, var(--grid-line) 1.5px, transparent 1.5px);
background-size: 40px 40px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
flex: 1;
}

.hidden {
  display: none !important;
}

/* Honeypot trap — hides bot-bait fields */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

/* ── Header ── */
header {
  position: sticky;
  top: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  margin-bottom: 32px;
  background: var(--surface);
  background: rgba(17, 22, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(49, 130, 206, 0.08);
}

.logo {
font-family: 'Syne', sans-serif;
font-size: 22px;
font-weight: 800;
letter-spacing: -0.5px;
}

.logo span {
color: var(--accent);
}

.header-right {
display: flex;
align-items: center;
gap: 10px;
}

.badge {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--muted);
border: 1px solid var(--border);
border-radius: 20px;
padding: 5px 12px;
display: flex;
align-items: center;
gap: 6px;
}

.dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--success);
animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

0%,
100% {
opacity: 1
}

50% {
opacity: .3
}
}

.toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  backface-visibility: hidden;
}

.toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px -4px var(--glow);
  transform: scale(1.08) rotate(5deg);
}

.toggle:active {
  transform: scale(0.95);
}

/* ── Hero ── */
.hero {
text-align: center;
margin-bottom: 48px;
display: flex;
flex-direction: column;
align-items: center;
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}

.status-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(99, 179, 237, 0.1);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge svg { width: 12px; height: 12px; margin-right: 4px; }
.status-badge.success { color: var(--success); background: rgba(104, 211, 145, 0.1); border-color: rgba(104, 211, 145, 0.3); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.status-stats {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.hero h1 {
font-family: 'Syne', sans-serif;
font-size: clamp(32px, 6vw, 58px);
font-weight: 800;
letter-spacing: -2px;
line-height: 1.05;
margin-bottom: 14px;
}

.hero h1 em {
font-style: normal;
background: linear-gradient(135deg, var(--accent), var(--accent2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero p .link-privacy,
.hero p .link-how {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(99, 179, 237, 0.3);
  transition: all 0.2s ease;
}

.hero p .link-privacy:hover,
.hero p .link-how:hover {
  border-bottom-color: var(--accent);
  text-shadow: 0 0 10px var(--glow);
}

/* ── Desktop Layout ── */
.desktop-layout {
display: flex;
align-items: center;
justify-content: center;
gap: 48px;
min-height: calc(100vh - 200px);
padding: 24px 0;
flex-direction: column;
}

.desktop-layout.show-code-entry {
flex-direction: row;
justify-content: center;
}

.desktop-layout .hero {
text-align: center;
margin-bottom: 0;
max-width: 100%;
}

.desktop-layout.show-code-entry .hero {
flex: 0 1 auto;
text-align: center;
max-width: 400px;
}

.desktop-layout .hero h1 {
font-size: clamp(28px, 4vw, 42px);
margin-bottom: 8px;
}

.desktop-layout .hero p {
font-size: 12px;
line-height: 1.5;
}

.right-panel {
width: 100%;
max-width: 100%;
}

.desktop-layout.show-code-entry .right-panel {
flex: 0 0 auto;
min-width: 320px;
max-width: 400px;
}

.desktop-layout .code-entry-section {
flex-shrink: 0;
min-height: auto;
padding: 0;
}

.desktop-layout .code-entry-card {
min-width: auto;
padding: 24px;
}

.desktop-layout.show-code-entry .code-entry-card {
min-width: 320px;
}

.desktop-layout .code-entry-card h2 {
font-size: 20px;
margin-bottom: 8px;
}

.desktop-layout .code-entry-card p {
font-size: 12px;
margin-bottom: 12px;
}

/* ── Cloudflare Turnstile Wrapper ── */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 8px;
  min-height: 70px;
}

.desktop-layout .code-entry-card input[type="text"] {
padding: 12px 14px;
font-size: 14px;
}

.desktop-layout .code-entry-card button[type="submit"] {
padding: 12px 20px;
font-size: 12px;
}

/* ── Loader ── */
.loader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(8, 11, 16, 0.9);
z-index: 100;
backdrop-filter: blur(8px);
}

[data-theme="light"] .loader {
background: rgba(240, 244, 248, 0.9);
}

.loader-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

.spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* ── Platform Detection State ── */
.platform-detect-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 240px);
  padding: 48px 20px;
}

.platform-error-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 240px);
  padding: 48px 20px;
}

.platform-detect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  text-align: center;
}

.platform-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.platform-detect-msg {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-align: center;
}

.dot-anim::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.platform-error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}

.platform-error-icon {
  width: 40px;
  height: 40px;
  color: #e53e3e;
}

.platform-error-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.platform-error-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 320px;
}

.loader-text {
text-align: center;
}

.loader-text p {
font-size: 13px;
color: var(--text);
letter-spacing: 1px;
text-transform: uppercase;
font-weight: 500;
}

.spinner {
width: 40px;
height: 40px;
border: 2px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}

.loader p {
font-size: 11px;
color: var(--muted);
letter-spacing: 1.5px;
text-transform: uppercase;
}

/* ── Fingerprint Section ── */
.fp-section {
display: none;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
width: fit-content;
max-width: 100%;
min-width: 340px;
margin: 0 auto;
}

.fp-section.visible {
display: block !important;
}

/* sticky top bar */
.fp-bar {
position: sticky;
top: 0;
z-index: 10;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
background: var(--surface2);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(20px);
gap: 16px;
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: none;
}

.fp-bar::-webkit-scrollbar {
display: none;
}

.fp-outer-header {
display: none;
align-items: center;
justify-content: center;
margin-bottom: 24px;
padding: 0;
}

.fp-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px; /* Capsule pill shape */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bar-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
  opacity: 0.5;
}

.fp-outer-header.visible {
display: flex !important;
}

.fp-header-left {
display: flex;
align-items: center;
gap: 10px;
}

.fp-bar-title {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--muted);
font-weight: 800;
white-space: nowrap;
}

.fp-indicator {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--accent2);
box-shadow: 0 0 10px var(--accent2);
flex-shrink: 0;
}

.fp-bar-meta {
display: flex;
align-items: center;
gap: 24px;
flex-shrink: 0;
}

.bar-item {
display: flex;
align-items: center;
gap: 6px;
}

.bar-label {
font-size: 8px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--muted);
font-weight: 700;
flex-shrink: 0;
}

.bar-val {
font-size: 10px;
color: var(--accent2);
font-family: 'JetBrains Mono', monospace;
white-space: nowrap;
}

.fp-bar-right {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.copy-btn, .toggle-all-btn {
display: flex;
align-items: center;
gap: 6px;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
letter-spacing: 0.5px;
color: var(--muted);
.fp-segment {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
margin-bottom: 16px;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fp-segment:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 48px -12px var(--glow);
  transform: scale(1.005);
}
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 12px;
cursor: pointer;
transition: all .2s;
white-space: nowrap;
flex-shrink: 0;
}

.copy-btn svg, .toggle-all-btn svg {
width: 14px;
height: 14px;
}

.code-entry-card button[type="submit"]:hover {
  box-shadow: 0 8px 32px -8px var(--glow);
  transform: translateY(-3px) scale(1.02);
}

.code-entry-card button[type="submit"]:active {
  transform: translateY(-1px) scale(0.98);
}

.copy-btn:hover, .toggle-all-btn:hover {
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 10px var(--glow);
background: var(--surface2);
}

.toggle-all-btn.active {
color: var(--accent2);
border-color: var(--accent2);
}

.toggle-all-btn svg {
transition: transform 0.3s;
}

.toggle-all-btn.active svg {
transform: rotate(180deg);
}

.copy-btn.copied {
border-color: var(--success);
color: var(--success);
}

.copy-btn svg {
width: 13px;
height: 13px;
flex-shrink: 0;
}

/* data body */
.fp-body {
padding: 0;
font-size: 12px;
line-height: 1.6;
color: var(--muted);
max-height: 80vh;
overflow-y: auto;
overflow-x: hidden;
/* Lock horizontal scrolling */
display: flex;
flex-direction: column;
}

.fp-body::-webkit-scrollbar {
width: 3px;
}

.fp-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 3px;
}

.fp-segment {
border-bottom: 1px solid var(--border);
}

.fp-segment:last-child {
border-bottom: none;
}

.fps-head {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
background: var(--surface);
/* Use solid surface color */
border-bottom: 1px solid rgba(99, 179, 237, 0.05);
user-select: none;
transition: background .2s;
cursor: pointer;
}

.fps-head:hover {
background: var(--surface2);
}

.fps-head-left {
display: flex;
align-items: center;
gap: 12px;
}

.fps-chevron {
width: 14px;
height: 14px;
color: var(--muted);
transition: transform .3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.fps-chevron svg {
width: 100%;
height: 100%;
}

.fp-segment.collapsed .fps-chevron {
transform: rotate(-90deg);
}

.fps-copy {
display: flex;
align-items: center;
gap: 5px;
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
color: var(--muted);
background: var(--surface2);
border: 1px solid var(--border);
padding: 4px 8px;
border-radius: 6px;
cursor: pointer;
transition: all .2s;
position: relative;
z-index: 2;
}

.fps-copy:hover {
border-color: var(--accent);
color: var(--accent);
}

.fps-copy.copied {
border-color: var(--success);
color: var(--success);
}

.fps-copy svg {
width: 10px;
height: 10px;
}

.fps-title {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 800;
color: var(--accent);
transition: color .2s;
}

.fps-count {
font-size: 9px;
color: var(--muted);
background: var(--surface2);
border: 1px solid var(--border);
padding: 3px 8px;
border-radius: 6px;
}

.fps-content-wrapper {
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
max-height: 10000px;
/* Increased to accommodate very large data */
}

.fp-segment.collapsed .fps-content-wrapper {
max-height: 0;
}

.fps-content {
padding: 0;
background: var(--surface);
border-top: 1px solid rgba(99, 179, 237, 0.05);
overflow-x: auto;
}

/* ── Key-Value Table ── */
.kv-table {
width: 100%;
border-collapse: collapse;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
}

.kv-row {
border-bottom: 1px solid rgba(99, 179, 237, 0.06);
}

.kv-row:last-child {
border-bottom: none;
}

.kv-row:hover {
background: rgba(99, 179, 237, 0.04);
}

.kv-key {
padding: 12px 20px;
color: var(--muted);
font-weight: 600;
white-space: nowrap;
vertical-align: top;
width: 240px;
min-width: 180px;
border-right: 1px solid rgba(99, 179, 237, 0.08);
font-size: 10px;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.kv-val {
padding: 12px 20px;
color: var(--text);
white-space: nowrap;
vertical-align: top;
line-height: 1.6;
}

.kv-val.wrap {
white-space: normal;
word-break: break-all;
}

.val-toggle span {
display: inline-block;
width: 12px;
font-size: 8px;
color: var(--accent);
}

/* Stacked nested list (No Tables!) */
.kv-sub {
margin-top: 10px;
margin-left: 0;
border-left: 1px solid var(--border);
padding-left: 14px;
background: transparent;
display: block;
width: max-content;
min-width: 100%;
}

.kv-sub .kv-row {
display: block;
margin-bottom: 12px;
border: none;
width: max-content;
min-width: 100%;
}

.kv-sub .kv-key {
display: block;
padding: 0 0 4px 0;
font-size: 9px;
width: max-content;
min-width: 100%;
border: none;
background: transparent;
color: var(--accent);
opacity: 0.8;
text-transform: none;
}

.kv-sub .kv-val {
display: block;
padding: 0;
font-size: 11px;
width: max-content;
min-width: 100%;
}

/* Value types */
.val-null {
color: var(--muted);
font-style: italic;
opacity: .6;
}

.val-bool {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 4px;
}

.val-true {
color: var(--success);
background: rgba(104, 211, 145, .08);
}

.val-false {
color: #fc8181;
background: rgba(252, 129, 129, .08);
}

.val-num {
color: var(--accent);
font-weight: 500;
}

.val-str {
color: var(--text);
}

.val-long {
display: inline;
}

.val-preview, .val-full {
font-size: 10px;
opacity: .85;
}

.val-full {
word-break: break-all;
}

.val-expand {
background: none;
border: none;
color: var(--accent);
cursor: pointer;
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
padding: 0 4px;
text-decoration: underline;
text-underline-offset: 2px;
}

.val-expand:hover {
opacity: .7;
}

.val-arr {
color: var(--accent2);
font-size: 10px;
}

.val-err {
color: #f6ad55;
font-size: 10px;
font-weight: 600;
}

.val-nested {
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 180px;
}

.val-toggle {
background: var(--surface2);
border: 1px solid var(--border);
color: var(--accent2);
cursor: pointer;
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
padding: 4px 12px;
border-radius: 6px;
text-align: left;
width: auto;
white-space: nowrap;
transition: all .2s;
display: flex;
align-items: center;
gap: 6px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.val-toggle:hover {
background: var(--surface);
border-color: var(--accent);
transform: translateY(-1px);
box-shadow: 0 4px 8px var(--glow);
}


/* ── Save Notice ── */
.notice {
display: none;
align-items: center;
gap: 8px;
margin-top: 14px;
padding: 12px 16px;
border-radius: 10px;
font-size: 11px;
border: 1px solid transparent;
}

.notice.ok {
display: flex;
background: rgba(104, 211, 145, .07);
border-color: rgba(104, 211, 145, .2);
color: var(--success);
}

.notice.err {
display: flex;
background: rgba(252, 129, 129, .07);
border-color: rgba(252, 129, 129, .2);
color: #fc8181;
}

/* ── Shared Components ── */
.logo-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-link:hover .logo span {
  text-shadow: 0 0 16px var(--glow);
}

.site-footer {
margin-top: auto;
text-align: center;
font-size: 12px;
color: var(--muted);
padding: 24px 0;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.site-footer a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}

.site-footer a:hover {
opacity: .7;
}

.footer-sep {
opacity: .3;
}

/* ── Utility Classes (For CSP Compliance) ── */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-bold { font-weight: 600; }
.text-error { color: #fc8181; }
.text-center { text-align: center; }
.text-no-underline { text-decoration: none; }
.padding-v-xl { padding: 48px 0; }

.noscript-error {
text-align: center;
padding: 48px;
color: #fc8181;
}

/* Specific button/link variants to avoid style attributes */
.link-privacy,
.link-how {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.link-home {
font-weight: 600;
text-decoration: none;
}

.link-mixvisit {
color: var(--accent2);
text-decoration: none;
font-weight: 600;
}

/* ── Scroll to Top ── */
.scroll-top-btn {
position: fixed;
bottom: 24px;
right: 24px;
width: 48px;
height: 48px;
border-radius: 12px;
background: var(--surface2);
border: 1px solid var(--border);
color: var(--text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
opacity: 0;
visibility: hidden;
transform: translateY(20px);
z-index: 100;
backdrop-filter: blur(8px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.scroll-top-btn:hover {
background: var(--surface);
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 20px var(--glow);
transform: translateY(-4px);
}

.scroll-top-btn svg {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
transform: translateY(-2px);
}

/* ── Code Entry Section ── */
.code-entry-section {
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 200px);
padding: 48px 20px;
}

.code-entry-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 32px;
max-width: 400px;
width: 100%;
text-align: center;
}

.code-entry-card h2 {
font-family: 'Syne', sans-serif;
font-size: 24px;
font-weight: 800;
margin-bottom: 12px;
color: var(--text);
}

.code-entry-card p {
font-size: 13px;
color: var(--muted);
margin-bottom: 20px;
line-height: 1.6;
}

.code-entry-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.input-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

.code-entry-card #modelFieldContainer {
  width: 100%;
}

.code-entry-card .select-wrapper,
.code-entry-card .input-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select-wrapper,
.input-wrapper {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}

.select-wrapper {
  background: transparent;
  border: none;
  overflow: visible;
}

.input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px -5px var(--glow);
  transform: translateY(-1px);
}

.code-entry-card input[type="text"] {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  min-width: 0; /* Prevents flex items from growing parent */
  color: var(--text);
  outline: none !important;
}

.clear-input-btn {
  width: 44px;
  height: auto;
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-top: none;
  border-bottom: none;
  border-right: none;
  color: var(--accent);
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clear-input-btn svg {
  width: 20px;
  height: 20px;
}

.clear-input-btn:hover {
  opacity: 1;
  background: rgba(252, 129, 129, 0.1);
  color: #fc8181;
  transform: scale(1.1);
}

.clear-input-btn.hidden {
  display: none;
}

.code-entry-card input[type="text"]::placeholder {
  color: var(--muted);
  letter-spacing: 0;
}

.code-entry-card select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: center;
  letter-spacing: 1px;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  width: 100%;
  min-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.code-entry-card select.locked {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
  background-image: none;
  padding-right: 16px;
}

.code-entry-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.code-entry-card select option {
  text-align: center;
  letter-spacing: 1px;
  background: var(--surface2);
  color: var(--text);
  padding: 10px;
}

.code-entry-card button[type="submit"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.code-entry-card button[type="submit"]:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px var(--glow);
}

.code-entry-card button[type="submit"]:active {
transform: translateY(0);
}

.code-error {
color: #fc8181;
font-size: 12px;
margin-top: 12px;
padding: 10px;
background: rgba(252, 129, 129, .08);
border-radius: 8px;
border: 1px solid rgba(252, 129, 129, .2);
}

.code-hint {
font-size: 11px !important;
color: var(--muted) !important;
margin-top: 16px !important;
opacity: .7;
}

.code-attempts {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  opacity: .6;
}

.code-entry-card .model-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: center;
}

/* ── Toast Notifications ── */
.toast-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 3000;
display: flex;
flex-direction: column;
gap: 10px;
}


.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastSlideIn 0.3s ease-out;
  max-width: 360px;
}

.toast.toast-error {
  border-color: rgba(252, 129, 129, 0.9);
  background: rgba(252, 129, 129, 0.85);
  color: #1a202c;
}

.toast.toast-success {
  border-color: rgba(104, 211, 145, 0.9);
  background: rgba(104, 211, 145, 0.85);
  color: #1a202c;
}

@keyframes toastSlideIn {
from { opacity: 0; transform: translateX(100%); }
to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
from { opacity: 1; transform: translateX(0); }
to { opacity: 0; transform: translateX(100%); }
}

.toast.hiding {
animation: toastSlideOut 0.3s ease-in forwards;
}

/* ── Modal / Popup System (Global) ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease-out;
}

[data-theme="light"] .modal-overlay {
  background: rgba(255, 255, 255, 0.6);
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.5);
  animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-body p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
}

.example-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.example-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.example-val {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

/* ── Manual Model Note Component (Global) ── */
.model-note-trigger-wrapper {
  margin-bottom: 12px;
}

.note-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.note-trigger:hover {
  color: var(--accent);
}

.note-trigger-text {
  font-size: 10px;
}

.note-icon-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.note-trigger:hover .note-icon-btn {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  transform: scale(1.05);
}

.note-icon-btn svg {
  width: 9px;
  height: 9px;
}

/* ── Mobile & Tablet Optimization ── */
@media (max-width: 768px) {
.page {
padding: 20px 16px 32px;
}

header {
margin-bottom: 24px;
}

.logo {
font-size: 20px;
}

.hero {
margin-bottom: 32px;
text-align: left;
}

.hero h1 {
font-size: clamp(28px, 9vw, 42px);
line-height: 1.1;
margin-bottom: 12px;
letter-spacing: -1px;
}

.hero p {
font-size: 13px;
line-height: 1.6;
max-width: 100%;
}

.mobile-layout .hero {
text-align: center;
}

.desktop-layout {
flex-direction: column;
gap: 32px;
padding: 24px 0;
}

.desktop-layout.show-code-entry {
flex-direction: column;
}

.desktop-layout .hero {
text-align: center;
max-width: 100%;
}

.right-panel {
min-width: 100%;
max-width: 100%;
}

.desktop-layout .code-entry-section {
width: 100%;
}

.desktop-layout .code-entry-card {
min-width: auto;
width: 100%;
}

.toast-container {
left: 16px;
right: 16px;
top: 16px;
}

.toast {
max-width: 100%;
}

/* Fingerprint bar - Premium, Minimalist Layout */
.fp-bar {
padding: 10px 14px;
gap: 12px;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(20px);
background: var(--surface2);
border-bottom: 1px solid var(--border);
flex-wrap: nowrap;
overflow: hidden; /* Header itself shouldn't scroll */
}

.fp-bar-meta {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fp-bar-meta::-webkit-scrollbar {
display: none;
}

.bar-item {
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}

.bar-label {
opacity: 0.6;
font-size: 7px;
}

.bar-val {
font-size: 10px;
color: var(--accent2);
letter-spacing: 0.5px;
}

.fp-bar-right {
display: flex;
gap: 6px;
flex-shrink: 0;
}

/* Compact buttons for mobile */
.copy-btn, .toggle-all-btn {
padding: 8px;
border-radius: 8px;
min-width: 36px;
justify-content: center;
}

.copy-btn span, .toggle-all-btn span {
display: none; /* Icon only on small mobile */
}

.copy-btn svg, .toggle-all-btn svg {
margin: 0;
width: 16px;
height: 16px;
}

.fp-header-left {
gap: 8px;
}

.fp-outer-header {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.fp-header-row {
  width: auto;
  max-width: 100%;
}

/* Site footer */
.site-footer {
padding: 20px 0;
flex-direction: column;
gap: 8px;
font-size: 12px;
}

.footer-sep {
display: none;
}

.code-entry-section {
padding: 32px 16px;
}

.code-entry-card {
padding: 24px 20px;
max-width: 100%;
border-radius: 12px;
}

.code-entry-card h2 {
font-size: 20px;
margin-bottom: 10px;
}

.code-entry-card p {
font-size: 12px;
margin-bottom: 16px;
}

.code-entry-card input[type="text"] {
padding: 12px 14px;
font-size: 15px;
}

.code-entry-card button[type="submit"] {
padding: 12px 20px;
font-size: 12px;
}

.code-error {
font-size: 11px;
padding: 8px;
}

.code-hint {
font-size: 10px !important;
}

.code-attempts {
font-size: 10px;
}


}

@media (max-width: 480px) {
.page {
padding: 16px 14px;
}

.hero h1 {
font-size: 32px;
}

.hero p {
font-size: 12px;
}

.hero {
margin-bottom: 20px;
}

.code-entry-section {
padding: 24px 12px;
}

.code-entry-card {
padding: 20px 16px;
border-radius: 10px;
}
}

/* ── Thank You Popup ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.popup-overlay:not(.hidden) .popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.popup-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow);
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  overflow: hidden;
}

/* Confetti Animation */
.popup-confetti {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 16px;
  border-radius: 2px;
  top: -20px;
  opacity: 0;
}

.popup-overlay:not(.hidden) .confetti-piece {
  animation: confettiFall 2.5s ease-in-out forwards;
}

.confetti-piece:nth-child(1) { left: 10%; background: var(--accent); animation-delay: 0.1s; }
.confetti-piece:nth-child(2) { left: 20%; background: var(--accent2); animation-delay: 0.3s; }
.confetti-piece:nth-child(3) { left: 30%; background: var(--success); animation-delay: 0.15s; }
.confetti-piece:nth-child(4) { left: 40%; background: var(--accent); animation-delay: 0.45s; }
.confetti-piece:nth-child(5) { left: 50%; background: var(--accent2); animation-delay: 0.2s; }
.confetti-piece:nth-child(6) { left: 60%; background: var(--success); animation-delay: 0.35s; }
.confetti-piece:nth-child(7) { left: 70%; background: var(--accent); animation-delay: 0.1s; }
.confetti-piece:nth-child(8) { left: 80%; background: var(--accent2); animation-delay: 0.5s; }
.confetti-piece:nth-child(9) { left: 85%; background: var(--success); animation-delay: 0.25s; }
.confetti-piece:nth-child(10) { left: 92%; background: var(--accent); animation-delay: 0.4s; }

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(10px) rotate(45deg) scale(1); }
  100% { transform: translateY(400px) rotate(720deg) scale(0.5); opacity: 0; }
}

/* Popup Icon */
.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.popup-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--bg);
}

@keyframes iconPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Popup Text */
.popup-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textFadeIn 0.5s ease 0.3s both;
}

.popup-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
  animation: textFadeIn 0.5s ease 0.4s both;
}

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

/* Popup Stats */
.popup-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  animation: textFadeIn 0.5s ease 0.5s both;
}

.stat-item {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
}

.stat-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 4px;
  max-height: 33px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Close Button */
.popup-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: textFadeIn 0.5s ease 0.6s both;
}

.popup-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 179, 237, 0.3);
}

.popup-close-btn:active {
  transform: translateY(0);
}

.popup-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Light theme adjustments */
[data-theme="light"] .popup-overlay {
  background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .popup-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(49, 130, 206, 0.1);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .popup-card {
    padding: 32px 20px 24px;
    border-radius: 16px;
  }

  .popup-card h2 {
    font-size: 20px;
  }

  .popup-stats {
    flex-direction: column;
    gap: 10px;
  }

  .popup-icon {
    width: 52px;
    height: 52px;
  }

  .popup-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* Disable interactions during fingerprint collection */
body.collecting-fp {
  pointer-events: none;
  user-select: none;
  cursor: wait;
}

body.collecting-fp .loader {
  pointer-events: auto;
}