:root {
  --bg: #0a1628;
  --bg2: #102038;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #f2f6fb;
  --muted: #9db0c7;
  --accent: #3ecf8e;
  --accent2: #2a9f6c;
  --line: rgba(255, 255, 255, 0.12);
  --warn: #e6b450;
  --err: #f07178;
  --font: "Noto Sans Myanmar", "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "IBM Plex Sans", "Noto Sans Myanmar", sans-serif;
  --radius: 14px;
  --tap: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 1.05rem;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav-link:hover {
  text-decoration: none;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
.nav-link:active {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(1px);
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  max-width: min(100%, 28rem);
}
.login-box {
  margin: 1rem 0;
  min-height: 44px;
}
.auth-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0 1.25rem;
}
.order-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.order-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--panel);
}
.order-list a { font-size: 0.95rem; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.25) 0%, rgba(10, 22, 40, 0.88) 70%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, #1a4d6e 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, #0f3d32 0%, transparent 50%),
    linear-gradient(135deg, #0a1628 0%, #12304a 45%, #0c241c 100%);
}
.hero-inner {
  max-width: 40rem;
  animation: rise 0.9s ease both;
}
.brand-mark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}
.hero h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #062016;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--accent2); text-decoration: none; transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.secondary:hover { border-color: var(--muted); background: var(--panel); }
.btn.block { width: 100%; }

.section {
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  animation: rise 0.7s ease both;
}
.section .sub {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  animation: rise 0.8s ease both;
}
.plan:nth-child(2) { animation-delay: 0.08s; }
.plan:nth-child(3) { animation-delay: 0.16s; }
.plan-label {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}
.plan-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.plan-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.order-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.order-form label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.order-form select,
.order-form input[type="text"],
.order-form input[type="number"],
.order-form input[type="tel"],
.order-form input[type="password"],
.order-form input[type="email"],
.order-form input[type="file"] {
  width: 100%;
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.order-form input::placeholder {
  color: rgba(157, 176, 199, 0.55);
}
.order-form select:focus,
.order-form input[type="text"]:focus,
.order-form input[type="number"]:focus,
.order-form input[type="tel"]:focus,
.order-form input[type="password"]:focus,
.order-form input[type="email"]:focus {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15);
  background: rgba(0, 0, 0, 0.45);
}
/* Chrome/Safari autofill stays readable on dark UI */
.order-form input:-webkit-autofill,
.order-form input:-webkit-autofill:hover,
.order-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #0e1a2c inset;
  transition: background-color 9999s ease-out;
}
.auth-form {
  max-width: 28rem;
  gap: 1.1rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth-form .field-wrap {
  position: relative;
}
.auth-form .toggle-pass {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  min-height: 36px;
  padding: 0 0.65rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.auth-form .toggle-pass:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
.auth-form input[type="password"],
.auth-form input.has-toggle {
  padding-right: 4.5rem;
}
.hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.25rem 0 0;
}

.pay-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pay-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel);
}
.pay-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.pay-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.65rem 0;
}
.pay-label {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 4.5rem;
}
.pay-value {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(62, 207, 142, 0.12);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  word-break: break-all;
  user-select: all;
  cursor: text;
}
.btn-copy {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn-copy:hover { background: rgba(62, 207, 142, 0.15); }
.pay-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.pay-names li::before {
  content: "· ";
  color: var(--accent);
}
.mono { font-family: ui-monospace, "IBM Plex Mono", monospace; word-break: break-all; }

.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
}
.flash.ok { background: rgba(62, 207, 142, 0.15); color: var(--accent); }
.flash.error { background: rgba(240, 113, 120, 0.15); color: var(--err); }

.order-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3.5rem;
}
.order-wrap h1 { font-size: 1.5rem; margin: 0 0 0.35rem; }
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.status-pill.fulfilled { color: var(--accent); }
.status-pill.paid, .status-pill.awaiting_receipt, .status-pill.verifying { color: var(--warn); }
.status-pill.cancelled, .status-pill.rejected { color: var(--err); }

.ss-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0;
}
.ss-box code {
  display: block;
  word-break: break-all;
  font-size: 0.88rem;
  color: var(--accent);
}
.qr {
  width: min(240px, 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0.75rem 0;
}
.warn-box {
  border: 1px solid rgba(230, 180, 80, 0.35);
  background: rgba(230, 180, 80, 0.1);
  color: var(--warn);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.upload-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 14, 26, 0.82);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.upload-overlay.is-open {
  display: flex;
}
.upload-card {
  width: min(360px, 100%);
  background: #102038;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  text-align: center;
}
.upload-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.upload-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 0.2s ease;
}
.progress-bar.is-indeterminate {
  width: 40% !important;
  animation: progress-slide 1.1s ease-in-out infinite;
}
.progress-pct {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
@keyframes progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

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

@media (max-width: 600px) {
  .hero { padding-bottom: 2.5rem; }
  .brand-mark { font-size: 2.4rem; }
  .site-header {
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  .nav-link {
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }
  .nav-row {
    max-width: 70%;
  }
}
