:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
  background: #fff4fb;
  color: #15121a;
  --pink: #ee5bd4;
  --pink-2: #ff8ee7;
  --deep: #09060d;
  --card: #ffffff;
  --muted: #71657a;
  --line: #f1d8ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 103, 219, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff3fb 0%, #fff 42%, #fff5fc 100%);
}

a {
  color: #d633b9;
  text-decoration: none;
}

.tutorial-page {
  min-height: 100vh;
}

.tutorial-shell {
  min-height: 100vh;
}

.customer-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.hero {
  overflow: hidden;
  min-height: 430px;
  background:
    radial-gradient(circle at 72% 56%, rgba(238, 91, 212, 0.24), transparent 14rem),
    linear-gradient(135deg, #08060b, #120817 55%, #060407);
  color: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 24px 70px rgba(65, 12, 56, 0.22);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 56px;
  background: linear-gradient(90deg, #e653cf, #fb85e7);
  font-size: 22px;
}

.logo-dot {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #08060b;
  border: 3px solid rgba(255,255,255,0.75);
}

.logo-dot::before,
.logo-dot::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 14px;
  height: 16px;
  background: #08060b;
  border-radius: 3px 12px 4px 10px;
  z-index: -1;
}

.logo-dot::before {
  left: 5px;
  transform: rotate(-28deg);
}

.logo-dot::after {
  right: 5px;
  transform: rotate(28deg) scaleX(-1);
}

.logo-dot span,
.logo-dot span::before {
  content: "";
  position: absolute;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.logo-dot span {
  left: 10px;
}

.logo-dot span::before {
  left: 14px;
  top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 34px;
  padding: 54px 84px 68px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8b6a94;
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow.pink {
  color: #ff9be9;
}

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

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  color: var(--pink-2);
}

h2 {
  font-size: 22px;
}

.hero-copy {
  display: none;
  max-width: 470px;
  margin-top: 22px;
  color: #efe3ee;
  font-size: 18px;
  line-height: 1.8;
}

.hero-contact-card {
  width: min(640px, 100%);
  margin-top: 28px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 148px;
  align-items: center;
  gap: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  color: #17111b;
  box-shadow: 0 18px 42px rgba(238, 91, 212, 0.24);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff0fb;
  border: 1px solid #f4c9ea;
}

.contact-icon span {
  position: relative;
  width: 30px;
  height: 22px;
  border: 3px solid #100b14;
  border-radius: 7px;
}

.contact-icon span::before,
.contact-icon span::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #100b14;
}

.contact-icon span::before {
  left: 7px;
}

.contact-icon span::after {
  right: 7px;
}

.contact-icon span {
  box-shadow: 0 9px 0 -6px #100b14;
}

.contact-copy {
  display: grid;
  gap: 4px;
}

.contact-copy span {
  color: #7a607c;
  font-weight: 700;
  font-size: 15px;
}

.contact-copy strong {
  color: #d633b9;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
}

.contact-action {
  min-height: 52px;
  padding: 0 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.hero-contact-card .contact-action {
  grid-column: 3;
}

.hero-contact-card .contact-action.primary {
  grid-row: 1;
}

.hero-contact-card .contact-action.ghost {
  grid-row: 2;
}

.contact-action.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #e653cf, #fb85e7);
  box-shadow: 0 12px 26px rgba(238, 91, 212, 0.28);
}

.contact-action.ghost {
  color: #d633b9;
  background: #fff5fc;
  border: 1px solid #f2bde7;
}

.can-art {
  position: relative;
  height: 300px;
  display: grid;
  place-items: center;
}

.can-body {
  width: 280px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 38px 38px 22px 22px;
  background: linear-gradient(90deg, #d835bf, #ff8ce8 50%, #d631b8);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.18), 0 32px 60px rgba(238, 91, 212, 0.32);
}

.can-lid {
  position: absolute;
  top: 28px;
  width: 300px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb5ef, #ee5bd4);
  border: 9px solid #d23abb;
}

.cat-face {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #0c0810;
  border: 8px solid rgba(255,255,255,0.86);
}

.cat-face::before,
.cat-face::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 34px;
  height: 42px;
  background: #0c0810;
  border-radius: 6px 24px 8px 22px;
  z-index: -1;
}

.cat-face::before {
  left: 10px;
  transform: rotate(-26deg);
}

.cat-face::after {
  right: 10px;
  transform: rotate(26deg) scaleX(-1);
}

.cat-face span,
.cat-face span::before {
  content: "";
  position: absolute;
  top: 44px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.cat-face span {
  left: 30px;
}

.cat-face span::before {
  left: 31px;
  top: 0;
}

.flow-card,
.panel {
  width: min(100%, 820px);
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(126, 39, 108, 0.12);
}

.flow {
  display: grid;
  gap: 18px;
}

.step {
  border: 1px solid #f3d7ed;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fff8fd);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
}

.step-title span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b55d9, #f05bd6);
  color: #fff;
}

.inline-form,
.form {
  display: grid;
  gap: 14px;
}

.query-line {
  grid-template-columns: 1fr auto;
}

label {
  display: grid;
  gap: 8px;
  color: #403247;
}

input,
textarea,
select,
button {
  font: inherit;
  border-radius: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #e7cce2;
  padding: 14px 16px;
  background: #fff;
  color: #15121a;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

button {
  border: 0;
  background: linear-gradient(135deg, #f05bd6, #ff8be7);
  color: #fff;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  background: #d1d5db;
  color: #ffffff;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost {
  background: #fff1fb;
  color: #b51b96;
  border: 1px solid #f2b8e6;
}

.danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.status,
.role-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff5d9;
  color: #7a4500;
  line-height: 1.65;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: #eef7ff;
  border: 1px solid #dbecff;
  border-radius: 14px;
  padding: 16px;
}

.role-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #07050a;
  box-shadow: 0 8px 22px rgba(59, 14, 51, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-ok {
  padding: 6px 10px;
  color: #3f8b18;
  background: #ecffd8;
  border-radius: 8px;
}

.warn {
  color: #be123c;
}

.match-tip {
  margin-top: 10px;
  color: #be123c;
  text-align: center;
}

.lookup-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 14px 30px rgba(142, 30, 120, 0.24);
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.compact {
  width: 100%;
  padding: 20px;
}

.login-card {
  max-width: 460px;
  margin-top: 42px;
}

.auth-page .admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-page .login-card {
  margin: 0;
}

.brand,
.toolbar,
.actions,
.section-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  margin-bottom: 22px;
}

.hidden {
  display: none !important;
}

.grid {
  display: grid;
  gap: 18px;
}

.split {
  grid-template-columns: 1fr 1fr auto;
}

.secondary-panel {
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.stat {
  background: #ffffff;
  border: 1px solid #efd3e8;
  border-radius: 12px;
  padding: 14px;
}

.stat span {
  display: block;
  color: #7d6a82;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 28px;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #f1d8ec;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff6fc, #fdf0ff);
}

.balance-card span {
  display: block;
  color: #7d6a82;
  margin-bottom: 8px;
}

.balance-card strong {
  color: #c016a1;
  font-size: 34px;
}

.actions {
  justify-content: flex-start;
  margin: 12px 0;
}

.actions.no-margin {
  margin: 0;
}

.muted {
  color: #796b82;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 16px;
}

.filter-bar select:nth-of-type(2) {
  min-width: 260px;
}

.card-generate-form {
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
}

.password-form {
  grid-template-columns: 1fr 1fr 180px auto;
}

.mufy-account-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(170px, 1fr) 170px auto;
}

.link-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b51b96;
  box-shadow: none;
}

.section-head {
  margin-bottom: 10px;
}

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

th,
td {
  border-bottom: 1px solid #f0d9ec;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #765a80;
  font-weight: 700;
}

td button {
  padding: 7px 10px;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1e7ef;
  color: #4c4150;
}

.pill.success,
.pill.used {
  background: #dcfce7;
  color: #166534;
}

.pill.failed,
.pill.revoked {
  background: #fee2e2;
  color: #991b1b;
}

.pill.running,
.pill.queued,
.pill.reserved {
  background: #dbeafe;
  color: #1e40af;
}

.order-card {
  display: grid;
  gap: 6px;
}

.order-card.ok {
  color: #166534;
}

.order-card.bad {
  color: #991b1b;
}

.order-card.pending {
  color: #7a4500;
}

dialog {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 20px;
}

dialog::backdrop {
  background: rgba(15, 7, 18, 0.54);
}

.tutorial-page {
  min-height: 100vh;
}

.tutorial-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.tutorial-hero,
.tutorial-step-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 24px 70px rgba(238, 91, 212, 0.14);
}

.tutorial-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 46px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(238, 91, 212, 0.34), transparent 16rem),
    linear-gradient(135deg, #08060b, #120817 58%, #060407);
}

.tutorial-hero h1 {
  margin-top: 6px;
  font-size: clamp(36px, 6vw, 62px);
}

.tutorial-lead {
  max-width: 720px;
  margin-top: 16px;
  color: #f7e8f4;
  font-size: 18px;
  line-height: 1.8;
}

.tutorial-hint {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffd5f5;
  background: rgba(238, 91, 212, 0.18);
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 800;
}

.tutorial-back {
  align-self: start;
  min-width: 132px;
}

.tutorial-step-card {
  margin-top: 22px;
  padding: 28px;
}

.tutorial-step-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.tutorial-step-head > span {
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #8d55de, #ee5bd4);
  box-shadow: 0 14px 28px rgba(142, 77, 218, 0.22);
  font-size: 22px;
  font-weight: 900;
}

.tutorial-step-head h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.tutorial-step-head p {
  color: var(--muted);
  line-height: 1.8;
}

.tutorial-note {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #9a4f00;
  background: #fff4cf;
  border: 1px solid #ffe4a1;
  font-weight: 800;
}

.tutorial-gallery {
  display: grid;
  gap: 22px;
}

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

.tutorial-gallery-single {
  grid-template-columns: minmax(0, 1fr);
}

.tutorial-shot {
  margin: 0;
}

.tutorial-shot-frame {
  overflow: hidden;
  border-radius: 14px;
  background: #fff5fc;
  border: 1px solid #f2c7e9;
}

.tutorial-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-shot figcaption {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: #65576e;
  line-height: 1.7;
}

.tutorial-shot figcaption b {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  color: #d633b9;
  background: #fff0fb;
  border: 1px solid #f2bde7;
}

.logs {
  padding-left: 20px;
  line-height: 1.8;
}

code {
  background: #fff1fb;
  border-radius: 6px;
  padding: 2px 6px;
}

@media (max-width: 760px) {
  .customer-shell {
    width: 100%;
    padding: 0 12px 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 24px 46px;
  }

  .nav {
    padding: 0 22px;
  }

  .can-art {
    height: 220px;
  }

  .can-body {
    width: 220px;
    height: 162px;
  }

  .can-lid {
    width: 238px;
  }

  .hero-contact-card {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    border-radius: 18px;
    padding: 16px;
  }

  .contact-copy strong {
    font-size: 26px;
  }

  .contact-action {
    width: 100%;
    min-height: 48px;
    grid-column: 1 / -1;
  }

  .hero-contact-card .contact-action.primary,
  .hero-contact-card .contact-action.ghost {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
  }

  .hero-contact-card .contact-action.primary {
    grid-row: 2;
  }

  .hero-contact-card .contact-action.ghost {
    grid-row: 3;
  }

  .query-line,
  .split,
  .filter-bar,
  .card-generate-form,
  .mufy-account-form,
  .password-form,
  .stats {
    grid-template-columns: 1fr;
  }

  .balance-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .brand,
  .toolbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutorial-shell {
    width: 100%;
    padding: 12px 12px 42px;
  }

  .tutorial-hero {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    border-radius: 0 0 18px 18px;
  }

  .tutorial-back {
    width: 100%;
  }

  .tutorial-step-card {
    padding: 22px 16px;
  }

  .tutorial-step-head {
    grid-template-columns: 1fr;
  }

  .tutorial-step-head > span {
    width: 64px;
  }

  .tutorial-gallery-two {
    grid-template-columns: 1fr;
  }

  .tutorial-shot figcaption {
    flex-direction: column;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
