:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: #dce3eb;
  --text: #152033;
  --muted: #66758a;
  --accent: #0f7b6c;
  --accent-2: #2563eb;
  --warn: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(21, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.op-top-navbar.navbar-home {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 32px;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.op-top-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
}

.op-top-navbar .logo {
  width: 32px;
  height: 32px;
  display: block;
  color: #ff6b35;
}

.op-top-navbar .navbar-brand h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.op-top-navbar .navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.op-top-navbar .nav-link {
  text-decoration: none;
  color: #636366;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.op-top-navbar .nav-link:hover,
.op-top-navbar .nav-link.active {
  color: #ff6b35;
  background-color: rgba(255, 107, 53, 0.1);
}

.op-top-navbar .navbar-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: fit-content;
}

.op-top-navbar .auth-btn {
  text-decoration: none;
  color: #ff6b35;
  border: 1px solid #ff6b35;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background-color: transparent;
  cursor: pointer;
}

.op-top-navbar .auth-btn:hover {
  background-color: #ff6b35;
  color: #fff;
}

.op-top-navbar .user-menu {
  align-items: center;
  gap: 8px;
}

.op-top-navbar .user-menu:not(.hidden) {
  display: flex;
}

.op-top-navbar .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.18);
}

.op-top-navbar .username {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  white-space: nowrap;
}

button,
input,
textarea {
  font: inherit;
}

.op-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.op-sidebar {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  padding: 18px;
  background: #f2f2f7;
  color: #111827;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(28, 28, 30, 0.08);
}

.op-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  text-decoration: none;
  padding: 10px 8px 18px;
}

.op-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8faf6;
  color: #0f7b6c;
  font-weight: 800;
}

.op-brand strong,
.op-brand small {
  display: block;
}

.op-brand small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
}

.op-nav {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.op-nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.op-nav-item svg,
.op-btn svg,
.op-sidebar-foot svg,
.op-icon-btn svg {
  width: 17px;
  height: 17px;
}

.op-nav-item.active,
.op-nav-item:hover {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.op-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(28, 28, 30, 0.08);
  padding-top: 14px;
}

.op-sidebar-foot a {
  color: #111827;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.op-main {
  min-width: 0;
  padding: 28px;
}

.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.op-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.op-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

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

.op-status {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.op-btn,
.op-link-btn,
.op-icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.op-btn {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.op-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.op-btn.ghost {
  background: transparent;
}

.op-btn.wide {
  width: 100%;
}

.op-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.op-link-btn {
  border: 0;
  color: var(--accent-2);
  background: transparent;
  font-weight: 700;
}

.op-link-btn.danger {
  color: var(--danger);
}

.op-key-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.op-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.op-section {
  display: none;
}

.op-section.active {
  display: block;
}

.op-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.op-metric,
.op-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.op-metric {
  padding: 18px;
  display: grid;
  gap: 7px;
  min-height: 124px;
}

.op-metric span,
.op-metric small,
.op-panel-head p {
  color: var(--muted);
}

.op-metric strong {
  font-size: 26px;
  line-height: 1.1;
}

.op-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.op-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.op-panel-head h2,
.op-panel-head p {
  margin: 0;
}

.op-panel-head h2 {
  font-size: 18px;
}

.op-panel-head p {
  margin-top: 6px;
  font-size: 13px;
}

.op-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

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

th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}

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

.op-empty {
  color: var(--muted);
  text-align: center;
  padding: 22px;
}

.op-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.op-chip.ok {
  background: #e8faf6;
  color: var(--accent);
}

.op-chip.danger {
  background: #fff1f0;
  color: var(--danger);
}

.op-recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.op-recharge-option {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.op-recharge-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.op-recharge-option.active {
  border-color: var(--accent);
  background: #f0fbf8;
}

.op-form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.op-form-row input,
.op-form-row select,
.op-form-row textarea,
.op-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--text);
}

.op-form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.op-pay-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.op-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.op-recharge-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.op-docs {
  display: grid;
  gap: 16px;
}

.op-service-grid {
  display: grid;
  gap: 18px;
}

.op-service-group {
  display: grid;
  gap: 12px;
}

.op-service-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.op-service-group-head h3,
.op-service-group-head p {
  margin: 0;
}

.op-service-group-head h3 {
  font-size: 17px;
}

.op-service-group-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.op-service-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.op-service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 218px;
}

.op-service-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(15, 123, 108, 0.13);
}

.op-service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.op-service-top strong {
  font-size: 16px;
}

.op-service-price {
  display: grid;
  justify-items: end;
  gap: 7px;
  white-space: nowrap;
}

.op-service-price span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.op-service-price em {
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8faf6;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.op-service-card p,
.op-service-bottom small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.op-service-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef6ff;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.op-service-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-service-scope span {
  border-radius: 8px;
  padding: 7px 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.op-service-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-integration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.op-integration-form .op-form-row {
  margin-bottom: 0;
}

.op-integration-form .full,
.op-integration-form .wide {
  grid-column: 1 / -1;
}

.op-doc-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.op-doc-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.op-doc-block pre {
  margin: 0;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #0f1724;
  color: #e5eef7;
  font-size: 12px;
  line-height: 1.6;
}

.op-faq-list {
  display: grid;
  gap: 10px;
}

.op-faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfdff;
}

.op-faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.op-faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.7;
}

.op-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.op-price-tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.op-price-tier strong,
.op-price-tier span {
  display: block;
}

.op-price-tier strong {
  font-size: 18px;
}

.op-price-tier span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.op-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 36, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.op-modal.show {
  display: flex;
}

.op-modal-box {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.op-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.op-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.op-pay-qr {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.op-pay-qr img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.op-pay-status {
  color: var(--muted);
  text-align: center;
}

.op-contact-success {
  display: grid;
  gap: 12px;
  text-align: center;
}

.op-contact-success img {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.op-contact-success strong {
  font-size: 18px;
}

.op-contact-success p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.op-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  background: #0f1724;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  transition: 0.2s ease;
  z-index: 50;
}

.op-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .op-top-navbar.navbar-home {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .op-top-navbar .navbar-brand h1 {
    font-size: 1.25rem;
  }

  .op-top-navbar .navbar-nav {
    order: 3;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .op-top-navbar .nav-link {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
  }

  .op-top-navbar .auth-btn {
    padding: 7px 12px;
  }

  .op-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .op-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .op-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-sidebar-foot {
    display: none;
  }

  .op-main {
    padding: 18px;
  }

  .op-metrics,
  .op-recharge-grid,
  .op-pricing-grid,
  .op-service-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .op-header,
  .op-panel-head {
    display: grid;
  }

  .op-header-actions {
    justify-content: space-between;
  }

  .op-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-metrics,
  .op-recharge-grid,
  .op-pricing-grid,
  .op-service-group-grid,
  .op-integration-form {
    grid-template-columns: 1fr;
  }

  .op-service-bottom,
  .op-service-top {
    display: grid;
  }

  .op-service-price {
    justify-items: start;
  }
}
