:root {
  --bg: #161b23;
  --bg-alt: #10151d;
  --text: #f2f6ff;
  --muted: #9fb0c7;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(82, 213, 255, 0.35);
  --card: rgba(255, 255, 255, 0.04);
  --card-solid: #1b2330;
  --accent-cyan: #22d3ee;
  --accent-blue: #228be6;
  --accent-violet: #9775fa;
  --accent-green: #40c057;
  --accent-yellow: #fab005;
  --accent-red: #fa5252;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  background: radial-gradient(circle at 12% 12%, #1f2d40 0%, #161b23 36%, #10141d 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: qv-grid-pan 30s linear infinite;
}

.bg-grid::before,
.bg-grid::after {
  content: "";
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  filter: blur(56px);
  animation: qv-glow-drift 16s ease-in-out infinite alternate;
}

.bg-grid::before {
  background: radial-gradient(420px 320px at 18% 24%, rgba(34, 211, 238, 0.2), transparent 72%);
}

.bg-grid::after {
  background: radial-gradient(500px 380px at 84% 0%, rgba(151, 117, 250, 0.2), transparent 74%);
  animation-delay: -5s;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 26px 0 80px;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  z-index: -2;
  opacity: 0.35;
}

.orb-a {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -130px;
  background: rgba(34, 211, 238, 0.55);
}

.orb-b {
  width: 380px;
  height: 380px;
  right: -130px;
  bottom: -150px;
  background: rgba(151, 117, 250, 0.48);
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

h1 {
  font-size: clamp(26px, 3.4vw, 42px);
}

h2 {
  font-size: clamp(20px, 2.2vw, 28px);
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
}

p {
  margin: 0;
}

.section {
  margin-top: 22px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card,
.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(3, 8, 20, 0.35);
}

.card {
  padding: 22px;
}

.soft-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(1, 7, 18, 0.4);
}

.hero {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: #c8f8ff;
}

.price {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #ecf9ff;
}

.kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 8px;
}

.copy-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 35, 0.88);
}

code {
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn {
  appearance: none;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.48);
}

.btn-primary {
  border-color: rgba(34, 211, 238, 0.6);
  color: #031722;
  background: linear-gradient(135deg, #5de8ff 0%, #28c1ff 46%, #2f8dff 100%);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.connect-body .container {
  width: min(830px, 94vw);
  padding-top: 12px;
}

.qv-shell {
  display: grid;
  gap: 12px;
}

.qv-page > * {
  opacity: 0;
  transform: translateY(16px);
  animation: qv-reveal 0.55s ease forwards;
}

.qv-page > :nth-child(2) {
  animation-delay: 0.08s;
}

.qv-page > :nth-child(3) {
  animation-delay: 0.16s;
}

.qv-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.86), rgba(21, 28, 39, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(2, 7, 18, 0.38);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.qv-panel:hover {
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow: 0 22px 48px rgba(2, 7, 18, 0.44), 0 0 0 1px rgba(34, 211, 238, 0.12) inset;
}

.qv-topbar {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 10px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.95), rgba(18, 25, 35, 0.92));
}

.qv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.qv-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #061824;
  background: linear-gradient(140deg, #f8fafc, #22d3ee 58%, #228be6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 8px 20px rgba(34, 211, 238, 0.32);
}

.qv-head-actions {
  display: flex;
  gap: 8px;
}

.qv-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qv-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18) inset, 0 6px 20px rgba(34, 211, 238, 0.2);
}

.qv-ic {
  width: 18px;
  height: 18px;
  display: block;
}

.qv-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
}

.qv-status,
.qv-meta-item {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.qv-status-active {
  color: #a8f3cb;
  border-color: rgba(64, 192, 87, 0.45);
  background: rgba(64, 192, 87, 0.15);
}

.qv-status-expired {
  color: #ffe7ab;
  border-color: rgba(250, 176, 5, 0.45);
  background: rgba(250, 176, 5, 0.15);
}

.qv-status-suspended {
  color: #ffc7cc;
  border-color: rgba(250, 82, 82, 0.48);
  background: rgba(250, 82, 82, 0.16);
}

.qv-installation {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.qv-installation.is-switching .qv-card {
  opacity: 0.55;
  transform: translateY(4px);
}

.qv-install-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.qv-install-head h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.6px;
}

.qv-os-select {
  height: 40px;
  min-width: 150px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 27, 38, 0.95);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.qv-app-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qv-app-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(33, 41, 56, 0.7), rgba(22, 30, 43, 0.75));
  color: #eaf2ff;
  min-height: 50px;
  text-align: left;
  padding: 0 14px;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.qv-app-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}

.qv-app-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.qv-app-tab.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
  background: linear-gradient(180deg, rgba(22, 53, 68, 0.9), rgba(20, 42, 58, 0.8));
  animation: qv-active-pulse 2.8s ease-in-out infinite;
}

.qv-app-tab.is-active::after {
  opacity: 1;
  animation: qv-shimmer 2.2s ease-in-out infinite;
}

.qv-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.qv-app-tab.is-active .qv-tab-dot {
  background: #efbf04;
  box-shadow: 0 0 8px rgba(239, 191, 4, 0.6);
}

.qv-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  background: linear-gradient(180deg, rgba(31, 40, 54, 0.68), rgba(24, 32, 45, 0.75));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.qv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px 100px at -5% 0%, rgba(34, 211, 238, 0.14), transparent 60%);
  opacity: 0.5;
}

.qv-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 12px 24px rgba(2, 6, 14, 0.35);
}

.qv-card-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.qv-card-title h2 {
  margin: 0 0 5px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.45px;
}

.qv-card-title p {
  margin: 0;
  color: var(--muted);
}

.qv-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #a8efff;
  flex: 0 0 42px;
}

.qv-card-icon-ok {
  background: rgba(64, 192, 87, 0.2);
  border-color: rgba(64, 192, 87, 0.45);
  color: #acf0c0;
}

.qv-link-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qv-link-btn {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: linear-gradient(170deg, rgba(19, 66, 87, 0.9), rgba(20, 51, 66, 0.95));
  color: #9df0ff;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.qv-link-btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -25%;
  width: 45%;
  height: 340%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  opacity: 0;
}

.qv-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.56);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.24);
  filter: brightness(1.06);
}

.qv-link-btn:hover::after {
  opacity: 1;
  animation: qv-link-sheen 0.85s ease;
}

.qv-sub-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(11, 18, 28, 0.92);
}

.qv-sub-box code {
  font-size: 12px;
  line-height: 1.45;
  color: #d8f5ff;
}

.qv-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qv-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.qv-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.qv-btn-primary {
  border-color: rgba(34, 211, 238, 0.5);
  color: #042030;
  background: linear-gradient(135deg, #63ecff, #2bcaff);
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.24);
}

.qv-btn-primary:hover {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}

.qv-steps {
  margin: 14px 0 0;
  padding-left: 24px;
  color: #d3dfef;
  display: grid;
  gap: 6px;
}

.qv-steps li {
  opacity: 0;
  transform: translateY(6px);
  animation: qv-step-in 0.35s ease forwards;
}

.qv-steps li:nth-child(1) { animation-delay: 0.02s; }
.qv-steps li:nth-child(2) { animation-delay: 0.06s; }
.qv-steps li:nth-child(3) { animation-delay: 0.1s; }
.qv-steps li:nth-child(4) { animation-delay: 0.14s; }
.qv-steps li:nth-child(5) { animation-delay: 0.18s; }
.qv-steps li:nth-child(6) { animation-delay: 0.22s; }

.copy-toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 99;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(16, 25, 35, 0.94);
  color: #dff8ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

@keyframes qv-grid-pan {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 36px 36px, 0 36px;
  }
}

@keyframes qv-glow-drift {
  from {
    transform: translate3d(-6px, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, -8px, 0) scale(1.05);
  }
}

@keyframes qv-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qv-shimmer {
  0% {
    left: -45%;
  }
  100% {
    left: 120%;
  }
}

@keyframes qv-active-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 18px rgba(34, 211, 238, 0.18);
  }
}

@keyframes qv-link-sheen {
  from {
    transform: translateX(-18px) rotate(25deg);
  }
  to {
    transform: translateX(120px) rotate(25deg);
  }
}

@keyframes qv-step-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-grid::before,
  .bg-grid::after,
  .qv-page > *,
  .qv-app-tab,
  .qv-app-tab::after,
  .qv-link-btn::after,
  .qv-steps li {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .qv-install-head h1 {
    font-size: 28px;
  }

  .qv-app-tab {
    font-size: 22px;
  }

  .qv-card-title h2 {
    font-size: 26px;
  }
}

@media (max-width: 740px) {
  .container {
    width: 94vw;
    padding-top: 12px;
  }

  .qv-install-head {
    flex-direction: column;
    align-items: stretch;
  }

  .qv-os-select {
    width: 100%;
  }

  .qv-app-tabs {
    grid-template-columns: 1fr;
  }

  .qv-app-tab {
    min-height: 46px;
    font-size: 20px;
  }

  .qv-actions {
    flex-direction: column;
  }

  .qv-btn,
  .qv-link-btn {
    width: 100%;
    text-align: center;
  }

  .copy-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}
