:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --ink: #182338;
  --muted: #788397;
  --line: #e6ebf2;
  --blue: #125bea;
  --soft: #edf3ff;
  --green: #208269;
  --red: #c94249;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #6a9aff;
  outline-offset: 3px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.7px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand small {
  display: block;
  font: 600 9px/1.5 inherit;
  letter-spacing: 2px;
  color: var(--muted);
}
.topbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: white;
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost {
  background: var(--soft);
  color: var(--blue);
}
.btn.danger {
  background: #fff0f0;
  color: var(--red);
}
.btn.small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.hero {
  max-width: 1160px;
  margin: 90px auto 50px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 75px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--blue);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29b98a;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.07;
  letter-spacing: -3px;
  margin: 0 0 24px;
}
.hero h1 span {
  color: var(--blue);
}
.hero p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 490px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin: 30px 0;
}
.hero-card {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px #122a5020;
  transform: rotate(-2deg);
}
.mini-amount {
  font-size: 42px;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.features {
  max-width: 1160px;
  padding: 24px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.feature {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature h3 {
  font-size: 18px;
  margin: 16px 0 10px;
}
.feature p {
  color: var(--muted);
  line-height: 1.8;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.tile {
  height: 45px;
  width: 45px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile .icon {
  width: 23px;
  height: 23px;
}
.auth {
  max-width: 470px;
  margin: 65px auto;
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 50px #26395109;
}
.auth h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 18px 0 8px;
}
.auth > p {
  color: var(--muted);
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.field label {
  font-weight: 600;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 12px 13px;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--soft);
}
.field small,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.error {
  color: var(--red);
  line-height: 1.6;
  background: #fff3f3;
  padding: 12px;
  border-radius: 9px;
  display: none;
  margin: 15px 0;
}
.error:not(:empty) {
  display: block;
}
.shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 0 45px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9ca5b5;
  font-weight: 700;
  margin: 16px 13px;
}
.nav-btn {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  text-align: left;
  font-weight: 550;
  color: #69778e;
  margin: 2px 0;
}
.nav-btn:hover {
  background: #f7f9fc;
}
.nav-btn.active {
  background: var(--soft);
  color: var(--blue);
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e8f0ff;
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
}
.person b {
  font-size: 12px;
}
.person small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.workspace {
  grid-column: 2;
  padding: 0 36px 60px;
  min-width: 0;
}
.workspace-header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.workspace-header .trail {
  font-size: 12px;
  color: var(--muted);
}
.workspace-header .trail b {
  color: var(--ink);
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.live {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 32px 0 25px;
}
.heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 7px;
}
.heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  min-width: 0;
}
.stat {
  padding: 22px;
}
.stat label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}
.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 14px 0 10px;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.stat.featured {
  background: linear-gradient(120deg, #125bea, #113b9b);
  color: white;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.stat.featured:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 35px solid #ffffff0c;
  border-radius: 100%;
  right: -65px;
  top: -35px;
}
.stat.featured label,
.stat.featured small {
  color: #c7daff;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.wide {
  margin-top: 24px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  font-weight: 700;
  color: #96a0b2;
  letter-spacing: 0.8px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #f0f3f7;
  vertical-align: middle;
}
td b {
  font-weight: 650;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
tr:last-child td {
  border: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  background: #fff6dd;
  color: #9c7428;
}
.badge.paid,
.badge.approved,
.badge.delivered {
  background: #e8f7ef;
  color: #21845b;
}
.badge.banned,
.badge.rejected,
.badge.failed,
.badge.cancelled {
  background: #fff0f0;
  color: #c3464c;
}
.badge.expired {
  background: #f0f2f6;
  color: #778398;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 42px 15px;
  font-size: 12px;
}
.notice {
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff6dd;
  color: #89661e;
  font-size: 12px;
  line-height: 1.7;
  margin: 22px 0;
}
.notice.info {
  background: var(--soft);
  color: #365987;
}
.notice.success {
  background: #e8f7ef;
  color: #21845b;
}
.note-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.note-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.note-row b {
  font-size: 12px;
  display: block;
  margin: 2px 0 5px;
}
.note-row p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.code {
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 10px;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.secret {
  padding: 18px;
  border-radius: 12px;
  background: #edf5ff;
  overflow-wrap: anywhere;
  font: 13px/1.8 monospace;
}
.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.copy-row input {
  width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 9px;
  font: 11px monospace;
  min-width: 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.fee-breakdown {
  display: grid;
  gap: 12px;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  font-size: 13px;
}
.fee-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.fee-breakdown .net {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-weight: 700;
  color: var(--green);
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 20px;
  width: 510px;
  max-width: calc(100% - 30px);
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 30px 100px #102d453d;
}
dialog::backdrop {
  background: #14284366;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
dialog p {
  line-height: 1.7;
  color: var(--muted);
  font-size: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: calc(100% - 50px);
  padding: 14px 20px;
  border-radius: 12px;
  background: #172a47;
  color: white;
  font-size: 12px;
  box-shadow: 0 10px 40px #142e4d30;
  display: none;
  z-index: 100;
}
#toast.visible {
  display: block;
}
.search {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 220px;
}
.checkout-container {
  max-width: 520px;
  margin: 50px auto;
  padding: 0 18px;
}
.checkout-container .card {
  padding: 35px;
}
.checkout-amount {
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 750;
  margin: 25px 0 8px;
}
.steps {
  padding-left: 19px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 12px;
}
.steps li {
  margin: 10px 0;
}
.docs-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  max-width: 1190px;
  margin: 40px auto;
  gap: 50px;
  padding: 0 25px;
}
.docs-nav {
  position: sticky;
  top: 30px;
  align-self: start;
  display: grid;
  gap: 13px;
  font-size: 12px;
}
.docs-main {
  min-width: 0;
}
.docs-main h1 {
  font-size: 37px;
  letter-spacing: -1.5px;
}
.docs-main h2 {
  margin-top: 45px;
  letter-spacing: -0.6px;
  font-size: 24px;
}
.docs-main h3 {
  margin-top: 25px;
}
.docs-main p,
.docs-main li {
  font-size: 13px;
  line-height: 1.9;
  color: #64738a;
}
.docs-main pre {
  overflow: auto;
  padding: 20px;
  background: #152238;
  color: #dce7fa;
  border-radius: 12px;
  font: 12px/1.8 monospace;
  white-space: pre;
}
.method {
  font: 700 11px monospace;
  padding: 6px 8px;
  border-radius: 6px;
  background: #e8f7ef;
  color: #21845b;
}
.mobile-menu {
  display: none;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mono {
  font: 10px/1.5 monospace;
  overflow-wrap: anywhere;
}
.footer {
  padding: 25px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 70px;
    padding-right: 70px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .workspace {
    padding: 0 22px 40px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 48px;
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 0 20px;
    height: 70px;
  }
  .toplinks {
    gap: 12px;
    font-size: 12px;
  }
  .toplinks .btn {
    padding: 10px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 50px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }
  .hero-card {
    transform: none;
  }
  .features {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 12px;
  }
  .auth {
    margin: 30px 16px;
    padding: 27px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s;
    z-index: 20;
    box-shadow: 15px 0 50px #17304f22;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    padding: 0 16px 40px;
  }
  .workspace-header {
    height: 70px;
  }
  .mobile-menu {
    display: inline-flex;
    background: white;
    border: 1px solid var(--line);
    padding: 9px;
    border-radius: 8px;
  }
  .header-right .person {
    display: none;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 25px;
  }
  .card {
    padding: 20px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
    max-width: none;
  }
  .docs-layout {
    display: block;
    padding: 0 20px;
  }
  .docs-nav {
    display: none;
  }
  .checkout-container {
    margin: 30px auto;
  }
  .checkout-container .card {
    padding: 24px;
  }
  .workspace-header .trail {
    font-size: 10px;
  }
  .code {
    font-size: 10px;
  }
  dialog {
    padding: 23px;
  }
  .header-right {
    gap: 6px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar .brand img {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
