:root {
  --ink: #162137;
  --muted: #6d7b91;
  --line: #dce4ef;
  --panel: #ffffff;
  --page: #f3f6fa;
  --primary: #6352ed;
  --primary-dark: #4e3ed7;
  --blue: #2784ef;
  --green: #0f9f7f;
  --orange: #e68a2e;
  --red: #d9485f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(99,82,237,.09), transparent 28%),
    radial-gradient(circle at 90% 0, rgba(39,132,239,.10), transparent 24%),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.account-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.account-topbar {
  border-bottom: 1px solid rgba(214,224,238,.88);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.account-topbar .account-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.account-brand { display: flex; align-items: center; gap: 12px; }
.account-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}
.account-brand strong { display: block; font-size: 18px; }
.account-brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #465773;
  background: #fff;
  font-weight: 700;
}
.account-main { padding: 34px 0 54px; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 26px;
  align-items: stretch;
}
.intro-panel,
.auth-card,
.profile-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(31,48,73,.08);
}
.intro-panel {
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(99,82,237,.98), rgba(39,132,239,.94)),
    #6352ed;
}
.intro-panel small {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 800;
}
.intro-panel h1 { margin: 24px 0 12px; font-size: 36px; line-height: 1.2; }
.intro-panel p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.8; }
.intro-list { display: grid; gap: 12px; margin-top: 34px; }
.intro-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
}
.auth-card { padding: 30px; }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #f1f4f8;
}
.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: #65738a;
  background: transparent;
  font-weight: 800;
}
.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7a6bf5);
  box-shadow: 0 6px 16px rgba(99,82,237,.22);
}
.auth-form { display: none; margin-top: 24px; }
.auth-form.active { display: block; }
.auth-hero {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f7ff 100%);
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(99,82,237,.10);
  font-size: 12px;
  font-weight: 800;
}
.auth-form h2 { margin: 0 0 7px; font-size: 23px; }
.auth-hero h2 { margin-top: 12px; }
.sub { margin: 0; color: var(--muted); line-height: 1.65; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; color: #485873; font-size: 13px; font-weight: 800; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ccd7e6;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fbfcfe;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,82,237,.10); }
.password-field { position: relative; }
.password-field .input { padding-right: 66px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  color: var(--primary);
  background: #f0ecff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,82,237,.12);
}
.code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}
.button-primary { width: 100%; margin-top: 20px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.button-soft { color: #475875; background: #edf1f6; }
.button-danger { color: var(--red); background: #fff0f2; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.auth-login-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #f8faff;
}
.auth-login-tip {
  margin-top: 10px;
  color: #75839a;
  font-size: 12px;
  line-height: 1.6;
}
.local-code {
  display: none;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #f0d39e;
  border-radius: 11px;
  color: #7b4a00;
  background: #fff8e8;
  font-size: 13px;
}
.local-code.show { display: block; }
.form-message { min-height: 22px; margin-top: 13px; color: var(--red); font-size: 13px; }
.form-message.success { color: var(--green); }
.field-message { min-height: 18px; margin-top: 8px; color: var(--red); font-size: 13px; line-height: 1.4; }
.tg-stage { display: none; }
.tg-stage.show { display: block; }
.tg-note {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 13px;
  color: #5d6c82;
  background: #f4f7fb;
  line-height: 1.6;
  font-size: 13px;
}
.button-telegram {
  width: 100%;
  margin-top: 20px;
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #2784ef);
  box-shadow: 0 8px 20px rgba(34,158,217,.20);
}
#registerForm .button-primary,
#telegramForm .button-primary,
#telegramForm .button-telegram {
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(99,82,237,.18);
}
#registerForm .form-message,
#telegramForm .form-message {
  margin-top: 14px;
}
.code-row .button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.tg-bot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfe6f3;
  border-radius: 14px;
  background: #f2faff;
}
.tg-bot-card strong, .tg-bot-card span { display: block; }
.tg-bot-card span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tg-bot-card .button { min-height: 38px; flex: 0 0 auto; }
.auth-fallback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3eaf3;
}
.auth-fallback[open] {
  padding: 16px 16px 0;
  border: 1px solid #e3eaf3;
  border-radius: 16px;
  background: #fbfcff;
}
.auth-fallback summary {
  width: max-content;
  color: #586a84;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.auth-fallback[open] summary {
  margin-bottom: 8px;
}
.profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.profile-heading h1 { margin: 0 0 7px; font-size: 30px; }
.profile-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.profile-card, .info-card { padding: 25px; }
.profile-card { grid-row: span 2; }
.profile-id { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #e5ebf3; }
.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--blue));
}
.profile-id h2 { margin: 0 0 5px; }
.profile-id p { margin: 0; color: var(--muted); }
.profile-name { min-width: 0; flex: 1; }
.profile-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-title-row { display: flex; align-items: center; gap: 10px; }
.profile-title-row h2 { margin: 0; }
.inline-action {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--primary);
  background: #f0edff;
  font-size: 12px;
  font-weight: 800;
}
#loginForm .button-primary {
  min-height: 50px;
  margin-top: 18px;
  box-shadow: 0 12px 28px rgba(99,82,237,.22);
}
#loginForm .form-message { margin-top: 14px; }
.details { display: grid; gap: 15px; margin-top: 21px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; word-break: break-all; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.profile-action-panel {
  margin-top: 17px;
  padding: 16px;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  background: #f8fafc;
}
.profile-action-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.profile-action-heading strong, .profile-action-heading span { display: block; }
.profile-action-heading span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-action-stack { display: grid; gap: 9px; margin-top: 13px; }
.profile-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 13px; align-items: center; }
.profile-action-stack .profile-action-row { margin-top: 0; }
.dual-inputs { grid-template-columns: minmax(0, 1fr) auto; }
.profile-action-row .button { margin-top: 0; min-height: 46px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 31, 50, .48);
  backdrop-filter: blur(4px);
}
#totpConfirmModal { z-index: 130; }
.modal-card {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 20px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(10, 23, 44, .28);
}
.account-modal-card {
  border: 1px solid rgba(220, 228, 239, .96);
}
.sensitive-modal-card {
  width: min(520px, 100%);
}
.user-detail-modal-card {
  width: min(calc(100vw - 76px), 1280px);
  max-height: calc(100vh - 76px);
  padding: 28px 30px;
}
.account-modal-row {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}
.account-modal-stack {
  margin-top: 16px;
}
.reset-password-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.reset-password-heading {
  display: block;
}
.reset-password-hero {
  margin-bottom: 0;
}
.reset-password-hero strong {
  margin-top: 12px;
  font-size: 24px;
}
#cancelResetPasswordBtn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
}
.reset-password-stack {
  gap: 12px;
}
.reset-password-email-row {
  grid-template-columns: minmax(0, 1fr) 140px;
}
.reset-password-email-row .button {
  min-height: 50px;
  border-radius: 14px;
}
.reset-password-code-row {
  margin-top: 0;
}
.reset-password-credential-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.reset-password-credential-row .input {
  min-width: 0;
}
#resetPasswordMessage {
  margin-top: 14px;
}
#confirmResetPasswordBtn {
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(99,82,237,.20);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.modal-actions .button {
  margin-top: 0;
  min-width: 112px;
}
.tg-bind-stage { display: none; }
.tg-bind-stage.show { display: block; }
.info-card h3 { margin: 0 0 9px; }
.api-connections-card { scroll-margin-top: 24px; }
.api-connections-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.api-add-button { width:auto; min-width:156px; margin-top:0; }
.api-usage-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:17px; }
.api-usage-list span {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border:1px solid #d8e5f3;
  border-radius:999px;
  color:#38516b;
  background:#f3f8fd;
  font-size:12px;
  font-weight:800;
}
.api-connections-summary { margin-top:16px; color:#52647e; font-size:13px; }
.api-connections-list { display:grid; gap:10px; margin-top:12px; }
.api-connection-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 16px;
  border:1px solid #dce5f1;
  border-radius:14px;
  background:#f9fbfe;
}
.api-connection-main { min-width:0; }
.api-connection-main strong, .api-connection-main span { display:block; }
.api-connection-main span { margin-top:5px; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.api-connection-actions { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:8px; }
.api-connection-actions .button { min-height:36px; }
.api-connections-empty {
  padding:22px;
  border:1px dashed #b7c8db;
  border-radius:14px;
  color:var(--muted);
  text-align:center;
  background:#fbfcfe;
}
.api-editor-card {
  width:min(760px, 100%);
  padding:18px 20px;
}
.api-setup-guide {
  margin-top:12px;
  padding:13px;
  border:1px solid #d7e5f4;
  border-radius:14px;
  background:#f5f9fe;
}
.api-setup-guide-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.api-setup-guide-head strong, .api-setup-guide-head span { display:block; }
.api-setup-guide-head strong { color:#263a56; font-size:14px; }
.api-setup-guide-head span { margin-top:4px; color:var(--muted); font-size:12px; }
.api-site-button { flex:0 0 auto; margin-top:0 !important; text-decoration:none; }
.api-setup-steps {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin:11px 0 0;
  padding:0;
  list-style:none;
}
.api-setup-steps li {
  display:grid;
  grid-template-columns:28px minmax(0, 1fr);
  gap:8px;
  padding:9px 10px;
  border:1px solid #dde8f4;
  border-radius:12px;
  background:#fff;
}
.api-setup-steps li > span {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  color:#fff;
  background:#6252ed;
  font-size:12px;
  font-weight:900;
}
.api-setup-steps strong { display:block; color:#30445f; font-size:13px; }
.api-setup-steps p { margin:2px 0 0; color:#667790; font-size:12px; line-height:1.4; overflow-wrap:anywhere; word-break:break-word; }
.api-editor-card .account-modal-stack {
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:9px 12px;
  margin-top:12px;
}
.api-editor-card .account-modal-stack .field:first-child { grid-column:1 / -1; }
.api-editor-card .modal-actions { margin-top:12px; }
.api-editor-guide, .api-delete-warning {
  margin-top:16px;
  padding:13px 15px;
  border:1px solid #d7e5f4;
  border-radius:12px;
  color:#4d617a;
  background:#f3f8fd;
  line-height:1.65;
  font-size:13px;
}
.api-editor-guide a { color:var(--blue); font-weight:800; }
.api-delete-warning { border-color:#f0c8cf; color:#9f3145; background:#fff5f6; }
.plan-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.countdown { margin-top: 14px; font-size: 28px; font-weight: 900; letter-spacing: .02em; }
.countdown.expired { color: var(--red); }
.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 20px;
  grid-column: 1 / -1;
  align-items: start;
}
.wallet-top-row { display:grid; grid-template-columns:minmax(155px, .9fr) minmax(0, 1.7fr); gap:12px; margin:18px 0 24px; }
.wallet-balance { display:flex; flex-direction:column; justify-content:center; gap:10px; min-width:0; padding:18px; border:1px solid #dcd6fb; border-radius:14px; background:linear-gradient(135deg, #f5f2ff, #faf9ff); color:var(--muted); }
.wallet-balance strong { color:var(--primary); font-size:clamp(27px, 2.4vw, 34px); line-height:1.1; font-weight:900; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.wallet-address-panel { min-width:0; padding:16px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.wallet-address-panel .field { margin-top:0; }
.wallet-address-panel .sub { margin-top:8px; overflow-wrap:anywhere; }
.wallet-binding-verified { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; background:#dcf7eb; color:#087d57; font-size:12px; font-weight:800; line-height:1.5; }
.package-card .wallet-redeem { min-width:0; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.wallet-redeem h4 { margin:0 0 10px; }
.wallet-redeem .redeem-row { margin-top:0; }
.wallet-redeem .redeem-row .input { min-width:0; }
.wallet-inline { display:flex; gap:9px; }
.wallet-inline .input { min-width:0; flex:1; }
.wallet-inline .button { flex:0 0 auto; margin-top:0; }
#walletAmountInput { appearance:textfield; }
#walletAmountInput::-webkit-inner-spin-button, #walletAmountInput::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.wallet-quick { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.wallet-quick button { padding:7px 12px; border:1px solid var(--line); border-radius:9px; background:#f8fafc; color:#465773; font-weight:700; }
.wallet-quick button:hover { border-color:var(--primary); color:var(--primary); }
.wallet-order-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; padding:15px; border-radius:14px; background:#f0edff; }
.wallet-order-summary strong { color:var(--primary); font-size:26px; }
.wallet-order-summary span { color:#845a20; font-weight:700; }
.wallet-history-title { margin:22px 0 9px; padding-top:20px; border-top:1px solid var(--line); }
.wallet-order-list { display:grid; gap:7px; }
.wallet-order-item { display:grid; grid-template-columns:minmax(0,1fr) 108px 76px 68px; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.wallet-order-detail { min-width:0; overflow-wrap:anywhere; color:var(--muted); }
.wallet-order-amount { text-align:right; white-space:nowrap; }
.wallet-order-item.purchase .wallet-order-amount { color:#9b4b55; }
.wallet-order-status { text-align:center; white-space:nowrap; font-weight:700; }
.wallet-order-delete { padding:4px 6px; border:0; border-radius:6px; color:var(--red); background:transparent; font-size:12px; font-weight:700; cursor:pointer; }
.wallet-order-delete:hover { background:#fff0f1; }
.invite-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b7c4d8;
  border-radius: 12px;
  background: #f8fafc;
}
.invite-link strong { min-width: 0; color: #354760; font-size: 13px; line-height: 1.5; }
.invite-link .button { flex: 0 0 auto; }
.invite-summary-card { grid-column: 1 / -1; }
.invite-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.invite-summary-item {
  padding: 14px 16px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.invite-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.invite-summary-item strong {
  display: block;
  margin-top: 8px;
  color: #1f2a44;
  font-size: 24px;
  font-weight: 900;
}
.invite-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.invite-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.invite-detail-item strong,
.invite-detail-item span {
  display: block;
}
.invite-detail-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.invite-detail-meta {
  text-align: right;
}
.hidden { display: none !important; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.break-all { word-break: break-all; }
.muted { color: var(--muted); font-size: 12px; }
.user-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.user-telegram-link { color: var(--blue); font-weight: 700; }
.user-telegram-link:hover { text-decoration: underline; }
.user-telegram-id { color: var(--muted); font-size: 12px; }
.button.compact { width: auto; margin-top: 16px; }
.payment-box {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #e0e7f0;
  border-radius: 14px;
  background: #f8fafc;
}
.payment-box > div { display: flex; justify-content: space-between; gap: 16px; }
.payment-box span { color: var(--muted); }
.payment-box strong { text-align: right; }
.payment-notice { margin: 6px 0 0; color: #dc2626; font-weight: 800; line-height: 1.65; }
.copy-payment-address {
  display: grid;
  justify-items: end;
  gap: 3px;
  max-width: 72%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}
.copy-payment-address:not(:disabled):hover strong { color: var(--primary); }
.copy-payment-address:disabled { cursor: default; }
.copy-payment-address small { color: var(--primary); font-weight: 800; }
.copy-payment-address small.success { color: var(--green); }
.payment-qr-button { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; color: var(--primary); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: zoom-in; }
.payment-qr-button:hover .payment-qr, .payment-qr-button:focus-visible .payment-qr { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 72, 104, .16); }
.payment-qr-button:focus-visible { outline: 3px solid rgba(99, 82, 237, .22); outline-offset: 4px; border-radius: 14px; }
.payment-qr { width: 152px; max-height: 152px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.payment-qr-modal-card { width: min(560px, 100%); overflow: hidden; }
.payment-qr-large { display: block; width: min(440px, 82vw); max-height: min(65vh, 540px); margin: 22px auto 2px; object-fit: contain; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.payment-box > .payment-visual-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.payment-visual-label { color: var(--muted); }
.payment-box > .payment-visual-row > .payment-visual {
  display: grid;
  justify-items: end;
  gap: 10px;
  padding: 4px 0 6px;
}
.payment-contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #334660;
  font-weight: 800;
}
.payment-contact { color: var(--primary); font-weight: 800; }
.payment-contact:hover { text-decoration: underline; }
.package-list { display: grid; gap: 12px; margin-top: 18px; }
.package-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: #f8fafc;
}
.package-item > div { min-width: 0; }
.package-item strong, .package-item span { display: block; }
.package-item strong { font-size: 15px; }
.package-item span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.package-item .button { margin: 0; }
.package-item b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 13px;
}
.package-item.starter-featured {
  border: 2px solid #edbd59;
  background: linear-gradient(120deg, #fff8e8, #fffdf7);
  box-shadow: 0 10px 24px rgba(183, 125, 25, .12);
}
.package-item.starter-featured strong { font-size: 18px; color: #7a4215; }
.package-item.starter-featured b { background: linear-gradient(135deg, #efaa35, #d97521); font-size: 15px; }
.package-item .starter-badge {
  display: inline-block;
  width: fit-content;
  margin: 0 0 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9b5216;
  background: #ffebbd;
  font-size: 12px;
  font-weight: 800;
}
.package-item.starter-purchased { border-color: #dce1e8; background: #eef1f5; opacity: .68; }
.package-item.starter-purchased b, .package-item.starter-purchased .button { background: #8993a2; }
.subscription-onetime-note { margin-top: 18px; }
#subscriptionPanel .profile-action-heading strong { font-size: 24px; line-height: 1.3; }
#subscriptionPanel .profile-action-heading span { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.subscription-renew-row { display: flex; align-items: center; gap: 9px; margin: 20px 0 12px; color: #8492a8; font-size: 13px; font-weight: 400; line-height: 1.5; }
.subscription-renew-row input { flex: 0 0 auto; margin: 0; accent-color: #aab5c7; opacity: .7; }
#paymentPanel.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
#paymentPanel > .info-card { min-width: 0; }
#paymentPanel .admin-form-card { max-width: none; }
.subscription-settings-card { margin-top: 0; }
.wallet-admin-card { grid-column:1 / -1; }
.wallet-admin-card h4 { margin:23px 0 10px; }
.wallet-admin-card .section-heading { align-items: center; flex-wrap: wrap; }
.wallet-admin-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.wallet-admin-actions .button { margin-top: 0; }
.wallet-chain-balance { display: flex; box-sizing: border-box; min-height: 44px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #dce5f4; border-radius: 12px; color: #475875; background: #f8fbff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.wallet-chain-balance strong { color: #4535c9; font-size: 16px; }
.wallet-chain-balance.error strong { color: #c5364b; }
.wallet-monitor-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-weight: 800; }
.wallet-monitor-badge.success { color: #0b8066; background: #def8ee; }
.wallet-monitor-badge.error { color: #c5364b; background: #fff0f2; }
.wallet-chain-link { color:#2582d8; text-decoration:none; font-weight:600; }
.wallet-chain-link:hover { text-decoration:underline; }
.wallet-chain-button { padding:0; border:0; background:transparent; font:inherit; text-align:left; cursor:pointer; }
.wallet-order-modal-card { width:min(620px, 100%); }
.wallet-order-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.wallet-order-detail-grid > div { padding:12px; border:1px solid var(--line); border-radius:12px; color:var(--muted); font-size:13px; }
.wallet-order-detail-grid > div:first-child { grid-column:1 / -1; }
.wallet-order-detail-grid strong { display:block; margin-top:5px; color:var(--ink); font-size:15px; }
.wallet-order-chain-detail { margin-top:18px; padding:16px; border-radius:12px; background:#f7f9fc; color:var(--muted); }
.recharge-status { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:800; line-height:1.3; white-space:nowrap; }
.recharge-status::before { content:""; width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:currentColor; }
.recharge-status-pending { color:#245db6; background:#eaf2ff; }
.recharge-status-paid { color:#11794e; background:#e5f6ed; }
.recharge-status-expired { color:#657387; background:#edf0f4; }
.recharge-status-review { color:#a45a0a; background:#fff0db; }
.recharge-status-unknown { color:#59677c; background:#eef1f5; }
.wallet-history-modal-card { width:min(calc(100vw - 76px), 1120px); max-height:calc(100vh - 76px); padding:28px 30px; }
.wallet-history-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }
.wallet-history-stat { padding:14px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; color:var(--muted); font-size:12px; }
.wallet-history-stat strong { display:block; margin-top:5px; color:var(--ink); font-size:22px; }
.wallet-history-tabs, .wallet-history-pages, .wallet-history-pages > div { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.wallet-history-tabs { margin:18px 0; }
.wallet-history-tabs .button, .wallet-history-pages .button { margin:0; }
.wallet-history-tabs .active { color:#fff; background:var(--primary); }
.wallet-history-filter { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.wallet-history-filter .input { width:auto; min-width:140px; }
.wallet-history-pages { justify-content:space-between; margin-top:14px; }
.wallet-detail-modal-card { width: min(760px, 100%); }
.wallet-detail-balance { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; color: var(--muted); }
.wallet-detail-balance strong { display: block; margin-top: 4px; color: #5b45e9; font-size: 27px; }
.wallet-detail-modal-card h4 { margin: 22px 0 10px; }
.wallet-balance-link { font-weight: 800; }
.wallet-adjust-form { display:grid; grid-template-columns:160px minmax(0,1fr) auto; align-items:end; gap:10px; margin-top:18px; }
.wallet-adjust-form .button { margin:0; }
.subscription-settings-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.subscription-setting-header, .subscription-setting { display: grid; grid-template-columns: 106px repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; min-width: 0; }
.subscription-setting-header { padding: 0 13px; color: #485873; font-size: 12px; font-weight: 800; }
.subscription-setting { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.subscription-setting > strong { display: block; font-size: 14px; }
.subscription-setting > strong small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.subscription-setting[data-subscription-plan="starter"] { border-color: #edbd59; background: linear-gradient(120deg, #fff8e8, #fffdf7); box-shadow: inset 0 0 0 1px #edbd59; }
.subscription-setting[data-subscription-plan="starter"] > strong { color: #7a4215; }
.subscription-setting[data-subscription-plan="starter"] > strong small { color: #9b5216; font-weight: 700; }
.subscription-setting .field { min-width: 0; margin-top: 0; }
.subscription-setting .field label { display: none; }
.card-batch-limit { display: flex; align-items: center; gap: 9px; margin: 16px 0 4px; color: #485873; font-size: 13px; font-weight: 700; }
.card-batch-limit input { flex: 0 0 auto; margin: 0; }
.redeem-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 14px; align-items: center; }
.redeem-row .button { margin-top: 0; min-height: 46px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31,48,73,.05);
}
.admin-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: #66758c;
  background: transparent;
  font-weight: 800;
}
.admin-tab.active { color: #fff; background: linear-gradient(135deg, var(--primary), #7a6bf5); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.platform-settings-heading { margin-bottom: 16px; }
.platform-settings-heading h2 { margin: 0 0 5px; font-size: 21px; }
.platform-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.platform-config-card { max-width: none; min-width: 0; }
.secret-token-input { -webkit-text-security: disc; }
.platform-config-wide { grid-column: 1 / -1; }
.platform-config-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.platform-config-title-with-action { justify-content: space-between; }
.platform-config-title-with-action > div { flex: 1; min-width: 0; }
.platform-config-guide-btn { margin-top: 0 !important; flex: 0 0 auto; }
.platform-config-title > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 8px;
  color: #5a4de2;
  background: #eeecff;
  font-size: 12px;
  font-weight: 900;
}
.platform-config-title h3 { margin: 1px 0 4px; }
.platform-config-title .sub { margin: 0; }
.rogue-bot-guide-link { padding: 0; border: 0; color: var(--primary); background: none; font: inherit; font-weight: 800; }
.rogue-bot-guide-link:hover { text-decoration: underline; }
.rogue-bot-guide-modal-card { width: min(640px, 100%); }
.rogue-bot-guide-modal-card h3 { margin: 18px 0 8px; }
.rogue-bot-guide-modal-card ol { margin: 0 0 18px; padding-left: 24px; line-height: 1.8; }
.rogue-bot-guide-modal-card li + li { margin-top: 10px; }
.rogue-bot-guide-modal-card a { color: var(--primary); font-weight: 800; }
.rogue-bot-guide-close { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 8px; color: #66758c; background: #f0f3f8; font-size: 24px; line-height: 1; }
.rogue-bot-guide-close:hover { color: var(--ink); background: #e6ebf3; }
.rogue-bot-guide-note { padding: 14px 16px; border-radius: 12px; background: #f8faff; color: #43536e; line-height: 1.65; }
.tron-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 9px;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  background: #f8fbff;
}
.tron-key-row strong { color: #34445f; }
.email-guide-modal-card { max-width: 860px; }
.email-provider-configs { display: grid; gap: 14px; margin-bottom: 16px; }
.email-provider-guide + .email-provider-configs { margin-top: 18px; }
.email-provider-config-card {
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #fbfdff;
}
.email-template-card {
  margin: 18px 0 16px;
  padding: 16px;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: #f8fbff;
}
.email-template-grid {
  display: grid;
  gap: 12px;
}
.email-template-item {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.email-template-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}
.email-template-item summary::-webkit-details-marker { display: none; }
.email-template-item summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  color: #4f46e5;
  background: #eeecff;
  font-weight: 900;
}
.email-template-item[open] summary::after { content: "-"; }
.email-template-item strong,
.email-template-item span { display: block; }
.email-template-item strong { color: #253956; font-size: 14px; }
.email-template-item summary span { margin-top: 4px; color: #667790; font-size: 12px; line-height: 1.5; }
.email-template-fields {
  display: grid;
  gap: 10px;
  padding: 0 13px 13px;
}
.email-template-item .textarea { min-height: 82px; }
.email-provider-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.email-provider-pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #d9e5f2;
  border-radius: 16px;
  background: #fff;
  color: #253956;
  text-align: left;
  box-shadow: 0 10px 22px rgba(37, 60, 93, 0.05);
  cursor: pointer;
}
.email-provider-pick-card.active {
  border-color: #1db58b;
  background: #f1fbf7;
}
.email-provider-pick-card strong,
.email-provider-pick-card span { display: block; }
.email-provider-pick-card div span { margin-top: 4px; color: #667790; font-size: 12px; line-height: 1.5; }
.email-provider-app-icon {
  display: grid !important;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3eaf4;
  overflow: hidden;
}
.email-provider-app-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.email-provider-pick-mark {
  display: grid !important;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  color: #4f46e5;
  background: #eeecff;
  font-size: 13px;
  font-weight: 900;
}
.email-provider-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.email-verification-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.email-stat-item {
  padding: 10px 12px;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  background: #f8fbff;
}
.email-stat-item span,
.email-stat-item strong { display: block; }
.email-stat-item span { color: #667790; font-size: 12px; line-height: 1.4; }
.email-stat-item strong { margin-top: 4px; color: #253956; font-size: 16px; line-height: 1.35; word-break: break-all; }
.email-stat-alert {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #b42318;
  background: #fff5f5;
  font-size: 12px;
  font-weight: 800;
}
.email-provider-card {
  position: relative;
  display: grid;
  min-height: 126px;
  gap: 6px;
  align-content: start;
  padding: 11px 12px;
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  background: #fff;
  color: #253956;
  text-align: left;
  box-shadow: 0 10px 22px rgba(37, 60, 93, 0.05);
  cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.email-provider-card:active { cursor: grabbing; }
.email-provider-card:hover,
.email-provider-card:focus-visible {
  border-color: #8fb7ee;
  box-shadow: 0 14px 28px rgba(37, 60, 93, 0.09);
  outline: none;
  transform: translateY(-1px);
}
.email-provider-card.dragging {
  opacity: .72;
  box-shadow: 0 18px 36px rgba(37, 60, 93, 0.14);
}
.email-provider-card.primary-card { border-color: #1db58b; background: #f1fbf7; }
.email-provider-add-card {
  display: grid;
  min-height: 126px;
  gap: 8px;
  align-content: center;
  padding: 11px 12px;
  border: 1px dashed #cbd9e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
  color: #253956;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 22px rgba(37, 60, 93, 0.04);
}
.email-provider-add-card:hover { border-color: #97c2ea; }
.email-provider-add-title { display: flex; align-items: center; gap: 10px; }
.email-provider-add-title strong,
.email-provider-add-title span { display: block; }
.email-provider-add-title span:not(.email-provider-add-mark) { margin-top: 4px; color: #667790; font-size: 12px; line-height: 1.5; }
.email-provider-add-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  color: #1f4f84;
  background: #e8f2ff;
  font-size: 19px;
  font-weight: 900;
}
.email-provider-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 66px 7px 0;
  border-bottom: 1px solid #edf2f7;
}
.email-provider-card-head strong,
.email-provider-card-head span { display: block; }
.email-provider-card-tools {
  display: grid;
  justify-items: end;
  gap: 7px;
  flex: 0 0 auto;
}
.email-provider-delete {
  position: absolute;
  top: 8px;
  display: grid;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.email-provider-delete {
  right: 8px;
  width: 22px;
  color: #9b1c1c;
  background: #fff1f1;
  font-size: 17px;
}
.email-provider-delete:hover { color: #fff; background: #d92d20; }
.email-provider-meta { color: #65748a; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.email-provider-sent-count { color: #d92d20; font-size: 14px; font-weight: 900; }
.email-provider-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.email-provider-status {
  display: inline-flex !important;
  width: max-content;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800;
}
.email-provider-status.ok { color: #087a57 !important; background: #e8f8f2; }
.email-provider-status.danger { color: #b42318 !important; background: #fff0f2; }
.email-provider-card.add-card {
  place-content: center;
  justify-items: center;
  border-style: dashed;
  color: #4f46e5;
  cursor: pointer;
  text-align: center;
}
.email-provider-card strong { font-size: 14px; line-height: 1.3; }
.email-provider-card span { color: #667790; font-size: 11px; line-height: 1.35; word-break: break-all; }
.email-provider-card small { color: #087a57; font-weight: 800; }
.email-provider-card .button { width: max-content; margin-top: 0; }
.email-provider-chip {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #32506f !important;
  background: #eef4fb;
  font-size: 11px !important;
  font-weight: 900;
}
.primary-card .email-provider-chip { color: #087a57 !important; background: #dff7ee; }
.email-fallback-state { min-height: 48px; display: flex; align-items: center; }
.email-provider-guide + .email-provider-guide { margin-top: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31,48,73,.05);
}
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 8px; font-size: 26px; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.overview-summary-card { margin-bottom: 20px; }
.overview-summary-card .metric-grid { gap: 10px; margin-bottom: 0; }
.overview-metric { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 94px; padding: 14px; border-radius: 14px; box-shadow: none; }
.overview-metric-copy { min-width: 0; }
.overview-metric .overview-metric-copy span { font-size: 12px; font-weight: 700; }
.overview-metric .overview-metric-copy strong { margin-top: 3px; font-size: 24px; line-height: 1.2; white-space: nowrap; }
.overview-metric .overview-metric-copy small { margin-top: 3px; }
.overview-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; }
.metric .overview-icon, .list-item .overview-icon { display: grid; margin-top: 0; }
.overview-icon::before { content: ''; display: block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--overview-icon) center / contain no-repeat; mask: var(--overview-icon) center / contain no-repeat; }
.overview-icon.overview-icon-violet { color: #6250dc; background: #eeebff; }
.overview-icon.overview-icon-blue { color: #3486e8; background: #e8f2ff; }
.overview-icon.overview-icon-teal { color: #0da994; background: #e5f7f3; }
.overview-icon.overview-icon-red { color: #e94265; background: #fff0f3; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wide-card { grid-column: 1 / -1; }
.overview-activity-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.overview-activity-tab { border: 0; border-radius: 10px; padding: 9px 14px; background: #f1f4fb; color: #52627f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.overview-activity-tab.active { background: #6250dc; color: #fff; }
.overview-activity-table { min-width: 760px; }
.overview-activity-table td { vertical-align: middle; }
.overview-activity-table td:first-child { white-space: nowrap; color: #61718b; }
.overview-activity-type { display: inline-flex; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.overview-activity-type-recharge { color: #286fc9; background: #e8f2ff; }
.overview-activity-type-purchase { color: #6250dc; background: #eeebff; }
.overview-activity-type-card { color: #0d927f; background: #e5f7f3; }
.overview-activity-status { display: inline-flex; align-items: center; gap: 6px; color: #0d927f; font-size: 12px; font-weight: 700; }
.overview-activity-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.overview-login-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-transaction-row { justify-content: flex-start; padding: 9px 13px; }
.overview-transaction-row .overview-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 11px; }
.overview-transaction-row .overview-icon::before { width: 23px; height: 23px; }
.overview-transaction-value { margin-left: auto; text-align: right; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-heading h3 { margin-bottom: 4px; }
.list-stack { display: grid; gap: 9px; margin-top: 15px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #e3e9f1; border-radius: 13px; background: #f9fbfd; }
.list-item strong, .list-item span { display: block; }
.list-item span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.channel-binding-item { align-items: flex-start; }
.channel-result-item { padding: 13px 14px; border: 1px solid #e3e9f1; border-radius: 13px; background: #f9fbfd; }
.channel-binding-main { display: grid; gap: 8px; margin-top: 12px; }
.channel-binding-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-binding-row span { color: #64748b; font-size: 12px; }
.channel-binding-row strong { font-size: 13px; color: #1f2a44; }
.binding-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.binding-tag { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #edeafd; color: #4f46e5; font-size: 12px; font-weight: 700; }
.binding-tag.muted-tag { background: #f1f5f9; color: #64748b; }
.mass-send-columns { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.75fr; gap: 14px; margin-top: 12px; align-items: start; }
.mass-send-column { display: grid; gap: 10px; min-width: 0; }
.mass-send-column-title { color: #64748b; font-size: 12px; font-weight: 800; }
.mass-send-control-card { min-height: 134px; padding: 14px; border: 1px solid #e3e9f1; border-radius: 16px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); display: grid; gap: 12px; align-content: start; box-shadow: 0 8px 24px rgba(148, 163, 184, 0.08); }
.mass-send-control-note { color: #7b8aa5; font-size: 12px; line-height: 1.6; }
.mass-send-bot-select { width: 100%; }
.mass-send-bot-card { padding: 12px 12px 10px; border: 1px solid #d9e3f0; border-radius: 14px; background: linear-gradient(180deg, #f7f6ff 0%, #eef4ff 100%); }
.mass-send-bot-card.active { border-color: #8d82ff; box-shadow: inset 0 0 0 1px rgba(124, 108, 255, 0.08); }
.mass-send-bot-meta { display: grid; gap: 10px; }
.mass-send-bot-meta-line { display: grid; gap: 4px; }
.mass-send-bot-meta-line strong { color: #1f2a44; font-size: 15px; line-height: 1.35; word-break: break-all; }
.mass-send-bot-meta-label { display: block; color: #7b8aa5; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.mass-send-bot-meta-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mass-send-detail-card { min-height: 134px; padding: 16px; border: 1px solid #e3e9f1; border-radius: 16px; background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fd 100%); box-shadow: 0 8px 24px rgba(148, 163, 184, 0.08); display: grid; gap: 12px; align-content: start; }
.mass-send-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #e7edf5; }
.mass-send-header strong,
.mass-send-header span { display: block; }
.mass-send-header strong { color: #1f2a44; font-size: 15px; line-height: 1.4; }
.mass-send-header span { color: #64748b; font-size: 12px; line-height: 1.65; margin-top: 6px; }
.mass-send-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mass-send-actions .text-button { padding: 9px 12px; border-radius: 12px; font-weight: 800; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.mass-send-actions .text-button.mass-send-action-primary { background: linear-gradient(135deg, #4f7cff 0%, #2563eb 100%); color: #ffffff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22); }
.mass-send-actions .text-button.mass-send-action-primary:hover { background: linear-gradient(135deg, #4573f3 0%, #1d4ed8 100%); }
.mass-send-actions .text-button.mass-send-action-secondary { background: #f3f7fd; color: #4d5f7c; border: 1px solid #dbe5f0; box-shadow: none; }
.mass-send-actions .text-button.mass-send-action-secondary:hover { background: #eaf1fb; color: #1f2a44; }
.mass-send-summary { color: #64748b; font-size: 12px; font-weight: 700; }
.mass-send-channel-select,
.mass-send-tag-select { width: 100%; }
.plan-pie-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 10px; }
.plan-pie-wrap { display: flex; align-items: center; justify-content: center; }
.plan-pie-chart { width: 180px; height: 180px; display: block; }
.plan-pie-total-label { fill: #7b8aa5; font-size: 12px; font-weight: 700; }
.plan-pie-total-value { fill: #1f2a44; font-size: 22px; font-weight: 800; }
.plan-pie-legend { display: grid; gap: 9px; }
.plan-pie-legend-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 46px; gap: 9px; align-items: center; padding: 4px 0; }
.plan-pie-dot { width: 10px; height: 10px; border-radius: 999px; }
.plan-pie-legend-item strong,
.plan-pie-legend-item span { display: block; }
.plan-pie-legend-item .plan-pie-legend-name { font-size: 13px; }
.plan-pie-legend-item .plan-pie-legend-count { font-size: 13px; text-align: right; }
.plan-pie-legend-item .plan-pie-legend-percent { margin-top: 0; color: var(--muted); font-size: 12px; text-align: right; }
.status-chip { display: inline-flex !important; width: max-content; padding: 5px 9px; border-radius: 999px; color: var(--green) !important; background: #e7f8f3; font-size: 12px; font-weight: 800; }
.status-chip.danger { color: var(--red) !important; background: #fff0f2; }
.table-wrap { width: 100%; overflow-x: auto; }
.recent-user-extra { margin-top: 12px; }
.recent-user-extra summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  color: #344966;
  background: #eef3f9;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.recent-user-extra summary::-webkit-details-marker { display: none; }
.recent-user-extra[open] .table-wrap { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e8edf4; text-align: left; vertical-align: top; font-size: 13px; }
th { color: #53627a; background: #f8fafc; white-space: nowrap; }
.content-cell { min-width: 240px; max-width: 520px; }
.empty { padding: 16px; color: var(--muted); text-align: center; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.generated-codes { margin-top: 16px; padding: 14px; border: 1px dashed #9eb0c8; border-radius: 12px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f8fafc; }
.card-code { display: inline-block; white-space: nowrap; }
.card-secret { border-radius: 3px; color: var(--blue); background: #edeafd; box-shadow: 0 0 0 4px #edeafd; cursor: pointer; }
.card-secret:hover, .card-secret:focus-visible { text-decoration: underline; }
.card-copy-status { display: inline-block; box-sizing: border-box; padding: 5px 8px; border-radius: 8px; color: var(--blue); background: #eef6ff; font-size: 13px; font-weight: 700; text-align: center; white-space: nowrap; }
.card-copy-status.copied { color: #0b8066; background: #def8ee; }
.card-list-toggle { margin-top: 12px; }
.compact-grid { grid-template-columns: 1fr 1fr; margin: 16px 0 0; }
.compact-grid .metric { box-shadow: none; }
.admin-user-detail { display: grid; gap: 16px; margin-top: 16px; }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-detail-list { margin-top: 0; }
.text-button { padding: 5px 8px; border: 0; border-radius: 8px; color: var(--blue); background: #eef6ff; font-weight: 700; }
.info-text { color: #2563eb; background: #eaf2ff; }
.warning-text { color: #9a5a00; background: #fff5db; }
.success-text { color: var(--green); background: #e7f8f3; }
.danger-text { color: var(--red); background: #fff0f2; }
.admin-form-card { max-width: 820px; }
.file-input { padding: 8px; }
.textarea { min-height: 100px; resize: vertical; }
.security-state { margin: 16px 0; padding: 14px; border-radius: 12px; color: #445571; background: #f3f6fa; font-weight: 800; }
.totp-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.totp-setup { margin-top: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.totp-setup-content { display: flex; align-items: center; gap: 18px; }
.totp-setup-content p { margin: 0; }
.totp-qr { width: 176px; height: 176px; flex: 0 0 auto; padding: 8px; border: 1px solid #d8e1ee; border-radius: 12px; background: #fff; }
.totp-setup code { display: block; margin: 10px 0; padding: 12px; border-radius: 10px; color: #4432c2; background: #edeafd; font-size: 17px; letter-spacing: .12em; word-break: break-all; }
@media (max-width: 1200px) {
  .email-provider-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  #paymentPanel.active { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .auth-layout, .profile-grid, .admin-grid, .recharge-layout { grid-template-columns: 1fr; }
  .wallet-adjust-form { grid-template-columns:1fr; }
  .wallet-order-detail-grid { grid-template-columns:1fr; }
  .wallet-history-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wallet-history-modal-card { width:100%; max-height:calc(100vh - 36px); padding:19px; }
  .wallet-inline { flex-wrap:wrap; }
  .invite-summary-metrics { grid-template-columns: 1fr 1fr; }
  .invite-detail-item { flex-direction: column; align-items: flex-start; }
  .invite-detail-meta { text-align: left; }
  .profile-card { grid-row: auto; }
  .intro-panel { padding: 30px; }
  .wide-card { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-summary-card .metric-grid { gap: 9px; }
  .overview-metric { min-height: 84px; }
  .overview-login-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-verification-stats { grid-template-columns: 1fr 1fr; }
  .totp-setup-content { align-items: flex-start; }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { white-space: nowrap; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .platform-settings-grid { grid-template-columns: 1fr; }
  .platform-config-wide { grid-column: auto; }
  .auth-login-tools { align-items: stretch; }
  .mass-send-columns { grid-template-columns: 1fr; }
  .plan-pie-card { grid-template-columns: 1fr; }
  .mass-send-header { flex-direction: column; }
  .mass-send-channel-select,
  .mass-send-tag-select { width: 100%; }
  .channel-binding-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .overview-metric { gap: 9px; padding: 10px; }
  .overview-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
  .overview-icon::before { width: 21px; height: 21px; }
  .overview-metric .overview-metric-copy strong { font-size: 20px; }
  .overview-transaction-row { flex-wrap: wrap; }
  .overview-transaction-value { width: 100%; margin-left: 52px; text-align: left; }
  .overview-login-list { grid-template-columns: 1fr; }
  .wallet-top-row { grid-template-columns:1fr; }
  .wallet-balance { gap:6px; }
  .wallet-order-item { grid-template-columns:minmax(0,1fr) auto 68px; row-gap:6px; }
  .wallet-order-detail { grid-column:1 / -1; }
  .wallet-order-amount { grid-column:1; text-align:left; }
  .wallet-order-status { grid-column:2; }
  .wallet-order-delete { grid-column:3; }
  .package-card .redeem-row { grid-template-columns:1fr; }
  .package-card .redeem-row .button { width:100%; }
  .package-item { grid-template-columns: minmax(0, 1fr) auto; }
  .package-item .button { grid-column: 1 / -1; width: 100%; }
  .subscription-setting-header { display: none; }
  .subscription-setting { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-setting > strong, .subscription-setting .field:first-of-type { grid-column: 1 / -1; }
  .subscription-setting .field label { display: block; }
  .account-shell { width: min(100% - 22px, 1120px); }
  .account-topbar .account-shell { min-height: 64px; }
  .account-brand span { display: none; }
  .auth-card, .profile-card, .info-card { padding: 19px; border-radius: 18px; }
  .auth-hero { padding: 16px 15px 14px; border-radius: 15px; }
  .intro-panel { display: none; }
  .auth-layout { display: block; }
  .auth-login-tools { display: grid; grid-template-columns: 1fr; }
  .reset-password-credential-row { grid-template-columns: 1fr; }
  .totp-setup-content { display: block; }
  .totp-qr { display: block; margin: 0 auto 14px; }
  .api-connections-head, .api-connection-item { align-items:stretch; flex-direction:column; }
  .api-add-button { width:100%; }
  .api-connection-actions { width:100%; }
  .api-connection-actions .button { flex:1; }
  .api-setup-guide-head { align-items:stretch; flex-direction:column; }
  .api-site-button { width:100%; }
  .api-setup-steps { grid-template-columns:1fr; }
  .api-editor-card .account-modal-stack { grid-template-columns:1fr; }
  .api-editor-card .account-modal-stack .field:first-child { grid-column:auto; }
  .platform-config-title-with-action { align-items: stretch; flex-direction: column; }
  .platform-config-guide-btn { width: 100%; }
  .email-provider-cards { grid-template-columns: 1fr; }
  .email-verification-stats { grid-template-columns: 1fr; }
  .email-provider-picker { grid-template-columns: 1fr; }
}
