:root {
  --bg: #08152f;
  --surface: rgba(14, 25, 56, 0.88);
  --surface-strong: rgba(8, 18, 43, 0.96);
  --surface-alt: rgba(18, 117, 226, 0.12);
  --ink: #f4f7ff;
  --muted: #b7c5df;
  --line: rgba(95, 120, 163, 0.22);
  --line-strong: rgba(95, 120, 163, 0.34);
  --primary: #1275e2;
  --primary-dark: #0d5db4;
  --secondary: #5f78a3;
  --accent: #ff8f3d;
  --accent-deep: #c55b00;
  --accent-soft: rgba(255, 143, 61, 0.14);
  --accent-line: rgba(255, 143, 61, 0.3);
  --glow: #38d2ff;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --danger-line: rgba(252, 165, 165, 0.28);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --warning-line: rgba(253, 224, 71, 0.24);
  --shadow: 0 28px 90px rgba(0, 8, 27, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(18, 117, 226, 0.28), transparent 24%),
    radial-gradient(circle at top center, rgba(255, 143, 61, 0.18), transparent 18%),
    radial-gradient(circle at top right, rgba(56, 210, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #091734 0%, #0a1231 42%, #070d24 100%),
    var(--bg);
  font-family: "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
.btn,
.nav-link,
.info-card,
.benefit-card,
.step-card,
.showcase-card,
.pricing-card,
.contact-sidecard,
.form-card,
.status-card,
.legal-card,
.plugin-visual-card,
.hero-highlights span,
.pricing-toggle .btn,
.faq-accordion .accordion-item,
.brand-mark,
.cta-panel {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(6, 15, 40, 0.72);
  border-bottom: 1px solid rgba(95, 120, 163, 0.16);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 32, 51, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 26, 43, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--ink);
}

.brand-copy strong,
.brand-copy span {
  color: var(--ink);
}

.brand-copy small {
  color: var(--muted);
}

.nav-link,
.footer-link,
.site-footer a {
  color: var(--muted);
}

.language-switch {
  font-weight: 700;
}

.language-menu {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(17, 26, 43, 0.12);
  padding: 0.35rem;
}

.language-menu .dropdown-item {
  color: var(--ink);
  border-radius: 12px;
  margin: 0.35rem 0;
  padding: 0.55rem 0.85rem;
}

.language-menu .dropdown-item:hover,
.language-menu .dropdown-item:focus,
.language-menu .dropdown-item:focus-visible {
  color: #ffffff;
  background-color: rgba(18, 117, 226, 0.18);
}

.language-menu .dropdown-item.active,
.language-menu .dropdown-item:active {
  color: #fff;
  background-color: var(--primary);
}

.nav-cta {
  min-width: 8.5rem;
}

.navbar-toggler {
  border-color: rgba(183, 197, 223, 0.28);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
}

.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  border-color: var(--glow);
  background: rgba(56, 210, 255, 0.1);
  box-shadow: 0 0 0 0.2rem rgba(56, 210, 255, 0.18);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244%2C247%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--glow));
  color: #08152f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  border-color: var(--primary-dark);
  background-color: var(--primary-dark);
  box-shadow: 0 0 0 0.25rem rgba(11, 107, 98, 0.2);
}

.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(11, 107, 98, 0.24);
}

.btn-outline-dark {
  color: var(--ink);
  border-color: rgba(183, 197, 223, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:focus-visible,
.btn-outline-dark:active,
.btn-outline-dark.active,
.show > .btn-outline-dark.dropdown-toggle {
  color: #08152f;
  border-color: var(--glow);
  background: linear-gradient(135deg, rgba(56, 210, 255, 0.95), rgba(18, 117, 226, 0.95));
  box-shadow: 0 0 0 0.25rem rgba(56, 210, 255, 0.18);
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:focus-visible,
.btn-dark:active,
.btn-dark.active,
.show > .btn-dark.dropdown-toggle {
  color: var(--ink);
  border-color: rgba(95, 120, 163, 0.3);
  background-color: rgba(12, 24, 52, 0.95);
  box-shadow: 0 0 0 0.25rem rgba(18, 117, 226, 0.14);
}

.btn:focus,
.btn:focus-visible {
  outline: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:focus-visible {
  color: var(--accent);
}

.hero-section {
    background-image:
        linear-gradient(to bottom, transparent 0%, #091734 100%),
        url("/images/hero.webp");
    background-size: cover;
    background-position: center top;
}

.hero-section,
.page-hero {
  padding: 4.5rem 0 2rem;
}

.hero-section h1,
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-copy {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-section h1,
.page-hero h1,
.section-heading h2,
.pricing-card h2,
.pricing-card h3,
.info-card h3,
.benefit-card h3,
.step-card h3,
.showcase-card h3,
.mock-search-card h2,
.cta-panel h2 {
  text-wrap: balance;
}

.hero-section h1,
.page-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 62%, #ffd0af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-highlights span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 143, 61, 0.16), rgba(13, 28, 61, 0.78)),
    rgba(13, 28, 61, 0.66);
  border: 1px solid var(--accent-line);
  color: #fff6ef;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 208, 175, 0.1);
}

.hero-highlights span:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 8, 27, 0.22);
}

.hero-panel,
.mock-window,
.mock-search-card,
.showcase,
.contact-sidecard,
.form-card,
.status-card,
.legal-card,
.cta-panel,
.pricing-card,
.info-card,
.benefit-card,
.step-card,
.showcase-card {
  border-radius: var(--radius-xl);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(18, 117, 226, 0.18), rgba(56, 210, 255, 0.08));
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.plugin-visual-card {
  background: rgba(10, 20, 46, 0.82);
  padding: 1rem;
  min-height: 440px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}

.plugin-banner-image {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.mock-search-card {
  margin-top: 1.25rem;
  background: rgba(8, 18, 43, 0.92);
  padding: 2rem;
  border: 1px solid rgba(255, 143, 61, 0.2);
  box-shadow: 0 18px 50px rgba(0, 8, 27, 0.28);
}

.mock-label {
  color: #ffbf8d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-search-card h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.mock-search-card ul,
.feature-list {
  padding-left: 1.25rem;
}

.content-section {
  padding: 2rem 0 4rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 62ch;
}

.info-card,
.benefit-card,
.step-card,
.showcase-card,
.pricing-card,
.contact-sidecard,
.form-card,
.status-card,
.legal-card {
  height: 100%;
  background: rgba(11, 20, 46, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 8, 27, 0.22);
  padding: 1.8rem;
}

.info-card,
.benefit-card,
.step-card,
.showcase-card {
  position: relative;
  overflow: hidden;
}

.info-card:hover,
.benefit-card:hover,
.step-card:hover,
.showcase-card:hover,
.pricing-card:hover,
.contact-sidecard:hover,
.form-card:hover,
.status-card:hover,
.legal-card:hover,
.plugin-visual-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 52px rgba(0, 8, 27, 0.32);
  border-color: rgba(56, 210, 255, 0.24);
}

.plugin-visual-card:hover .plugin-banner-image {
  transform: scale(1.012);
  box-shadow: 0 16px 36px rgba(0, 8, 27, 0.24);
}

.step-number {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 28px rgba(197, 91, 0, 0.24);
}

.showcase-placeholder {
  min-height: 220px;
  margin-bottom: 1.5rem;
  border: 1px dashed var(--accent-line);
  background:
    radial-gradient(circle at top left, rgba(255, 143, 61, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(18, 117, 226, 0.18), rgba(56, 210, 255, 0.08)),
    rgba(8, 18, 43, 0.92);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255, 143, 61, 0.16), rgba(11, 20, 46, 0.96));
  border-color: var(--accent-line);
  transform: translateY(-6px);
}

.pricing-card.featured:hover {
  transform: translateY(-12px);
}

.pricing-badge {
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 143, 61, 0.14);
  color: #ffc79a;
  font-size: 0.82rem;
  font-weight: 700;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.price-line strong {
  font-size: 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff4ea;
  text-shadow: 0 0 24px rgba(255, 143, 61, 0.14);
}

.price-meta {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: -0.25rem;
}

.price-meta.is-visible {
  display: flex;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(134, 239, 172, 0.24);
  color: #bdf7cf;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.original-price {
  color: rgba(183, 197, 223, 0.82);
  font-size: 0.92rem;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.7);
  text-decoration-thickness: 1.5px;
}

.feature-list li {
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.feature-list li::marker {
  color: var(--accent);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pricing-toggle-caption {
  margin-top: 1rem;
}

.checkout-intake {
  max-width: 720px;
  margin-top: 2rem;
}

.faq-accordion .accordion-item {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(11, 20, 46, 0.86);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--ink);
  background: rgba(11, 20, 46, 0.92);
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 143, 61, 0.14), rgba(18, 117, 226, 0.12));
  box-shadow: inset 0 -1px 0 rgba(95, 120, 163, 0.22);
}

.faq-accordion .accordion-button::after {
  filter: invert(1) brightness(1.4);
}

.faq-accordion .accordion-body {
  background: rgba(8, 18, 43, 0.94);
  color: var(--muted);
}

.final-cta {
  padding: 1rem 0 5rem;
}

.cta-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    color: #fff;
    background: linear-gradient(135deg, #0d1f4a, #1275e2 52%, #38d2ff);
    box-shadow: var(--shadow);
}

.cta-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(0, 8, 27, 0.4);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact-sidecard,
.form-card,
.status-card,
.legal-card {
  height: auto;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.checkout-summary div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 143, 61, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 143, 61, 0.12);
}

.checkout-summary span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.checkout-summary strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.success-card {
  border-color: rgba(56, 210, 255, 0.22);
}

.cancel-card {
  border-color: rgba(255, 143, 61, 0.28);
}

.legal-section + .legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 3rem 0 4rem;
  background: rgba(5, 12, 28, 0.96);
  border-top: 1px solid var(--line);
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 1rem;
}

.site-footer h3 {
  color: #ffe0c6;
}

.site-footer a {
  display: block;
  margin-bottom: 0.65rem;
}

.form-control,
.form-control:disabled,
.form-control[readonly],
.form-select,
.form-select:disabled,
.form-select[readonly],
.form-control-plaintext,
.input-group-text,
.accordion-item,
.dropdown-menu {
  color: var(--ink);
  background-color: rgba(8, 18, 43, 0.92);
}

.form-control,
.form-select,
.form-control-plaintext,
.input-group-text {
  border-color: rgba(95, 120, 163, 0.26);
}

.form-control,
.form-select {
  caret-color: var(--ink);
}

.form-control:hover,
.form-select:hover,
.form-control-plaintext:hover {
  border-color: var(--line-strong);
}

.form-label,
.form-check-label,
.form-check-input,
.form-text,
.text-muted,
small,
.dropdown-item,
.dropdown-header,
.dropdown-toggle,
.accordion-button,
.accordion-body,
.feature-list,
.feature-list li,
.checkout-summary,
.checkout-summary strong,
.checkout-summary div,
.pricing-toggle-caption {
  color: var(--ink);
}

.form-text,
.text-muted,
.pricing-toggle-caption,
.checkout-summary span,
.showcase-card small,
.site-footer p,
.privacy-note {
  color: var(--muted) !important;
}

.form-control::placeholder {
  color: rgba(183, 197, 223, 0.64);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  color: var(--ink);
  background-color: var(--surface-strong);
  border-color: rgba(56, 210, 255, 0.48);
  box-shadow: 0 0 0 0.25rem rgba(56, 210, 255, 0.14);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.form-select[readonly] {
  color: rgba(244, 247, 255, 0.72);
  border-color: rgba(95, 120, 163, 0.18);
  background-color: rgba(8, 18, 43, 0.72);
}

.form-control-plaintext {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(95, 120, 163, 0.26);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 143, 61, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(8, 18, 43, 0.86);
}

.form-select {
  background-color: rgba(8, 18, 43, 0.92);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28244%2C247%2C255%2C0.72%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-check-input {
  border-color: rgba(95, 120, 163, 0.4);
  background-color: rgba(8, 18, 43, 0.92);
}

.form-check-input:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid {
  border-color: var(--danger-line);
  background-image: none;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-select:invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.25rem rgba(248, 113, 113, 0.16);
}

.field-validation-error,
.validation-summary-errors,
.text-danger,
.invalid-feedback {
  color: #ffb4b4 !important;
}

.validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.alert {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 8, 27, 0.18);
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert-danger {
  border-color: var(--danger-line);
  background:
    linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(8, 18, 43, 0.94) 42%),
    rgba(8, 18, 43, 0.94);
  color: #ffd6d6;
}

.alert-warning {
  border-color: var(--warning-line);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(8, 18, 43, 0.94) 42%),
    rgba(8, 18, 43, 0.94);
  color: #ffe9a9;
}

.alert-link {
  color: inherit;
  font-weight: 700;
}

.alert-link:hover,
.alert-link:focus,
.alert-link:focus-visible {
  color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-strong) inset;
  box-shadow: 0 0 0 1000px var(--surface-strong) inset;
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}

.toast-stack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  width: min(calc(100vw - 2rem), 24rem);
  pointer-events: none;
}

.toast-notification {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(11, 20, 46, 0.96);
  box-shadow:
    0 18px 38px rgba(2, 8, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--ink);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(20px, -10px, 0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast-notification::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.45rem;
  width: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.95);
}

.toast-notification.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.toast-notification.is-leaving {
  opacity: 0;
  transform: translate3d(18px, -8px, 0);
}

.toast-body {
  flex: 1;
  min-width: 0;
  padding-right: 0.35rem;
}

.toast-message {
  margin: 0;
  color: #eaf2ff;
  line-height: 1.5;
}

.toast-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(234, 242, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.toast-close:hover,
.toast-close:focus,
.toast-close:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.toast-success {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(11, 20, 46, 0.96) 40%),
    rgba(11, 20, 46, 0.96);
  border-color: rgba(134, 239, 172, 0.22);
}

.toast-success::before {
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

.toast-error {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(11, 20, 46, 0.96) 40%),
    rgba(11, 20, 46, 0.96);
  border-color: rgba(252, 165, 165, 0.22);
}

.toast-error::before {
  background: linear-gradient(180deg, #f87171, #ef4444);
}

.toast-info {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(11, 20, 46, 0.96) 40%),
    rgba(11, 20, 46, 0.96);
  border-color: rgba(147, 197, 253, 0.22);
}

.toast-info::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

/* ── Image lightbox ─────────────────────────────────────────── */
.img-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: inherit;
  position: relative;
}

.img-zoom-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(56, 210, 255, 0);
  transition: background 220ms ease;
  pointer-events: none;
}

.img-zoom-trigger:hover::after {
  background: rgba(56, 210, 255, 0.1);
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 26, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  cursor: zoom-out;
}

.img-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.img-lightbox-inner {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  transform: scale(0.94);
  transition: transform 240ms ease;
}

.img-lightbox.is-open .img-lightbox-inner {
  transform: scale(1);
}

.img-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 8, 27, 0.6);
  object-fit: contain;
}

.img-lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(183, 197, 223, 0.28);
  background: rgba(11, 20, 46, 0.96);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.img-lightbox-close:hover,
.img-lightbox-close:focus-visible {
  background: rgba(56, 210, 255, 0.18);
  border-color: var(--glow);
  outline: none;
}

.js-motion .reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

.js-motion .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatingGlow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-panel {
  animation: floatingGlow 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-motion .reveal-on-scroll,
  .js-motion .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .hero-section,
  .page-hero {
    padding-top: 3rem;
  }

  .cta-panel {
    padding: 2rem;
  }

    #mainNav .nav-item > * {
        width: 100%
    }
}

@media (max-width: 767.98px) {
  .hero-section h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .content-section {
    padding-bottom: 3rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .toast-stack {
    top: 0.9rem;
    right: 0.9rem;
    left: 0.9rem;
    width: auto;
  }
}

/* ── Dashboard ──────────────────────────────────────────────── */

.dashboard-tenant-card {
  background: rgba(14, 25, 56, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.dashboard-tenant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(18, 117, 226, 0.35);
}

.dashboard-plan-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dashboard-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.dashboard-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.dashboard-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-usage-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-usage-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-usage-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 600ms ease;
}

.dashboard-usage-bar-fill.is-warning {
  background: #f5a623;
}

.dashboard-usage-bar-fill.is-critical {
  background: #e53e3e;
}

.dashboard-usage-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 2.8rem;
  text-align: right;
}

.dashboard-usage-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Checkout option cards (authenticated multi-choice) */
.checkout-user-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted);
}

.checkout-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.checkout-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}

.checkout-option:hover {
  border-color: var(--accent);
}

.checkout-option-body {
  flex: 1;
  min-width: 0;
}

.checkout-option-label {
  display: block;
  font-size: .9375rem;
  color: var(--ink);
  margin-bottom: .2rem;
}

.checkout-option-desc {
  font-size: .8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Billing cards (dashboard) ──────────────────────────────── */

.billing-card {
  background: rgba(14, 25, 56, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.billing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(18, 117, 226, 0.35);
}

.billing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.billing-plan-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.billing-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.billing-status[title] {
  cursor: help;
}

.billing-status--active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.billing-status--cancelling {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.billing-status--inactive {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

.billing-site {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.billing-site svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.billing-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-metric {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.billing-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.billing-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.billing-metric-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.billing-metric-value.is-warning { color: #f5a623; }
.billing-metric-value.is-critical { color: #e53e3e; }

.billing-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.billing-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 600ms ease;
}

.billing-bar-fill.is-warning { background: #f5a623; }
.billing-bar-fill.is-critical { background: #e53e3e; }

.billing-overage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fc8181;
}

.billing-overage svg { flex-shrink: 0; }

.billing-card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.billing-action-btn {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  text-align: center;
}

.billing-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.billing-action-btn--primary {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

.billing-action-btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.billing-invoices-hint {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
