:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-strong: #eef5ff;
  --ink: #0b1220;
  --muted: #5c6b82;
  --line: #dbe6f6;
  --primary: #1769ff;
  --primary-dark: #0a3ea8;
  --accent: #18d2b7;
  --danger: #d44747;
  --shadow: 0 24px 70px rgba(16, 45, 90, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(23, 105, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(219, 230, 246, 0.82);
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.hero-metrics,
.trust-strip,
.account-toolbar,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 26px rgba(23, 105, 255, 0.28);
}

.main-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.header-actions {
  gap: 10px;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding: 74px 0 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  padding: 12px 20px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #083fbd);
  box-shadow: 0 16px 34px rgba(23, 105, 255, 0.25);
}

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

.primary-button.small {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 14px;
}

.primary-button.full {
  width: 100%;
}

.secondary-button {
  color: var(--primary-dark);
  background: #e8f1ff;
}

.ghost-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.link-button {
  margin-top: 12px;
  color: var(--primary);
  background: transparent;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics span,
.trust-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics strong {
  color: var(--ink);
}

.hero-card,
.plan-card,
.process-grid article,
.faq-grid article,
.account-panel,
.auth-card {
  border: 1px solid rgba(219, 230, 246, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius);
}

.hero-card::before {
  position: absolute;
  inset: -28% -20% auto auto;
  width: 240px;
  height: 240px;
  content: "";
  border-radius: 999px;
  background: rgba(24, 210, 183, 0.24);
}

.status-row {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #0a8f79;
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(24, 210, 183, 0.14);
}

.server-visual {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.server-status-card {
  padding: 16px;
  border-radius: 18px;
  color: #5ff0c8;
  background:
    linear-gradient(90deg, rgba(95, 240, 200, 0.16), transparent),
    linear-gradient(135deg, #0c1b33, #123f84);
  box-shadow: inset 0 0 0 1px rgba(95, 240, 200, 0.2);
}

.server-status-card small,
.server-status-card span {
  display: block;
  color: #8df6d8;
}

.server-status-card strong {
  display: block;
  margin: 6px 0 4px;
  color: #34e7b8;
  font-size: 18px;
}

.hero-card-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-card-grid div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.hero-card-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.hero-card-grid strong {
  display: block;
}

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 18px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.billing-control {
  display: flex;
  width: max-content;
  margin: 0 auto 26px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.billing-option {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.billing-option.active {
  color: #fff;
  background: var(--primary);
}

.plans-grid,
.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  border-radius: 26px;
}

.plan-card.featured {
  border-color: rgba(23, 105, 255, 0.45);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #e8f1ff;
  font-size: 12px;
  font-weight: 800;
}

.plan-price {
  margin: 18px 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.plan-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plan-specs,
.region-list,
.orders-list {
  display: grid;
  gap: 10px;
}

.plan-specs {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plan-specs li::before {
  margin-right: 8px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.plan-card .primary-button {
  margin-top: auto;
}

.skeleton-card {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
}

.region-item,
.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.region-item strong,
.order-card strong {
  display: block;
  margin-bottom: 4px;
}

.map-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 68% 42%, rgba(24, 210, 183, 0.35), transparent 18rem),
    linear-gradient(135deg, #071a38, #104a9f);
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: var(--shadow);
}

.map-dot {
  position: absolute;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 8px rgba(24, 210, 183, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.hongkong { left: 62%; top: 48%; }
.singapore { left: 56%; top: 64%; }
.tokyo { left: 74%; top: 38%; }
.losangeles { left: 18%; top: 42%; }
.frankfurt { left: 45%; top: 33%; }

.process-grid article,
.faq-grid article {
  padding: 24px;
  border-radius: 24px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 900;
}

.account-panel {
  border-radius: var(--radius);
  padding: 30px;
}

.order-hero {
  padding: 62px 0 28px;
}

.order-hero h1 {
  margin-bottom: 18px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.checkout-card,
.checkout-summary {
  border: 1px solid rgba(219, 230, 246, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.checkout-card {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.checkout-card label,
.region-select-label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.checkout-card select,
.region-select-label select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.checkout-summary {
  position: sticky;
  top: 94px;
  padding: 28px;
}

.order-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface-strong);
  line-height: 1.7;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 80px;
}

.payment-summary,
.payment-card {
  min-height: 100%;
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-methods label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
  cursor: pointer;
}

.payment-methods input {
  margin-top: 5px;
  accent-color: var(--primary);
}

.payment-methods strong,
.payment-methods small {
  display: block;
}

.payment-methods small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbff;
  text-align: center;
}

.payment-qr-card img {
  width: min(280px, 100%);
  border: 10px solid #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16, 45, 90, 0.12);
}

.payment-qr-card strong {
  color: var(--ink);
  font-size: 18px;
}

.payment-qr-card p {
  margin-bottom: 0;
}

.account-toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-meta span,
.status-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.paid,
.status-pill.active {
  color: #087864;
  background: #daf8f2;
}

.status-pill.unpaid,
.status-pill.pending {
  color: #9a6500;
  background: #fff3d7;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.faq-section {
  padding-bottom: 90px;
}

.admin-shell {
  padding: 58px 0 90px;
}

.admin-login-card,
.admin-section,
.admin-plan-card,
.admin-stats article {
  border: 1px solid rgba(219, 230, 246, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-login-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 30px;
}

.admin-login-card form,
.admin-plan-card {
  display: grid;
  gap: 14px;
}

.admin-login-card label,
.admin-plan-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-login-card input,
.admin-plan-card input,
.admin-table select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
}

.admin-dashboard {
  display: grid;
  gap: 26px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stats article {
  padding: 20px;
}

.admin-stats strong {
  display: block;
  font-size: 34px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 800;
}

.admin-section {
  padding: 24px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.admin-table small {
  color: var(--muted);
}

.admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-plan-card {
  padding: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: #d7e5ff;
  background: #071a38;
}

.site-footer p {
  margin-bottom: 0;
  color: #9fb5d8;
}

.footer-links {
  flex-wrap: wrap;
  gap: 16px;
}

.auth-dialog {
  width: min(460px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(7, 26, 56, 0.54);
  backdrop-filter: blur(5px);
}

.auth-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 22px;
}

.form-note,
.form-message {
  margin-bottom: 0;
}

.form-message {
  min-height: 26px;
  color: var(--danger);
  font-weight: 700;
}

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
}

.support-widget summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #083fbd);
  box-shadow: var(--shadow);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.support-widget summary::-webkit-details-marker {
  display: none;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(320px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-panel strong {
  display: block;
  margin-bottom: 8px;
}

.support-panel p {
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 30;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: #071a38;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .main-nav,
  .header-actions {
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .main-nav,
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .order-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .plans-grid,
  .process-grid,
  .faq-grid,
  .admin-stats,
  .admin-plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .order-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero-card-grid,
  .account-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions a,
  .hero-actions button,
  .header-actions a,
  .header-actions button {
    width: 100%;
  }

  .billing-control {
    width: 100%;
  }

  .billing-option {
    flex: 1;
  }

  .map-card {
    min-height: 320px;
  }
}
