:root {
  --primary: #3f6fd1;
  --primary-dark: #2859b9;
  --primary-soft: #edf4ff;
  --secondary: #0bc8aa;
  --secondary-dark: #079b84;
  --accent: #ef4f7a;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --surface-blue: #f2f7ff;
  --text: #171b24;
  --text-muted: #687b95;
  --border: #dfe6f1;
  --border-strong: #cbd7e7;
  --success: #10c7a8;
  --success-dark: #078b77;
  --focus: rgba(63, 111, 209, 0.24);
  --shadow-sm: 0 8px 24px rgba(32, 58, 105, 0.07);
  --shadow-md: 0 16px 40px rgba(32, 58, 105, 0.11);
  --shadow-card: 0 10px 32px rgba(50, 83, 136, 0.09);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 980px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.42rem;
}

strong {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #edf1f6;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(17, 35, 65, 0.02);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}


.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(63, 111, 209, 0.22);
  font-size: 1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.08rem;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #5d718c;
  font-size: 0.91rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(117deg, #ffffff 0%, #ffffff 73%, #f3f7fc 73%, #f3f7fc 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(28px, 8vw, 145px);
  top: 46%;
  width: 150px;
  height: 150px;
  opacity: 0.42;
  background-image: radial-gradient(circle, #3f6fd1 1.15px, transparent 1.3px);
  background-size: 18px 18px;
  transform: translateY(-22%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -185px;
  width: 410px;
  height: 410px;
  border: 65px solid rgba(63, 111, 209, 0.06);
  border-radius: 50%;
}

.hero {
  padding: clamp(4.3rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6.3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(11, 200, 170, 0.12);
}

h1,
h2,
h3 {
  margin: 0 0 0.72rem;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 750;
}

h3 {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  font-weight: 700;
}

.lead {
  max-width: 750px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.72;
}

.hero-actions,
.action-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.hero-actions {
  margin-top: 1.55rem;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(63, 111, 209, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(63, 111, 209, 0.26);
}

.btn-secondary {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #dce8fb;
}

.btn-secondary:hover {
  color: var(--primary-dark);
  background: #e3edfc;
  border-color: #c8d8f1;
}

.btn-full {
  width: 100%;
}

.hero-panel,
.card,
.feature-card,
.step-card,
.pricing-card,
.faq-item,
.support-card,
.metric-card,
.checkout-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-color: #d6e2f1;
  box-shadow: var(--shadow-md);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.panel-top span,
.mini-label,
.card-kicker,
.tag,
.badge {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.panel-top h2 {
  margin: 0.18rem 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
}

.panel-price {
  padding: 0.45rem 0.7rem;
  border: 1px solid #d6e3f6;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard {
  display: grid;
  gap: 0.72rem;
}

.mini-card {
  padding: 0.92rem;
  border: 1px solid #e2e9f3;
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.mini-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f7;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.72rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.35rem 0.62rem;
  border: 1px solid #dde6f2;
  border-radius: 999px;
  color: #61748d;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.safe-note {
  margin-top: 0.85rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid #c7eee7;
  border-radius: var(--radius-md);
  color: var(--success-dark);
  background: #effbf8;
  font-size: 0.88rem;
  font-weight: 600;
}

.section {
  position: relative;
  padding: clamp(3.4rem, 6vw, 5.7rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 4vw, 3.7rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-gradient {
  background:
    radial-gradient(circle at 7% 10%, rgba(63, 111, 209, 0.06), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(11, 200, 170, 0.055), transparent 26%),
    #fbfdff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading p:not(.eyebrow),
.muted {
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.step-card,
.card,
.support-card,
.metric-card,
.checkout-card {
  padding: clamp(1.15rem, 2vw, 1.45rem);
}

.feature-card,
.step-card,
.pricing-card,
.support-card,
.checkout-card {
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.feature-card:hover,
.step-card:hover,
.pricing-card:hover,
.support-card:hover,
.checkout-card:hover {
  transform: translateY(-3px);
  border-color: #c4d4e9;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border: 1px solid #dbe7fa;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.95rem;
  font-weight: 750;
}

.feature-card p,
.step-card p,
.card p,
.support-card p,
.checkout-card p {
  color: var(--text-muted);
}

.card-kicker {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 1.2rem;
  align-items: start;
}

.check-list,
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.check-list li,
.clean-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-muted);
}

.check-list li + li,
.clean-list li + li {
  margin-top: 0.58rem;
}

.check-list li::before,
.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  background: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.steps-list {
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-top: 1.35rem;
}

.step-card::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  margin-bottom: 0.8rem;
  border-radius: 9px;
  color: #fff;
  background: var(--primary);
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 7px 16px rgba(63, 111, 209, 0.18);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
  max-width: 790px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1.3rem 1.35rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.pricing-card:nth-child(1) {
  border-color: #bad6ef;
}

.pricing-card:nth-child(2) {
  border-color: #21c9ad;
}

.pricing-card.popular {
  border-color: var(--secondary);
  box-shadow: 0 14px 36px rgba(11, 200, 170, 0.13);
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 -1.3rem 1rem;
  padding: 0.88rem 1.3rem;
  background: #dceeff;
}

.pricing-card:nth-child(2) .pricing-head,
.pricing-card.popular .pricing-head {
  color: #fff;
  background: var(--secondary);
}

.pricing-head h3 {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
}

.pricing-card:nth-child(2) .pricing-head h3,
.pricing-card:nth-child(2) .pricing-head .card-kicker,
.pricing-card.popular .pricing-head h3,
.pricing-card.popular .pricing-head .card-kicker {
  color: #fff;
}

.pricing-card .card-kicker {
  margin-bottom: 0;
  color: #5b6e86;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.68rem;
  white-space: nowrap;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: 0.75rem 0 0.7rem;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price span:last-child {
  color: #8190a3;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-card .check-list {
  margin-bottom: 1.15rem;
}

.pricing-card .card-actions {
  margin-top: auto;
}

.pricing-card:nth-child(2) .btn-primary,
.pricing-card.popular .btn-primary {
  background: var(--secondary);
  box-shadow: 0 8px 18px rgba(11, 200, 170, 0.2);
}

.pricing-card:nth-child(2) .btn-primary:hover,
.pricing-card.popular .btn-primary:hover {
  background: var(--secondary-dark);
}

.notice,
.info-box {
  padding: 0.9rem 1rem;
  border: 1px solid #d9e6f7;
  border-radius: var(--radius-md);
  color: #526b8b;
  background: var(--primary-soft);
  font-size: 0.9rem;
  font-weight: 550;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 860px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.15rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.faq-item[open] summary {
  color: var(--primary-dark);
  background: #fbfdff;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
}

.support-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 1.2rem;
  align-items: start;
}

.support-card {
  border-top: 4px solid var(--primary);
}

.support-card a {
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration: none;
}

.support-card a:hover {
  text-decoration: underline;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.metric-card span {
  color: var(--text-muted);
  font-weight: 600;
}

.page-hero {
  padding: clamp(3.5rem, 6vw, 5.4rem) 0 clamp(2.9rem, 5vw, 4.3rem);
}

.page-hero .lead {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
  color: #7a8ba0;
  font-size: 0.86rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.comparison {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.comparison table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--text);
  background: var(--primary-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.comparison td {
  color: var(--text-muted);
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid #e5ebf3;
  background: #f8fafd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 0.7fr));
  gap: 2rem;
}

.footer p,
.footer a {
  color: var(--text-muted);
}

.footer .brand {
  color: var(--primary);
}

.footer h2 {
  margin: 0 0 0.72rem;
  color: #34465e;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 0.48rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.35rem;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 0.72rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .page-hero {
    background: linear-gradient(160deg, #fff 0%, #fff 76%, #f4f7fb 76%, #f4f7fb 100%);
  }

  .hero-grid,
  .detail-layout,
  .support-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

  .grid-4,
  .grid-3,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: relative;
  }

  .brand {
    font-size: 1.08rem;
  }


  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    width: 100%;
    gap: 0.08rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0.45rem 0.58rem;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero::before,
  .page-hero::before {
    display: none;
  }

  .hero-actions,
  .action-row,
  .card-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .action-row .btn,
  .card-actions .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .metric-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    max-width: 470px;
  }

  .panel-top,
  .pricing-head {
    flex-direction: column;
  }

  .pricing-head {
    margin-bottom: 0.9rem;
  }

  .footer {
    padding-bottom: 2.4rem;
  }
}

/* Automated VietQR checkout */
.payment-hero {
  padding-bottom: clamp(2.5rem, 4vw, 3.6rem);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.payment-order-card,
.payment-panel {
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
}

.payment-order-card h2,
.payment-panel h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
}

.payment-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.plan-picker {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-picker legend {
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.plan-option {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.plan-option:hover {
  border-color: #b9cce7;
  background: #fbfdff;
}

.plan-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--focus);
}

.plan-option span {
  display: grid;
  gap: 0.12rem;
}

.plan-option strong {
  font-size: 1rem;
}

.plan-option small,
.form-field small {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.plan-option b {
  color: var(--primary-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.form-field {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #fff;
  font: inherit;
}

.form-field input:focus {
  border-color: var(--primary);
  outline: 3px solid var(--focus);
  outline-offset: 0;
}

.selected-plan-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d8e5f7;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
}

.selected-plan-summary span {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-plan-summary b {
  justify-self: end;
  color: var(--primary-dark);
}

.form-message {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-message[data-type="error"] {
  color: #a22a45;
  background: #fff0f4;
  border: 1px solid #fac7d4;
}

.form-message[data-type="info"] {
  color: #526b8b;
  background: var(--primary-soft);
  border: 1px solid #d8e5f7;
}

.payment-security-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.payment-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.payment-status[data-status="waiting"] {
  color: #2859b9;
  background: #eaf2ff;
}

.payment-status[data-status="paid"] {
  color: #087a68;
  background: #e8fbf7;
}

.payment-status[data-status="warning"] {
  color: #8a5a00;
  background: #fff7df;
}

.payment-status[data-status="error"] {
  color: #a22a45;
  background: #fff0f4;
}

.status-message {
  margin: 0.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.qr-wrap {
  width: min(100%, 380px);
  min-height: 300px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.qr-wrap img {
  width: 100%;
  display: block;
}

.payment-details,
.license-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.payment-details > div,
.license-meta > div {
  display: grid;
  grid-template-columns: minmax(115px, 0.42fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.payment-details > div:last-child,
.license-meta > div:last-child {
  border-bottom: 0;
}

.payment-details dt,
.license-meta dt {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.payment-details dd,
.license-meta dd {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  color: var(--text);
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-details code,
.secret-row code,
.license-key-box code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.copy-link {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.copy-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.payment-warning {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #f4d999;
  border-radius: var(--radius-md);
  color: #765314;
  background: #fffaf0;
  font-size: 0.87rem;
}

.order-token-box {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.order-token-box summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 700;
}

.order-token-box p {
  margin: 0.6rem 0;
  font-size: 0.84rem;
}

.secret-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.secret-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.76rem;
}

.license-result {
  margin-top: 1.2rem;
  padding: 1.1rem;
  border: 1px solid #aee7dc;
  border-radius: var(--radius-lg);
  background: #f1fcf9;
}

.license-result > div:first-of-type,
.license-result > div:nth-of-type(2) {
  display: inline-block;
  vertical-align: middle;
}

.success-icon {
  width: 42px;
  height: 42px;
  display: inline-grid !important;
  place-items: center;
  margin-right: 0.65rem;
  border-radius: 50%;
  color: #fff;
  background: var(--secondary);
  font-size: 1.2rem;
  font-weight: 800;
}

.license-result h3 {
  margin-bottom: 0;
}

.license-key-box {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid #bceade;
  border-radius: var(--radius-md);
  background: #fff;
}

.license-key-box code {
  color: #0b6f61;
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 750;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-align: center;
}

.license-result p {
  margin-top: 0.85rem;
  color: #47736b;
  font-size: 0.84rem;
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .payment-panel-head,
  .plan-option,
  .secret-row {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-panel-head {
    display: grid;
  }

  .payment-status {
    justify-self: start;
  }

  .payment-details > div,
  .license-meta > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .payment-details dd,
  .license-meta dd {
    justify-content: flex-start;
    text-align: left;
  }

  .selected-plan-summary {
    grid-template-columns: 1fr;
  }

  .selected-plan-summary b {
    justify-self: start;
  }
}
