:root {
  --bg: #070b14;
  --surface: rgba(13, 19, 36, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.88);
  --border-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --ok: #22c55e;
  --err: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: Inter, "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 420px at 14% -6%, rgba(124, 58, 237, 0.28), transparent 62%),
    radial-gradient(580px 380px at 92% 4%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(600px 440px at 50% 105%, rgba(59, 130, 246, 0.14), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-shield {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.45));
}

.brand-text h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
}

.brand-text p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.user-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(135deg, #a855f7, #3b82f6, #22d3ee);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #1e1b4b, #090d1a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #c4b5fd;
}

.user-badge-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar-initial {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
  user-select: none;
}

/* Search Bar */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0 12px;
  height: 46px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-clear {
  background: rgba(148, 163, 184, 0.15);
  border: none;
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.search-clear.visible {
  display: inline-flex;
}

/* Action Buttons */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.action-btn {
  height: 46px;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s, filter 0.15s, box-shadow 0.15s;
}

.action-btn:hover { filter: brightness(1.07); }
.action-btn:active { transform: scale(0.98); }

.action-btn.scan {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #3b82f6 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.34);
}

.action-btn.add {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #22d3ee 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

/* Glass Cards with gradient border */
.glass-card {
  position: relative;
  background: linear-gradient(155deg, rgba(17, 25, 48, 0.78), rgba(9, 14, 28, 0.88));
  border-radius: 20px;
  padding: 16px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.42));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Account Row */
.acc-card {
  display: flex;
  align-items: center;
  gap: 13px;
  transition: transform 0.12s, box-shadow 0.15s;
}

.acc-card.hidden-by-search {
  display: none;
}

.acc-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.acc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acc-logo.brand-svg {
  background: transparent;
  border: none;
}

.acc-logo.letter-avatar {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-weight: 800;
  font-size: 18px;
  color: #e0e7ff;
}

.acc-body {
  flex: 1;
  min-width: 0;
}

.acc-head-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.acc-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-email {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.otp-code {
  display: inline-block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  word-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  cursor: pointer;
  user-select: all;
  background: linear-gradient(90deg, #a855f7 0%, #60a5fa 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #38bdf8;
  transition: transform 0.1s, opacity 0.15s;
}

.otp-code.is-low {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fbbf24;
}

.otp-code:active,
.otp-code.copied {
  transform: scale(0.97);
  opacity: 0.8;
}

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

/* Countdown Ring */
.ring-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
}

.ring-arc {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear, stroke 0.25s ease;
}

.ring-wrap.is-low .ring-arc {
  stroke: #fbbf24 !important;
}

.ring-text {
  position: absolute;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.1s;
}

.copy-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #e2e8f0;
}

.copy-btn:active { transform: scale(0.94); }

.copy-btn.copied {
  border-color: var(--ok);
  color: var(--ok);
  background: rgba(34, 197, 94, 0.14);
}

/* Single OTP View */
.view-topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 18px;
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.15s, transform 0.1s;
}

.back-btn:hover { border-color: rgba(139, 92, 246, 0.5); }
.back-btn:active { transform: scale(0.95); }

.view-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.view-brand span {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.view-card {
  padding: 24px 22px 26px;
  text-align: center;
  margin-bottom: 18px;
}

.view-account {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 18px;
}

.otp-code.lg {
  display: block;
  font-size: clamp(38px, 10vw, 48px);
  letter-spacing: 0.05em;
  margin: 6px 0 18px;
}

.ring-wrap.lg {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.25));
}

.ring-wrap.lg .ring-text {
  font-size: 24px;
  font-weight: 800;
}

.bar-track {
  width: 82%;
  max-width: 280px;
  height: 5px;
  margin: 0 auto 16px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7 0%, #3b82f6 60%, #22d3ee 100%);
  transition: width 0.35s linear;
}

.bar-fill.is-low {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.next-row {
  font-size: 14px;
  color: var(--muted);
}

.next-code {
  color: #e2e8f0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-left: 4px;
}

.view-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 55%, #06b6d4 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.38);
  transition: transform 0.1s, filter 0.15s;
}

.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: scale(0.985); }

.btn-outline {
  position: relative;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: rgba(13, 19, 36, 0.72);
  color: #f8fafc;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, #a855f7, #3b82f6, #22d3ee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-outline:hover { background: rgba(20, 29, 54, 0.85); }
.btn-outline:active { transform: scale(0.985); }

.expiry-wrap {
  text-align: center;
  margin-bottom: 14px;
}

.expiry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.expiry-pill.expired {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

/* Empty & Error States */
.empty-state {
  text-align: center;
  padding: 26px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.empty-state code {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  color: #38bdf8;
  font-size: 12px;
}

/* Footer */
.foot-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: #94a3b8;
  font-size: 12.5px;
  text-align: center;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

@media (min-width: 520px) {
  .modal-backdrop { align-items: center; }
}

.modal-backdrop.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 440px;
  margin-bottom: 0;
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.field-label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 10px 0 6px;
}

.field-input,
.field-textarea {
  width: 100%;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: ui-monospace, monospace;
  outline: none;
}

.field-input:focus,
.field-textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.field-textarea { min-height: 74px; resize: vertical; }

.qr-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(139, 92, 246, 0.35);
  margin-bottom: 12px;
  display: none;
}

.qr-video-wrap.active { display: block; }
.qr-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-reticle {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(34, 211, 238, 0.85);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.42);
  pointer-events: none;
}

.modal-status {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 12px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #4ade80;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.err {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

/* ===== Public home page (/) + shared language switcher ===== */
body.home-page {
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(720px 460px at 8% -8%, rgba(124, 58, 237, 0.32), transparent 62%),
    radial-gradient(640px 420px at 96% 0%, rgba(34, 211, 238, 0.16), transparent 58%),
    radial-gradient(700px 480px at 50% 110%, rgba(59, 130, 246, 0.16), transparent 65%);
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(115deg, transparent 49.4%, rgba(34, 211, 238, 0.055) 50%, transparent 50.6%),
    linear-gradient(65deg, transparent 49.4%, rgba(99, 102, 241, 0.05) 50%, transparent 50.6%);
  background-size: 88px 152px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 30%, transparent 78%);
}

.home-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  min-width: 0;
}

.home-brand .brand-shield {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.5));
}

.home-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.home-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lang-switch button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.lang-switch button:hover { color: #e2e8f0; }

.lang-switch button.is-active {
  color: #22d3ee;
}

.lang-switch-sep {
  color: #64748b;
  font-weight: 500;
}

.btn-open-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #8b5cf6 0%, #4f46e5 45%, #2563eb 75%, #22d3ee 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.38);
  transition: filter 0.15s, transform 0.1s;
}

.btn-open-bot:hover { filter: brightness(1.08); }
.btn-open-bot:active { transform: scale(0.98); }

.home-hero {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 721px) and (min-height: 760px) {
  .home-hero { margin-top: auto; }
  .home-footer { margin-bottom: auto; }
}

.home-hero h1 {
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.12;
  margin: 0 0 14px;
}

.home-hero-sub {
  font-size: clamp(15px, 2.1vw, 20px);
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 32px;
}

.home-card {
  text-align: left;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 22px;
  padding: 26px 26px 20px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-secret-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.home-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.home-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 12px 72px 12px 16px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-input-wrap input::placeholder {
  color: #64748b;
  letter-spacing: 0.02em;
}

.home-input-wrap input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.home-input-wrap input.is-invalid {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.home-paste {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.home-paste:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.1);
}

.home-get {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #a855f7 0%, #6366f1 38%, #3b82f6 68%, #22d3ee 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.42);
  transition: filter 0.15s, transform 0.1s;
}

.home-get:hover { filter: brightness(1.07); }
.home-get:active { transform: scale(0.985); }

.home-error {
  margin: 10px 2px 0;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.home-helper {
  margin: 14px 2px 2px;
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.55;
}

.home-link-secret {
  color: #67e8f9;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 680px;
  margin: 4px auto 0;
}

.home-feat {
  text-align: center;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(10, 16, 32, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.35;
}

.home-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 4px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-footer a {
  color: inherit;
  text-decoration: none;
}

.home-footer a:hover { color: #e2e8f0; }

.view-topbar .lang-switch {
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
}

.view-topbar {
  grid-template-columns: auto 1fr auto;
  gap: 10px;
}

@media (max-width: 720px) {
  .home-shell { padding-left: 16px; padding-right: 16px; }
  .home-nav {
    flex-wrap: wrap;
    margin-bottom: 28px;
    gap: 12px;
  }
  .home-nav-right {
    width: 100%;
    justify-content: space-between;
  }
  .btn-open-bot { flex: 1; }
  .home-card { padding: 20px 16px 16px; }
  .home-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-hero-sub { margin-bottom: 22px; }
}

@media (max-width: 420px) {
  .home-brand-name { font-size: 17px; }
  .lang-switch { padding: 0 10px; }
  .home-hero h1 { font-size: 28px; }
}
