:root {
  --ink: #15142a;
  --muted: #6d6b7f;
  --line: #e8e7ef;
  --surface: #ffffff;
  --soft: #f7f7fb;
  --primary: #6d4aff;
  --primary-dark: #5032da;
  --primary-soft: #eeeaff;
  --blue: #38bdf8;
  --green: #10b981;
  --danger: #dc4963;
  --shadow: 0 24px 70px rgba(31, 27, 72, 0.12);
  --shadow-sm: 0 10px 32px rgba(31, 27, 72, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Noto Sans Myanmar", "Myanmar Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
strong {
  letter-spacing: -0.02em;
}

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

.narrow-wide {
  max-width: 1020px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

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

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 16px;
  color: #e5e7ff;
  background: var(--announcement, #272240);
  font-size: 12px;
  text-align: center;
}

.announcement-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #6ee7b7;
  box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.12);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(232, 231, 239, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #34b8f4);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(109, 74, 255, 0.3);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.primary-nav > a,
.nav-user {
  padding: 9px 13px;
  color: #5d5a70;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

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

.primary-nav .admin-link {
  color: #fff;
  background: #272240;
}

.nav-user {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button,
.primary-nav > .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font-weight: 750;
  cursor: pointer;
}

.nav-button.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.inline-form {
  display: inline;
  margin: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: var(--ink);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 12px 28px rgba(109, 74, 255, 0.28);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 16px 32px rgba(109, 74, 255, 0.34);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button-light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 11px;
  font-size: 13px;
}

.button.large {
  min-height: 56px;
}

.hero,
.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 72% 15%, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(137, 92, 255, 0.38), transparent 30%),
    linear-gradient(135deg, var(--hero-one, #201943) 0%, var(--hero-two, #322167) 48%, var(--hero-three, #223c73) 100%);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  opacity: 0.13;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(transparent, #000);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
  padding-block: 72px 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #c9c4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 2px;
  background: #69d6ff;
  border-radius: 99px;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.13;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: #6bd7ff;
  font-style: normal;
}

.hero-copy > p {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c9c7dc;
  font-size: 17px;
}

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

.trust-row {
  display: flex;
  gap: 24px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 9px;
}

.trust-row span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #8ee4ff;
  border: 1px solid rgba(142, 228, 255, 0.3);
  border-radius: 9px;
}

.trust-row strong {
  font-size: 12px;
}

.trust-row small {
  color: #aaa7c1;
  font-size: 10px;
}

.hero-visual {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  justify-self: end;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.orbit-one {
  inset: 11%;
}

.orbit-two {
  inset: 28%;
  border-style: dashed;
}

.visual-core {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(139, 99, 255, 0.96), rgba(66, 170, 240, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(96, 127, 255, 0.45);
}

.visual-core span {
  font-size: 34px;
  font-weight: 900;
}

.visual-core small {
  font-size: 9px;
  opacity: 0.8;
}

.visual-card {
  position: absolute;
  width: 116px;
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(7, 10, 38, 0.25);
  animation: float 5s ease-in-out infinite;
}

.visual-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  color: #fff;
  border-radius: 13px;
  font-weight: 900;
}

.visual-card strong {
  font-size: 12px;
}

.visual-card small {
  color: var(--muted);
  font-size: 9px;
}

.card-canva {
  top: 4%;
  left: 35%;
}

.card-canva > span {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
}

.card-capcut {
  top: 37%;
  right: -1%;
  animation-delay: -1s;
}

.card-capcut > span {
  background: #161826;
}

.card-gemini {
  bottom: 0;
  left: 38%;
  animation-delay: -2s;
}

.card-gemini > span {
  background: linear-gradient(135deg, #3b82f6, #a855f7);
}

.card-chatgpt {
  top: 40%;
  left: -1%;
  animation-delay: -3s;
}

.card-chatgpt > span {
  background: #10a37f;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.product-section,
.content-section {
  padding-block: 88px;
}

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

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.section-heading p {
  color: var(--muted);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-heading.simple {
  align-items: center;
}

.centered {
  text-align: center;
}

.search-form {
  width: min(100%, 340px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-form span {
  color: var(--muted);
  font-size: 22px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 8px 2px;
  border: 0;
  outline: 0;
}

.search-form button {
  padding: 9px 12px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
}

.product-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 24px 24px 2px;
  color: #fff;
  background: linear-gradient(145deg, #262238, #6251ad);
  border-radius: 17px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(37, 34, 56, 0.22);
}

.product-card:nth-child(4n + 1) .product-icon { background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.product-card:nth-child(4n + 2) .product-icon { background: #181927; }
.product-card:nth-child(4n + 3) .product-icon { background: linear-gradient(135deg, #2563eb, #9333ea); }
.product-card:nth-child(4n + 4) .product-icon { background: linear-gradient(135deg, #059669, #0d9488); }

.product-card-body {
  padding: 18px 24px 24px;
}

.product-name-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.product-name-row h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.availability {
  padding: 4px 7px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card-body > p {
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.product-meta {
  min-height: 62px;
  display: grid;
  gap: 5px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.product-meta span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.product-meta strong {
  color: var(--ink);
}

.card-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.steps-section {
  padding-block: 82px;
  background: var(--soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-card > span {
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.step-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero.compact {
  padding-block: 58px;
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: #cfccdf;
}

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  color: #d8d4ff;
  font-size: 13px;
  font-weight: 700;
}

.back-link.dark {
  color: var(--primary);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 24px;
}

.product-hero-inner .back-link {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.product-hero-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  font-size: 25px;
  font-weight: 900;
}

.product-hero-inner .eyebrow {
  margin-bottom: 5px;
}

.product-hero-inner h1 {
  margin-bottom: 4px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.package-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.package-top > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  font-weight: 800;
}

.package-top small {
  color: var(--muted);
}

.package-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.package-card > p {
  min-height: 68px;
  color: var(--muted);
  font-size: 13px;
}

.package-price {
  margin-block: 20px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.empty-state {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed #d8d6e2;
  border-radius: var(--radius);
  background: var(--soft);
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 18px;
  font-size: 26px;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--muted);
}

.empty-state.small {
  padding: 36px 20px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
}

.alert > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.alert-success {
  color: #066b50;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.alert-success > span {
  color: #fff;
  background: #10b981;
}

.alert-error {
  color: #9f2943;
  border-color: #fecdd3;
  background: #fff1f2;
}

.alert-error > span {
  color: #fff;
  background: var(--danger);
}

.auth-section,
.error-section {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 70px 16px;
  background:
    radial-gradient(circle at 10% 20%, rgba(109, 74, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(56, 189, 248, 0.13), transparent 28%),
    var(--soft);
}

.auth-card,
.error-card {
  width: min(100%, 480px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card h1,
.error-card h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.25;
}

.auth-card > p,
.error-card > p {
  color: var(--muted);
  font-size: 14px;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
}

.setup-icon,
.error-code {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 18px;
  font-size: 25px;
  font-weight: 900;
}

.error-card {
  text-align: center;
}

.error-code {
  width: fit-content;
  min-width: 72px;
  margin-inline: auto;
  padding: 0 16px;
}

.stack-form,
.form-grid {
  display: grid;
  gap: 17px;
}

.stack-form {
  margin-top: 26px;
}

.stack-form label,
.form-grid label {
  display: grid;
  gap: 7px;
  color: #403e52;
  font-size: 13px;
  font-weight: 750;
}

label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #dcdbe5;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 47px;
  padding: 10px 13px;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.1);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #403e52;
  font-size: 13px;
  font-weight: 750;
}

.dashboard-title,
.order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-content {
  background: var(--soft);
}

.count-pill {
  padding: 7px 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.order-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row:hover {
  background: #faf9ff;
}

.order-product-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.order-main {
  min-width: 0;
}

.order-main > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.order-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-main small,
.order-side small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.order-side {
  text-align: right;
}

.order-arrow {
  color: var(--primary);
  font-size: 20px;
}

.status-badge,
.visibility-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.large {
  padding: 8px 14px;
  font-size: 12px;
}

.status-pending {
  color: #9a5a00;
  background: #fff6d9;
}

.status-processing {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-completed {
  color: #047857;
  background: #d1fae5;
}

.status-rejected,
.status-cancelled {
  color: #be123c;
  background: #ffe4e6;
}

.checkout-section,
.order-detail-section {
  background: var(--soft);
}

.checkout-grid,
.order-detail-grid,
.admin-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 24px;
}

.checkout-form-card,
.order-summary-card,
.conversation-card,
.order-info-card,
.admin-form-card,
.admin-panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.checkout-form-card {
  padding: 32px;
}

.form-section-title {
  display: flex;
  gap: 13px;
  margin-bottom: 24px;
}

.form-section-title > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 11px;
  font-weight: 850;
}

.form-section-title h2 {
  margin-bottom: 2px;
  font-size: 20px;
}

.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-option {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px !important;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: #faf9ff;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.08);
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #c9c7d4;
  border-radius: 50%;
}

.payment-option input:checked + .payment-radio {
  border: 6px solid var(--primary);
}

.payment-details {
  display: grid;
}

.payment-details strong {
  font-size: 14px;
}

.payment-details small {
  color: var(--muted);
}

.payment-details em {
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
}

.payment-option img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.file-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px;
  border: 1px dashed #c8c5d7;
  border-radius: 13px;
  background: var(--soft);
}

.file-input > span {
  padding: 8px 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 9px;
  font-weight: 800;
}

.file-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-input em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-card,
.order-info-card {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.summary-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-product > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 14px;
  font-weight: 850;
}

.summary-product div {
  display: grid;
}

.summary-product small {
  color: var(--muted);
}

.order-summary-card dl,
.order-info-card dl {
  margin: 18px 0;
}

.order-summary-card dl > div,
.order-info-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 750;
}

dd small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.summary-total {
  margin-top: 8px;
  padding-top: 15px !important;
  border-top: 1px solid var(--line);
}

.summary-total dd {
  color: var(--primary);
  font-size: 17px;
  font-weight: 900;
}

.summary-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  color: #55516d;
  background: var(--primary-soft);
  border-radius: 13px;
  font-size: 11px;
}

.summary-note > span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 850;
}

.summary-note p {
  margin: 0;
}

.order-heading .back-link {
  margin-bottom: 13px;
}

.order-heading .eyebrow {
  display: flex;
  width: fit-content;
  margin-bottom: 8px;
}

.conversation-card {
  overflow: hidden;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.conversation-header h2 {
  margin-bottom: 2px;
  font-size: 20px;
}

.conversation-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.conversation-header > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}

.conversation-card > .alert {
  margin: 18px 24px 0;
}

.messages {
  min-height: 320px;
  max-height: 580px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: #fbfbfd;
}

.message {
  max-width: 82%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
}

.message-user .message-avatar {
  background: var(--ink);
}

.message-bubble {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 5px 16px 16px 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 27, 72, 0.05);
}

.message-user .message-bubble {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 16px 5px 16px 16px;
}

.message-bubble > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.message-bubble strong {
  font-size: 11px;
}

.message-bubble small {
  color: var(--muted);
  font-size: 9px;
}

.message-user .message-bubble small {
  color: #ded8ff;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.message-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.message-empty span {
  font-size: 30px;
}

.message-empty p {
  max-width: 380px;
}

.reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.reply-form textarea {
  min-height: 76px;
}

.order-info-card h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.break-text {
  overflow-wrap: anywhere;
}

.admin-shell {
  min-height: 760px;
  padding-block: 52px 90px;
  background: var(--soft);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-topbar .eyebrow {
  margin-bottom: 8px;
}

.admin-topbar h1 {
  margin-bottom: 5px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.admin-topbar p {
  margin: 0;
  color: var(--muted);
}

.admin-nav {
  display: flex;
  gap: 5px;
  margin-bottom: 24px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  scrollbar-width: none;
}

.admin-nav a {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: #fff;
  background: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 23px;
  color: #fff;
  border-radius: 19px;
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -30px;
  bottom: -45px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.stat-card.purple { background: linear-gradient(135deg, #7654ff, #5f3de8); }
.stat-card.blue { background: linear-gradient(135deg, #3187e8, #2763c5); }
.stat-card.green { background: linear-gradient(135deg, #16a578, #08755b); }
.stat-card.slate { background: linear-gradient(135deg, #37344c, #242235); }

.stat-card > span,
.stat-card small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.stat-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 34px;
  line-height: 1;
}

.admin-panel-card {
  padding: 24px;
}

.admin-panel-card.flush {
  padding: 0;
  overflow: hidden;
}

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

.panel-heading h2 {
  margin-bottom: 2px;
  font-size: 19px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-heading > a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 14px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #fafafd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

td small {
  display: block;
  max-width: 220px;
  color: var(--muted);
  font-size: 10px;
}

.table-link,
button.table-link {
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.admin-form-card {
  padding: 25px;
}

details > summary {
  cursor: pointer;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.add-card {
  margin-bottom: 20px;
}

.add-card > summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-card > summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
  font-size: 20px;
}

.add-card > summary > div {
  display: grid;
}

.add-card > summary small {
  color: var(--muted);
  font-size: 11px;
}

.add-card > summary em {
  margin-left: auto;
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.add-card[open] > summary {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  align-self: end;
}

.compact-form {
  gap: 12px;
}

.compact-form.no-pad {
  margin: 0;
}

.admin-product-list {
  display: grid;
  gap: 20px;
}

.admin-product-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-product-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.admin-product-icon {
  margin: 0;
}

.admin-product-header h2 {
  margin-bottom: 2px;
  font-size: 21px;
}

.admin-product-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.visibility-pill.on {
  color: #047857;
  background: #d1fae5;
}

.visibility-pill.off {
  color: #9f1239;
  background: #ffe4e6;
}

.editor-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.editor-details > summary {
  display: flex;
  justify-content: space-between;
  padding-block: 15px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.toggle-form {
  margin-top: 10px;
  text-align: right;
}

.text-button {
  padding: 5px;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.danger-text {
  color: var(--danger) !important;
}

.package-admin-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.subheading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.subheading h3 {
  margin: 0;
  font-size: 15px;
}

.subheading span {
  padding: 2px 7px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 850;
}

.package-admin-list {
  display: grid;
  gap: 8px;
}

.package-admin-item,
.add-package-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfd;
}

.package-admin-item > summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
}

.package-admin-item > summary > div {
  display: grid;
}

.package-admin-item > summary small {
  color: var(--muted);
  font-size: 10px;
}

.package-admin-item > summary > span {
  font-size: 12px;
  font-weight: 850;
}

.package-admin-item > form {
  padding: 0 15px 15px;
}

.package-admin-item > .toggle-form {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.add-package-card {
  margin-top: 10px;
  border-style: dashed;
}

.add-package-card > summary {
  padding: 13px 15px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.add-package-card > form {
  padding: 0 15px 15px;
}

.payment-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.payment-card-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.payment-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.payment-card-title h2 {
  margin-bottom: 0;
  font-size: 19px;
}

.payment-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.qr-preview {
  width: 140px;
  height: 140px;
  margin: 18px auto 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px auto;
  gap: 10px;
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  top: 10px;
  left: 13px;
  color: var(--muted);
}

.search-field input {
  padding-left: 37px;
}

.order-admin-title {
  align-items: center;
}

.admin-order-sidebar {
  display: grid;
  gap: 18px;
}

.admin-order-sidebar .order-info-card {
  position: static;
}

.admin-reply-form {
  grid-template-columns: 1fr;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 20px;
}

.settings-form {
  margin: 0;
}

.settings-tip-card {
  padding: 26px;
  color: #fff;
  background: linear-gradient(145deg, #272240, #42337c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.settings-tip-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #fff;
  border-radius: 11px;
  font-weight: 900;
}

.settings-tip-card h2 {
  margin: 18px 0 10px;
}

.settings-tip-card ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: #d4d1e3;
  font-size: 12px;
}

.site-footer {
  padding-block: 52px;
  color: #aaa7ba;
  background: #1e1b2d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: end;
  gap: 34px;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  max-width: 440px;
  margin: 12px 0 0;
  font-size: 12px;
}

.footer-grid strong {
  color: #fff;
  font-size: 12px;
}

.footer-note {
  font-size: 11px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p,
  .hero h1 {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 420px);
    justify-self: center;
  }

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

  .checkout-grid,
  .order-detail-grid,
  .admin-order-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav > a,
  .nav-user,
  .primary-nav .inline-form,
  .primary-nav .nav-button {
    width: 100%;
    text-align: left;
  }

  .menu-button {
    display: block;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 16px;
  }

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

  .hero-grid {
    min-height: auto;
    gap: 34px;
    padding-block: 56px 70px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .trust-row {
    gap: 12px;
  }

  .trust-row > div {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .trust-row span {
    grid-row: auto;
  }

  .hero-visual {
    width: min(100%, 340px);
  }

  .visual-card {
    width: 91px;
    min-height: 86px;
    padding: 9px;
    border-radius: 18px;
  }

  .visual-card > span {
    width: 34px;
    height: 34px;
  }

  .product-section,
  .content-section,
  .steps-section {
    padding-block: 60px;
  }

  .split-heading,
  .admin-topbar,
  .dashboard-title,
  .order-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    width: 100%;
  }

  .product-grid,
  .package-grid,
  .steps-grid,
  .stat-grid,
  .payment-admin-grid {
    grid-template-columns: 1fr;
  }

  .product-card-body > p,
  .package-card > p {
    min-height: auto;
  }

  .product-hero-inner {
    grid-template-columns: auto 1fr;
  }

  .auth-section,
  .error-section {
    padding: 42px 12px;
  }

  .auth-card,
  .error-card {
    padding: 26px 20px;
  }

  .order-row {
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    padding: 16px;
  }

  .order-side {
    grid-column: 2;
    text-align: left;
  }

  .order-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .checkout-grid,
  .order-detail-grid,
  .admin-order-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form-card,
  .admin-product-card,
  .admin-form-card,
  .admin-panel-card {
    padding: 20px;
  }

  .order-summary-card,
  .order-info-card {
    position: static;
  }

  .message {
    max-width: 94%;
  }

  .reply-form {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding-block: 38px 62px;
  }

  .admin-topbar .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .admin-product-header {
    grid-template-columns: auto 1fr;
  }

  .admin-product-header > .visibility-pill {
    grid-column: 1 / -1;
  }

  .package-admin-item > summary {
    grid-template-columns: 1fr auto;
  }

  .package-admin-item > summary > .visibility-pill {
    grid-column: 1 / -1;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  th,
  td {
    min-width: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Product media and delivery settings */
.product-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.link-required-pill,
.hero-detail-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.hero-detail-pill {
  margin-top: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.admin-product-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.admin-product-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.product-quick-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.product-quick-actions .toggle-form {
  margin: 0;
}

.switch-row {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  cursor: pointer;
}

.switch-row > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd1db;
  transition: background 160ms ease;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.switch-row > input:checked + .switch-control {
  background: var(--primary);
}

.switch-row > input:checked + .switch-control::after {
  transform: translateX(18px);
}

.switch-row > span:last-child {
  display: grid;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
}

.check-row input,
.scope-option input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

/* Wallet checkout and user balance */
.manual-payment-fields {
  display: grid;
  gap: 17px;
}

.manual-payment-fields[hidden] {
  display: none;
}

.wallet-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 13px;
  font-weight: 900;
}

.payment-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wallet-summary-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--hero-one), var(--hero-two), var(--hero-three));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.wallet-summary-card > div:first-child {
  display: grid;
}

.wallet-summary-card > div:first-child span,
.wallet-summary-card > div:first-child small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.wallet-summary-card > div:first-child strong {
  margin-block: 4px;
  font-size: 30px;
}

.wallet-history-compact {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-history-compact > summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 800;
}

.wallet-history-compact > div {
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-history-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.wallet-history-row > span {
  display: grid;
}

.wallet-history-row small {
  color: rgba(255, 255, 255, 0.62);
}

.money-in { color: #07966d; }
.money-out { color: #d94762; }
.wallet-summary-card .money-in { color: #7cf1c5; }
.wallet-summary-card .money-out { color: #ffacba; }

.admin-balance-card {
  display: grid;
  min-width: 220px;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-balance-card span {
  font-size: 10px;
  opacity: 0.78;
}

.admin-balance-card strong {
  font-size: 23px;
}

.wallet-admin-grid,
.api-admin-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}

.wallet-adjust-form {
  margin: 0;
}

.wallet-ledger-card {
  padding: 0;
  overflow: hidden;
}

.wallet-ledger-card > .panel-heading {
  padding: 22px 22px 0;
}

.wallet-type {
  padding: 4px 7px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

/* Theme picker */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 20px;
}

.settings-layout .settings-form {
  margin: 0;
}

.theme-panel {
  padding: 25px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-option {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.theme-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.theme-option > input {
  position: absolute;
  opacity: 0;
}

.theme-preview {
  grid-row: 1 / 3;
  width: 68px;
  height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 15px 1fr;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  background: var(--swatch-soft);
}

.theme-preview i:nth-child(1) { grid-column: 1 / 3; background: var(--swatch-primary); }
.theme-preview i:nth-child(2) { background: var(--swatch-ink); opacity: 0.82; }
.theme-preview i:nth-child(3) { margin: 7px; background: #fff; border-radius: 4px; }
.theme-swatch-violet { --swatch-primary: #6d4aff; --swatch-soft: #eeeaff; --swatch-ink: #17152a; }
.theme-swatch-ocean { --swatch-primary: #2563eb; --swatch-soft: #eaf1ff; --swatch-ink: #12213d; }
.theme-swatch-emerald { --swatch-primary: #059669; --swatch-soft: #e7f8f1; --swatch-ink: #132a25; }
.theme-swatch-rose { --swatch-primary: #e11d78; --swatch-soft: #fff0f6; --swatch-ink: #321827; }
.theme-swatch-amber { --swatch-primary: #d97706; --swatch-soft: #fff5df; --swatch-ink: #302316; }
.theme-swatch-midnight { --swatch-primary: #4f46e5; --swatch-soft: #eeefff; --swatch-ink: #111827; }
.theme-swatch-mono { --swatch-primary: #334155; --swatch-soft: #edf1f5; --swatch-ink: #111827; }
.theme-swatch-sky { --swatch-primary: #0284c7; --swatch-soft: #e8f7ff; --swatch-ink: #122736; }
.theme-swatch-cocoa { --swatch-primary: #92400e; --swatch-soft: #fbf0e8; --swatch-ink: #2c211c; }
.theme-swatch-aurora { --swatch-primary: #7c3aed; --swatch-soft: #f1eaff; --swatch-ink: #20172e; }
.theme-option strong { align-self: end; font-size: 12px; }
.theme-option small { align-self: start; color: var(--muted); font-size: 9px; line-height: 1.45; }

.settings-save-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.settings-save-bar span {
  color: var(--muted);
  font-size: 11px;
}

/* Admin API */
.api-secret-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--hero-one), var(--hero-two));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.api-secret-card h2 {
  margin: 3px 0;
  font-size: 20px;
}

.api-secret-card p,
.api-secret-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}

.api-secret-card code {
  min-width: 0;
  padding: 13px;
  overflow-wrap: anywhere;
  color: #dffcf2;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 11px;
  font-size: 11px;
}

.api-key-form {
  margin: 0;
}

.scope-grid {
  display: grid;
  gap: 8px;
}

.scope-option {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.scope-option > span {
  display: grid;
}

.scope-option strong { font-size: 11px; }
.scope-option small { color: var(--muted); font-size: 9px; }

.api-key-list-card {
  padding: 22px;
}

.api-key-list {
  display: grid;
  gap: 9px;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}

.api-key-row > div:first-child,
.api-key-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.api-key-row code,
.api-key-row small,
.api-key-meta small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.api-key-meta {
  justify-items: end;
}

.api-docs-card,
.audit-card {
  margin-top: 20px;
}

.api-docs-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.api-docs-card > summary span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.api-docs-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.api-docs-content pre {
  overflow-x: auto;
  padding: 14px;
  color: #d8f7ed;
  background: #151b2c;
  border-radius: 12px;
  font-size: 11px;
}

.endpoint-list {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.endpoint-list > * {
  padding: 10px 12px;
  background: var(--surface);
  font-size: 11px;
}

.endpoint-list span {
  color: var(--muted);
}

.api-warning {
  margin-top: 14px;
  padding: 13px;
  color: #7c2d12;
  background: #fff7ed;
  border-radius: 11px;
  font-size: 11px;
}

.api-warning p {
  margin: 3px 0 0;
}

@media (max-width: 980px) {
  .wallet-admin-grid,
  .api-admin-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .api-secret-card {
    grid-template-columns: 1fr auto;
  }

  .api-secret-card > code {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .admin-product-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-product-header > .link-required-pill,
  .admin-product-header > .visibility-pill {
    grid-column: auto;
  }

  .wallet-summary-card,
  .api-secret-card,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .api-secret-card > code {
    grid-column: auto;
    grid-row: auto;
  }

  .api-secret-card .button,
  .settings-save-bar .button {
    width: 100%;
  }

  .api-key-row {
    grid-template-columns: 1fr auto;
  }

  .api-key-meta {
    justify-items: start;
  }

  .api-key-row > form {
    grid-column: 2;
    grid-row: 1;
  }

  .endpoint-list {
    grid-template-columns: 1fr;
  }

  .settings-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-balance-card {
    min-width: 0;
  }
}

/* Simplified customer storefront */
.nav-account {
  display: grid !important;
  gap: 0;
  min-width: 126px;
  padding-block: 6px !important;
  border: 1px solid var(--line);
  background: var(--soft);
  line-height: 1.25;
}

.nav-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.hero-minimal,
.hero-minimal .hero-grid {
  min-height: 440px;
}

.hero-simple {
  grid-template-columns: 1fr;
  padding-block: 72px;
}

.hero-simple .hero-copy {
  max-width: 760px;
}

.hero-simple .hero-copy > p {
  max-width: 560px;
}

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

.product-meta {
  min-height: 0;
  padding-block: 12px;
}

.product-buy-button {
  min-height: 44px;
  margin-top: 16px;
  border-radius: 12px;
  font-size: 13px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-topup-link {
  width: fit-content;
  margin-top: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wallet-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.wallet-hero-balance {
  display: grid;
  min-width: 240px;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.wallet-hero-balance span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.wallet-hero-balance strong {
  font-size: 25px;
}

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

.wallet-topup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 24px;
}

.topup-history-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.topup-user-list {
  display: grid;
  gap: 8px;
}

.topup-user-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.topup-user-list article > div {
  display: grid;
  min-width: 0;
}

.topup-user-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topup-filter {
  grid-template-columns: 220px auto;
  justify-content: start;
}

.topup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.stat-card.amber {
  background: linear-gradient(135deg, #d97706, #b45309);
}

@media (max-width: 980px) {
  .wallet-topup-grid {
    grid-template-columns: 1fr;
  }

  .topup-history-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-minimal,
  .hero-minimal .hero-grid {
    min-height: 380px;
  }

  .hero-simple {
    padding-block: 54px;
  }

  .hero-simple .hero-copy {
    text-align: left;
  }

  .hero-simple .hero-copy > p,
  .hero-simple .hero-copy > h1 {
    margin-inline: 0;
  }

  .hero-simple .hero-actions {
    justify-content: flex-start;
  }

  .wallet-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-hero-balance {
    min-width: 0;
  }

  .dashboard-actions .button {
    flex: 1 1 150px;
  }

  .nav-account {
    min-width: 0;
  }

  .topup-filter {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Customer panel — clean SMM-inspired experience */
.customer-shell,
.admin-page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(109, 74, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 90% 26%, rgba(56, 189, 248, 0.08), transparent 22rem),
    var(--soft);
}

.customer-shell main,
.admin-page-shell main {
  min-height: calc(100vh - 150px);
}

.panel-header {
  position: sticky;
  z-index: 120;
  top: 0;
  color: #fff;
  background:
    radial-gradient(circle at 75% 0, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(125deg, var(--primary-dark), var(--primary) 58%, var(--blue));
  box-shadow: 0 10px 32px rgba(36, 38, 94, 0.18);
}

.panel-header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.panel-menu-button,
.panel-menu-close {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.panel-menu-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.panel-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 20px;
  background: #fff;
}

.panel-brand {
  width: fit-content;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.panel-header .panel-brand {
  min-height: 48px;
  padding: 6px 15px 6px 7px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(33, 31, 90, 0.14);
}

.panel-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--primary), var(--blue));
  box-shadow: 0 8px 18px rgba(71, 79, 213, 0.28);
  font-size: 17px;
  font-weight: 900;
}

.panel-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-header-account {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.panel-header-avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.panel-header-name,
.panel-header-balance {
  display: grid;
  line-height: 1.25;
}

.panel-header-name small,
.panel-header-balance small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.panel-header-name strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.panel-header-balance {
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
}

.panel-header-balance strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.panel-menu-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgba(11, 16, 38, 0.52);
  backdrop-filter: blur(3px);
}

.panel-drawer {
  position: fixed;
  z-index: 210;
  inset: 0 auto 0 0;
  width: min(340px, 90vw);
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 28px 0 70px rgba(15, 20, 52, 0.24);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms ease;
}

.panel-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.panel-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-menu-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--soft);
  font-size: 27px;
  line-height: 1;
}

.drawer-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  margin-block: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.drawer-avatar {
  width: 45px;
  height: 45px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--blue));
  font-weight: 900;
}

.drawer-account-card > span:nth-child(2),
.drawer-account-card > a {
  min-width: 0;
  display: grid;
  line-height: 1.3;
}

.drawer-account-card > a {
  grid-column: 2;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--primary);
}

.drawer-account-card small {
  color: var(--muted);
  font-size: 9px;
}

.drawer-account-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.drawer-links {
  display: grid;
  gap: 7px;
}

.drawer-links a {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 7px 12px 7px 8px;
  color: #5c6071;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
}

.drawer-links a > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f0f2f8;
  font-size: 17px;
}

.drawer-links a:hover,
.drawer-links a.active {
  color: var(--primary-dark);
  border-color: rgba(109, 74, 255, 0.14);
  background: var(--primary-soft);
}

.drawer-links a.active > span {
  color: #fff;
  background: var(--primary);
}

.drawer-links .drawer-admin-link {
  margin-top: 8px;
  color: #fff;
  background: #25233d;
}

.drawer-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.drawer-footer p {
  display: grid;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.drawer-footer form,
.drawer-footer button {
  width: 100%;
}

.drawer-footer button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #be3653;
  border: 1px solid #ffe1e7;
  border-radius: 12px;
  background: #fff5f7;
  font-weight: 800;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

.panel-bottom-nav {
  display: none;
}

.panel-page,
.panel-page-top {
  background: transparent;
}

.panel-page {
  padding-block: 38px 68px;
}

.panel-page-top {
  padding-block: 36px 14px;
}

.panel-page-container {
  max-width: 1000px;
}

.customer-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(219, 224, 237, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(36, 43, 80, 0.08);
}

.customer-identity,
.customer-balance {
  display: flex;
  align-items: center;
}

.customer-identity {
  min-width: 0;
  gap: 13px;
}

.customer-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary), var(--blue));
  box-shadow: 0 10px 24px rgba(71, 79, 213, 0.24);
  font-size: 20px;
  font-weight: 900;
}

.customer-identity > span:last-child,
.customer-balance > span {
  min-width: 0;
  display: grid;
  line-height: 1.3;
}

.customer-overview small,
.page-balance-card small {
  color: var(--muted);
  font-size: 10px;
}

.customer-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.customer-balance {
  gap: 16px;
  padding: 10px 12px 10px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.customer-balance strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.customer-balance a {
  padding: 9px 12px;
  color: #fff;
  border-radius: 10px;
  background: var(--primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.product-shortcuts {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
  padding: 4px 1px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-shortcut-label,
.product-shortcut {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 43, 80, 0.06);
}

.product-shortcut-label {
  grid-template-columns: auto 1fr;
  min-width: 118px;
  color: var(--primary-dark);
  border-color: rgba(109, 74, 255, 0.28);
  background: var(--primary-soft);
}

.product-shortcut-label i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--ink);
  font-style: normal;
}

.product-shortcut > span,
.product-shortcut > img {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--primary), var(--blue));
  font-weight: 900;
}

.product-shortcut small {
  max-width: 74px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shortcut.active {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.08);
}

.panel-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-block: 34px 22px;
}

.panel-page-heading h1,
.panel-order-heading h1 {
  margin: 3px 0 6px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.panel-page-heading p,
.panel-order-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-kicker {
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.quiet-link,
.quiet-back-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.quiet-back-link {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
}

.new-order-card {
  max-width: 780px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(36, 43, 80, 0.09);
}

.new-order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.new-order-fields label {
  display: grid;
  gap: 9px;
  color: #383b4c;
  font-size: 13px;
  font-weight: 800;
}

.new-order-fields label > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-order-fields label b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  background: var(--primary);
  font-size: 10px;
}

.new-order-fields select {
  min-height: 56px;
  padding-inline: 15px;
  border-radius: 14px;
  background-color: #fff;
  font-weight: 700;
}

.selected-order-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-block: 20px;
  padding: 18px;
  border: 1px solid #e5e8f1;
  border-radius: 15px;
  background: #f6f7fb;
}

.selected-order-summary > div {
  display: grid;
  align-content: start;
  gap: 3px;
}

.selected-order-summary small {
  color: var(--muted);
  font-size: 10px;
}

.selected-order-summary > div:first-child strong {
  color: var(--primary-dark);
  font-size: 24px;
}

.selected-order-summary > div:nth-child(2) strong {
  font-size: 13px;
}

.selected-order-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: pre-line;
}

.delivery-requirement {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  color: #92400e;
  border-radius: 99px;
  background: #fff2d7;
  font-size: 9px;
  font-weight: 800;
}

.new-order-submit {
  min-height: 54px;
}

.new-order-help {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.orders-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 17px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
}

.orders-balance-strip span {
  display: grid;
}

.orders-balance-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.orders-balance-strip a {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 10px;
  font-weight: 800;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.orders-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.orders-toolbar span {
  color: var(--muted);
  font-size: 11px;
}

.clean-order-list {
  border-radius: 17px;
  box-shadow: 0 12px 36px rgba(36, 43, 80, 0.07);
}

.clean-wallet-history {
  margin-top: 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.clean-wallet-history > summary {
  color: var(--ink);
}

.clean-wallet-history > div {
  border-color: var(--line);
}

.clean-wallet-history .money-in { color: #047857; }
.clean-wallet-history .money-out { color: #be123c; }

.page-balance-card {
  min-width: 210px;
  display: grid;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 43, 80, 0.06);
}

.page-balance-card strong {
  color: var(--primary-dark);
  font-size: 19px;
}

.clean-topup-grid,
.panel-checkout-section .checkout-grid,
.panel-order-section .order-detail-grid {
  gap: 18px;
}

.clean-form-card,
.panel-checkout-section .checkout-form-card,
.panel-checkout-section .order-summary-card,
.panel-order-section .conversation-card,
.panel-order-section .order-info-card,
.clean-history-card {
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(36, 43, 80, 0.07);
}

.wallet-page .panel-page-heading {
  margin-top: 0;
}

.panel-checkout-section,
.panel-order-section {
  padding-top: 16px;
  background: transparent;
}

.panel-order-heading {
  margin-block: 0 20px;
}

.panel-empty {
  border-style: solid;
  background: #fff;
  box-shadow: 0 12px 36px rgba(36, 43, 80, 0.06);
}

.panel-footer {
  padding-block: 22px;
  color: #85889a;
  border-top: 1px solid rgba(219, 224, 237, 0.9);
  background: rgba(255, 255, 255, 0.74);
}

.panel-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
}

.simple-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.simple-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simple-header-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
}

/* Minimal premium authentication */
.auth-shell {
  min-height: 100vh;
  background: #f4f6fb;
}

.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
}

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(98, 222, 255, 0.34), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(158, 118, 255, 0.34), transparent 30%),
    linear-gradient(145deg, #15183d, var(--primary-dark) 60%, #215eb8);
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.auth-visual::before {
  width: 430px;
  height: 430px;
}

.auth-visual::after {
  width: 270px;
  height: 270px;
  border-style: dashed;
}

.auth-visual-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.auth-visual-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 60px rgba(4, 8, 35, 0.28);
  backdrop-filter: blur(12px);
  font-size: 40px;
  font-weight: 900;
}

.auth-visual-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1.45;
}

.auth-visual-inner strong {
  color: #fff;
  font-size: 36px;
}

.auth-form-side {
  display: grid;
  place-items: center;
  padding: 52px 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(109, 74, 255, 0.08), transparent 22rem),
    #f7f8fc;
}

.auth-card.auth-card-clean {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid #e3e6ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 42, 78, 0.1);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 17px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f3f8;
}

.auth-tabs a {
  padding: 9px;
  color: var(--muted);
  border-radius: 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.auth-tabs a.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 42, 78, 0.08);
}

.auth-heading {
  margin-block: 28px 20px;
}

.auth-heading > span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.auth-heading h1 {
  margin: 5px 0 7px;
  font-size: 28px;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-form {
  margin-top: 0;
  gap: 15px;
}

.auth-form label {
  gap: 7px;
  font-size: 11px;
}

.auth-form input {
  min-height: 52px;
  padding-inline: 14px;
  border-radius: 12px;
}

.auth-submit {
  min-height: 52px;
  margin-top: 3px;
}

.auth-card-clean .auth-switch {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .auth-stage {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .auth-visual-inner p {
    font-size: 18px;
  }

  .auth-visual-inner strong {
    font-size: 28px;
  }

  .new-order-card {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .customer-shell main {
    min-height: calc(100vh - 138px);
    padding-bottom: 74px;
  }

  .panel-header-inner {
    min-height: 70px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .panel-header .panel-brand {
    min-width: 0;
    min-height: 44px;
    padding: 5px 10px 5px 6px;
  }

  .panel-brand-name {
    max-width: 120px;
    font-size: 14px;
  }

  .panel-menu-button {
    width: 44px;
    height: 44px;
  }

  .panel-header-name,
  .panel-header-balance {
    display: none;
  }

  .panel-header-avatar {
    width: 42px;
    height: 42px;
  }

  .panel-bottom-nav {
    position: fixed;
    z-index: 150;
    inset: auto 0 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #e2e5ee;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(35, 42, 78, 0.08);
    backdrop-filter: blur(16px);
  }

  .panel-bottom-nav a,
  .panel-bottom-nav button {
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px;
    color: #74788b;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .panel-bottom-nav span {
    font-size: 20px;
    line-height: 1;
  }

  .panel-bottom-nav small {
    font-size: 8px;
    font-weight: 750;
  }

  .panel-bottom-nav a.active {
    color: var(--primary);
  }

  .panel-page {
    padding-block: 18px 32px;
  }

  .panel-page-top {
    padding-block: 20px 6px;
  }

  .customer-overview {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    gap: 8px;
    padding: 11px;
    border-radius: 17px;
  }

  .customer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 13px;
  }

  .customer-identity {
    gap: 9px;
  }

  .customer-identity strong {
    font-size: 13px;
  }

  .customer-balance {
    min-width: 0;
    justify-content: space-between;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .customer-balance strong {
    max-width: 120px;
    font-size: 13px;
  }

  .customer-balance a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border-radius: 9px;
    font-size: 0;
  }

  .customer-balance a::first-letter {
    font-size: 16px;
  }

  .product-shortcuts {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .product-shortcut-label,
  .product-shortcut {
    min-width: 70px;
    min-height: 66px;
    border-radius: 14px;
  }

  .product-shortcut-label {
    min-width: 106px;
  }

  .panel-page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-block: 25px 15px;
  }

  .panel-page-heading .button,
  .panel-page-heading .quiet-link {
    width: fit-content;
  }

  .panel-page-heading h1,
  .panel-order-heading h1 {
    font-size: 25px;
  }

  .new-order-card {
    padding: 18px;
    border-radius: 18px;
  }

  .new-order-fields,
  .selected-order-summary {
    grid-template-columns: 1fr;
  }

  .selected-order-summary {
    gap: 12px;
    margin-block: 16px;
    padding: 15px;
  }

  .selected-order-summary > div:first-child strong {
    font-size: 21px;
  }

  .delivery-requirement {
    position: static;
  }

  .order-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-balance-card {
    min-width: 0;
    width: 100%;
  }

  .wallet-topup-grid,
  .panel-checkout-section .checkout-grid,
  .panel-order-section .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    display: block;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-side {
    min-height: 100vh;
    padding: 24px 14px;
  }

  .auth-card.auth-card-clean {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .auth-heading {
    margin-block: 24px 18px;
  }

  .auth-heading h1 {
    font-size: 25px;
  }

  .panel-footer {
    display: none;
  }
}

@media (max-width: 430px) {
  .panel-brand-name {
    max-width: 92px;
  }

  .customer-overview {
    grid-template-columns: 1fr;
  }

  .customer-balance {
    padding-left: 54px;
  }

  .customer-balance strong {
    max-width: 190px;
  }
}
