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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.26); }

/* ────────────────────────────────────────
   Background orbs  (ReactBits: FloatingOrbs)
──────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.18;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #0d9488, #042f2e);
  top: -140px; right: -100px;
  animation: orbFloat1 14s ease-in-out infinite;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #f97316, #7c2d12);
  bottom: 60px; left: -110px;
  animation: orbFloat2 17s ease-in-out infinite;
}
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #6366f1, #1e1b4b);
  top: 45%; left: 42%;
  animation: orbFloat3 11s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-28px,38px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(36px,-26px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-18px,22px)} }

/* ────────────────────────────────────────
   Gradient text
──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(100deg, #5eead4 0%, #22d3ee 45%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ────────────────────────────────────────
   Spotlight hero card  (ReactBits: SpotlightCard)
──────────────────────────────────────── */
.spotlight-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
/* Animated gradient border */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(45,212,191,0.6) 0%, rgba(249,115,22,0.3) 50%, rgba(99,102,241,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderRotate 6s linear infinite;
  background-size: 200% 200%;
}
@keyframes borderRotate {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ────────────────────────────────────────
   Glass card  (ReactBits: GlowCard)
──────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.glass-card:hover {
  border-color: rgba(45,212,191,0.28);
  box-shadow: 0 0 28px rgba(45,212,191,0.07);
}

/* ────────────────────────────────────────
   QR ring glow
──────────────────────────────────────── */
.qr-ring {
  border: 1.5px solid rgba(45,212,191,0.25);
  background: rgba(45,212,191,0.06);
  transition: box-shadow 400ms ease, border-color 400ms ease;
}
.qr-ring.active {
  border-color: rgba(45,212,191,0.5);
  box-shadow: 0 0 0 5px rgba(45,212,191,0.1), 0 0 50px rgba(45,212,191,0.22);
  animation: qrPulse 2.8s ease-in-out infinite;
}
@keyframes qrPulse {
  0%,100% { box-shadow: 0 0 0 5px rgba(45,212,191,0.10), 0 0 50px rgba(45,212,191,0.22); }
  50%     { box-shadow: 0 0 0 8px rgba(45,212,191,0.06), 0 0 70px rgba(45,212,191,0.30); }
}

/* ────────────────────────────────────────
   Shimmer button  (ReactBits: ShimmerButton)
──────────────────────────────────────── */
.shimmer-btn {
  position: relative;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  transition: filter 150ms ease, transform 150ms ease;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  animation: shimmerSlide 2.8s ease-in-out infinite;
}
.shimmer-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
@keyframes shimmerSlide { 0% { left:-80%; } 100% { left:130%; } }

/* ────────────────────────────────────────
   Action / Ghost / Verify buttons
──────────────────────────────────────── */
.action-btn {
  background: rgba(13,148,136,0.22);
  border: 1px solid rgba(45,212,191,0.28);
  color: #5eead4;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: background 150ms, transform 150ms;
}
.action-btn:hover { background: rgba(13,148,136,0.42); transform: translateY(-1px); }

.ghost-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 150ms, color 150ms;
}
.ghost-btn:hover { background: rgba(255,255,255,0.11); color: #e2e8f0; }

.verify-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: filter 150ms, transform 150ms;
  flex-shrink: 0;
}
.verify-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ────────────────────────────────────────
   Refresh button  (ReactBits: MagneticButton)
──────────────────────────────────────── */
.refresh-btn {
  flex-shrink: 0;
  min-width: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  color: #64748b;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: background 150ms, border-color 150ms, color 150ms, transform 150ms;
  font-family: inherit;
}
.refresh-btn:hover {
  background: rgba(45,212,191,0.15);
  border-color: rgba(45,212,191,0.35);
  color: #5eead4;
  transform: rotate(20deg);
}
.refresh-btn.spinning {
  animation: spinOnce 380ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes spinOnce { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────
   Form fields
──────────────────────────────────────── */
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 0.72rem; color: #475569; font-weight: 500; letter-spacing: 0.02em; }

.field-input {
  width: 100%;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 8px 10px;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field-input:focus {
  border-color: rgba(45,212,191,0.45);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}
select.field-input { cursor: pointer; }
select.field-input option { background: #0b2226; color: #e2e8f0; }
input[type=number].field-input::-webkit-inner-spin-button,
input[type=number].field-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number].field-input { -moz-appearance: textfield; }

.input-with-refresh { display: flex; gap: 6px; align-items: stretch; }

/* ────────────────────────────────────────
   Card title / Section label
──────────────────────────────────────── */
.card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
}
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ────────────────────────────────────────
   TOTP big display
──────────────────────────────────────── */
.totp-display {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 2.4rem;
  text-align: center;
  letter-spacing: 0.12em;
  color: #5eead4;
  background: rgba(0,0,0,0.35);
  border-radius: 14px;
  padding: 10px 8px;
  transition: color 300ms;
}
.totp-display.flash {
  animation: codeFlash 420ms ease forwards;
}
@keyframes codeFlash {
  0%  { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.6); }
  100%{ color: #5eead4; text-shadow: none; }
}

/* ────────────────────────────────────────
   Result badges
──────────────────────────────────────── */
.result-ok  { color: #4ade80; font-weight: 700; }
.result-bad { color: #f87171; font-weight: 700; }

/* ────────────────────────────────────────
   Vector table
──────────────────────────────────────── */
#vector-body tr:nth-child(even) { background: rgba(255,255,255,0.018); }
#vector-body tr:hover { background: rgba(45,212,191,0.05); }
#vector-body td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}

/* ────────────────────────────────────────
   Google Ads placeholder
──────────────────────────────────────── */
.ads-slot { min-height: 90px; }
.ads-placeholder {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  user-select: none;
}

/* ────────────────────────────────────────
   Page-entry animation
──────────────────────────────────────── */
header, main > * {
  animation: fadeUp 550ms ease-out both;
}
main > *:nth-child(1) { animation-delay: 60ms; }
main > *:nth-child(2) { animation-delay: 130ms; }
main > *:nth-child(3) { animation-delay: 200ms; }
main > *:nth-child(4) { animation-delay: 260ms; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────
   Language Switcher
──────────────────────────────────────── */
.lang-switcher {
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: scale(1.1);
}

.lang-btn.active {
  background: rgba(45,212,191,0.15);
  border-color: rgba(45,212,191,0.5);
  box-shadow: 0 0 8px rgba(45,212,191,0.2);
}

/* ────────────────────────────────────────
   Usage Guide
──────────────────────────────────────── */
.guide-details { border: 1px solid rgba(255,255,255,0.07); }

.guide-summary {
  list-style: none;
  transition: background 150ms;
}
.guide-summary::-webkit-details-marker { display: none; }
.guide-summary:hover { background: rgba(255,255,255,0.03); }

.guide-details[open] .guide-arrow { transform: rotate(180deg); }
.guide-arrow { display: inline-block; transition: transform 250ms ease; }

.guide-block {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.guide-block:first-child { border-top: none; padding-top: 0.5rem; }

.guide-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}
.guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(45,212,191,0.12);
  color: #2dd4bf;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.guide-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.guide-desc code, .guide-val code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8em;
  background: rgba(45,212,191,0.1);
  color: #5eead4;
  padding: 1px 5px;
  border-radius: 4px;
}

.guide-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.guide-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  line-height: 1.6;
}
.guide-row:last-child { border-bottom: none; }
.guide-field {
  padding: 8px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #5eead4;
  background: rgba(45,212,191,0.04);
  border-right: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}
.guide-val {
  padding: 8px 12px;
  color: #94a3b8;
}

.guide-scene {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.65;
  background: rgba(249,115,22,0.05);
  border-left: 2px solid rgba(249,115,22,0.35);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-bottom: 0.6rem;
}
.guide-scene-label {
  display: inline-block;
  color: #fb923c;
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-howto {
  font-size: 0.78rem;
  color: #64748b;
  background: rgba(99,102,241,0.05);
  border-left: 2px solid rgba(99,102,241,0.35);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
}
.guide-howto-label {
  display: block;
  color: #a5b4fc;
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guide-steps {
  padding-left: 1.2em;
  margin: 0;
  space-y: 2px;
}
.guide-steps li {
  margin-bottom: 4px;
  line-height: 1.6;
  color: #94a3b8;
}
.guide-steps li code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8em;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .guide-row { grid-template-columns: 1fr; }
  .guide-field { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: normal; }
}

