* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

button,
input {
  font: inherit;
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at 49% -8%, rgba(111, 165, 221, .5), transparent 38%),
    linear-gradient(128deg, #294c74 0%, #263b68 42%, #282d67 100%);
}

.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ambient-one {
  top: 1%;
  left: -17%;
  width: 70vw;
  height: 96vh;
  border-radius: 48% 52% 48% 44%;
  background: linear-gradient(140deg, rgba(76, 125, 172, .48), rgba(40, 49, 112, .72));
  transform: rotate(-21deg);
}

.ambient-two {
  top: -36%;
  right: -28%;
  width: 58vw;
  height: 86vh;
  border-radius: 47% 0 54% 47%;
  background: rgba(91, 120, 178, .38);
  transform: rotate(23deg);
}

.ambient-three {
  right: -9%;
  bottom: -54%;
  width: 53vw;
  height: 64vh;
  border-radius: 50%;
  background: rgba(106, 157, 193, .48);
  transform: rotate(-18deg);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #8cecff;
  box-shadow: 0 0 11px 6px rgba(82, 208, 237, .42), 0 0 38px 16px rgba(60, 186, 225, .2);
  pointer-events: none;
}

.glow-one { top: 17%; left: 28%; }
.glow-two { top: 38%; left: 5%; width: 22px; height: 22px; }
.glow-three { bottom: 27%; left: 47%; }

.login-card {
  width: min(100%, 478px);
  min-height: 382px;
  border: 1px solid rgba(222, 237, 255, .2);
  border-radius: 16px;
  background: rgba(18, 35, 66, .57);
  box-shadow: 0 22px 70px rgba(9, 20, 43, .24);
  backdrop-filter: blur(14px);
}

.card-content {
  width: min(100%, 365px);
  margin: 0 auto;
  padding: 68px 0 48px;
}

.brand-mark {
  display: none;
}

h1 {
  margin: 8px 0 0;
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.35px;
}

.subtitle {
  margin: 9px 0 24px;
  color: rgba(234, 242, 255, .78);
  text-align: center;
  font-size: 13px;
}

#login-form {
  display: grid;
  gap: 17px;
}

.input-wrap {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 7px;
  background: #f3f7ff;
  color: #172239;
  transition: box-shadow .18s, border-color .18s;
}

.input-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .23);
}

.field-icon {
  display: inline-flex;
  flex: 0 0 15px;
  color: #8b9bb3;
}

.field-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #19283e;
  font-size: 13px;
}

.input-wrap input::placeholder {
  color: #6c7d96;
  opacity: 1;
}

.visibility-button {
  display: inline-grid;
  width: 28px;
  height: 32px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8797af;
  cursor: pointer;
}

.visibility-button:hover,
.visibility-button:focus-visible {
  color: #3a5274;
}

.visibility-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.login-button {
  height: 49px;
  margin-top: 0;
  border: 0;
  border-radius: 4px;
  background: #287bd1;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background .18s, transform .18s;
}

.login-button:hover {
  background: #1d69b7;
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:focus-visible,
.visibility-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.form-message {
  min-height: 17px;
  margin: -7px 0 0;
  color: #b42318;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 540px) {
  .login-page {
    padding: 22px 18px;
  }

  .ambient-one {
    left: -45%;
    width: 110vw;
  }

  .ambient-two {
    right: -62%;
    width: 100vw;
  }

  .login-card {
    min-height: unset;
  }

  .card-content {
    padding: 54px 25px 35px;
  }

  h1 {
    font-size: clamp(18px, 5vw, 21px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

[hidden] {
  display: none !important;
}

body:has(.admin-app:not([hidden])) {
  background: #f3f5f8;
}

.admin-app {
  --app-ink: #243247;
  --app-muted: #8995a6;
  --app-line: #e9edf2;
  display: flex;
  min-height: 100vh;
  background: #f3f5f8;
  color: var(--app-ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 242px;
  height: 100vh;
  flex: 0 0 242px;
  flex-direction: column;
  padding: 0 14px 18px;
  background: #202832;
  color: #e6ebf1;
  transition: width .22s, flex-basis .22s, padding .22s;
}

.sidebar-brand {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 0 15px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.sidebar-logo,
.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #54a7ff, #3479d5);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8d0db;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition: background .18s, color .18s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-item.active {
  background: #398fed;
  color: #fff;
  box-shadow: 0 5px 14px rgba(26, 117, 219, .2);
}

.nav-icon {
  width: 18px;
  color: currentColor;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.workspace {
  min-width: 0;
  flex: 1;
}

.app-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 2.3vw, 36px);
  border-bottom: 1px solid #edf0f4;
  background: rgba(255, 255, 255, .95);
  color: #586477;
}

.header-left,
.header-right,
.user-menu {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 16px;
  font-size: 13px;
}

.menu-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #627187;
  cursor: pointer;
  font-size: 17px;
}

.menu-toggle:hover {
  background: #f0f4f9;
}

.header-right {
  position: relative;
  gap: 18px;
}

.language-control {
  position: relative;
}

.language-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #566273;
  cursor: pointer;
  font-size: 12px;
}

.language-button > span:first-child {
  color: #718096;
  font-size: 15px;
  font-weight: 600;
}

.language-button:hover {
  color: #287bd1;
}

.language-dropdown {
  position: absolute;
  z-index: 4;
  top: 43px;
  right: -9px;
  min-width: 145px;
  padding: 5px 0;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 39, 59, .12);
}

.language-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: #fff;
  color: #596575;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.language-dropdown button + button {
  border-top: 1px solid #eff1f4;
}

.language-dropdown button:hover,
.language-dropdown button[aria-pressed="true"] {
  background: #f4f8fd;
  color: #327fce;
}

.user-menu {
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #4b5666;
  cursor: pointer;
  font-size: 12px;
}

.user-avatar {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 50%;
  font-size: 13px;
}

.chevron {
  color: #98a3b1;
  font-size: 16px;
}

.user-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 145px;
  padding: 5px;
  border: 1px solid var(--app-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 39, 60, .12);
}

.user-dropdown button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5666;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.user-dropdown button:hover {
  background: #f3f6fa;
}

.password-dialog {
  width: min(100% - 32px, 430px);
  max-width: 430px;
  padding: 0;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: #fff;
  color: #29384e;
  box-shadow: 0 18px 55px rgba(24, 39, 60, .2);
}

.password-dialog::backdrop {
  background: rgba(18, 31, 49, .42);
  backdrop-filter: blur(2px);
}

.password-dialog-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.password-dialog-form .section-heading {
  align-items: center;
  margin-bottom: 2px;
}

.password-dialog-form h2 {
  margin: 0;
  color: #27364b;
  font-size: 18px;
  font-weight: 600;
}

.password-dialog-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8491a2;
  cursor: pointer;
  font-size: 22px;
}

.password-dialog-close:hover {
  background: #f3f6fa;
}

.password-dialog-field {
  display: grid;
  gap: 7px;
  color: #59687b;
  font-size: 12px;
}

.password-dialog-field input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #29384e;
  font-size: 13px;
}

.password-dialog-field input:focus {
  border-color: #398fe8;
  box-shadow: 0 0 0 3px rgba(57, 143, 232, .12);
}

.password-dialog-note {
  margin: 0;
  color: #8491a2;
  font-size: 11px;
  line-height: 1.55;
}

.password-dialog-feedback {
  min-height: 16px;
  margin: -8px 0 0;
  color: #b34444;
  font-size: 11px;
}

.password-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.password-dialog-actions button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.app-content {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 25px clamp(18px, 2.2vw, 34px) 18px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 2px 17px;
}

.page-eyebrow {
  margin: 0 0 5px;
  color: #9ba6b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.page-heading h1 {
  margin: 0;
  color: #27364b;
  text-align: left;
  font-size: 23px;
}

.today-label {
  color: #8d98a8;
  font-size: 12px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 107px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 52, 78, .025);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
}

.stat-icon.blue { background: #edf5ff; color: #438fd8; }
.stat-icon.violet { background: #f3efff; color: #8067d9; }
.stat-icon.green { background: #eaf8f3; color: #38a680; }

.stat-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.stat-label {
  color: #8a96a6;
  font-size: 11px;
}

.stat-value {
  color: #29384e;
  font-size: 20px;
  font-weight: 650;
}

.stat-value small {
  color: #7f8b9b;
  font-size: 11px;
  font-weight: 400;
}

.stat-foot {
  color: #a0aab7;
  font-size: 10px;
}

.copy-button {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid #dce9f8;
  border-radius: 6px;
  background: #f5f9ff;
  color: #438bd5;
  cursor: pointer;
  font-size: 11px;
}

.copy-button:hover {
  background: #e9f3ff;
}

.api-key-controls {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  background: #fff;
}

.api-key-label {
  display: grid;
  width: 145px;
  min-height: 42px;
  flex: 0 0 145px;
  place-items: center end;
  padding: 0 14px;
  border-right: 1px solid #e5eaf0;
  background: #f7f8fa;
  color: #66758a;
  font-size: 12px;
  font-weight: 500;
}

.api-key-controls input {
  width: min(100%, 520px);
  flex: 0 1 520px;
  min-width: 0;
  padding: 9px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #53647a;
  font: 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.api-key-controls input:disabled {
  cursor: not-allowed;
}

.api-key-controls .copy-button {
  margin-left: 0;
  border-color: #378ee8;
  background: #378ee8;
  color: #fff;
}

.api-key-controls .copy-button:hover {
  background: #247bd5;
}

.api-key-reset {
  padding: 8px 13px;
  border: 1px solid #f6a01e;
  border-radius: 6px;
  background: #f6a01e;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.api-key-reset:hover {
  background: #e58d0b;
}

.api-key-reset:disabled,
.copy-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.api-key-feedback {
  min-height: 16px;
  margin: 8px 0 0;
  color: #718198;
  font-size: 11px;
}

.content-card {
  margin-bottom: 15px;
  padding: 21px 22px 17px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 52, 78, .025);
}

.recharge-card {
  min-height: 540px;
  padding: 28px clamp(18px, 3vw, 42px);
}

.recharge-flow {
  width: min(100%, 810px);
  margin: 0 auto;
}

.recharge-steps {
  display: flex;
  min-height: 44px;
  margin: 0 0 27px;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #dedede;
  color: #59697b;
  list-style: none;
}

.recharge-step {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.recharge-step.active {
  background: #398fe8;
  color: #fff;
}

.recharge-step-number {
  display: none;
}

.recharge-panel {
  padding: 25px 28px 27px;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 52, 78, .08);
  color: #29384e;
}

.recharge-panel h2 {
  margin: 0 0 24px;
  color: #253247;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.recharge-payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -25px -28px 17px;
  padding: 16px 26px;
  background: #f6f8fb;
}

.recharge-payment-heading h2 {
  margin: 0 0 3px;
}

.recharge-payment-heading p {
  margin: 0;
  color: #7b899c;
  font-size: 13px;
}

.recharge-countdown {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 2px solid #8390a2;
  border-radius: 50%;
  color: #58677b;
  font-size: 12px;
  font-weight: 600;
}

.recharge-payment-content {
  display: grid;
  gap: 16px;
  padding: 0 2px;
}

.recharge-qr {
  width: 192px;
  height: 192px;
  justify-self: center;
  padding: 8px;
  border: 1px solid #edf0f4;
  background: #fff;
  box-shadow: 0 3px 14px rgba(32, 52, 78, .12);
  object-fit: contain;
}

.recharge-payment-row {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #e8edf3;
  color: #758398;
  font-size: 12px;
}

.recharge-copy-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recharge-copy-value code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #27364a;
  font-family: inherit;
  font-size: 13px;
}

.recharge-copy-value button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 10px;
}

.recharge-transfer-amount {
  color: #e04444;
  font-size: 18px;
}

.recharge-payment-note {
  padding: 16px 20px;
  border: 1px solid #e9edf2;
  background: #f4f6f8;
  color: #8996a6;
  font-size: 12px;
  line-height: 1.7;
}

.recharge-payment-note ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.recharge-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recharge-payment-actions button {
  min-height: 40px;
}

#recharge-form {
  display: grid;
  gap: 22px;
}

.recharge-field {
  display: grid;
  gap: 8px;
  color: #34445b;
  font-size: 13px;
  font-weight: 600;
}

.recharge-field select,
.recharge-amount-control {
  width: 100%;
  min-height: 41px;
  border: 1px solid #dfe5ec;
  border-radius: 5px;
  background: #fff;
  color: #58677b;
  font-size: 13px;
  font-weight: 400;
}

.recharge-field select {
  padding: 0 12px;
}

.recharge-amount-control {
  display: flex;
  align-items: center;
  padding: 0 11px 0 12px;
}

.recharge-amount-control:focus-within,
.recharge-field select:focus-visible {
  border-color: #398fe8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57, 143, 232, .12);
}

.recharge-amount-control input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34445b;
  font-size: 13px;
}

.recharge-amount-control input::placeholder {
  color: #abb5c2;
}

.recharge-amount-control > span {
  flex: 0 0 auto;
  color: #66758a;
  font-size: 12px;
}

.recharge-terms {
  display: grid;
  gap: 13px;
  margin: 17px 0 0;
  padding: 22px 30px 22px 48px;
  background: #f4f6f8;
  color: #8996a6;
  font-size: 13px;
  line-height: 1.55;
}

.recharge-next,
.recharge-back {
  width: 188px;
  min-width: 188px;
  max-width: 100%;
  min-height: 39px;
  margin-top: 0;
  font-size: 12px;
}

.recharge-summary {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid #edf0f4;
}

.recharge-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}

.recharge-summary dt {
  color: #778598;
}

.recharge-summary dd {
  margin: 0;
  color: #29384e;
  font-weight: 600;
  text-align: right;
}

.recharge-notice {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #f4dfb1;
  border-radius: 6px;
  background: #fff9eb;
  color: #896526;
  font-size: 12px;
  line-height: 1.6;
}

.recharge-feedback {
  min-height: 17px;
  margin: 10px 0 0;
  color: #ad7b27;
  font-size: 11px;
}

.order-card {
  min-height: 460px;
  padding-top: 22px;
}

.order-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 26px;
  padding: 2px 1px 36px;
}

.order-filter {
  display: grid;
  gap: 7px;
  color: #5d6a7c;
  font-size: 11px;
}

.order-filter input,
.order-filter select {
  width: 190px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #5f6c7e;
  font-size: 11px;
}

.order-filter input::placeholder {
  color: #abb5c3;
}

.order-filter input:focus,
.order-filter select:focus {
  border-color: #79afe7;
  box-shadow: 0 0 0 3px rgba(61, 143, 227, .1);
}

.order-filter input[type="date"] {
  color: #8995a5;
}

.order-search {
  min-width: 58px;
  height: 38px;
}

.order-table-wrap {
  padding: 0 1px;
}

.order-table {
  min-width: 1280px;
}

.order-table th,
.order-table td {
  padding-right: 13px;
  padding-left: 13px;
}

.order-table .empty-row td {
  height: 60px;
}

.order-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding: 16px 12px 2px;
  color: #778496;
  font-size: 11px;
}

.page-size-label select,
.jump-page input {
  height: 29px;
  border: 1px solid #e1e6ed;
  border-radius: 5px;
  background: #fff;
  color: #657286;
  font-size: 11px;
}

.page-size-label select {
  width: 90px;
  padding: 0 7px;
}

.page-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #99a4b2;
  font-size: 21px;
}

.page-arrow:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.current-page {
  min-width: 17px;
  color: #398fe8;
  text-align: center;
}

.jump-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.jump-page input {
  width: 43px;
  padding: 0 5px;
  text-align: center;
}

.order-feedback {
  min-height: 14px;
  margin: 6px 12px 0;
  color: #ad7b27;
  font-size: 10px;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f2f5;
}

.section-heading h2 {
  margin: 0;
  color: #29384e;
  font-size: 16px;
}

.section-heading p {
  margin: 5px 0 0;
  color: #97a1af;
  font-size: 10px;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.turnstile-widget:empty {
  display: none;
}

#login-form > .turnstile-widget,
#recharge-form > .turnstile-widget,
#recharge-check-turnstile {
  margin-top: 12px;
}

#service-form > .turnstile-widget {
  flex: 1 0 100%;
  gap: 13px 20px;
  padding: 17px 0 22px;
}

.select-field {
  display: grid;
  min-width: 145px;
  gap: 7px;
  color: #647184;
  font-size: 11px;
}

.select-field select,
.select-field input {
  width: 185px;
  max-width: 100%;
  height: 37px;
  padding: 0 30px 0 11px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #7d8999;
  font-size: 11px;
}

.select-field select:focus {
  border-color: #79afe7;
  box-shadow: 0 0 0 3px rgba(61, 143, 227, .1);
}

.service-actions {
  display: flex;
  gap: 9px;
  padding-left: 1px;
}

.button-primary,
.button-secondary {
  min-width: 75px;
  height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: filter .18s;
}

.button-primary { background: #398fe8; }
.button-secondary { background: #f0a329; }
.button-primary:hover,
.button-secondary:hover { filter: brightness(.95); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: #7f8b9a;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}

.table-wrap th,
.table-wrap td {
  height: 41px;
  padding: 0 10px;
  border-bottom: 1px solid #eff2f5;
}

.table-wrap th {
  color: #7b8797;
  font-weight: 500;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  width: 38px;
  padding-left: 8px;
}

.table-wrap input {
  accent-color: #398fe8;
}

.empty-row td {
  height: 88px;
  color: #a0a9b6;
  text-align: center;
}

.empty-icon {
  display: block;
  margin-bottom: 5px;
  color: #c1cad5;
  font-size: 21px;
}

.service-feedback {
  min-height: 15px;
  margin: 9px 0 0;
  color: #ad7b27;
  font-size: 10px;
}

.secondary-card {
  min-height: 300px;
}

.empty-state {
  display: grid;
  min-height: 225px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #8d99a9;
  text-align: center;
  font-size: 11px;
}

.empty-state .empty-icon {
  margin-bottom: 4px;
  font-size: 30px;
}

.empty-state strong {
  color: #556376;
  font-size: 13px;
}

.admin-console {
  display: grid;
  gap: 16px;
}

.admin-console-heading,
.admin-panel-card .section-heading,
.admin-pagination,
.admin-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-console-heading h2,
.admin-panel-card .section-heading h2 {
  margin: 0;
  color: #263448;
  font-size: 15px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
  color: #738095;
  font-size: 12px;
}

.admin-stats strong {
  color: #263448;
  font-size: 22px;
}

.admin-date-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #657287;
  font-size: 12px;
}

.admin-date-filter input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #344256;
}

.admin-subpage {
  display: grid;
  gap: 16px;
}

.sms-admin-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.sms-admin-group > .admin-panel-card {
  min-width: 0;
}

.sms-admin-group > .sms-provider-config {
  grid-column: 1 / -1;
}

.sms-admin-group > .sms-country-catalog {
  grid-column: 1 / -1;
}

.admin-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.admin-collapsible-summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-summary::after {
  color: #657287;
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.admin-collapsible-panel[open] > .admin-collapsible-summary::after {
  content: "−";
}

.admin-collapsible-summary h2 {
  margin: 0;
}

.admin-collapsible-summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid #3778ee;
  outline-offset: 4px;
}

.admin-collapsible-content {
  margin-top: 16px;
}

.admin-subpage[data-admin-page="admin-customers"] {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.admin-subpage[hidden],
.admin-vertical-form[hidden] {
  display: none;
}

.admin-provider-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.admin-provider-card {
  min-width: 0;
  padding: 16px;
}

.admin-provider-card h3 {
  margin: 0;
  color: #263448;
  font-size: 14px;
}

.admin-provider-status {
  margin: 10px 0 0;
  color: #657287;
  font-size: 12px;
}

.admin-provider-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}

.admin-provider-details[hidden] {
  display: none;
}

.admin-provider-toggle {
  flex: 0 0 auto;
}

.admin-upstream-actions,
.admin-provider-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-provider-actions button {
  min-height: 38px;
}

.admin-provider-runtime-actions {
  margin-top: 12px;
}

.admin-vertical-form {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
}

.admin-subpage[data-admin-page="admin-customers"] .admin-vertical-form {
  grid-template-columns: minmax(0, 1fr);
}

.admin-subpage[data-admin-page="admin-customers"] .admin-panel-card {
  min-width: 0;
}

.admin-customer-price-load {
  justify-content: flex-start;
  max-width: 520px;
}

.admin-customer-price-load input {
  flex: 1;
}

.admin-customer-pricing-page .admin-panel-card {
  min-width: 0;
}

.admin-customer-price-channels {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-customer-price-channel-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #fcfdff;
}

.admin-customer-price-channel-panel .section-heading {
  padding-bottom: 10px;
}

.admin-customer-price-channel-panel .section-heading h3 {
  margin: 0;
  color: #1d2a40;
  font-size: 14px;
  font-weight: 650;
}

.admin-customer-price-form {
  margin: 16px 0 20px;
}

#admin-customer-price-hh-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

#admin-customer-price-all-form {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, 0.8fr) auto;
}

.admin-customer-price-form button {
  white-space: nowrap;
}

.admin-customer-price-channel-panel .table-wrap {
  margin-top: 12px;
}

.admin-provider-card .admin-vertical-form {
  margin-top: 14px;
}

.admin-provider-card .admin-vertical-form input,
.admin-provider-card .admin-vertical-form select {
  min-width: 0;
}

.admin-provider-routes {
  margin-top: 14px;
  border-top: 1px solid #edf1f6;
  padding-top: 12px;
}

.admin-provider-routes > summary {
  color: #344256;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.admin-provider-routes[open] > summary {
  margin-bottom: 12px;
}

.admin-provider-route-form-slot .admin-vertical-form {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
}

.admin-test-output {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #f8fafd;
  color: #344256;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#admin-sms-country-body input {
  min-width: 140px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
}

.admin-provider-actions {
  grid-column: 1 / -1;
}

.admin-provider-actions button:disabled {
  cursor: default;
  opacity: .55;
}

.admin-vertical-form label {
  display: grid;
  gap: 6px;
  color: #657287;
  font-size: 12px;
}

.admin-vertical-form input,
.admin-vertical-form select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #344256;
}

.admin-vertical-form select.admin-multi-select {
  min-height: 180px;
  padding: 8px;
}

.admin-sms-country-note {
  color: #657287;
  font-size: 11px;
  line-height: 1.5;
}

.admin-sms-country-summary {
  display: block;
  margin-top: 4px;
  color: #657287;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-vertical-form button {
  min-height: 38px;
  justify-self: start;
}

.admin-customer-order-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.admin-panel-card {
  padding: 18px;
}

.admin-customer-directory {
  margin-top: 14px;
}

.admin-customer-ranking-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #f8fafd;
}

.admin-customer-ranking-filter label,
.admin-customer-date-range label {
  display: grid;
  gap: 5px;
  color: #66758a;
  font-size: 12px;
}

.admin-customer-ranking-filter select,
.admin-customer-date-range input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #344256;
}

.admin-customer-ranking-day-note {
  color: #718096;
  font-size: 12px;
}

.admin-customer-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.admin-customer-date-range[hidden] {
  display: none;
}

.admin-search input,
.admin-search select {
  min-width: 170px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #344256;
}

.admin-data-table {
  min-width: 800px;
}

.admin-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.admin-sort-indicator {
  color: #718096;
  font-size: 11px;
}

.admin-pagination {
  justify-content: flex-end;
  margin-top: 14px;
  color: #738095;
  font-size: 12px;
}

.admin-customer-orders-pagination {
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 6px 2px;
  font-size: 14px;
}

.admin-customer-orders-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: #66758a;
  font-size: 12px;
}

.admin-customer-orders-date-range input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
  color: #344256;
}

.admin-customer-orders-pagination .page-size-label select {
  width: 158px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  color: #52647b;
  font-size: 14px;
}

.admin-customer-orders-pagination .page-arrow {
  width: 48px;
  height: 58px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  color: #52647b;
  font-size: 25px;
}

.admin-customer-orders-pagination .current-page {
  min-width: 36px;
  font-size: 16px;
}

.admin-customer-orders-pagination .jump-page {
  gap: 9px;
  margin-left: 0;
  font-size: 14px;
}

.admin-customer-orders-pagination .jump-page input {
  width: 72px;
  height: 58px;
  padding: 0 10px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  font-size: 14px;
}

.admin-note,
.admin-feedback {
  margin: 12px 0 0;
  color: #7d8999;
  font-size: 11px;
  line-height: 1.6;
}

.admin-feedback {
  color: #b34444;
}

@media (max-width: 760px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-customer-order-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search,
  .admin-search input,
  .admin-search select {
    width: 100%;
  }

  .admin-vertical-form {
    grid-template-columns: 1fr;
  }

  .admin-customer-price-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin-customer-price-hh-form,
  #admin-customer-price-all-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-provider-list {
    grid-template-columns: 1fr;
  }

  .sms-admin-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sms-admin-group > .sms-provider-config {
    grid-column: auto;
  }

  .sms-admin-group > .sms-country-catalog {
    grid-column: auto;
  }

  .admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-date-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-upstream-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .admin-customer-price-form {
    grid-template-columns: 1fr;
  }

  #admin-customer-price-hh-form,
  #admin-customer-price-all-form {
    grid-template-columns: 1fr;
  }
}

.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px;
  color: #a1aab6;
  font-size: 10px;
}

.sidebar-collapsed .sidebar {
  width: 74px;
  flex-basis: 74px;
  padding-right: 10px;
  padding-left: 10px;
}

.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .sidebar-brand > span:last-child,
.sidebar-collapsed .nav-item > span:last-child {
  display: none;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .nav-icon {
  font-size: 20px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
  }

  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-filters {
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .sidebar {
    position: fixed;
    z-index: 5;
    width: 180px;
    flex-basis: 180px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 11px;
  }

  .workspace {
    margin-left: 180px;
  }

  .sidebar-collapsed .sidebar {
    width: 0;
    flex-basis: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
  }

  .sidebar-collapsed .workspace {
    margin-left: 0;
  }

  .today-label {
    display: none;
  }

  .app-content {
    padding-top: 18px;
  }

  .stat-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .stat-card {
    min-height: 88px;
  }

  .service-filters {
    align-items: stretch;
  }

  .api-key-controls {
    flex-wrap: wrap;
    padding: 8px;
  }

  .api-key-label {
    width: 100%;
    min-height: 34px;
    flex: 1 0 100%;
    place-items: center start;
    padding: 0 8px;
    border-right: 0;
    border-bottom: 1px solid #e5eaf0;
  }

  .api-key-controls input {
    width: 0;
    flex: 1 1 140px;
  }

  .select-field {
    width: 100%;
  }

  .select-field select {
    width: 100%;
  }

  .service-actions {
    padding-top: 4px;
  }

  .order-card {
    min-height: 390px;
  }

  .order-filters {
    gap: 12px;
    padding-bottom: 24px;
  }

  .order-filter {
    width: 100%;
  }

  .order-filter input,
  .order-filter select {
    width: 100%;
  }

  .order-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-right: 0;
    padding-left: 0;
  }

  .content-card {
    padding: 16px 13px 12px;
  }

  .recharge-card {
    min-height: 0;
  }

  .recharge-panel {
    padding: 20px 15px;
  }

  .recharge-panel h2 {
    font-size: 17px;
  }

  .recharge-payment-heading {
    margin: -20px -15px 15px;
    padding: 14px 15px;
  }

  .recharge-payment-heading p {
    font-size: 11px;
  }

  .recharge-countdown {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .recharge-qr {
    width: 168px;
    height: 168px;
  }

  .recharge-payment-note {
    padding: 13px;
  }

  .recharge-payment-actions {
    flex-direction: column;
  }

  .recharge-payment-actions button {
    width: 100%;
  }

  .recharge-terms {
    padding: 18px 16px 18px 34px;
    font-size: 12px;
  }

  .recharge-next,
  .recharge-back {
    width: 100%;
  }
}

:root {
  color: #172235;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  background: #f4f7fb;
  color: #172235;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
.content-card,
.stat-card,
.nav-item {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    opacity .18s ease,
    transform .18s ease;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .3);
  outline-offset: 2px;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63, 106, 176, .35), transparent 44%),
    linear-gradient(145deg, #0b1424 0%, #101d32 58%, #111b2d 100%);
}

.ambient-one {
  background: linear-gradient(140deg, rgba(49, 94, 165, .28), rgba(25, 43, 78, .4));
}

.ambient-two {
  background: rgba(57, 91, 145, .18);
}

.ambient-three {
  background: rgba(34, 95, 158, .2);
}

.glow {
  width: 8px;
  height: 8px;
  background: #8db9ff;
  box-shadow: 0 0 20px 8px rgba(66, 133, 244, .25);
}

.login-card {
  width: min(100%, 460px);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
  color: #182338;
  backdrop-filter: blur(18px);
}

.card-content {
  width: min(100%, 390px);
  padding: 42px 0 38px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.login-eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
}

#login-title {
  margin-top: 8px;
  color: #101b2e;
  font-size: 28px;
  letter-spacing: -.045em;
}

.subtitle {
  margin: 10px 0 28px;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
}

#login-form {
  gap: 13px;
}

.input-wrap {
  height: 50px;
  gap: 12px;
  padding: 0 14px;
  border-color: #dbe3ef;
  border-radius: 12px;
  background: #f8fafd;
  color: #64748b;
}

.input-wrap:focus-within {
  border-color: #4a83ea;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.input-wrap input {
  color: #172235;
  font-size: 14px;
}

.input-wrap input::placeholder {
  color: #91a0b4;
}

.login-button,
.button-primary {
  border: 1px solid #2b68db;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
  color: #fff;
  font-weight: 650;
}

.login-button {
  height: 50px;
  margin-top: 4px;
  font-size: 14px;
}

.login-button:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #3478ec, #1d4ed8);
  box-shadow: 0 11px 22px rgba(37, 99, 235, .22);
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid #d8e1ee;
  border-radius: 10px;
  background: #fff;
  color: #34445d;
  font-weight: 600;
}

.button-secondary:hover {
  border-color: #b8c9e2;
  background: #f5f8fc;
  transform: translateY(-1px);
}

button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.admin-app {
  --app-ink: #172235;
  --app-muted: #718096;
  --app-line: #e4eaf2;
  min-height: 100vh;
  background: #f4f7fb;
  color: var(--app-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
  width: 256px;
  flex-basis: 256px;
  padding: 0 14px 20px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 105, 190, .18), transparent 32%),
    #0d1728;
  box-shadow: 10px 0 30px rgba(17, 30, 52, .08);
}

.sidebar-brand {
  min-height: 78px;
  gap: 12px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .26);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.side-nav {
  gap: 6px;
  padding-top: 14px;
}

.nav-item {
  min-height: 46px;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #a8b5c9;
  font-size: 13px;
  font-weight: 550;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .07);
  color: #f5f8ff;
}

.nav-item.active {
  border-color: rgba(113, 161, 255, .18);
  background: linear-gradient(100deg, rgba(44, 103, 211, .95), rgba(34, 83, 177, .78));
  box-shadow: 0 8px 18px rgba(5, 12, 25, .22);
  color: #fff;
}

.nav-icon {
  width: 20px;
  font-size: 16px;
}

.workspace {
  min-height: 100vh;
  background: #f4f7fb;
}

.app-header {
  height: 70px;
  padding: 0 clamp(20px, 3vw, 44px);
  border-bottom: 1px solid rgba(219, 227, 238, .8);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 4px 18px rgba(23, 34, 53, .025);
  backdrop-filter: blur(16px);
  color: #596980;
}

.header-left {
  gap: 15px;
  color: #718096;
  font-size: 13px;
  font-weight: 550;
}

.menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid #e3e9f2;
  border-radius: 11px;
  background: #fff;
  color: #52647d;
}

.menu-toggle:hover {
  background: #f4f7fc;
  transform: translateY(-1px);
}

.header-right {
  gap: 16px;
}

.user-menu {
  gap: 9px;
  color: #33435c;
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #91b7f6, #527fe0);
  box-shadow: 0 0 0 1px #d9e4f4;
  font-size: 12px;
}

.app-content {
  max-width: 1600px;
  padding: 32px clamp(18px, 3vw, 42px) 24px;
}

.page-heading {
  margin: 0 2px 22px;
}

.page-eyebrow {
  margin-bottom: 7px;
  color: #7a8aa2;
  font-size: 10px;
  letter-spacing: .15em;
}

.page-heading h1 {
  color: #172235;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 700;
  letter-spacing: -.045em;
}

.today-label {
  color: #73839a;
  font-size: 12px;
}

.content-card,
.stat-card,
.admin-stats article {
  border: 1px solid #e5ebf3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 42, 68, .045);
}

.content-card {
  margin-bottom: 18px;
  padding: 23px;
}

.content-card:hover,
.stat-card:hover {
  box-shadow: 0 13px 34px rgba(25, 42, 68, .075);
}

.stat-cards {
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 116px;
  padding: 20px;
}

.section-heading {
  padding-bottom: 17px;
  border-color: #edf1f6;
}

.section-heading h2 {
  color: #1d2a40;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.section-heading p {
  color: #8492a7;
  font-size: 12px;
}

.service-filters,
.order-filters {
  gap: 14px;
  padding: 20px 0 22px;
}

.select-field,
.order-filter,
.admin-vertical-form label,
.password-dialog-field {
  color: #5f6f86;
  font-size: 12px;
  font-weight: 550;
}

.select-field select,
.select-field input,
.order-filter input,
.order-filter select,
.admin-vertical-form input,
.admin-vertical-form select,
.admin-search input,
.admin-search select,
.password-dialog-field input,
.recharge-field input,
.recharge-field select {
  min-height: 42px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  color: #24344d;
  font-size: 13px;
}

.select-field select {
  width: min(100%, 220px);
  height: 42px;
  padding: 0 12px;
}

.select-field input {
  width: min(100%, 220px);
  height: 42px;
  padding: 0 12px;
}

.select-field select:focus,
.select-field input:focus,
.order-filter input:focus,
.order-filter select:focus,
.admin-vertical-form input:focus,
.admin-vertical-form select:focus,
.admin-search input:focus,
.admin-search select:focus,
.password-dialog-field input:focus,
.recharge-field input:focus,
.recharge-field select:focus {
  border-color: #5e8fe7;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .11);
  outline: 0;
}

.button-primary,
.button-secondary,
.login-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.table-wrap table {
  color: #52627a;
  font-size: 12px;
}

.table-wrap th,
.table-wrap td {
  height: 46px;
  padding: 0 12px;
  border-color: #edf1f6;
}

.table-wrap th {
  background: #f8fafd;
  color: #6b7b92;
  font-size: 11px;
  font-weight: 650;
}

.table-wrap tr:hover td {
  background: #fbfcfe;
}

.empty-row td {
  color: #8c9ab0;
}

.order-pagination,
.admin-pagination {
  gap: 10px;
  color: #718096;
  font-size: 12px;
}

.page-arrow,
.order-pagination select,
.jump-page input {
  min-height: 36px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
  color: #43546e;
}

.admin-console-heading {
  margin: 0 2px 20px;
}

.admin-console-heading h2 {
  color: #172235;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.admin-stats {
  gap: 14px;
}

.admin-stats article {
  padding: 18px;
  color: #73839a;
}

.admin-stats article strong {
  color: #1b2a42;
}

.admin-panel-card {
  padding: 21px;
}

.admin-vertical-form {
  gap: 15px;
  margin-top: 18px;
}

.admin-vertical-form label {
  gap: 8px;
}

.admin-vertical-form input,
.admin-vertical-form select {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.admin-vertical-form button {
  min-height: 42px;
  margin-top: 2px;
}

.admin-note,
.admin-feedback {
  font-size: 12px;
}

.admin-note {
  color: #7b8ba3;
}

.admin-feedback {
  color: #b54747;
}

.password-dialog {
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 28, 48, .24);
}

.app-footer {
  padding: 14px 2px;
  color: #8b99ad;
  font-size: 11px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 228px;
    flex-basis: 228px;
  }

  .app-content {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 650px) {
  .sidebar {
    z-index: 10;
    top: 62px;
    height: calc(100dvh - 62px);
    width: 260px;
    flex-basis: 260px;
    transform: translateX(-100%);
    box-shadow: 18px 0 38px rgba(11, 20, 36, .24);
  }

  .admin-app:not(.sidebar-collapsed) .sidebar {
    transform: translateX(0);
  }

  .sidebar-collapsed .sidebar {
    width: 260px;
    flex-basis: 260px;
    transform: translateX(-100%);
  }

  .workspace,
  .sidebar-collapsed .workspace {
    margin-left: 0;
  }

  .app-header {
    height: 62px;
    padding: 0 14px;
  }

  .header-left {
    gap: 9px;
    font-size: 12px;
  }

  .header-right {
    gap: 8px;
  }

  .user-menu {
    gap: 6px;
    font-size: 12px;
  }

  .app-content {
    padding: 22px 13px 16px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .content-card {
    padding: 18px 15px;
    border-radius: 13px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .order-pagination {
    justify-content: flex-start;
  }

  .admin-customer-orders-pagination {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.language-toggle {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  color: #52647d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s;
}

.language-toggle:hover {
  transform: translateY(-1px);
  border-color: #b7cbe5;
  background: #f6f9fd;
}

.login-language-toggle {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 22px;
}

.customer-mode .page-heading {
  margin-bottom: 24px;
}

.customer-mode .page-eyebrow {
  font-weight: 700;
  letter-spacing: .16em;
}

.customer-mode .page-heading h1 {
  font-size: clamp(27px, 2.2vw, 34px);
}

.customer-mode .stat-cards {
  gap: 18px;
}

.customer-mode .stat-card {
  min-height: 132px;
  overflow: hidden;
  border-color: #e3eaf4;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(27, 47, 78, .045);
}

.customer-mode .stat-card::after {
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(78, 130, 206, .09);
  border-radius: 50%;
  content: "";
}

.customer-mode .stat-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 23px;
}

.customer-mode .api-key-card {
  border-color: #e2eaf4;
  background: linear-gradient(115deg, #fff, #f8fbff);
}

.customer-mode .api-key-controls {
  border-color: #e1e9f3;
  border-radius: 11px;
}

.customer-mode .service-card,
.customer-mode .recharge-card,
.customer-mode .order-card,
.customer-mode .secondary-card {
  border-radius: 16px;
}

.customer-mode #service-card .service-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}

.customer-mode #service-card .select-field select,
.customer-mode #service-card .select-field input {
  width: 100%;
}

.customer-mode #service-card .service-actions {
  grid-column: 1 / -1;
}

.customer-mode .recharge-flow {
  width: min(100%, 980px);
  margin: 0 auto;
}

.customer-mode .recharge-panel {
  border-radius: 15px;
}

.customer-mode .recharge-step {
  border-radius: 12px;
}

.customer-mode .order-table-wrap,
.customer-mode .table-wrap {
  overflow-x: auto;
}

@media (max-width: 760px) {
  .customer-mode .stat-cards {
    grid-template-columns: 1fr;
  }

  .customer-mode #service-card .service-filters {
    grid-template-columns: 1fr;
  }

  .customer-mode #service-card .service-actions {
    grid-column: auto;
  }
}

.country-search-control {
  position: relative;
  z-index: 2;
  width: min(100%, 220px);
}

.country-search-control input {
  width: 100%;
}

.country-search-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: min(300px, 55vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 42, 68, .16);
  overscroll-behavior: contain;
}

.country-search-options[hidden] {
  display: none;
}

.country-search-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #24344d;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.country-search-option:hover,
.country-search-option.is-active {
  background: #eff5ff;
}

.country-search-option.is-selected {
  color: #245fc7;
  font-weight: 650;
}

.country-search-empty {
  padding: 12px 11px;
  color: #8492a7;
  font-size: 13px;
}

.customer-mode #service-card .country-search-control {
  width: 100%;
}

@media (max-width: 650px) {
  .language-toggle {
    min-height: 33px;
    padding: 0 8px;
    font-size: 11px;
  }

  .login-language-toggle {
    top: 12px;
    right: 12px;
  }

  .customer-mode #service-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-mode #service-card .section-heading > div {
    min-width: 0;
  }
}
