:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #172033;
  --muted: #657086;
  --line: #d9deea;
  --panel: #ffffff;
  --brand: #e20074;
  --brand-dark: #b7005d;
  --good: #0f8f5b;
  --danger: #bd1f35;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 0 18px;
}

button:hover {
  background: var(--brand-dark);
}

button.ghost {
  background: #eef1f7;
  color: var(--ink);
}

button.ghost:hover {
  background: #e0e5ef;
}

button.danger {
  background: #fff0f2;
  color: var(--danger);
}

button.danger:hover {
  background: #ffdce2;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 8px;
  min-height: 42px;
  padding: 0 12px;
}

label {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 32px;
  margin-bottom: 0;
}

h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel,
.panel,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  max-width: 420px;
  padding: 32px;
  width: 100%;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.alert {
  background: #fff0f2;
  border: 1px solid #ffc7d1;
  border-radius: 6px;
  color: var(--danger);
  margin: 18px 0;
  padding: 12px;
}

.alert-success {
  background: #e9f8f1;
  border-color: #bfe8d3;
  color: var(--good);
}

.alert-danger {
  background: #fff0f2;
  border-color: #ffc7d1;
  color: var(--danger);
}

.alert-warning {
  background: #fff8e1;
  border-color: #ffe08a;
  color: #7a5700;
}

.admin-login-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(226, 0, 116, 0.36), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(0, 229, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 105%, rgba(226, 0, 116, 0.2), transparent 32%),
    linear-gradient(145deg, #080713 0%, #201128 48%, #0d1324 100%);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.admin-login-page::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  position: absolute;
}

.admin-login-page::after {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: -180px 160px 0 rgba(226, 0, 116, 0.12), 170px 80px 0 rgba(23, 162, 184, 0.13);
  content: "";
  height: 260px;
  position: absolute;
  right: -90px;
  top: -80px;
  width: 260px;
}

.admin-login-page .login-box {
  position: relative;
  width: min(440px, calc(100vw - 28px));
  z-index: 1;
}

.admin-login-page .login-logo {
  color: #ffffff;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.admin-login-page .card {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(4, 8, 20, 0.42);
  overflow: hidden;
}

.admin-login-page .card-header {
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 0, 116, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(226, 0, 116, 0.1), rgba(0, 229, 255, 0.11)),
    #ffffff;
  border-bottom: 1px solid #edf0f6;
  padding: 30px 22px 22px;
}

.brand-login-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), #ff5baa);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(226, 0, 116, 0.32);
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  letter-spacing: 0;
  width: 54px;
}

.login-subtitle {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.login-security-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.login-security-grid div {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7ecf4;
  border-radius: 10px;
  color: #334155;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.login-security-grid i {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  text-align: center;
  width: 28px;
}

.login-security-grid div:nth-child(1) i {
  background: #fff0f7;
  color: var(--brand);
}

.login-security-grid div:nth-child(2) i {
  background: #ecfeff;
  color: #0891b2;
}

.login-security-grid div:nth-child(3) i {
  background: #ecfdf3;
  color: #16a34a;
}

.login-security-grid div:nth-child(4) i {
  background: #fff7ed;
  color: #f59e0b;
}

.login-security-grid span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-login-page .input-group .form-control,
.admin-login-page .input-group-text {
  border-color: #dbe3ef;
  min-height: 48px;
}

.admin-login-page .input-group .form-control {
  border-radius: 12px 0 0 12px;
  font-weight: 600;
}

.admin-login-page .input-group-text {
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  color: var(--brand);
}

.admin-login-page .btn-primary {
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(226, 0, 116, 0.28);
  min-height: 48px;
}

.google-login-btn {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #d8dee9 !important;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  color: #202124 !important;
  display: flex !important;
  font-weight: 800;
  gap: 12px;
  justify-content: center !important;
  letter-spacing: 0;
  margin-bottom: 14px;
  min-height: 48px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.google-login-btn:hover {
  background: #fff7fb !important;
  border-color: rgba(226, 0, 116, 0.55) !important;
  box-shadow: 0 16px 30px rgba(226, 0, 116, 0.18), 0 10px 20px rgba(15, 23, 42, 0.1);
  color: #202124 !important;
  transform: translateY(-1px);
}

.google-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.google-mark svg {
  display: block;
  height: 18px;
  width: 18px;
}

.login-form-links {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.login-form-links a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.login-extra-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.register-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  margin: 14px 0;
  text-transform: uppercase;
}

.register-divider::before,
.register-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.register-box {
  width: min(500px, calc(100vw - 28px));
}

.create-user-notice {
  align-items: center;
  display: flex;
  gap: 4px;
}

.create-user-notice span {
  overflow-wrap: anywhere;
}

.upstream-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 14px 14px 0;
}

.upstream-status-line {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  margin: 0 -14px;
  padding: 8px 14px 10px;
}

.upstream-status-line .badge {
  min-width: 92px;
}

.upstream-manager {
  --upstream-accent: #ec007a;
  --upstream-accent-soft: #fff0f7;
  --upstream-card-border: #e3e8f3;
  padding-bottom: 32px;
}

/* stat strip replacing the old .info-box row */
.upstream-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.upstream-stat {
  align-items: center;
  background: #fff;
  border: 1px solid var(--upstream-card-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20, 37, 63, 0.05);
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.upstream-stat-icon {
  align-items: center;
  border-radius: 11px;
  display: flex;
  flex: 0 0 42px;
  font-size: 14px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.upstream-stat-icon.tone-info { background: #eef4ff; color: #2a6bff; }
.upstream-stat-icon.tone-success { background: #e7f7ef; color: #0f8f5b; }
.upstream-stat-icon.tone-warning { background: #fff4db; color: #c08400; }
.upstream-stat-icon.tone-danger { background: #fde8ec; color: #bd1f35; }
.upstream-stat-icon.tone-neutral { background: #eef1f6; color: #7a879d; }

.upstream-stat-body strong {
  color: #111c35;
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.upstream-stat-body span {
  color: #6b7a93;
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* header strip above the card list */
.upstream-manager-section {
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--upstream-card-border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 8px 0 14px;
  padding: 14px 16px;
}

.upstream-manager-section span {
  color: var(--upstream-accent);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upstream-manager-heading .upstream-manager-title span {
  color: var(--upstream-accent);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.upstream-manager-section h2 {
  color: #111c35;
  font-size: 16px;
  font-weight: 800;
  margin: 2px 0 0;
}

.upstream-manager-section p {
  color: #72809a;
  font-size: 12px;
  margin: 0;
  max-width: 360px;
  text-align: right;
}

.upstream-manager-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.upstream-manager-card {
  background: #fff;
  border: 1px solid var(--upstream-card-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 37, 63, 0.06);
  display: block;
  margin-bottom: 0;
  overflow: hidden;
  padding: 14px 18px;
  position: relative;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.upstream-manager-card:hover {
  border-color: #d6deee;
  box-shadow: 0 10px 30px rgba(20, 37, 63, 0.1);
  transform: translateY(-1px);
}

.upstream-manager-card.is-original {
  background: linear-gradient(120deg, #fff 0%, #fff8fc 100%);
  border-left: 4px solid var(--upstream-accent);
}

.upstream-manager-heading {
  align-items: center;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
  padding-bottom: 12px;
}

.upstream-manager-heading h3 {
  color: #111c35;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin: 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upstream-manager-heading small {
  color: #7a879d;
  font-size: 11px;
}

.upstream-manager-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upstream-user-count {
  align-items: center;
  background: var(--upstream-accent-soft);
  border: 1px solid #ffd4e8;
  border-radius: 9px;
  color: #8a315e;
  display: grid;
  flex: 0 0 auto;
  gap: 0 5px;
  grid-template-columns: auto auto;
  line-height: 1;
  margin-left: 4px;
  min-width: 74px;
  padding: 6px 9px;
}

.upstream-user-count i {
  color: var(--upstream-accent);
  font-size: 11px;
  grid-row: 1 / 3;
}

.upstream-user-count strong {
  color: #111c35;
  font-size: 15px;
}

.upstream-user-count span {
  color: #76839a;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.upstream-manager-icon {
  align-items: center;
  background: var(--upstream-accent-soft);
  border: 1px solid #ffe0ef;
  border-radius: 11px;
  color: var(--upstream-accent);
  display: flex;
  flex: 0 0 38px;
  font-size: 14px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.upstream-manager-card.is-original .upstream-manager-icon {
  background: var(--upstream-accent);
  border-color: var(--upstream-accent);
  color: #fff;
}

.upstream-manager-fields {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 1.05fr 1.2fr 0.55fr 0.9fr 0.9fr 0.72fr;
}

.upstream-manager-grid .upstream-manager-fields {
  grid-template-columns: 1.05fr 1.2fr 0.55fr 0.9fr 0.9fr 0.72fr;
}

.upstream-manager-fields .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.upstream-manager-fields label {
  color: #6b7d98;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.upstream-manager-fields .form-control {
  background: #fbfcfe;
  border-color: #dce4ef;
  border-radius: 8px;
  font-size: 13px;
  height: 36px;
  min-height: 36px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.upstream-manager-fields .form-control:focus {
  background: #fff;
  border-color: var(--upstream-accent);
  box-shadow: 0 0 0 3px rgba(236, 0, 122, 0.12);
}

.upstream-manager-status {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: flex-end;
}

.upstream-status-meta {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 8px;
}

.upstream-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 5px 9px;
  white-space: nowrap;
}

.upstream-status-pill .dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

.upstream-status-pill.tone-success { background: #e6f5ee; color: #0f7a4e; }
.upstream-status-pill.tone-success .dot { background: #0f8f5b; }
.upstream-status-pill.tone-secondary { background: #eef1f6; color: #5f6b84; }
.upstream-status-pill.tone-secondary .dot { background: #8a95ad; }
.upstream-status-pill.tone-warning { background: #fff3d6; color: #8a6500; }
.upstream-status-pill.tone-warning .dot { background: #e6a600; }
.upstream-status-pill.tone-danger { background: #fde8ec; color: #a51a2e; }
.upstream-status-pill.tone-danger .dot { background: #bd1f35; }
.upstream-status-pill.tone-info { background: #e8efff; color: #2347b0; }
.upstream-status-pill.tone-info .dot { background: #3b6bff; }
.upstream-status-pill.tone-light { background: #f1f3f8; color: #6b7a93; }
.upstream-status-pill.tone-light .dot { background: #aab4c8; }

.upstream-latency {
  align-items: center;
  background: #f1f3f8;
  border-radius: 999px;
  color: #5a6a86 !important;
  display: inline-flex;
  font-size: 10px !important;
  font-weight: 700;
  gap: 3px;
  padding: 2px 7px;
}

.upstream-manager-status em {
  color: #8a97ad;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}

.upstream-status-detail {
  color: #6b7a93 !important;
  display: block;
  flex-basis: 100%;
  font-size: 10px !important;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.upstream-check-btn {
  background: #fff;
  border: 1px solid #d9deea;
  border-radius: 8px;
  color: #4a5873;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.upstream-check-btn:hover {
  background: #f8f9fc;
  border-color: #c8d0e4;
  color: #2a3752;
}

.upstream-check-all-btn {
  background: #fff;
  border: 1px solid #d9deea;
  border-radius: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
}

.upstream-check-all-btn:hover {
  background: #f8f9fc;
  border-color: #c8d0e4;
  color: #1a2742;
}

.upstream-manager-actions {
  align-items: center;
  background: linear-gradient(135deg, #18243b 0%, #1e3356 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 28, 53, 0.18);
  color: #dfe8f6;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 16px 18px;
}

.upstream-save-btn {
  background: var(--upstream-accent);
  border: none;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(236, 0, 122, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
}

.upstream-save-btn:hover {
  background: #d4006e;
  color: #fff;
}

@media (max-width: 1199.98px) {
  .upstream-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upstream-manager-section p {
    max-width: 280px;
  }

  .upstream-manager-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .upstream-manager-grid .upstream-manager-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .upstream-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .upstream-stat { padding: 11px 12px; }
  .upstream-stat-body strong { font-size: 18px; }

  .upstream-manager-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .upstream-manager-section p {
    max-width: none;
    text-align: left;
  }

  .upstream-manager-card {
    border-radius: 12px;
    padding: 14px;
  }

  .upstream-manager-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .upstream-manager-heading .ml-auto {
    margin-left: 0 !important;
    width: 100%;
  }

  .upstream-user-count {
    margin-left: auto;
  }

  .upstream-manager-status {
    justify-content: space-between;
    width: 100%;
  }

  .upstream-status-meta {
    text-align: left;
  }

  .upstream-status-detail {
    text-align: left;
  }

  .upstream-manager-fields,
  .upstream-manager-grid .upstream-manager-fields {
    grid-template-columns: 1fr;
  }

  .upstream-manager-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .upstream-manager-actions .upstream-save-btn {
    width: 100%;
  }
}

.proxy-access-box {
  padding: 12px;
}

.proxy-copy-all {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.proxy-detail-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 132px minmax(0, 1fr);
  margin-bottom: 8px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.proxy-detail-row:hover,
.proxy-detail-row:focus {
  background: #fff5fa;
  border-color: var(--brand);
  outline: none;
}

.proxy-detail-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.proxy-detail-value {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.btn-xs {
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.2;
  min-height: 30px;
  padding: 5px 9px;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
}

.dashboard {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(16px, 4vw, 44px) 44px;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 20px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  padding: 24px;
}

.setup-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.setup-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.setup-list dt {
  color: var(--muted);
  font-weight: 700;
}

.setup-list dd {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.table-panel {
  padding: 0;
}

.table-panel h2 {
  margin: 0;
  padding: 24px 24px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.pill.good {
  background: #e9f8f1;
  color: var(--good);
}

.pill.muted {
  background: #eef1f7;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar,
  .split {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .panel {
    padding: 20px;
  }

  .proxy-access-box {
    padding: 10px;
  }

  .proxy-copy-all {
    justify-content: stretch;
  }

  .proxy-copy-all .btn {
    width: 100%;
  }

  .proxy-detail-row {
    align-items: flex-start;
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .proxy-detail-label {
    font-size: 12px;
  }

  .proxy-detail-value {
    font-size: 15px;
    line-height: 1.35;
    max-width: 100%;
    min-width: 0;
  }

  .admin-login-page .login-box {
    width: min(100%, calc(100vw - 22px));
  }

  .admin-login-page .card {
    border-radius: 14px;
  }

  .admin-login-page .card-header {
    padding: 22px 16px 16px;
  }

  .login-security-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 16px;
  }

  .login-security-grid div {
    min-height: 44px;
    padding: 8px 12px;
  }
}

.admin-brand {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  margin-left: 8px;
  margin-right: 8px;
  width: 32px;
}

.admin-user-icon {
  align-items: center;
  background: #28313d;
  border-radius: 50%;
  color: #d8dee8;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.main-sidebar.sidebar-dark-primary {
  background-color: #343a40;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active:focus,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active:hover {
  background-color: var(--brand);
  color: #ffffff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
  background-color: rgba(226, 0, 116, 0.16);
  color: #ffffff;
}

.btn-primary,
.btn-info {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-primary:disabled,
.btn-info:disabled {
  background-color: #f083bd;
  border-color: #f083bd;
}

.badge-info,
.progress-bar.bg-primary,
.bg-primary {
  background-color: var(--brand) !important;
}

.card.card-magenta,
.card.card-primary.card-outline,
.card.card-info.card-outline {
  border-top: 3px solid var(--brand);
}

.card-magenta:not(.card-outline) > .card-header,
.card-primary:not(.card-outline) > .card-header,
.card-info:not(.card-outline) > .card-header {
  background-color: var(--brand);
  color: #ffffff;
}

.text-primary,
.text-info,
a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

.compact-stats .info-box {
  min-height: 78px;
}

.compact-stats .info-box-number {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.referral-page .compact-stats .info-box {
  border-radius: 8px;
  min-height: 72px;
}

.referral-page .compact-stats .info-box-icon {
  font-size: 20px;
  width: 56px;
}

.referral-page .compact-stats .info-box-text {
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.referral-page .compact-stats .info-box-number {
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.table-actions form {
  display: inline-flex;
  margin: 0;
}

.support-thread {
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-message-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  max-width: 86%;
}

.support-message-row.is-admin {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.support-message-row.is-reseller {
  align-self: flex-start;
}

.support-avatar {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.support-message-row.is-admin .support-avatar {
  background: var(--brand);
}

.support-message-row.is-reseller .support-avatar {
  background: #17a2b8;
}

.support-message {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
  min-width: 220px;
  padding: 12px 14px;
}

.support-message.support-admin {
  background: #fff2f8;
  border-color: #f5a3cd;
}

.support-message.support-reseller {
  background: #eefaff;
  border-color: #9eddea;
}

.support-message-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.support-message-meta time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.support-role {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #4b5563;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 2px 8px;
}

.support-message-body {
  color: #111827;
  line-height: 1.55;
  white-space: normal;
}

.support-preview {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
  max-width: 420px;
}

.support-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 300px;
}

.support-timeline {
  display: grid;
  gap: 12px;
}

.support-timeline-item {
  display: grid;
  gap: 10px;
  grid-template-columns: 12px 1fr;
}

.support-timeline-dot {
  background: var(--brand);
  border-radius: 50%;
  height: 10px;
  margin-top: 6px;
  width: 10px;
}

.admin-note {
  background: #fff8e1;
  border: 1px solid #ffe08a;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.adminlte-bars {
  align-items: end;
  background: #f3f5f9;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 260px;
  padding: 24px;
}

.adminlte-bars div {
  align-items: end;
  background: linear-gradient(180deg, #28a745 0%, var(--brand) 100%);
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: center;
  min-height: 8px;
}

.adminlte-bars span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px 8px;
  text-align: center;
}

.bandwidth-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bandwidth-summary strong {
  display: block;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.bandwidth-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.bandwidth-metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.bandwidth-metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bandwidth-metric strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.bandwidth-metric small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.bandwidth-modern-chart {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.chart-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr) 90px;
  margin-bottom: 16px;
}

.chart-label {
  color: var(--ink);
  font-weight: 800;
}

.chart-track {
  background: #e9edf5;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.chart-fill {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.chart-download {
  background: linear-gradient(90deg, #20a653, #46d47b);
}

.chart-upload {
  background: linear-gradient(90deg, var(--brand), #ff5aae);
}

.chart-requests {
  background: linear-gradient(90deg, #f5b301, #ffd86b);
}

.chart-row strong {
  text-align: right;
}

.traffic-split {
  background: #e9edf5;
  border-radius: 999px;
  display: flex;
  height: 16px;
  margin-top: 4px;
  overflow: hidden;
}

.split-down {
  background: #20a653;
}

.split-up {
  background: var(--brand);
}

.traffic-legend {
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  margin-right: 6px;
  width: 9px;
}

.top-bandwidth-user {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.top-bandwidth-user:first-child {
  padding-top: 0;
}

.top-bandwidth-user:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.usage-line {
  background: #e9edf5;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.usage-line span {
  background: linear-gradient(90deg, var(--brand), #20a653);
  border-radius: inherit;
  display: block;
  height: 100%;
}

@media (max-width: 991.98px) {
  .user-portal-panel .main-header,
  .admin-panel .main-header,
  .admin-panel .content-wrapper,
  .admin-panel .main-footer,
  .user-portal-panel .content-wrapper,
  .user-portal-panel .main-footer,
  .reseller-panel .main-header,
  .reseller-panel .content-wrapper,
  .reseller-panel .main-footer {
    margin-left: 0 !important;
  }

  .user-portal-panel .content-header,
  .admin-panel .content-header,
  .reseller-panel .content-header {
    padding: 14px 8px 8px;
  }

  .user-portal-panel .content-header h1,
  .admin-panel .content-header h1,
  .reseller-panel .content-header h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .user-portal-panel .content .container-fluid,
  .admin-panel .content .container-fluid,
  .reseller-panel .content .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .user-portal-panel .compact-stats > [class*="col-"],
  .admin-panel .compact-stats > [class*="col-"],
  .reseller-panel .compact-stats > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .user-portal-panel .info-box,
  .admin-panel .info-box,
  .reseller-panel .info-box {
    margin-bottom: 10px;
  }

  .user-portal-panel .info-box-icon,
  .admin-panel .info-box-icon,
  .reseller-panel .info-box-icon {
    font-size: 1.35rem;
    width: 58px;
  }

  .user-portal-panel .info-box-content,
  .admin-panel .info-box-content,
  .reseller-panel .info-box-content {
    min-width: 0;
  }

  .user-portal-panel .small-box,
  .user-portal-panel .info-box {
    overflow: hidden;
  }

  .user-portal-panel .small-box h3 {
    font-size: 24px;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
  }

  .user-portal-panel .small-box p {
    font-size: 14px;
  }

  .user-portal-panel .small-box .icon {
    font-size: 56px;
    right: 12px;
    top: 12px;
  }

  .user-portal-panel .card-header,
  .admin-panel .card-header,
  .reseller-panel .card-header {
    align-items: center;
    display: flex;
    min-height: 48px;
  }

  .user-portal-panel .card-title,
  .admin-panel .card-title,
  .reseller-panel .card-title {
    font-size: 17px;
    line-height: 1.25;
  }

  .user-portal-panel .card-body.table-responsive,
  .admin-panel .card-body.table-responsive,
  .reseller-panel .card-body.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .user-portal-panel .table {
    table-layout: fixed;
    width: 100%;
  }

  .user-portal-panel .table th {
    width: 42%;
  }

  .user-portal-panel .table th,
  .user-portal-panel .table td {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .user-portal-panel .card-body.table-responsive .table {
    min-width: 620px;
    table-layout: auto;
   }

  .reseller-panel .table {
    min-width: 620px;
  }

  .bandwidth-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  body.sidebar-open::before {
    background: rgba(23, 32, 51, 0.45);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 1037;
  }

  .user-portal-panel .main-header,
  .admin-panel .main-header,
  .reseller-panel .main-header {
    min-height: 52px;
    padding-left: 4px;
    padding-right: 8px;
  }

  .user-portal-panel .navbar .btn-sm,
  .admin-panel .navbar .btn-sm,
  .reseller-panel .navbar .btn-sm {
    min-height: 34px;
    padding: 0 10px;
  }

  .user-portal-panel .brand-link,
  .admin-panel .brand-link,
  .reseller-panel .brand-link {
    min-height: 56px;
  }

  .user-portal-panel .brand-text,
  .user-portal-panel .user-panel .info a,
  .admin-panel .brand-text,
  .admin-panel .user-panel .info a,
  .reseller-panel .brand-text,
  .reseller-panel .user-panel .info a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-portal-panel .content-wrapper,
  .admin-panel .content-wrapper,
  .reseller-panel .content-wrapper {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .user-portal-panel .content-header h1,
  .admin-panel .content-header h1,
  .reseller-panel .content-header h1 {
    font-size: 22px;
  }

  .user-portal-panel .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  .user-portal-panel .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .user-portal-panel .small-box {
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    min-height: 116px;
  }

  .user-portal-panel .small-box h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.12;
    margin: 0 auto 10px;
    max-width: 125px;
    text-align: center;
    word-break: normal;
  }

  .user-portal-panel .small-box .icon {
    font-size: 42px;
    opacity: 0.14;
    right: 10px;
    top: 10px;
  }

  .user-portal-panel .small-box .inner {
    padding: 14px 10px 12px;
    text-align: center;
  }

  .user-portal-panel .small-box p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    opacity: 0.96;
  }

  .admin-panel .compact-stats > [class*="col-"],
  .reseller-panel .compact-stats > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
  }

  .admin-panel .compact-stats,
  .reseller-panel .compact-stats {
    margin-left: -6px;
    margin-right: -6px;
  }

  .admin-panel .compact-stats .info-box,
  .reseller-panel .compact-stats .info-box {
    border-radius: 8px;
    min-height: 78px;
  }

  .admin-panel .compact-stats .info-box-icon,
  .reseller-panel .compact-stats .info-box-icon {
    font-size: 1.2rem;
    width: 50px;
  }

  .admin-panel .compact-stats .info-box-text,
  .reseller-panel .compact-stats .info-box-text {
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }

  .admin-panel .compact-stats .info-box-number,
  .reseller-panel .compact-stats .info-box-number {
    font-size: 18px;
    line-height: 1.2;
  }

  .user-portal-panel .info-box,
  .admin-panel .info-box,
  .reseller-panel .info-box {
    min-height: 72px;
  }

  .user-portal-panel .info-box-number,
  .admin-panel .info-box-number,
  .reseller-panel .info-box-number {
    font-size: 18px;
  }

  .user-portal-panel .card,
  .admin-panel .card,
  .reseller-panel .card {
    margin-bottom: 12px;
  }

  .referral-page .compact-stats .info-box-icon {
    font-size: 18px;
    width: 48px;
  }

  .referral-page .compact-stats .info-box-text {
    font-size: 11px;
  }

  .referral-page .compact-stats .info-box-number {
    font-size: 14px;
  }

  .user-portal-panel .table th,
  .user-portal-panel .table td,
  .admin-panel .table th,
  .admin-panel .table td,
  .reseller-panel .table th,
  .reseller-panel .table td {
    padding: 12px 14px;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table,
  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table tbody,
  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table tr,
  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table th,
  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table td {
    display: block;
    width: 100% !important;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table tr:last-child {
    border-bottom: 0;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table th,
  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table td {
    border: 0;
    padding: 0;
    white-space: normal !important;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table th {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
  }

  :is(.user-portal-panel, .admin-panel, .reseller-panel) .card-body:not(.table-responsive) > .table td {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .reseller-panel .table-actions {
    justify-content: flex-start;
  }

  .reseller-panel .table-actions .btn {
    min-height: 34px;
    padding: 6px 10px;
  }

  .reseller-panel .adminlte-bars {
    gap: 12px;
    height: 190px;
    padding: 16px 12px;
  }

  .reseller-panel .adminlte-bars span {
    font-size: 11px;
  }

  .reseller-panel .bandwidth-summary strong {
    font-size: 17px;
  }

  .bandwidth-metrics {
    grid-template-columns: 1fr;
  }

  .bandwidth-modern-chart {
    padding: 14px;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .chart-row strong {
    text-align: left;
  }

  .traffic-legend {
    justify-content: flex-start;
  }

  .proxy-detail-row {
    grid-template-columns: 1fr;
  }

  .support-message-row {
    max-width: 100%;
  }

.support-message-meta {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

}

.reseller-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(226, 0, 116, 0.75);
  box-shadow: 0 0 0 3px rgba(226, 0, 116, 0.12);
  background: #fff;
}

.reseller-avatar-img.verify-avatar,
.admin-user-icon.verify-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.verify-code-input {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 8px;
}

.admin-support-alert .nav-link {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.admin-support-alert .navbar-badge:not(.d-none),
.js-sidebar-support-count:not(.d-none) {
  animation: supportPulse 1.6s ease-in-out infinite;
}

.js-sidebar-support-count {
  min-width: 22px;
  text-align: center;
}

@keyframes supportPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(226, 0, 116, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(226, 0, 116, 0);
  }
}

/* Monetary checkout and reseller order history */
.payment-channel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-channel-card {
  cursor: pointer;
  margin: 0;
}

.payment-channel-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.payment-channel-card > span {
  align-items: center;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-channel-card:hover > span {
  border-color: #e20074;
  transform: translateY(-1px);
}

.payment-channel-card input:checked + span {
  background: #fff7fb;
  border-color: #e20074;
  box-shadow: 0 0 0 3px rgba(226, 0, 116, .09);
}

.payment-channel-card img {
  height: 42px;
  object-fit: contain;
  width: 78px;
}

.payment-channel-card strong {
  color: #17233a;
  font-size: 15px;
}

.payment-channel-card i {
  color: #e20074;
  margin-left: auto;
  opacity: 0;
}

.payment-channel-card input:checked + span i {
  opacity: 1;
}

.wallet-payment-option {
  align-items: center;
  background: linear-gradient(135deg, #fff7fb 0%, #fff 100%);
  border: 1px solid #f2c8de;
  border-radius: 15px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr 28px;
  margin-bottom: 16px;
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wallet-payment-option:hover {
  border-color: #e20074;
  box-shadow: 0 10px 24px rgba(226, 0, 116, .08);
  transform: translateY(-1px);
}

.wallet-payment-option > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.wallet-payment-icon {
  align-items: center;
  background: #e20074;
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 17px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.wallet-payment-copy small,
.wallet-payment-copy strong,
.wallet-payment-copy em {
  display: block;
}

.wallet-payment-copy small {
  color: #e20074;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.wallet-payment-copy strong {
  color: #14213a;
  font-size: 15px;
  margin: 2px 0;
}

.wallet-payment-copy em {
  color: #77869b;
  font-size: 11px;
  font-style: normal;
}

.wallet-payment-check {
  align-items: center;
  background: #e20074;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 10px;
  height: 24px;
  justify-content: center;
  opacity: 0;
  transform: scale(.75);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 24px;
}

.wallet-payment-option input[type="checkbox"]:checked ~ .wallet-payment-check {
  opacity: 1;
  transform: scale(1);
}

.wallet-payment-option:has(input[type="checkbox"]:checked) {
  border-color: #e20074;
  box-shadow: 0 0 0 3px rgba(226, 0, 116, .07);
}

.wallet-payment-option.is-compact {
  border-radius: 10px;
  grid-template-columns: 34px 1fr 20px;
  margin: 0;
  padding: 8px 10px;
}

.wallet-payment-option.is-compact .wallet-payment-icon {
  border-radius: 8px;
  font-size: 13px;
  height: 32px;
  width: 32px;
}

.wallet-payment-option.is-compact .wallet-payment-copy strong {
  font-size: 12px;
}

.wallet-payment-option.is-compact .wallet-payment-copy em {
  font-size: 9px;
}

.wallet-payment-option.is-compact .wallet-payment-check {
  height: 18px;
  width: 18px;
}

.proxy-modal-open {
  overflow: hidden;
}

.proxy-renew-modal,
.proxy-renew-success {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2050;
}

.proxy-renew-modal.is-open,
.proxy-renew-success {
  display: flex;
}

.proxy-renew-backdrop,
.proxy-renew-success::before {
  background: rgba(11, 20, 35, .62);
  border: 0;
  inset: 0;
  position: absolute;
}

.proxy-store-panel button.proxy-renew-backdrop {
  background: rgba(11, 20, 35, .62) !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.proxy-renew-success::before {
  content: "";
}

.proxy-renew-dialog,
.proxy-renew-success > div {
  animation: proxyRenewIn .22s ease-out both;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(11, 20, 35, .28);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
  width: min(620px, 100%);
  z-index: 1;
}

.proxy-renew-dialog {
  padding: 24px;
}

.proxy-renew-close {
  align-items: center;
  background: #f3f5f8;
  border: 0;
  border-radius: 50%;
  color: #65738a;
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

.proxy-renew-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  padding-right: 42px;
}

.proxy-renew-heading > span {
  align-items: center;
  background: #fff0f7;
  border-radius: 14px;
  color: #e20074;
  display: flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
}

.proxy-renew-heading small {
  color: #e20074;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.proxy-renew-heading h3 {
  color: #14213a;
  font-size: 22px;
  font-weight: 800;
  margin: 1px 0 2px;
}

.proxy-renew-heading p {
  color: #7b879a;
  font-size: 12px;
  margin: 0;
}

.proxy-renew-summary {
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  overflow: hidden;
}

.proxy-renew-summary > div {
  border-bottom: 1px solid #e5eaf2;
  padding: 12px 14px;
}

.proxy-renew-summary > div:nth-child(odd) {
  border-right: 1px solid #e5eaf2;
}

.proxy-renew-summary > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.proxy-renew-summary span {
  color: #7b879a;
  display: block;
  font-size: 10px;
  font-weight: 700;
}

.proxy-renew-summary strong {
  color: #17233a;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.proxy-renew-summary .is-total strong {
  color: #e20074;
  font-size: 16px;
}

.proxy-renew-summary .is-payable {
  background: #fff5fa;
  grid-column: 1 / -1;
}

.proxy-renew-summary .is-payable strong {
  color: #e20074;
  font-size: 18px;
}

.proxy-renew-wallet-ready {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  color: #087a55;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  padding: 13px 15px;
}

.proxy-renew-payment-label {
  color: #34425a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

.proxy-renew-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.proxy-renew-actions .btn {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  min-width: 130px;
}

.proxy-renew-success > div {
  padding: 32px;
  text-align: center;
  width: min(420px, 100%);
}

.proxy-renew-success > div > span {
  align-items: center;
  background: #daf7e7;
  border-radius: 50%;
  color: #159957;
  display: flex;
  font-size: 32px;
  height: 82px;
  justify-content: center;
  margin: 0 auto 18px;
  width: 82px;
}

.proxy-renew-success h3 {
  color: #14213a;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 7px;
}

.proxy-renew-success p {
  color: #718096;
  font-size: 13px;
  margin: 0 0 20px;
}

.proxy-renew-success .btn {
  border-radius: 9px;
  font-weight: 800;
  min-width: 130px;
}

@keyframes proxyRenewIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.payment-channel-grid.is-compact {
  gap: 8px;
  margin-bottom: 12px;
}

.payment-channel-card.is-compact > span {
  border-radius: 10px;
  min-height: 56px;
  padding: 8px 10px;
}

.payment-channel-card.is-compact img {
  height: 28px;
  width: 48px;
}

.payment-channel-card.is-compact strong {
  font-size: 13px;
}

.reseller-order-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.reseller-order-stats > div {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 16px;
}

.reseller-order-stats > div > span {
  align-items: center;
  background: #fff0f7;
  border-radius: 12px;
  color: #e20074;
  display: flex;
  grid-row: 1 / 3;
  height: 42px;
  justify-content: center;
  margin-right: 12px;
  width: 42px;
}

.reseller-order-stats small {
  color: #7a879d;
  font-size: 12px;
}

.reseller-order-stats strong {
  color: #14213a;
  font-size: 17px;
}

.reseller-balance-amount {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  color: #17233a;
  display: flex;
  min-height: 46px;
  overflow: hidden;
}

.reseller-balance-amount span {
  color: #e20074;
  font-size: 19px;
  font-weight: 900;
  padding-left: 14px;
}

.reseller-balance-amount input {
  border: 0;
  min-width: 0;
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}

.reseller-balance-deposit-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2050;
}

.reseller-balance-deposit-backdrop {
  background: rgba(11, 20, 35, .62);
  inset: 0;
  position: absolute;
}

.reseller-balance-deposit-dialog {
  animation: proxyRenewIn .22s ease-out both;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(11, 20, 35, .28);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(520px, 100%);
  z-index: 1;
}

.reseller-balance-deposit-heading {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr 36px;
  margin-bottom: 22px;
}

.reseller-balance-deposit-heading > span {
  align-items: center;
  background: #fff0f7;
  border-radius: 13px;
  color: #e20074;
  display: flex;
  font-size: 18px;
  height: 48px;
  justify-content: center;
}

.reseller-balance-deposit-heading small {
  color: #e20074;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reseller-balance-deposit-heading h3 {
  color: #14213a;
  font-size: 22px;
  font-weight: 900;
  margin: 1px 0 2px;
}

.reseller-balance-deposit-heading p {
  color: #7a879d;
  font-size: 12px;
  margin: 0;
}

.reseller-balance-deposit-heading > a {
  align-items: center;
  background: #f4f6f9;
  border-radius: 10px;
  color: #687890;
  display: flex;
  height: 36px;
  justify-content: center;
}

.reseller-balance-deposit-dialog form > label {
  color: #34425a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 14px 0 8px;
}

.reseller-balance-deposit-dialog .reseller-balance-amount {
  min-height: 52px;
}

.reseller-balance-deposit-dialog .payment-channel-grid {
  gap: 8px;
}

.reseller-balance-deposit-dialog .payment-channel-card > span {
  min-height: 66px;
}

.reseller-balance-deposit-dialog .btn {
  border-radius: 10px;
  font-weight: 800;
  margin-top: 18px;
  min-height: 48px;
}

.reseller-balance-deposit-security {
  color: #8793a6;
  display: block;
  font-size: 11px;
  margin-top: 12px;
  text-align: center;
}

.reseller-unpaid-section {
  background: linear-gradient(135deg, #fff 0%, #fff8fc 100%);
  border: 1px solid #f3ccdf;
  border-radius: 18px;
  margin-bottom: 22px;
  padding: 20px;
}

.reseller-order-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reseller-order-section-title span {
  color: #e20074;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reseller-order-section-title h2 {
  color: #14213a;
  font-size: 21px;
  font-weight: 800;
  margin: 3px 0 0;
}

.reseller-unpaid-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reseller-unpaid-order {
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 15px;
  padding: 16px;
}

.reseller-unpaid-order-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr auto;
  margin-bottom: 14px;
}

.reseller-unpaid-order-head > span {
  align-items: center;
  background: #fff0f7;
  border-radius: 12px;
  color: #e20074;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.reseller-unpaid-order-head small {
  color: #d00062;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.reseller-unpaid-order-head h3 {
  color: #14213a;
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.reseller-unpaid-order-head p {
  color: #7a879d;
  font-size: 12px;
  margin: 2px 0 0;
}

.reseller-unpaid-order-head > strong {
  color: #14213a;
  font-size: 18px;
}

.reseller-unpaid-order-foot {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
}

.reseller-unpaid-order-foot a {
  color: #e20074;
  font-weight: 700;
}

.reseller-order-history-card {
  border-radius: 16px;
  overflow: hidden;
}

.reseller-flow-status-popup {
  align-items: center;
  animation: reseller-flow-status-in .24s ease-out;
  background: #fff;
  border: 1px solid #dce5ef;
  border-left: 4px solid #e20074;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 33, 61, .16);
  display: flex;
  gap: 10px;
  box-sizing: border-box;
  left: 50%;
  max-width: min(470px, calc(100vw - 28px));
  padding: 14px 16px;
  position: fixed !important;
  top: 82px;
  transform: translateX(-50%);
  transition: opacity .18s ease, transform .18s ease;
  width: 470px;
  z-index: 2100;
}

.reseller-flow-status-popup.is-pending { border-left-color: #e6a800; }
.reseller-flow-status-popup.is-failed { border-left-color: #d9364f; }
.reseller-flow-status-popup.is-closing { opacity: 0; transform: translate(-50%, -8px); }

.reseller-flow-status-icon {
  align-items: center;
  background: #e8f8ef;
  border-radius: 10px;
  color: #20a65a;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.reseller-flow-status-popup.is-pending .reseller-flow-status-icon { background: #fff6db; color: #c88800; }
.reseller-flow-status-popup.is-failed .reseller-flow-status-icon { background: #fff0f2; color: #d9364f; }

.reseller-flow-status-copy { min-width: 0; }
.reseller-flow-status-popup strong { color: #14213d; display: inline; font-size: 14px; }
.reseller-flow-status-copy span { color: #64748b; font-size: 12px; line-height: 1.35; margin-left: 5px; }
.reseller-flow-status-action { flex: 0 0 auto; }
.reseller-flow-status-popup a { background: #fff0f6; border-radius: 7px; color: #d6006d; display: inline-flex; font-size: 11px; font-weight: 800; padding: 6px 8px; text-decoration: none; white-space: nowrap; }
.reseller-flow-status-popup a:hover { background: #e20074; color: #fff; }
.reseller-flow-status-popup button { background: transparent; border: 0; color: #7d8ba0; cursor: pointer; font-size: 15px; margin-left: auto; padding: 2px; }

/* Do not inherit the dashboard's primary button styling. */
.reseller-flow-status-popup > button[data-flow-status-close] {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #718198 !important;
  display: inline-flex !important;
  flex: 0 0 30px !important;
  height: 30px !important;
  justify-content: center !important;
  margin: 0 0 0 auto !important;
  min-height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  width: 30px !important;
}

.reseller-flow-status-popup > button[data-flow-status-close]:hover {
  background: #f3f6fa !important;
  color: #12213a !important;
}

@keyframes reseller-flow-status-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translateX(-50%); }
}

.reseller-all-orders-tools {
  align-items: center;
  display: flex;
  gap: 12px;
}

.reseller-all-orders-tools form {
  margin: 0;
}

.reseller-order-history-card .reseller-order-needs-payment > td {
  background: #fffafd;
  border-bottom: 0;
}

.reseller-all-orders-payment-row > td {
  background: #fbfcfe;
  border-top: 0 !important;
  padding: 0 !important;
}

.reseller-all-orders-payment-row .reseller-unpaid-payment {
  border-bottom: 1px solid #e8edf4;
  border-top-color: #f0dce7;
}

.reseller-order-history-card th:last-child,
.reseller-order-history-card td:last-child {
  min-width: 390px;
}

.reseller-order-inline-actions,
.reseller-order-inline-payment {
  align-items: center;
  display: flex;
  gap: 7px;
}

.reseller-order-inline-payment {
  flex: 1;
  margin: 0;
}

.reseller-order-inline-payment .payment-channel-grid.is-compact {
  flex: 1;
  gap: 4px;
  margin: 0;
}

.reseller-order-inline-payment .payment-channel-card.is-compact > span {
  border-radius: 8px;
  gap: 4px;
  min-height: 36px;
  padding: 3px 5px;
}

.reseller-order-inline-payment .payment-channel-card.is-compact img {
  height: 20px;
  width: 30px;
}

.reseller-order-inline-payment .payment-channel-card.is-compact strong {
  font-size: 10px;
}

.reseller-order-inline-payment .payment-channel-card i {
  font-size: 10px;
}

.reseller-order-inline-payment .btn {
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  min-height: 36px;
  white-space: nowrap;
}

.reseller-order-inline-check {
  color: #e20074;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.reseller-order-inline-check i {
  margin-right: 3px;
}

.reseller-unpaid-section {
  background: #fff;
  border-color: #e1e7f0;
  overflow: hidden;
  padding: 0;
}

.reseller-unpaid-section .reseller-order-section-title {
  border-bottom: 1px solid #e8edf4;
  margin: 0;
  padding: 18px 20px;
}

.reseller-order-section-title p {
  color: #7a879d;
  font-size: 12px;
  margin: 4px 0 0;
}

.reseller-unpaid-list {
  background: #fff;
}

.reseller-unpaid-list-head,
.reseller-unpaid-order-summary {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1.35fr 1.1fr .75fr 1.35fr;
}

.reseller-unpaid-list-head {
  background: #f8fafc;
  color: #7d899c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 12px 18px;
  text-transform: uppercase;
}

.reseller-unpaid-order-row {
  border-top: 1px solid #e8edf4;
}

.reseller-unpaid-list-head + .reseller-unpaid-order-row {
  border-top: 0;
}

.reseller-unpaid-order-summary {
  align-items: center;
  color: #263248;
  font-size: 12px;
  padding: 16px 18px;
}

.reseller-unpaid-order-summary > div {
  min-width: 0;
}

.reseller-unpaid-order-summary > div > strong {
  color: #14213a;
  font-size: 13px;
}

.reseller-unpaid-order-summary small {
  color: #7a879d;
  display: block;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}

.reseller-unpaid-service {
  align-items: center;
  display: flex;
  gap: 10px;
}

.reseller-unpaid-service > span {
  align-items: center;
  background: #fff0f7;
  border-radius: 10px;
  color: #e20074;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.reseller-unpaid-service strong {
  color: #14213a;
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.reseller-unpaid-amount {
  font-size: 15px !important;
  white-space: nowrap;
}

.reseller-unpaid-status .badge {
  font-size: 11px;
  padding: 5px 8px;
}

.reseller-unpaid-payment {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #edf1f6;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(390px, 1fr) auto auto;
  padding: 12px 18px;
}

.reseller-unpaid-payment > strong {
  color: #52617a;
  font-size: 12px;
  white-space: nowrap;
}

.reseller-unpaid-payment > strong i {
  color: #e20074;
  margin-right: 5px;
}

.reseller-unpaid-payment .payment-channel-grid.is-compact {
  margin: 0;
}

.reseller-unpaid-payment .payment-channel-card.is-compact > span {
  min-height: 44px;
  padding: 5px 8px;
}

.reseller-unpaid-payment .payment-channel-card.is-compact img {
  height: 23px;
  width: 42px;
}

.reseller-unpaid-payment .btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  white-space: nowrap;
}

.reseller-unpaid-verify {
  color: #e20074;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .reseller-order-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-unpaid-grid {
    grid-template-columns: 1fr;
  }

  .reseller-unpaid-payment {
    grid-template-columns: 1fr;
  }

  .reseller-unpaid-payment > strong {
    white-space: normal;
  }

  .reseller-unpaid-payment .btn,
  .reseller-unpaid-verify {
    text-align: center;
    width: 100%;
  }

  /* Order history is rendered as app-style cards before table columns can overflow. */
  .reseller-order-history-card {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  .reseller-order-history-card .table-responsive {
    overflow: visible;
    width: 100%;
  }

  .reseller-order-history-card table,
  .reseller-order-history-card tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .reseller-order-history-card thead {
    display: none;
  }

  .reseller-order-history-card tbody tr {
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    width: calc(100% - 20px);
  }

  .reseller-order-history-card tbody td {
    border: 0;
    display: block;
    min-width: 0 !important;
    overflow-wrap: anywhere;
    padding: 10px 12px;
  }

  .reseller-order-history-card tbody td::before {
    color: #8a96a8;
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .reseller-order-history-card tbody td:nth-child(2),
  .reseller-order-history-card tbody td:nth-child(3),
  .reseller-order-history-card tbody td:nth-child(5),
  .reseller-order-history-card tbody td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .reseller-order-history-card tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .reseller-order-history-card tbody td:nth-child(4)::before {
    text-align: right;
  }

  .reseller-order-history-card tbody td:nth-child(6) {
    background: #fbfcfe;
    border-top: 1px solid #edf1f6;
  }

  .reseller-all-orders-tools {
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
  }

  .reseller-all-orders-tools > :first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-all-orders-tools form {
    flex: 0 0 auto;
  }
}

@media (max-width: 767.98px) {
  .reseller-order-history-card .table-responsive {
    overflow: visible;
  }

  .reseller-order-history-card table,
  .reseller-order-history-card tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .reseller-order-history-card thead {
    display: none;
  }

  .reseller-order-history-card tbody tr {
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    margin: 10px;
    overflow: hidden;
    width: calc(100% - 20px);
  }

  .reseller-order-history-card tbody td {
    border: 0;
    display: block;
    min-width: 0 !important;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }

  .reseller-order-history-card tbody td::before {
    color: #8a96a8;
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .reseller-order-history-card tbody td:nth-child(2),
  .reseller-order-history-card tbody td:nth-child(3),
  .reseller-order-history-card tbody td:nth-child(5),
  .reseller-order-history-card tbody td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .reseller-order-history-card tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .reseller-order-history-card tbody td:nth-child(4)::before {
    text-align: right;
  }

  .reseller-order-history-card tbody td:nth-child(6) {
    background: #fbfcfe;
    border-top: 1px solid #edf1f6;
  }

  .reseller-order-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-order-inline-payment {
    min-width: 0;
    width: 100%;
  }

  .reseller-order-inline-payment .wallet-payment-option {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    max-width: 100%;
    width: 100%;
  }

  .reseller-order-inline-payment .wallet-payment-copy {
    min-width: 0;
  }

  .reseller-order-inline-payment .wallet-payment-copy strong,
  .reseller-order-inline-payment .wallet-payment-copy em {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .reseller-order-inline-payment .payment-channel-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .reseller-order-inline-check {
    border: 1px solid #efb4d3;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .reseller-flow-status-popup {
    border-left-width: 3px;
    border-radius: 12px;
    gap: 8px;
    max-width: calc(100vw - 20px);
    padding: 11px 12px;
    top: calc(62px + env(safe-area-inset-top));
    width: calc(100vw - 20px);
  }

  .reseller-flow-status-icon {
    flex-basis: 34px;
    height: 34px;
  }

  .reseller-flow-status-popup strong { display: block; font-size: 13px; }
  .reseller-flow-status-copy span { display: none; }
  .reseller-flow-status-popup a { font-size: 10px; padding: 6px 7px; }
  .reseller-flow-status-popup > button[data-flow-status-close] { flex-basis: 26px !important; height: 26px !important; min-height: 26px !important; min-width: 26px !important; width: 26px !important; }

  .payment-channel-grid {
    gap: 8px;
  }

  .payment-channel-card > span {
    flex-direction: column;
    gap: 5px;
    min-height: 88px;
    padding: 10px 6px;
  }

  .payment-channel-card img {
    height: 35px;
    width: 64px;
  }

  .payment-channel-card i {
    position: absolute;
    right: 7px;
    top: 7px;
  }

  .payment-channel-card.is-compact > span {
    min-height: 72px;
  }

  .proxy-renew-modal,
  .proxy-renew-success {
    align-items: flex-end;
    padding: 0;
  }

  .proxy-renew-dialog,
  .proxy-renew-success > div {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100%;
  }

  .proxy-renew-dialog {
    padding: 20px 16px;
  }

  .proxy-renew-heading h3 {
    font-size: 19px;
  }

  .proxy-renew-summary {
    grid-template-columns: 1fr;
  }

  .proxy-renew-summary > div,
  .proxy-renew-summary > div:nth-child(odd),
  .proxy-renew-summary > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e5eaf2;
    border-right: 0;
  }

  .proxy-renew-summary > div:last-child {
    border-bottom: 0;
  }

  .proxy-renew-actions {
    flex-direction: column-reverse;
  }

  .proxy-renew-actions .btn {
    width: 100%;
  }

  .reseller-order-stats {
    grid-template-columns: 1fr 1fr;
  }

  .reseller-balance-deposit-modal {
    align-items: flex-end;
    padding: 0;
  }

  .reseller-balance-deposit-dialog {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .reseller-all-orders-tools {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
  }

  .reseller-all-orders-tools .btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  .reseller-all-orders-tools > span {
    display: none;
  }

  .reseller-order-history-card .card-header {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    padding: 14px 12px;
  }

  .reseller-order-history-card .card-title {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    font-size: 17px;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-order-inline-payment {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }

  .reseller-order-inline-payment .payment-channel-grid.is-compact {
    flex: 1 1 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact > span {
    flex-direction: column;
    gap: 4px;
    min-height: 54px;
    padding: 6px 4px;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact img {
    height: 21px;
    width: 36px;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact strong {
    font-size: 8px;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact i {
    font-size: 8px;
    right: 4px;
    top: 4px;
  }

  .reseller-order-inline-payment .btn {
    flex: 0 0 auto;
    min-width: 68px;
    width: auto;
  }

  .reseller-order-stats > div {
    display: flex;
    flex-direction: column;
    padding: 13px 8px;
    text-align: center;
  }

  .reseller-order-stats > div > span {
    margin: 0 0 7px;
  }

  .reseller-order-stats strong {
    font-size: 14px;
  }

  .reseller-unpaid-section {
    padding: 0;
  }

  .reseller-order-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .reseller-unpaid-section .reseller-order-section-title {
    padding: 15px;
  }

  .reseller-order-section-title form,
  .reseller-order-section-title .btn {
    width: 100%;
  }

  .reseller-order-section-title h2 {
    font-size: 18px;
  }

  .reseller-unpaid-list-head {
    display: none;
  }

  .reseller-order-inline-actions {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .reseller-order-inline-actions > * {
    flex: 0 0 auto;
  }

  .reseller-order-inline-payment .wallet-payment-option {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    margin-bottom: 0;
    min-width: 220px;
  }

  .reseller-order-inline-payment .wallet-payment-copy {
    min-width: 0;
  }

  .reseller-order-inline-payment .wallet-payment-copy strong,
  .reseller-order-inline-payment .wallet-payment-copy em {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .reseller-order-inline-check {
    min-width: 72px;
    padding: 8px 10px;
    white-space: nowrap;
    width: auto;
  }

  .reseller-unpaid-order-summary {
    align-items: start;
    gap: 14px 12px;
    grid-template-columns: 1fr 1fr;
    padding: 15px;
  }

  .reseller-unpaid-order-summary > div::before {
    color: #8a96a8;
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .reseller-unpaid-service {
    grid-column: 1 / -1;
  }

  .reseller-unpaid-service::before {
    display: none !important;
  }

  .reseller-unpaid-status {
    grid-column: 1 / -1;
  }

  .reseller-unpaid-payment {
    padding: 14px 15px;
  }

  .reseller-unpaid-order-head {
    grid-template-columns: 38px 1fr;
  }

  .reseller-unpaid-order-head > strong {
    grid-column: 2;
  }

  .reseller-unpaid-order-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  /* Keep each unpaid-order action inside the phone viewport. */
  .reseller-order-history-card,
  .reseller-order-history-card .table-responsive,
  .reseller-order-history-card tbody,
  .reseller-order-history-card tbody tr,
  .reseller-order-history-card tbody td {
    max-width: 100%;
  }

  .reseller-all-orders-tools {
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .reseller-all-orders-tools h2,
  .reseller-all-orders-tools h3 {
    font-size: 18px;
    margin: 0;
  }

  .reseller-order-history-card > .card-header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 13px 14px;
  }

  .reseller-order-history-card > .card-header .card-title {
    float: none !important;
    font-size: 18px;
    margin: 0;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
  }

  .reseller-order-history-card > .card-header .card-tools {
    float: none !important;
    margin: 0 !important;
  }

  .reseller-all-orders-tools .text-muted,
  .reseller-check-all-button span {
    display: none;
  }

  .reseller-check-all-button {
    align-items: center;
    border-radius: 9px !important;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 !important;
    width: 36px;
  }

  .reseller-all-orders-tools .btn {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .reseller-order-inline-actions,
  .reseller-order-inline-payment {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .reseller-order-inline-payment .payment-channel-grid.is-compact {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .reseller-order-inline-payment .payment-channel-card,
  .reseller-order-inline-payment .payment-channel-card > span {
    min-width: 0;
    width: 100%;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact > span {
    gap: 2px;
    min-height: 48px;
    overflow: hidden;
    padding: 5px 2px;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact img {
    height: 18px;
    max-width: 34px;
    width: 34px;
  }

  .reseller-order-inline-payment .payment-channel-card.is-compact strong {
    font-size: 10px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-order-inline-payment .payment-channel-card i {
    font-size: 8px;
    right: 4px;
    top: 4px;
  }

  .reseller-order-inline-payment .btn {
    font-size: 12px;
    margin-top: 2px;
    min-height: 40px;
    width: 100%;
  }

  /* Phone order list: one compact action row instead of large checkout cards. */
  .reseller-order-history-card tbody tr {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 8px;
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
  }

  .reseller-order-history-card tbody td {
    padding: 10px;
  }

  .reseller-order-history-card tbody td::before {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(1),
  .reseller-order-history-card tbody td:nth-child(3) {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .reseller-order-history-card tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    padding-left: 4px;
    text-align: right;
  }

  .reseller-order-history-card tbody td:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }

  .reseller-order-history-card tbody td:nth-child(6) {
    background: transparent;
    border: 0;
    grid-column: 2;
    grid-row: 2;
    padding: 0 10px 10px 4px;
  }

  .reseller-order-history-card tbody td:nth-child(2) > strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
  }

  .reseller-order-history-card tbody td:nth-child(2) small,
  .reseller-order-history-card tbody td:nth-child(5) small {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 2px;
  }

  .reseller-order-history-card tbody td:nth-child(4) > strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .reseller-order-inline-actions,
  .reseller-order-inline-payment {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: flex-end;
    margin: 0;
    width: auto;
  }

  .reseller-order-inline-payment .payment-channel-grid.is-compact,
  .reseller-order-inline-check {
    display: none;
  }

  .reseller-order-inline-payment .btn {
    border-radius: 8px;
    font-size: 11px;
    margin: 0;
    min-height: 32px;
    padding: 6px 11px;
    width: auto;
  }
}

.reseller-trial-card .card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.trial-friendly-intro,
.reseller-trial-card-standalone {
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(20, 30, 55, 0.08);
}

.trial-friendly-intro .card-body {
  padding: 24px;
}

.trial-friendly-kicker {
  margin-bottom: 10px;
  color: #e20074;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trial-friendly-title {
  margin-bottom: 12px;
  color: #172033;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.08;
}

.trial-friendly-copy {
  color: #5f6c84;
  font-size: 15px;
  line-height: 1.75;
}

.trial-friendly-steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.trial-friendly-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.trial-friendly-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e20074, #ff5aa8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.trial-friendly-steps strong,
.trial-friendly-steps small,
.trial-friendly-sample span,
.trial-friendly-sample strong {
  display: block;
}

.trial-friendly-steps strong {
  color: #1c2435;
  font-size: 15px;
}

.trial-friendly-steps small {
  margin-top: 5px;
  color: #66748a;
  font-size: 13px;
  line-height: 1.6;
}

.trial-auto-box > div,
.trial-reserved-login > div {
  padding: 14px 16px;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  background: #f8faff;
}
.trial-auto-box span,
.trial-reserved-login span,
.trial-friendly-notes-panel span {
  color: #7a879b;
  font-size: 12px;
}
.trial-auto-box strong,
.trial-reserved-login strong,
.trial-friendly-notes-panel strong {
  margin-top: 6px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.trial-page-shell {
  display: grid;
  gap: 20px;
}

.trial-page-hero {
  overflow: hidden;
}

.trial-page-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #7a0045 0%, #e20074 42%, #2b304d 100%);
  color: #fff;
}

.trial-page-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.trial-page-copy h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.05;
}

.trial-page-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.trial-page-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trial-page-mini-stats > div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(9, 11, 24, 0.18);
  backdrop-filter: blur(10px);
}

.trial-page-mini-stats span,
.trial-page-checklist small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.trial-page-mini-stats strong,
.trial-page-checklist strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.trial-page-checklist {
  display: grid;
  gap: 12px;
}

.trial-page-checklist article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(9, 11, 24, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.trial-page-checklist span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.reseller-trial-card-standalone {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(20, 30, 55, 0.12);
}

.reseller-trial-card-standalone .card-header {
  padding: 18px 22px;
  border-bottom: 1px solid #eef2f8;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.reseller-trial-card-standalone .card-title {
  color: #1b2233;
  font-size: 21px;
  font-weight: 800;
}

.reseller-trial-card-standalone .card-body {
  padding: 22px;
}

.trial-reserved-login {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.trial-simple-form {
  display: flex;
  justify-content: flex-start;
}

.free-trial-admin-note {
  display: grid;
  gap: 12px;
}

.free-trial-admin-note > div {
  padding: 14px 16px;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.free-trial-admin-note span {
  color: #7a879b;
  font-size: 12px;
  display: block;
}

.free-trial-admin-note strong {
  margin-top: 6px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  display: block;
  overflow-wrap: anywhere;
}

.trial-status-board {
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  padding: 16px;
}

.trial-status-board-simple {
  overflow: hidden;
  padding: 0;
}

.trial-verify-header {
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(226, 0, 116, 0.1), transparent 32%),
    #fff;
  border-bottom: 1px solid #e9ecf3;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 30px 24px;
}

.trial-secure-label {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.trial-verify-header h3 {
  color: #131c2e;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 7px;
}

.trial-verify-header p {
  color: #657087;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.trial-countdown {
  background: #fff5fa;
  border: 1px solid rgba(226, 0, 116, .14);
  border-radius: 16px;
  flex: 0 0 auto;
  min-width: 132px;
  padding: 12px 16px;
  text-align: right;
}

.trial-countdown small {
  color: #7f6a77;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.trial-countdown strong {
  color: var(--brand);
  font-family: Consolas, monospace;
  font-size: 22px;
}

.trial-progress-guide {
  background: #fff;
  border-bottom: 1px solid #e9ecf3;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 30px;
}

.trial-progress-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8992a4;
  font-weight: 700;
  white-space: nowrap;
}

.trial-progress-item span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f6;
  color: #7f899b;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.trial-progress-item strong {
  display: block;
  font-size: 14px;
  margin: 0;
}

.trial-progress-item small {
  display: block;
  font-size: 9px;
  letter-spacing: .08em;
  margin-bottom: 1px;
}

.trial-progress-item-active {
  color: #172033;
}

.trial-progress-item-active span {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(226, 0, 116, 0.2);
  transform: translateY(-1px);
}

.trial-progress-item-complete span {
  background: #e8f7ef;
  color: #16854d;
}

.trial-progress-line {
  height: 2px;
  border-radius: 999px;
  background: #e6e9ef;
  overflow: hidden;
}

.trial-telegram-journey {
  padding: 26px 30px 30px;
}

.trial-telegram-step {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(30, 44, 78, .07);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 980px;
  padding: 26px;
}

.trial-telegram-visual {
  background:
    linear-gradient(135deg, rgba(226, 0, 116, .08), rgba(226, 0, 116, .02)),
    #f8f9fc;
  border-radius: 16px;
  padding: 20px;
}

.trial-telegram-content {
  max-width: 560px;
}

.trial-step-kicker {
  color: var(--brand);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.trial-telegram-content h4 {
  color: #131c2e;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.trial-telegram-content > p {
  color: #647087;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 54ch;
}

.trial-qr-card {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(30, 44, 78, .08);
  padding: 12px;
}

.trial-qr-card-accent {
  border-color: rgba(226, 0, 116, 0.18);
}

.trial-qr-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.trial-qr-card > span {
  align-items: center;
  color: #7b8598;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  padding: 11px 4px 1px;
}

.trial-primary-action,
.trial-secondary-action {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  max-width: 420px;
  min-height: 50px;
  width: 100%;
}

.trial-primary-action:active,
.trial-secondary-action:active {
  transform: translateY(1px);
}

.trial-force-note {
  align-items: flex-start;
  color: #647087;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.55;
  margin-top: 13px;
  max-width: 470px;
}

.trial-force-note i {
  color: var(--brand);
  margin-top: 3px;
}

.trial-back-action {
  color: #69758b;
  display: block;
  padding-left: 0;
  text-align: left;
}

.trial-live-check {
  align-items: center;
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
}

.trial-live-check > span {
  animation: trialPulse 1.8s ease-in-out infinite;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(226, 0, 116, .1);
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.trial-live-check strong,
.trial-live-check small {
  display: block;
}

.trial-live-check strong {
  color: #253047;
  font-size: 13px;
}

.trial-live-check small {
  color: #758095;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}

@keyframes trialPulse {
  50% { opacity: .45; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
  .trial-live-check > span {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .trial-page-hero-body {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .trial-page-copy h2 {
    font-size: 25px;
  }

  .trial-page-mini-stats {
    grid-template-columns: 1fr;
  }

  .trial-friendly-title {
    font-size: 24px;
  }

  .trial-friendly-steps article {
    grid-template-columns: 36px 1fr;
    padding: 12px 14px;
  }

  .trial-friendly-steps span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .trial-progress-guide {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px 16px;
  }

  .trial-progress-line {
    display: none;
  }

  .trial-progress-item {
    gap: 7px;
    white-space: normal;
  }

  .trial-progress-item span {
    border-radius: 11px;
    height: 32px;
    width: 32px;
  }

  .trial-progress-item strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .trial-progress-item small {
    font-size: 8px;
  }

  .trial-verify-header {
    align-items: flex-start;
    padding: 20px 18px;
  }

  .trial-verify-header h3 {
    font-size: 21px;
  }

  .trial-verify-header p {
    display: none;
  }

  .trial-countdown {
    min-width: 104px;
    padding: 10px 12px;
  }

  .trial-countdown strong {
    font-size: 18px;
  }

  .trial-telegram-journey {
    padding: 16px;
  }

  .trial-telegram-step {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .trial-qr-card {
    max-width: 230px;
    margin: 0 auto;
  }

  .trial-telegram-content h4 {
    font-size: 22px;
  }

  .reseller-trial-card .card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.proxy-store-header {
  padding-bottom: 0;
}

.proxy-store-topbar {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.proxy-store-topbar h1 {
  color: #18243d;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

.proxy-store-topbar p {
  color: #6f7b92;
  font-size: 15px;
  margin: 8px 0 0;
  max-width: 640px;
}

.proxy-store-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.proxy-store-balance-card {
  background: #fff;
  border: 1px solid #e7ecf5;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  min-width: 172px;
  padding: 12px 16px;
}

.proxy-store-balance-card span,
.proxy-store-card-note,
.proxy-store-form-note,
.proxy-store-side-head span,
.proxy-store-side-grid span,
.proxy-store-quote span {
  color: #7d889c;
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.proxy-store-balance-card strong {
  color: #13203a;
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-top: 3px;
}

.proxy-store-page {
  padding-bottom: 24px;
}

.proxy-store-shell {
  align-items: flex-start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 360px);
}

.proxy-store-main,
.proxy-store-side {
  display: grid;
  gap: 18px;
}

.proxy-store-board,
.proxy-store-order-card,
.proxy-store-side-card,
.proxy-store-quote {
  background: #fff;
  border: 1px solid #e7ecf5;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.proxy-store-tabs {
  align-items: center;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px 14px;
}

.proxy-store-tab {
  align-items: center;
  border-radius: 999px;
  color: #70809b;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  padding: 10px 0;
  position: relative;
}

.proxy-store-tab:hover,
.proxy-store-tab:focus {
  color: #17389b;
  text-decoration: none;
}

.proxy-store-tab span {
  align-items: center;
  background: #edf2fb;
  border-radius: 999px;
  color: #70809b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 8px;
}

.proxy-store-tab.is-active {
  color: #13203a;
}

.proxy-store-tab.is-active::after {
  background: #2d6cff;
  border-radius: 999px;
  bottom: -14px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.proxy-store-tab.is-active span {
  background: #ffe0db;
  color: #e45b4f;
}

.proxy-store-tab-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.proxy-store-sort-chip,
.proxy-store-filter-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  color: #344563;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.proxy-store-filter-btn {
  background: #eef4ff;
  color: #2d6cff;
}

.proxy-store-filter-btn:hover,
.proxy-store-filter-btn:focus {
  color: #1d56dc;
  text-decoration: none;
}

.proxy-store-table-wrap {
  padding: 14px 18px 18px;
}

.proxy-store-table {
  margin-bottom: 0;
  min-width: 980px;
}

.proxy-store-table thead th {
  border-top: 0;
  color: #94a0b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.proxy-store-table tbody td {
  border-top: 1px solid #eef2f8;
  color: #17233d;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 10px;
  vertical-align: middle;
}

.proxy-store-table tbody tr:hover {
  background: #fbfcff;
}

.proxy-store-check {
  display: inline-flex;
  margin: 0;
}

.proxy-store-check input {
  display: none;
}

.proxy-store-check span {
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.proxy-store-mini-flag {
  align-items: center;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  border: 1px solid #dde7f7;
  border-radius: 999px;
  color: #3151a3;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 6px;
}

.proxy-store-network {
  background: #eff3f7;
  border-radius: 999px;
  color: #5f6f84;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.proxy-store-row-actions {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}

.proxy-store-row-actions form {
  margin: 0;
}

.proxy-store-row-actions .btn-link {
  color: #6b7b92;
  font-weight: 700;
  padding-left: 8px;
  padding-right: 8px;
}

.proxy-store-row-actions .btn-link:hover,
.proxy-store-row-actions .btn-link:focus {
  color: #2d6cff;
  text-decoration: none;
}

.proxy-store-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: 48px 20px;
  text-align: center;
}

.proxy-store-empty h3 {
  color: #445f87;
  font-size: 39px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.proxy-store-empty p {
  color: #7c8aa4;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.proxy-store-empty .btn {
  margin-top: 22px;
  min-width: 136px;
}

.proxy-store-empty-visual {
  margin-bottom: 22px;
}

.proxy-store-empty-globe {
  border: 4px solid #c4cfdf;
  border-radius: 50%;
  height: 134px;
  position: relative;
  width: 134px;
}

.proxy-store-empty-globe::before,
.proxy-store-empty-globe::after {
  border: 4px solid #c4cfdf;
  border-bottom: 0;
  border-left: 0;
  border-radius: 50%;
  border-right: 0;
  content: "";
  inset: 18px;
  position: absolute;
}

.proxy-store-empty-globe::after {
  inset: 0 28px;
}

.proxy-store-empty-globe span {
  background: #47e7a5;
  border-radius: 50%;
  position: absolute;
}

.proxy-store-empty-globe span:nth-child(1) {
  height: 12px;
  right: 12px;
  top: 6px;
  width: 12px;
}

.proxy-store-empty-globe span:nth-child(2) {
  height: 8px;
  left: 28px;
  top: 58px;
  width: 8px;
}

.proxy-store-empty-globe span:nth-child(3) {
  bottom: 26px;
  height: 18px;
  right: 18px;
  width: 18px;
}

.proxy-store-quote {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 20px;
}

.proxy-store-quote strong {
  color: #17233d;
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
}

.proxy-store-order-card .card-header {
  align-items: center;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.proxy-store-order-card .card-body {
  padding: 20px 20px 12px;
}

.proxy-store-order-card .card-footer {
  background: #fbfcff;
  border-top: 1px solid #eef2f8;
  padding: 16px 20px 20px;
}

.proxy-store-form-note {
  background: #f6f9ff;
  border: 1px solid #e4ecfb;
  border-radius: 16px;
  color: #60728f;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.proxy-store-order-card label {
  color: #22314f;
  font-size: 13px;
  font-weight: 700;
}

.proxy-store-order-card .form-control {
  background: #fcfdff;
  border-color: #dce5f3;
  border-radius: 14px;
  min-height: 46px;
}

.proxy-store-order-card .form-control:focus {
  border-color: #9dbcff;
  box-shadow: 0 0 0 0.15rem rgba(45, 108, 255, 0.12);
}

.proxy-store-side-card {
  padding: 18px;
}

.proxy-store-side-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.proxy-store-side-head h3 {
  color: #18243d;
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 0;
}

.proxy-store-plan-list {
  display: grid;
  gap: 10px;
}

.proxy-store-plan {
  background: #f9fbff;
  border: 1px solid #ebf0f8;
  border-radius: 16px;
  padding: 14px;
}

.proxy-store-plan strong {
  color: #18243d;
  font-size: 14px;
  font-weight: 800;
}

.proxy-store-side-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proxy-store-side-grid div {
  background: #f9fbff;
  border: 1px solid #ebf0f8;
  border-radius: 16px;
  padding: 12px 14px;
}

.proxy-store-side-grid strong {
  color: #1a2945;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
  word-break: break-word;
}

.proxy-store-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1199.98px) {
  .proxy-store-shell {
    grid-template-columns: 1fr;
  }

  .proxy-store-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .proxy-store-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .proxy-store-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .proxy-store-quote {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proxy-store-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .proxy-store-topbar h1 {
    font-size: 30px;
  }

  .proxy-store-tabs {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 16px 12px;
  }

  .proxy-store-tab,
  .proxy-store-tab-actions,
  .proxy-store-sort-chip,
  .proxy-store-filter-btn,
  .proxy-store-balance-card {
    width: 100%;
  }

  .proxy-store-tab-actions {
    margin-left: 0;
  }

  .proxy-store-sort-chip,
  .proxy-store-filter-btn {
    justify-content: center;
  }

  .proxy-store-empty {
    min-height: 360px;
    padding: 36px 16px;
  }

  .proxy-store-empty h3 {
    font-size: 28px;
  }

  .proxy-store-empty p {
    font-size: 15px;
  }

  .proxy-store-quote,
  .proxy-store-side-grid {
    grid-template-columns: 1fr;
  }

  .proxy-store-order-card .card-footer {
    gap: 10px;
  }

  .proxy-store-order-card .card-footer .btn {
    width: 100%;
  }
}

/* Proxy Store uses a compact product-dashboard layout inspired by the supplied reference. */
.proxy-store-panel {
  --proxy-accent: var(--brand);
  --proxy-accent-dark: var(--brand-dark);
  --proxy-border: #e8edf5;
  --proxy-muted: #71809a;
  --proxy-text: #121b2f;
}

.proxy-store-panel .main-sidebar {
  background: #343a40;
  border-right: 0;
  box-shadow: none !important;
}

.proxy-store-panel .brand-link {
  background: #2f353b;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.proxy-store-panel .brand-link:hover,
.proxy-store-panel .brand-link:focus {
  color: #ffffff;
}

.proxy-store-panel .admin-brand {
  background: var(--proxy-accent);
  border-radius: 10px;
  font-size: 12px;
  margin-left: 2px;
}

.proxy-store-panel .user-panel {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.proxy-store-panel .user-panel .info a {
  color: #f4f6f9;
}

.proxy-store-panel .sidebar {
  padding-left: 12px;
  padding-right: 12px;
}

.proxy-store-panel .nav-sidebar > .nav-item > .nav-link {
  border-radius: 9px;
  color: #cbd2dc;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  padding: 10px 12px;
}

.proxy-store-panel .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(226, 0, 116, 0.16);
  color: #ffffff;
}

.proxy-store-panel .nav-sidebar > .nav-item > .nav-link.active,
.proxy-store-panel .nav-sidebar > .nav-item > .nav-link.active:focus,
.proxy-store-panel .nav-sidebar > .nav-item > .nav-link.active:hover {
  background: var(--proxy-accent);
  box-shadow: none;
  color: #ffffff;
}

.proxy-store-panel .nav-sidebar .nav-icon {
  font-size: 15px;
  margin-right: 5px;
}

.proxy-store-sidebar-wallet {
  align-items: center;
  background: #2c3238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding: 12px;
}

.proxy-store-sidebar-wallet span {
  color: #9fa8b6;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-store-sidebar-wallet strong {
  color: #ffffff;
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.proxy-store-sidebar-wallet a {
  align-items: center;
  background: var(--proxy-accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  padding: 9px 10px;
  white-space: nowrap;
}

.proxy-store-sidebar-wallet a:hover,
.proxy-store-sidebar-wallet a:focus {
  background: var(--proxy-accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.proxy-store-sidebar-order {
  align-items: center;
  background: var(--proxy-accent);
  border-radius: 9px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 46px;
  padding: 10px 14px;
}

.proxy-store-sidebar-order:hover,
.proxy-store-sidebar-order:focus {
  background: var(--proxy-accent-dark);
  color: #fff;
  text-decoration: none;
}

.proxy-store-sidebar-order:active,
.proxy-store-panel .btn:active {
  transform: translateY(1px);
}

.proxy-store-sidebar-label {
  color: #8f99a8;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  list-style: none;
  padding: 6px 12px 7px;
  text-transform: uppercase;
}

.proxy-store-panel .main-header {
  border-bottom: 1px solid var(--proxy-border);
  box-shadow: none;
  min-height: 62px;
  z-index: 1045;
}

.proxy-corner-actions {
  align-items: center;
  gap: 8px;
}

.proxy-corner-actions .nav-item {
  align-items: center;
  display: flex;
}

.proxy-corner-icon,
.proxy-corner-deposit,
.proxy-language-trigger,
.proxy-account-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 11px;
  color: #60728a;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.proxy-corner-deposit {
  background: var(--proxy-accent);
  border-color: var(--proxy-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 0 14px;
}

.proxy-corner-icon {
  border-color: transparent;
  font-size: 20px;
  width: 42px;
}

.proxy-language-trigger {
  gap: 12px;
  min-width: 78px;
  padding: 0 13px;
}

.proxy-language-flag {
  border-radius: 2px;
  display: block;
  height: 18px;
  object-fit: cover;
  width: 27px;
}

.proxy-language-trigger > i {
  font-size: 10px;
}

.proxy-account-trigger {
  border-color: transparent;
  font-size: 25px;
  width: 42px;
}

.proxy-language-menu,
.proxy-account-menu {
  position: relative;
}

.proxy-language-menu summary::-webkit-details-marker,
.proxy-account-menu summary::-webkit-details-marker {
  display: none;
}

.proxy-language-menu[open] .proxy-language-trigger,
.proxy-account-menu[open] .proxy-account-trigger,
.proxy-corner-deposit:hover,
.proxy-corner-deposit:focus,
.proxy-corner-icon:hover,
.proxy-corner-icon:focus,
.proxy-language-trigger:hover,
.proxy-language-trigger:focus,
.proxy-account-trigger:hover,
.proxy-account-trigger:focus {
  background: #fff3f9;
  border-color: #f3c9df;
  color: var(--proxy-accent);
  text-decoration: none;
}

.proxy-corner-deposit:hover,
.proxy-corner-deposit:focus {
  background: var(--proxy-accent-dark);
  border-color: var(--proxy-accent-dark);
  color: #fff;
}

.proxy-language-popover,
.proxy-account-popover {
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  box-shadow: 0 20px 50px rgba(31, 43, 67, 0.17);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1060;
}

.proxy-language-popover {
  min-width: 70px;
  padding: 8px;
}

.proxy-language-popover button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #34425a;
  display: flex;
  height: 46px;
  justify-content: center;
  min-height: 46px;
  padding: 8px;
  width: 100%;
}

.proxy-language-popover button:hover,
.proxy-language-popover button:focus,
.proxy-language-popover button.is-selected {
  background: #fff3f9;
  color: var(--proxy-accent-dark);
}

.proxy-language-popover button > img {
  border-radius: 2px;
  height: 18px;
  object-fit: cover;
  width: 28px;
}

.proxy-account-popover {
  min-width: 300px;
  overflow: hidden;
  padding: 9px;
}

.proxy-account-identity {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  padding: 10px 9px 14px;
}

.proxy-account-identity > span {
  align-items: center;
  background: #f3f5f8;
  border-radius: 10px;
  color: #65758b;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 18px;
  height: 42px;
  justify-content: center;
}

.proxy-account-identity > div {
  min-width: 0;
}

.proxy-account-identity strong,
.proxy-account-identity small {
  display: block;
}

.proxy-account-identity strong {
  color: #253149;
  font-size: 15px;
}

.proxy-account-identity small {
  color: #7a8799;
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-account-popover > a,
.proxy-account-popover > form button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #43536b;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  justify-content: flex-start;
  min-height: 44px;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}

.proxy-account-popover > a > i,
.proxy-account-popover > form button > i {
  color: #71839a;
  font-size: 16px;
  text-align: center;
  width: 19px;
}

.proxy-account-popover > a:hover,
.proxy-account-popover > a:focus,
.proxy-account-popover > form button:hover,
.proxy-account-popover > form button:focus {
  background: #fff3f9;
  color: var(--proxy-accent-dark);
  text-decoration: none;
}

.proxy-account-popover > form {
  border-top: 1px solid #edf0f4;
  margin: 6px 0 0;
  padding-top: 6px;
}

.proxy-store-panel .content-wrapper {
  background: #f4f6f9;
}

.proxy-store-panel .btn-primary,
.proxy-store-panel .btn-info {
  background: var(--proxy-accent);
  border-color: var(--proxy-accent);
}

.proxy-store-panel .btn-primary:hover,
.proxy-store-panel .btn-primary:focus,
.proxy-store-panel .btn-info:hover,
.proxy-store-panel .btn-info:focus {
  background: var(--proxy-accent-dark);
  border-color: var(--proxy-accent-dark);
}

.proxy-store-panel .proxy-store-header {
  background: #fff;
  border-bottom: 1px solid var(--proxy-border);
  padding: 0;
}

.proxy-store-panel .proxy-store-header .container-fluid {
  padding: 0 28px;
}

.proxy-store-topbar {
  align-items: center;
  min-height: 74px;
}

.proxy-store-topbar h1 {
  color: var(--proxy-text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.proxy-store-link-status {
  align-items: center;
  border: 1px solid var(--proxy-border);
  border-radius: 8px;
  color: #667085;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
}

.proxy-store-link-status span {
  background: #f4b740;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.proxy-store-link-status.is-linked span {
  background: #27c98b;
}

.proxy-store-header-action,
.proxy-store-more-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--proxy-border);
  border-radius: 8px;
  color: #63718a;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.proxy-store-header-action:hover,
.proxy-store-header-action:focus {
  background: #f6f8fc;
  color: var(--proxy-accent);
  text-decoration: none;
}

.proxy-store-panel .proxy-store-page {
  padding: 24px 28px 32px;
}

.proxy-store-shell {
  display: block;
}

.proxy-store-board,
.proxy-store-order-card,
.proxy-store-side-card,
.proxy-store-quote {
  background: #ffffff;
  border: 1px solid var(--proxy-border);
  border-radius: 12px;
  box-shadow: none;
}

.proxy-store-tabs {
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 68px;
  padding: 12px 16px 0;
}

.proxy-store-tab {
  border-radius: 0;
  font-size: 14px;
  min-height: 55px;
  padding: 0;
}

.proxy-store-tab.is-active::after {
  background: var(--proxy-accent);
  bottom: -1px;
  height: 2px;
}

.proxy-store-panel .proxy-store-tab:hover,
.proxy-store-panel .proxy-store-tab:focus {
  color: var(--proxy-accent);
}

.proxy-store-tab.is-active span {
  background: #fde0ef;
  color: var(--proxy-accent-dark);
}

.proxy-store-tab-actions {
  gap: 8px;
}

.proxy-store-quick-search {
  align-items: stretch;
  display: flex;
  margin: 0;
}

.proxy-store-quick-search label {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px 0 0 8px;
  display: flex;
  margin: 0;
  min-height: 38px;
  padding: 0 10px;
  width: 250px;
}

.proxy-store-quick-search label > i {
  color: #8a96a8;
  font-size: 12px;
}

.proxy-store-quick-search input {
  background: transparent;
  border: 0;
  color: #263248;
  font-size: 12px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
  width: 100%;
}

.proxy-store-quick-search label a {
  color: #8a96a8;
  font-size: 11px;
}

.proxy-store-quick-search button {
  background: var(--proxy-accent);
  border: 1px solid var(--proxy-accent);
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 12px;
}

.proxy-store-quick-search:focus-within label {
  border-color: #e20074;
  box-shadow: 0 0 0 3px rgba(226, 0, 116, .08);
}

.proxy-store-sort-chip,
.proxy-store-filter-btn,
.proxy-store-more-btn {
  border-radius: 8px;
  min-height: 38px;
}

.proxy-store-sort-chip {
  gap: 14px;
}

.proxy-store-more-btn {
  background: #fff0f8;
  border-color: #fff0f8;
  color: var(--proxy-accent);
}

.proxy-store-filter-btn {
  background: #fff0f8;
  border-color: #fff0f8;
  color: var(--proxy-accent);
  padding-left: 13px;
  padding-right: 13px;
}

.proxy-store-panel .proxy-store-filter-btn:hover,
.proxy-store-panel .proxy-store-filter-btn:focus {
  background: #fde0ef;
  color: var(--proxy-accent-dark);
}

.proxy-store-sort-form {
  margin: 0;
}

.proxy-store-sort-chip select {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  outline: 0;
  padding: 0;
}

.proxy-store-action-menu,
.proxy-store-filter-menu {
  position: relative;
}

.proxy-store-action-menu summary,
.proxy-store-filter-menu summary {
  cursor: pointer;
  list-style: none;
  margin: 0;
  user-select: none;
}

.proxy-store-action-menu summary::-webkit-details-marker,
.proxy-store-filter-menu summary::-webkit-details-marker {
  display: none;
}

.proxy-store-action-menu[open] .proxy-store-more-btn,
.proxy-store-filter-menu[open] .proxy-store-filter-btn,
.proxy-store-filter-btn.is-active {
  background: #fde0ef;
  color: var(--proxy-accent-dark);
}

.proxy-store-filter-btn b {
  background: var(--proxy-accent);
  border: 2px solid #fff;
  border-radius: 50%;
  height: 9px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
}

.proxy-store-action-popover,
.proxy-store-filter-popover {
  background: #fff;
  border: 1px solid var(--proxy-border);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(31, 43, 67, 0.16);
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 1040;
}

.proxy-store-action-popover {
  min-width: 190px;
  padding: 7px;
}

.proxy-store-action-popover a {
  align-items: center;
  border-radius: 8px;
  color: #34425a;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  padding: 10px 11px;
  white-space: nowrap;
}

.proxy-store-action-popover a i {
  color: var(--proxy-accent);
  text-align: center;
  width: 16px;
}

.proxy-store-action-popover a:hover,
.proxy-store-action-popover a:focus {
  background: #fff3f9;
  color: var(--proxy-accent-dark);
  text-decoration: none;
}

.proxy-store-filter-popover {
  padding: 18px;
  width: 460px;
}

.proxy-store-filter-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.proxy-store-filter-head strong {
  color: #17223b;
  font-size: 16px;
}

.proxy-store-filter-head a {
  color: var(--proxy-accent);
  font-size: 12px;
  font-weight: 800;
}

.proxy-store-filter-popover label {
  color: #65738a;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 13px;
}

.proxy-store-filter-popover .form-control {
  border-color: #dfe5ef;
  border-radius: 9px;
  color: #263248;
  font-size: 13px;
  margin-top: 6px;
  min-height: 42px;
}

.proxy-store-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.proxy-store-table-wrap {
  padding: 0 14px 14px;
}

.proxy-store-table {
  min-width: 1180px;
}

.proxy-store-table thead th {
  background: #fbfcfe;
  border-bottom: 1px solid var(--proxy-border);
  color: #8996aa;
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 12px 9px;
}

.proxy-store-table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.proxy-store-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.proxy-store-table tbody td {
  color: #263248;
  font-size: 13px;
  padding: 13px 9px;
}

.proxy-store-row-expired {
  background: linear-gradient(90deg, rgba(255, 236, 239, 0.78), rgba(255, 248, 249, 0.94));
}

.proxy-store-expiry-cell {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.proxy-store-expiry-text {
  color: #263248;
  display: inline-block;
}

.proxy-store-expiry-tag {
  background: #ffe4ea;
  border: 1px solid #ffb6c6;
  border-radius: 999px;
  color: #c72c53;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.proxy-store-serial {
  color: #7d899c !important;
  text-align: center;
  width: 42px;
}

.proxy-store-serial strong {
  font-size: 12px;
}

.proxy-store-network {
  border-radius: 6px;
  font-size: 9px;
  padding: 5px 8px;
}

.proxy-store-mini-flag {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
  font-weight: 400;
  height: 24px;
  line-height: 1;
  min-width: 28px;
  padding: 0;
}

.proxy-store-mini-flag img {
  border-radius: 2px;
  display: block;
  height: auto;
  width: 24px;
}

.proxy-store-mini-flag > i {
  color: #8391a5;
  font-size: 16px;
}

.proxy-store-id-link {
  color: #17223b;
  display: inline-flex;
  padding: 3px 0;
  text-decoration: none;
}

.proxy-store-id-link:hover,
.proxy-store-id-link:focus {
  color: var(--proxy-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.proxy-cli-card {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(30, 44, 67, 0.06);
  margin-bottom: 20px;
  padding: 22px;
}

.proxy-cli-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.proxy-cli-heading > span {
  align-items: center;
  background: #f0f3f6;
  border-radius: 12px;
  color: #17223b;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 20px;
  height: 48px;
  justify-content: center;
}

.proxy-cli-heading h3 {
  color: #111b31;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.proxy-cli-heading p {
  color: #7a879b;
  font-size: 13px;
  margin: 3px 0 0;
}

.proxy-cli-code {
  align-items: center;
  background: #20272f;
  border: 1px solid #303944;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  min-height: 72px;
  padding: 16px 18px 16px 22px;
}

.proxy-cli-code code {
  color: #42e6a4;
  flex: 1;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.proxy-cli-code code span {
  color: #1fcf8b;
  margin-right: 8px;
}

.proxy-cli-code button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #f8fafc;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
}

.proxy-cli-code button:hover,
.proxy-cli-code button:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.proxy-cli-help {
  color: #7a879b;
  font-size: 13px;
  margin: 14px 0 0;
}

.proxy-login-settings .card-body {
  padding: 20px;
}

.proxy-login-settings-note {
  margin-bottom: 16px;
}

.proxy-login-settings-form {
  height: 100%;
}

.proxy-login-settings .row {
  margin-left: -8px;
  margin-right: -8px;
}

.proxy-login-settings .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.proxy-login-settings-section {
  background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
  border: 1px solid #e7edf5;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  height: 100%;
  padding: 18px;
}

.proxy-login-settings-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.proxy-login-settings-head span {
  align-items: center;
  background: #fff0f7;
  border-radius: 14px;
  color: var(--proxy-accent);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.proxy-login-settings-head strong {
  color: #17233a;
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.proxy-login-settings-head small {
  color: #7e8ca3;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.proxy-store-panel .proxy-store-row-actions .btn-link:hover,
.proxy-store-panel .proxy-store-row-actions .btn-link:focus {
  color: var(--proxy-accent);
}

.proxy-store-empty {
  min-height: 520px;
  padding: 58px 20px 74px;
}

.proxy-store-empty-visual {
  margin-bottom: 28px;
}

.proxy-store-empty-globe {
  border-width: 3px;
  height: 112px;
  width: 112px;
}

.proxy-store-empty-globe::before,
.proxy-store-empty-globe::after {
  border-width: 3px;
}

.proxy-store-panel .proxy-store-empty-globe span {
  background: var(--proxy-accent);
}

.proxy-store-empty h3 {
  color: #5d7597;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.proxy-store-empty p {
  color: #8290a5;
  font-size: 14px;
  line-height: 1.5;
}

.proxy-store-empty .btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 22px;
  min-width: 112px;
}

.proxy-store-order-card {
  margin-top: 18px;
}

.proxy-store-panel .proxy-store-order-card.card-magenta {
  border-top: 1px solid var(--proxy-border);
}

.proxy-store-panel .proxy-store-order-card .card-header {
  background: #fff;
  color: var(--proxy-text);
  min-height: 58px;
}

.proxy-store-order-card .card-title {
  font-size: 17px;
  font-weight: 800;
}

.proxy-store-order-card .form-control {
  border-radius: 8px;
  min-height: 42px;
}

.proxy-store-order-card .form-control:focus {
  border-color: #ee73b2;
  box-shadow: 0 0 0 0.15rem rgba(226, 0, 116, 0.12);
}

.proxy-store-form-note {
  border-radius: 8px;
}

.proxy-store-side-card {
  margin-top: 18px;
}

@media (max-width: 991.98px) {
  .proxy-store-panel .proxy-store-header .container-fluid,
  .proxy-store-panel .proxy-store-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 767.98px) {
  .proxy-store-topbar {
    align-items: center;
    flex-direction: row;
    min-height: 64px;
  }

  .proxy-store-topbar h1 {
    font-size: 20px;
  }

  .proxy-store-toolbar {
    justify-content: flex-end;
    width: auto;
  }

  .proxy-store-link-status {
    display: none;
  }

  .proxy-store-tabs {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 12px 0;
  }

  .proxy-store-tab {
    min-height: 46px;
    width: auto;
  }

  .proxy-store-tab-actions {
    border-top: 1px solid var(--proxy-border);
    flex-basis: 100%;
    flex-wrap: wrap;
    margin: 0 -12px;
    padding: 10px 12px;
    width: calc(100% + 24px);
  }

  .proxy-store-quick-search {
    flex-basis: 100%;
    order: -1;
    width: 100%;
  }

  .proxy-store-quick-search label {
    flex: 1;
    width: auto;
  }

  .proxy-store-quick-search button {
    min-width: 68px;
  }

  .proxy-store-sort-chip,
  .proxy-store-filter-btn {
    flex: 1;
    width: auto;
  }

  .proxy-store-more-btn {
    flex: 0 0 38px;
  }

  .proxy-store-empty {
    min-height: 390px;
  }

  .proxy-login-settings .card-body {
    padding: 16px 14px;
  }

  .proxy-login-settings-note {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .proxy-login-settings .row {
    margin-left: 0;
    margin-right: 0;
  }

  .proxy-login-settings .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .proxy-login-settings .row > [class*="col-"] + [class*="col-"] {
    margin-top: 12px;
  }

  .proxy-login-settings-section {
    border-radius: 14px;
    padding: 14px;
  }

  .proxy-login-settings-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .proxy-login-settings-head span {
    border-radius: 12px;
    flex-basis: 38px;
    height: 38px;
  }

  .proxy-login-settings-head strong {
    font-size: 16px;
  }

  .proxy-login-settings-head small {
    font-size: 11px;
  }

  .proxy-login-settings .btn {
    min-height: 44px;
  }
}

.proxy-order-title {
  align-items: center;
  display: flex;
  gap: 14px;
}

.proxy-order-title > a {
  align-items: center;
  border: 1px solid var(--proxy-border);
  border-radius: 8px;
  color: #5e6c82;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.proxy-order-title > a:hover,
.proxy-order-title > a:focus {
  color: var(--proxy-accent);
  text-decoration: none;
}

.proxy-order-title p {
  color: #77849a;
  font-size: 13px;
  margin: 3px 0 0;
}

.proxy-order-steps {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: -8px 0 22px;
}

.proxy-order-steps span {
  color: #9aa4b4;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 0;
  position: relative;
}

.proxy-order-steps span.is-active {
  color: var(--proxy-text);
}

.proxy-order-steps span.is-active::after {
  background: var(--proxy-accent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.proxy-order-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.proxy-order-form-card,
.proxy-order-summary {
  background: #ffffff;
  border: 1px solid var(--proxy-border);
  border-radius: 12px;
}

.proxy-order-form-card {
  padding: 22px 22px 8px;
}

.proxy-order-section-head {
  align-items: center;
  border-bottom: 1px solid var(--proxy-border);
  display: flex;
  gap: 12px;
  margin: -2px 0 20px;
  padding-bottom: 18px;
}

.proxy-order-section-head > span {
  align-items: center;
  background: #fff0f8;
  border-radius: 9px;
  color: var(--proxy-accent);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.proxy-order-section-head h2 {
  color: var(--proxy-text);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.proxy-order-section-head p {
  color: #7b879a;
  font-size: 13px;
  margin: 3px 0 0;
}

.proxy-order-page label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.proxy-order-page .form-control {
  background: #fbfcfe;
  border-color: #dfe5ee;
  border-radius: 8px;
  min-height: 44px;
}

.proxy-order-page .form-control:focus {
  border-color: #ee73b2;
  box-shadow: 0 0 0 0.15rem rgba(226, 0, 116, 0.12);
}

.proxy-order-advanced {
  border-top: 1px solid var(--proxy-border);
  margin: 4px -22px 0;
  padding: 0 22px;
}

.proxy-order-advanced summary {
  color: #52617a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  padding: 17px 0;
}

.proxy-order-advanced summary::-webkit-details-marker {
  display: none;
}

.proxy-order-advanced summary i {
  color: var(--proxy-accent);
  margin-right: 7px;
}

.proxy-order-summary {
  padding: 20px;
  position: sticky;
  top: 16px;
}

.proxy-order-summary > span {
  color: #8692a5;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-order-summary h3 {
  color: var(--proxy-text);
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 18px;
}

.proxy-order-summary > div {
  align-items: center;
  border-top: 1px solid var(--proxy-border);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 0;
}

.proxy-order-summary > div span {
  color: #7d899c;
  font-size: 12px;
}

.proxy-order-summary > div strong {
  color: #263248;
  font-size: 13px;
  text-align: right;
}

.proxy-order-summary .btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
  min-height: 44px;
}

.proxy-order-summary .btn-outline-info {
  border-color: #e9a2c7;
  color: var(--proxy-accent);
}

.proxy-order-summary .btn-outline-info:hover,
.proxy-order-summary .btn-outline-info:focus {
  background: #fff0f8;
  color: var(--proxy-accent-dark);
}

.proxy-order-summary small {
  color: #8994a6;
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 991.98px) {
  .proxy-order-layout {
    grid-template-columns: 1fr;
  }

  .proxy-order-summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .proxy-order-steps {
    gap: 18px;
    justify-content: flex-start;
  }

  .proxy-order-title p {
    display: none;
  }

  .proxy-order-form-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .proxy-order-advanced {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.proxy-order-page {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.proxy-order-builder {
  display: grid;
  gap: 16px;
}

.proxy-order-builder .proxy-order-form-card {
  padding: 16px;
}

.proxy-order-builder .proxy-order-section-head {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}

.proxy-order-builder .proxy-order-section-head h2 {
  font-size: 15px;
}

.proxy-order-builder .proxy-order-section-head p {
  font-size: 11px;
}

.proxy-order-services,
.proxy-order-plans {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proxy-order-service,
.proxy-order-plan {
  cursor: pointer;
  display: block;
  margin: 0;
  min-width: 0;
  position: relative;
}

.proxy-order-service input,
.proxy-order-plan input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.proxy-order-service-body,
.proxy-order-plan-body {
  background: #ffffff;
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  display: flex;
  min-height: 92px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.proxy-order-service-body {
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.proxy-order-service-body > i {
  color: var(--proxy-accent);
  font-size: 15px;
  margin-bottom: 9px;
}

.proxy-order-service-body strong {
  color: #17233a;
  font-size: 12px;
  line-height: 1.25;
}

.proxy-order-service-body small {
  color: #8994a5;
  font-size: 9px;
  margin-top: 5px;
}

.proxy-order-service input:checked + .proxy-order-service-body,
.proxy-order-plan input:checked + .proxy-order-plan-body {
  border-color: var(--proxy-accent);
  box-shadow: 0 0 0 1px var(--proxy-accent);
}

.proxy-order-service:hover .proxy-order-service-body,
.proxy-order-plan:hover .proxy-order-plan-body {
  border-color: #e070aa;
  transform: translateY(-1px);
}

.proxy-order-plan[hidden] {
  display: none !important;
}

.proxy-order-plan-body {
  flex-direction: column;
  min-height: 178px;
  padding: 13px;
}

.proxy-order-plan-top {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proxy-order-plan-top strong {
  color: #17233a;
  font-size: 13px;
}

.proxy-order-plan-top b {
  background: #ffe0ef;
  border-radius: 999px;
  color: var(--proxy-accent-dark);
  font-size: 8px;
  padding: 3px 6px;
  text-transform: uppercase;
}

.proxy-order-plan-body small {
  color: #5f6d82;
  font-size: 9px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.proxy-order-plan-body small i {
  color: var(--proxy-accent);
  font-size: 8px;
  margin-right: 4px;
}

.proxy-order-plan-body em {
  border-top: 1px solid #edf0f5;
  color: #25334c;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  margin-top: auto;
  padding-top: 9px;
}

.proxy-order-plan.is-placeholder {
  cursor: default;
}

.proxy-order-plan.is-placeholder .proxy-order-plan-body {
  background: #fbfcfe;
}

.proxy-order-plan.is-placeholder:hover .proxy-order-plan-body {
  border-color: #e2e7ef;
  transform: none;
}

.proxy-order-config {
  padding: 0 !important;
}

.proxy-order-config-row {
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1fr);
  min-height: 62px;
  padding: 9px 14px;
}

.proxy-order-config-row:last-child {
  border-bottom: 0;
}

.proxy-order-config-row label {
  margin: 0;
}

.proxy-order-config-row .form-control {
  margin: 0;
  min-height: 40px;
}

.proxy-order-network-row {
  align-items: start;
  padding-bottom: 16px;
  padding-top: 16px;
}

.proxy-order-network-row > label {
  padding-top: 8px;
}

.proxy-network-picker {
  min-width: 0;
}

.proxy-network-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.proxy-network-picker-head strong {
  color: #18243a;
  font-size: 13px;
}

.proxy-network-picker-head small {
  color: #7d8ba1;
  font-size: 11px;
}

.proxy-isp-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin: 0;
}

.proxy-order-config-row > div {
  min-width: 0;
}

.proxy-isp-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 32px 8px 9px;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  color: #53637a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.proxy-isp-filter > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  text-align: left;
  line-height: 1.2;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: normal;
}

.proxy-isp-filter img {
  flex: 0 0 52px;
  width: 52px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  padding: 4px;
  background: #f4f7fb;
}

.proxy-isp-filter > i:not(.proxy-isp-selected-mark) {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  padding: 4px;
  background: #f4f7fb;
}

.proxy-isp-filter > i:not(.proxy-isp-selected-mark) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5007d;
}

.proxy-isp-selected-mark {
  position: absolute;
  top: 50%;
  right: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5007d;
  color: #fff;
  font-size: 9px;
  transform: translateY(-50%);
}

.proxy-isp-filter:hover,
.proxy-isp-filter.is-active {
  border-color: #e5007d;
  background: #fff5fa;
  color: #18243a;
  box-shadow: 0 7px 18px rgba(229, 0, 125, .1);
}

.proxy-isp-filter.is-active .proxy-isp-selected-mark {
  display: inline-flex;
}

@media (max-width: 767px) {
  .proxy-order-network-row {
    gap: 10px;
    padding: 14px 12px 16px;
  }

  .proxy-order-network-row > label {
    padding: 0;
  }

  .proxy-network-picker-head {
    display: block;
    margin-bottom: 9px;
  }

  .proxy-network-picker-head strong,
  .proxy-network-picker-head small {
    display: block;
  }

  .proxy-network-picker-head small {
    margin-top: 2px;
  }

  .proxy-isp-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .proxy-isp-filter {
    min-height: 62px;
    padding: 7px 28px 7px 7px;
    font-size: 12px;
  }

  .proxy-isp-filter:first-child {
    grid-column: 1 / -1;
  }

  .proxy-isp-filter img {
    flex-basis: 44px;
    width: 44px;
    height: 36px;
  }

  .proxy-isp-filter > i:not(.proxy-isp-selected-mark) {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .proxy-isp-selected-mark {
    right: 7px;
  }
}

@media (max-width: 359px) {
  .proxy-isp-filters {
    grid-template-columns: 1fr;
  }

  .proxy-isp-filter:first-child {
    grid-column: auto;
  }
}

.proxy-order-toggle-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--proxy-border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin: 0;
  min-height: 62px;
  padding: 11px 14px;
}

.proxy-order-toggle-card > span {
  display: grid;
  grid-template-columns: 26px 1fr;
}

.proxy-order-toggle-card > span > i {
  color: var(--proxy-accent);
  grid-row: 1 / 3;
  padding-top: 3px;
}

.proxy-order-toggle-card strong {
  color: #27344b;
  font-size: 12px;
}

.proxy-order-toggle-card small {
  color: #8a95a6;
  font-size: 9px;
  margin-top: 2px;
}

.proxy-order-toggle-card input {
  opacity: 0;
  position: absolute;
}

.proxy-order-toggle-card > b {
  background: #d9dee7;
  border-radius: 999px;
  height: 22px;
  position: relative;
  transition: background 150ms ease;
  width: 40px;
}

.proxy-order-toggle-card > b::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(20, 30, 50, 0.2);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 150ms ease;
  width: 18px;
}

.proxy-order-toggle-card input:checked + b {
  background: var(--proxy-accent);
}

.proxy-order-toggle-card input:checked + b::after {
  transform: translateX(18px);
}

.proxy-order-builder .proxy-order-advanced {
  margin: 0;
  padding: 0 16px;
}

.proxy-order-builder .proxy-order-advanced[open] {
  padding-bottom: 4px;
}

.proxy-order-secure {
  align-items: center;
  color: #6f7b8e;
  display: flex;
  gap: 9px;
  padding: 12px 3px 2px;
}

.proxy-order-secure > i {
  color: var(--proxy-accent);
}

.proxy-order-secure span {
  display: flex;
  flex-direction: column;
}

.proxy-order-secure strong {
  color: #445067;
  font-size: 10px;
}

.proxy-order-secure small {
  font-size: 8px;
}

.proxy-order-secure > b {
  color: #8793a6;
  font-size: 9px;
  margin-left: auto;
}

.proxy-order-summary {
  top: 20px;
}

.proxy-order-summary .proxy-order-total strong {
  color: var(--proxy-text);
  font-size: 18px;
}

@media (max-width: 991.98px) {
  .proxy-order-page {
    max-width: 760px;
  }
}

@media (max-width: 767.98px) {
  .proxy-order-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proxy-order-plans {
    grid-template-columns: 1fr;
  }

  .proxy-order-plan-body {
    min-height: 150px;
  }
}

@media (max-width: 575.98px) {
  .proxy-order-page {
    padding-top: 16px !important;
  }

  .proxy-order-steps {
    background: #ffffff;
    border: 1px solid var(--proxy-border);
    border-radius: 9px;
    justify-content: space-around;
    margin: 0 0 14px;
    padding: 0 10px;
  }

  .proxy-order-builder {
    gap: 12px;
  }

  .proxy-order-builder .proxy-order-form-card {
    padding: 13px;
  }

  .proxy-order-service-body {
    min-height: 100px;
    padding: 11px;
  }

  .proxy-order-config-row {
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .proxy-order-toggle-card {
    min-height: 66px;
    padding: 12px;
  }

  .proxy-order-builder .proxy-order-advanced {
    margin: 0;
    padding-left: 13px;
    padding-right: 13px;
  }

  .proxy-order-summary {
    padding: 16px;
  }

  .proxy-order-summary .btn {
    min-height: 48px;
  }
}

.proxy-order-standalone {
  --proxy-accent: var(--brand);
  --proxy-accent-dark: var(--brand-dark);
  --proxy-border: #e3e8f0;
  --proxy-text: #101a33;
  background: #f5f7fa;
  color: var(--proxy-text);
  min-height: 100dvh;
}

.proxy-order-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e7ebf1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 40px;
  min-height: 64px;
  padding: 0 22px;
}

.proxy-order-brand {
  align-items: center;
  color: #101a33;
  display: inline-flex;
  gap: 9px;
  justify-self: start;
}

.proxy-order-brand span {
  align-items: center;
  background: var(--proxy-accent);
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.proxy-order-brand strong {
  font-size: 18px;
  font-weight: 800;
}

.proxy-order-brand:hover,
.proxy-order-brand:focus {
  color: #101a33;
  text-decoration: none;
}

.proxy-order-header .proxy-order-steps {
  align-self: stretch;
  gap: 26px;
  margin: 0;
}

.proxy-order-header .proxy-order-steps span {
  align-items: center;
  display: inline-flex;
  padding: 0;
}

.proxy-order-close {
  align-items: center;
  border-radius: 7px;
  color: #718097;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  justify-self: end;
  width: 36px;
}

.proxy-order-close:hover,
.proxy-order-close:focus {
  background: #f3f5f8;
  color: var(--proxy-accent);
  text-decoration: none;
}

.proxy-order-standalone .proxy-order-page {
  margin: 0 auto;
  max-width: 1080px;
  padding: 28px 24px 64px;
}

.proxy-order-standalone .proxy-order-layout {
  grid-template-columns: minmax(0, 740px) 300px;
  justify-content: center;
}

.proxy-order-standalone .alert {
  font-size: 12px;
  margin: 0 auto 16px;
  max-width: 1060px;
}

@media (max-width: 991.98px) {
  .proxy-order-standalone .proxy-order-page {
    max-width: 760px;
  }

  .proxy-order-standalone .proxy-order-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .proxy-order-header {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 58px;
    padding: 0 12px;
  }

  .proxy-order-brand {
    gap: 0;
  }

  .proxy-order-brand span {
    height: 30px;
    width: 30px;
  }

  .proxy-order-brand strong {
    display: none;
  }

  .proxy-order-header .proxy-order-steps {
    background: transparent;
    border: 0;
    gap: 12px;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .proxy-order-header .proxy-order-steps span {
    font-size: 9px;
  }

  .proxy-order-header .proxy-order-steps span:nth-child(2) {
    display: none;
  }

  .proxy-order-standalone .proxy-order-page {
    padding: 14px 12px 36px !important;
  }
}

/* Reseller order flow with local T-Mobile package checkout. */
.proxy-order-content-header {
  background: #ffffff;
  border-bottom: 1px solid var(--proxy-border);
  padding: 0;
}

.proxy-order-content-header .container-fluid {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 28px;
}

.proxy-order-content-header h1 {
  color: var(--proxy-text);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.proxy-order-content-header p {
  color: #7c8799;
  font-size: 12px;
  margin: 3px 0 0;
}

.proxy-store-panel .proxy-order-page {
  max-width: 1280px;
  padding: 22px 0 48px;
}

.proxy-order-plan-local .proxy-order-plan-body {
  background: linear-gradient(145deg, #ffffff 0%, #fff8fc 100%);
}

.proxy-order-plan-local input:checked + .proxy-order-plan-body {
  background: linear-gradient(145deg, #ffffff 0%, #fff0f8 100%);
  box-shadow: 0 0 0 1px var(--proxy-accent), 0 12px 28px rgba(226, 0, 116, 0.08);
}

.proxy-order-fixed-value {
  align-items: center;
  background: #fff7fb;
  border: 1px solid #f3cde1;
  border-radius: 8px;
  color: var(--proxy-accent-dark);
  display: flex;
  min-height: 40px;
  padding: 0 14px;
}

.proxy-order-page [data-order-mode][hidden],
.proxy-order-page [data-package-options][hidden],
.proxy-order-summary [hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .proxy-store-panel .proxy-order-page {
    max-width: none;
  }

  .proxy-order-summary {
    order: -1;
  }
}

@media (max-width: 767.98px) {
  .proxy-order-content-header .container-fluid {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .proxy-order-content-header .proxy-order-steps {
    width: 100%;
  }

  .proxy-store-panel .proxy-order-page {
    padding-top: 14px;
  }
}

@media (max-width: 575.98px) {
  .proxy-order-content-header h1 {
    font-size: 20px;
  }

  .proxy-order-services {
    grid-template-columns: 1fr 1fr;
  }

  .proxy-order-service-body {
    min-height: 92px;
  }

  .proxy-order-secure > b {
    display: none;
  }
}

/* Polished service and package selector. */
.proxy-order-availability {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f2d6e5;
  border-left: 4px solid var(--proxy-accent);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.04);
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 16px;
}

.proxy-order-availability > span {
  align-items: center;
  background: #fff0f8;
  border-radius: 10px;
  color: var(--proxy-accent);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.proxy-order-availability > div {
  display: flex;
  flex-direction: column;
}

.proxy-order-availability strong {
  color: var(--proxy-text);
  font-size: 13px;
  font-weight: 800;
}

.proxy-order-availability small {
  color: #738096;
  font-size: 11px;
  margin-top: 2px;
}

.proxy-order-service-body {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  min-height: 82px;
  padding: 12px;
}

.proxy-order-service-icon {
  align-items: center;
  background: #fff1f8;
  border-radius: 11px;
  color: var(--proxy-accent);
  display: inline-flex;
  font-size: 16px;
  height: 42px;
  justify-content: center;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
  width: 42px;
}

.proxy-order-service-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proxy-order-service-copy strong {
  color: #17233a;
  font-size: 12px;
  font-weight: 800;
}

.proxy-order-service-copy small {
  color: #8792a4;
  font-size: 9px;
  margin-top: 4px;
}

.proxy-order-service-copy b {
  color: #17233a;
  font-size: 12px;
  font-weight: 900;
  margin-top: 7px;
}

.proxy-order-service-copy b em {
  color: var(--proxy-accent);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  margin-left: 4px;
  text-transform: uppercase;
}

.proxy-order-service-state {
  align-items: center;
  background: var(--proxy-accent);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 8px;
  height: 20px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease;
  width: 20px;
}

.proxy-order-service input:checked + .proxy-order-service-body {
  background: linear-gradient(145deg, #ffffff 0%, #fff5fa 100%);
  box-shadow: 0 0 0 1px var(--proxy-accent), 0 10px 24px rgba(226, 0, 116, 0.08);
}

.proxy-order-service input:checked + .proxy-order-service-body .proxy-order-service-icon {
  background: var(--proxy-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.proxy-order-service input:checked + .proxy-order-service-body .proxy-order-service-state {
  opacity: 1;
  transform: scale(1);
}

.proxy-order-service.is-unavailable {
  cursor: not-allowed;
}

.proxy-order-service.is-unavailable .proxy-order-service-body {
  background: #fafbfc;
  border-color: #e8ebf0;
  box-shadow: none;
}

.proxy-order-service.is-unavailable .proxy-order-service-icon {
  background: #f0f2f5;
  color: #a8b0be;
}

.proxy-order-service.is-unavailable .proxy-order-service-copy strong {
  color: #737f91;
}

.proxy-order-service.is-unavailable:hover .proxy-order-service-body {
  border-color: #e8ebf0;
  transform: none;
}

.proxy-order-plan-local .proxy-order-plan-body {
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.proxy-order-plan-visual {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 14px;
}

.proxy-order-plan-visual > span {
  align-items: center;
  background: #fff0f8;
  border-radius: 11px;
  color: var(--proxy-accent);
  display: inline-flex;
  font-size: 15px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.proxy-order-plan-visual > strong {
  color: var(--proxy-text);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.proxy-order-plan-visual > strong small {
  align-self: flex-end;
  color: #7b8799;
  font-size: 9px;
  font-weight: 700;
  margin: 0 0 2px 5px;
  text-transform: uppercase;
}

.proxy-order-plan-local input:checked + .proxy-order-plan-body .proxy-order-plan-visual > span {
  background: var(--proxy-accent);
  color: #ffffff;
}

.proxy-order-plan-local .proxy-order-plan-body > small {
  font-size: 10px;
}

.proxy-order-plan-local .proxy-order-plan-body > em {
  align-items: center;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}

.proxy-order-plan-local .proxy-order-plan-body > em i {
  color: var(--proxy-accent);
}

.proxy-order-summary {
  border-top: 3px solid var(--proxy-accent);
  box-shadow: 0 12px 30px rgba(25, 36, 58, 0.06);
}

.proxy-order-summary .btn-primary {
  box-shadow: 0 8px 18px rgba(226, 0, 116, 0.18);
}

@media (max-width: 767.98px) {
  .proxy-order-plan-local .proxy-order-plan-body {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .proxy-order-services {
    grid-template-columns: 1fr;
  }

  .proxy-order-service-body {
    min-height: 76px;
  }

  .proxy-order-availability {
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 12px;
  }

  .proxy-order-availability small {
    line-height: 1.45;
  }
}

.proxy-mobile-checkout,
.proxy-mobile-checkout-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  .proxy-store-panel .content-wrapper {
    padding-bottom: 112px;
  }

  .proxy-order-layout > .proxy-order-summary {
    display: none;
  }

  .proxy-mobile-checkout {
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -16px 42px rgba(20, 29, 48, 0.16);
    display: block;
    left: 50%;
    max-width: 520px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1060;
  }

  .proxy-mobile-checkout[hidden],
  .proxy-mobile-checkout-backdrop[hidden],
  .proxy-mobile-confirm[hidden],
  .proxy-mobile-topup[hidden] {
    display: none !important;
  }

  .proxy-mobile-checkout-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--proxy-text);
    display: flex;
    justify-content: space-between;
    padding: 0 2px 10px;
    text-align: left;
    width: 100%;
  }

  .proxy-mobile-checkout-toggle > span {
    display: flex;
    flex-direction: column;
  }

  .proxy-mobile-checkout-toggle > span:last-child {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .proxy-mobile-checkout-toggle small {
    color: #7c8799;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
  }

  .proxy-mobile-checkout-toggle strong {
    font-size: 14px;
    font-weight: 800;
  }

  .proxy-mobile-checkout-toggle > span:last-child strong {
    color: var(--proxy-accent-dark);
    font-size: 18px;
  }

  .proxy-mobile-checkout-toggle i {
    color: #8b96a8;
    font-size: 12px;
  }

  .proxy-mobile-checkout-continue,
  .proxy-mobile-confirm,
  .proxy-mobile-topup .btn {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    min-height: 46px;
  }

  .proxy-mobile-checkout-details {
    display: none;
  }

  .proxy-mobile-checkout.is-open {
    border-radius: 24px 24px 0 0;
    max-height: 84dvh;
    overflow-y: auto;
    padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .proxy-mobile-checkout.is-open .proxy-mobile-checkout-toggle,
  .proxy-mobile-checkout.is-open .proxy-mobile-checkout-continue {
    display: none;
  }

  .proxy-mobile-checkout.is-open .proxy-mobile-checkout-details {
    display: block;
  }

  .proxy-mobile-checkout-backdrop {
    background: rgba(19, 27, 43, 0.48);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1055;
  }

  .proxy-mobile-sheet-open {
    overflow: hidden;
  }

  .proxy-mobile-checkout-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .proxy-mobile-checkout-head small {
    color: #8893a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .proxy-mobile-checkout-head h3 {
    color: var(--proxy-text);
    font-size: 21px;
    font-weight: 900;
    margin: 3px 0 0;
  }

  .proxy-mobile-checkout-head button {
    align-items: center;
    background: #f7f8fa;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    color: #59677c;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
  }

  .proxy-mobile-checkout-row,
  .proxy-mobile-checkout-total {
    align-items: center;
    border-top: 1px solid #edf0f4;
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
  }

  .proxy-mobile-checkout-row span {
    color: #758197;
    font-size: 12px;
  }

  .proxy-mobile-checkout-row strong {
    color: #263248;
    font-size: 13px;
    text-align: right;
  }

  .proxy-mobile-checkout-total {
    margin-bottom: 4px;
    padding: 15px 0;
  }

  .proxy-mobile-checkout-total span {
    color: var(--proxy-text);
    font-size: 15px;
    font-weight: 800;
  }

  .proxy-mobile-checkout-total strong {
    color: var(--proxy-text);
    font-size: 24px;
    font-weight: 900;
  }

  .proxy-mobile-balance-warning {
    align-items: center;
    background: #fff6fa;
    border: 1px solid #f2d0e2;
    border-radius: 11px;
    display: flex;
    gap: 11px;
    margin: 3px 0 10px;
    padding: 11px 12px;
  }

  .proxy-mobile-balance-warning > i {
    color: var(--proxy-accent);
    font-size: 17px;
  }

  .proxy-mobile-balance-warning > span {
    display: flex;
    flex-direction: column;
  }

  .proxy-mobile-balance-warning strong {
    color: #263248;
    font-size: 12px;
  }

  .proxy-mobile-balance-warning small {
    color: #7c8799;
    font-size: 10px;
    margin-top: 2px;
  }

  .proxy-mobile-help {
    color: var(--proxy-accent);
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding-top: 13px;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .proxy-corner-actions {
    gap: 3px;
  }

  .proxy-corner-icon,
  .proxy-account-trigger {
    height: 38px;
    width: 38px;
  }

  .proxy-corner-deposit {
    height: 38px;
    padding: 0 10px;
  }

  .proxy-language-trigger {
    height: 38px;
    min-width: 72px;
    padding: 0 9px;
  }

  .proxy-language-code {
    font-size: 10px;
  }

  .proxy-language-popover,
  .proxy-account-popover {
    max-width: calc(100vw - 16px);
    position: fixed;
    right: 8px;
    top: 58px;
  }

  .proxy-account-popover {
    min-width: 0;
    width: 300px;
  }

  .proxy-store-sort-form,
  .proxy-store-filter-menu {
    flex: 1;
  }

  .proxy-store-sort-chip,
  .proxy-store-filter-btn {
    justify-content: space-between;
    width: 100%;
  }

  .proxy-store-filter-popover {
    max-width: calc(100vw - 32px);
    padding: 15px;
    position: fixed;
    right: 16px;
    top: 150px;
    width: calc(100vw - 32px);
  }

  .proxy-store-filter-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proxy-cli-card {
    border-radius: 13px;
    padding: 16px;
  }

  .proxy-cli-heading h3 {
    font-size: 19px;
  }

  .proxy-cli-code {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .proxy-cli-code code {
    font-size: 12px;
  }

  .proxy-cli-code button {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 359.98px) {
  .proxy-corner-deposit {
    padding: 0;
    width: 38px;
  }

  .proxy-corner-deposit span {
    display: none;
  }
}

@media (max-width: 575.98px) {
  /* Keep proxy rows useful at phone width without a desktop-sized horizontal table. */
  .proxy-store-table-wrap {
    overflow: hidden;
    padding: 0 10px 12px;
  }

  .proxy-store-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .proxy-store-table thead {
    display: none;
  }

  .proxy-store-table tbody {
    display: block;
    width: 100%;
  }

  .proxy-store-table tbody tr {
    align-items: center;
    border-bottom: 1px solid #e8edf4;
    display: grid;
    gap: 7px;
    grid-template-columns: 26px 24px 64px minmax(0, 1fr) 38px;
    padding: 12px 5px;
    width: 100%;
  }

  .proxy-store-table tbody td {
    border: 0;
    display: none;
    min-width: 0;
    padding: 0;
  }

  .proxy-store-table tbody td:nth-child(2),
  .proxy-store-table tbody td:nth-child(3),
  .proxy-store-table tbody td:nth-child(4),
  .proxy-store-table tbody td:nth-child(5),
  .proxy-store-table tbody td:nth-child(12) {
    display: block;
  }

  .proxy-store-table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .proxy-store-table tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
  }

  .proxy-store-table tbody td:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
  }

  .proxy-store-table tbody td:nth-child(5) {
    grid-column: 4;
    grid-row: 1;
    overflow: hidden;
  }

  .proxy-store-table tbody td:nth-child(5) strong,
  .proxy-store-table tbody td:nth-child(5) small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .proxy-store-table tbody td:nth-child(12) {
    grid-column: 5;
    grid-row: 1;
    text-align: right !important;
  }

  .proxy-store-expiry-cell {
    align-items: flex-end;
  }

  .proxy-store-expiry-tag {
    font-size: 9px;
    padding: 4px 7px;
  }

  .proxy-store-row-actions {
    justify-content: flex-end;
  }

  .proxy-store-row-actions form,
  .proxy-store-row-actions a:not(:first-child) {
    display: none;
  }

  .proxy-store-row-actions .btn {
    color: var(--proxy-accent);
    font-size: 11px;
    padding: 6px 3px;
  }

  .proxy-store-mini-flag img {
    height: 15px;
    width: 23px;
  }

  .proxy-store-id-link strong,
  .proxy-store-serial strong {
    font-size: 12px;
  }

  /* Compact toolbar: search, sort and both utility buttons stay on one row. */
  .proxy-store-tab-actions {
    display: grid;
    flex-basis: 100%;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 92px 38px 38px;
  }

  .proxy-store-quick-search {
    flex-basis: auto;
    min-width: 0;
    order: initial;
  }

  .proxy-store-quick-search label {
    min-height: 38px;
    padding: 0 8px;
  }

  .proxy-store-quick-search button {
    display: none;
  }

  .proxy-store-sort-chip,
  .proxy-store-filter-btn,
  .proxy-store-more-btn {
    min-height: 38px;
  }

  .proxy-store-sort-chip {
    gap: 4px;
    padding: 0 8px;
  }

  .proxy-store-sort-chip select {
    font-size: 11px;
    max-width: 68px;
  }

  .proxy-store-filter-btn {
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 38px;
  }

  .proxy-store-filter-btn span {
    display: none;
  }

  /* Phone order rows keep the essential service, amount and status on one line. */
  .reseller-order-history-card tbody tr {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px 12px;
  }

  .reseller-order-history-card tbody td {
    padding: 4px 6px;
  }

  .reseller-order-history-card tbody td:nth-child(1) {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .reseller-order-history-card tbody td:nth-child(3) {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    padding-left: 8px;
    text-align: right;
    white-space: nowrap;
  }

  .reseller-order-history-card tbody td:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
    padding-left: 8px;
    white-space: nowrap;
  }

  .reseller-order-history-card tbody td:nth-child(2)::before,
  .reseller-order-history-card tbody td:nth-child(4)::before,
  .reseller-order-history-card tbody td:nth-child(5)::before {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 8px -12px -10px;
    padding: 10px 12px;
  }

  .reseller-order-history-card tbody td:nth-child(6)::before {
    display: none;
  }

  .reseller-order-history-card tbody tr.reseller-order-complete td:nth-child(5) small,
  .reseller-order-history-card tbody tr.reseller-order-complete td:nth-child(6) {
    display: none;
  }

  .reseller-order-history-card tbody td:nth-child(2) strong {
    display: block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-order-history-card tbody td:nth-child(2) small {
    font-size: 11px;
  }

  .reseller-order-history-card tbody td:nth-child(4) strong {
    font-size: 12px;
  }

  .reseller-order-inline-actions {
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reseller-order-inline-payment.is-wallet-covered {
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reseller-order-inline-payment.is-wallet-covered:has(input[name="useWallet"][type="checkbox"]:checked) .payment-channel-grid {
    display: none;
  }

  .reseller-order-inline-payment.is-wallet-covered .payment-channel-grid {
    grid-column: 1 / -1;
  }

  .reseller-order-inline-payment.is-wallet-covered .wallet-payment-option {
    margin: 0;
  }

  .reseller-order-inline-payment.is-wallet-covered .wallet-payment-copy small,
  .reseller-order-inline-payment.is-wallet-covered .wallet-payment-copy em {
    display: none;
  }

  .reseller-order-inline-payment.is-wallet-covered .wallet-payment-copy strong {
    color: #14213a;
    font-size: 12px;
    white-space: nowrap;
  }

  .reseller-order-inline-payment.is-wallet-covered > .btn {
    min-width: 54px;
    width: auto;
  }

  .reseller-order-inline-check {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding: 8px 10px;
    width: auto;
  }
}
.myproxy-api-health {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(240px, 1.2fr) auto;
  gap: 20px;
  align-items: center;
}

.myproxy-api-health > div {
  min-width: 0;
}

.myproxy-api-health span:not(.myproxy-health-dot),
.myproxy-api-health small,
.myproxy-detail-grid span {
  display: block;
  color: #7b8aa3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.myproxy-api-health strong {
  display: block;
  color: #14213d;
  font-size: 15px;
}

.myproxy-health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #dc3545;
  box-shadow: 0 0 0 5px rgba(220, 53, 69, .11);
}

.myproxy-health-dot.is-online {
  background: #20b56a;
  box-shadow: 0 0 0 5px rgba(32, 181, 106, .11);
}

.myproxy-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
  background: #f8fafc;
}

.myproxy-detail-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e3e9f1;
  border-bottom: 1px solid #e3e9f1;
}

.myproxy-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #14213d;
  font-size: 14px;
}

.myproxy-admin-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.myproxy-admin-table td:nth-child(2),
.myproxy-admin-table td:nth-child(3),
.myproxy-admin-table td:nth-child(6) {
  min-width: 180px;
  white-space: normal;
}

.myproxy-admin-table .table-actions {
  min-width: 210px;
}

.supplier-account-stats .info-box-number {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-order-center {
  overflow: hidden;
  border-radius: 14px;
}

.supplier-order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
}

.supplier-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, .7fr) minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: stretch;
}

.supplier-filter-form .input-group,
.supplier-filter-form .form-control,
.supplier-filter-form .btn {
  min-width: 0;
  height: 42px;
}

.supplier-expiry-filters {
  display: flex;
  grid-column: 1 / -1;
  gap: 7px;
  flex-wrap: wrap;
}

.supplier-sync-note {
  grid-column: 1 / -1;
  color: #20a35a;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.supplier-sync-note.is-warning {
  color: #a86800;
}

.myproxy-operations-health {
  border-top-width: 3px;
}

.myproxy-operations-health .myproxy-api-health small {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.myproxy-filter-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}

.myproxy-filter-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  color: #59708f;
  font-size: 12px;
  font-weight: 700;
}

.myproxy-filter-shortcuts a.active {
  border-color: #ef007a;
  background: #fff3f8;
  color: #d8006d;
}

.myproxy-notice-detail {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(93, 72, 27, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .46);
  font-size: 13px;
}

.myproxy-notice-detail small {
  display: block;
  margin-top: 3px;
  opacity: .78;
}

.supplier-sync-progress {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border: 1px solid #b9dcff;
  border-radius: 8px;
  background: #edf7ff;
  color: #0878d1;
  font-size: 13px;
  font-weight: 700;
}

.supplier-order-table {
  min-width: 1240px;
  margin: 0;
  color: #14213d;
}

.supplier-order-table th {
  border-top: 0;
  background: #f4f7fb;
  color: #53657d;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-order-table td {
  padding: 14px 12px;
  vertical-align: middle;
  line-height: 1.3;
}

.supplier-order-table td:first-child,
.supplier-order-table td:nth-child(2),
.supplier-order-table td:nth-child(3),
.supplier-order-table td:nth-child(5) {
  min-width: 190px;
}

.supplier-order-table strong,
.supplier-order-table small {
  display: block;
  line-height: 1.35;
}

.supplier-order-table small {
  margin-top: 3px;
  color: #7c8ca3;
  font-size: 11px;
}

.supplier-order-id {
  color: #087ef5;
  overflow-wrap: anywhere;
}

.supplier-countdown {
  width: max-content;
  padding: 4px 8px;
  border-radius: 5px;
  background: #ffc107;
  color: #17233b !important;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.supplier-countdown.is-expired {
  background: #e9edf3;
  color: #66758b !important;
}

.supplier-actions {
  min-width: 108px;
  white-space: nowrap;
}

.supplier-actions form {
  display: inline-block;
  margin-left: 4px;
}

.supplier-order-detail {
  border-radius: 14px;
}

.supplier-order-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.supplier-order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.supplier-order-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .34);
}

.supplier-order-modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border: 0;
  background: linear-gradient(135deg, #087ef5 0%, #12a9b7 100%);
  color: #fff;
}

.supplier-order-modal-header small {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.supplier-order-modal-header h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.supplier-order-modal-header p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
}

.supplier-modal-close {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
  color: #14213d;
}

.supplier-order-modal-body {
  padding: 16px;
}

.supplier-modal-alert {
  margin-bottom: 12px;
  border-radius: 6px;
}

.supplier-order-modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e6edf5;
  background: #f8fafc;
}

.myproxy-detail-wide {
  grid-column: span 2;
}

.supplier-provider-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.supplier-provider-summary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 6px;
  background: #f8fafc;
}

.supplier-provider-summary i {
  color: #087ef5;
  font-size: 18px;
}

.supplier-provider-summary span,
.supplier-provider-list span {
  display: block;
  margin-top: 10px;
  color: #6b7b93;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.supplier-provider-summary strong {
  display: block;
  margin-top: 5px;
  color: #14213d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.supplier-provider-summary small {
  display: block;
  margin-top: 6px;
  color: #6b7b93;
  font-size: 11px;
}

.supplier-provider-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1e8f1;
  border-radius: 6px;
  background: #fff;
}

.supplier-provider-controls strong {
  display: block;
  color: #14213d;
}

.supplier-provider-controls small {
  display: block;
  color: #77879d;
  font-size: 11px;
}

.supplier-provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: 12px;
  margin-top: 12px;
}

.supplier-provider-card {
  border: 1px solid #dfe7f1;
  border-top: 3px solid #087ef5;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.supplier-provider-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf4;
  color: #14213d;
  font-weight: 800;
}

.supplier-provider-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
}

.supplier-provider-list > div:last-child {
  border-bottom: 0;
}

.supplier-provider-list span {
  margin-top: 0;
}

.supplier-provider-list strong {
  color: #14213d;
  text-align: right;
}

.supplier-location-line {
  display: block;
  padding: 10px 14px 14px;
  color: #6b7b93;
  overflow-wrap: anywhere;
}

.supplier-whitelist-card,
.supplier-transactions-card {
  margin-top: 12px;
}

.supplier-whitelist-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) auto;
  gap: 8px;
  padding: 12px;
}

.supplier-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.supplier-copy-text {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17233b;
  font-family: "Courier New", monospace;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.supplier-copy-text.is-copied {
  color: #20a35a;
}

.supplier-password-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #f8fafc;
}

.supplier-password-panel label {
  display: block;
  margin-bottom: 7px;
  color: #53657d;
  font-size: 12px;
  font-weight: 800;
}

.supplier-access-title {
  margin: 20px 0 10px;
  color: #14213d;
  font-size: 16px;
  font-weight: 800;
}

.supplier-credential-list {
  overflow: hidden;
  border: 1px solid #e1e8f1;
  border-radius: 10px;
}

.supplier-credential-row {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1fr) minmax(150px, .7fr) minmax(190px, .8fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf3;
}

.supplier-credential-row:last-child {
  border-bottom: 0;
}

.supplier-credential-row code {
  overflow-wrap: anywhere;
  color: #17233b;
}

.supplier-secret {
  display: flex;
}

.supplier-secret input {
  min-width: 0;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #d9e1eb;
  border-radius: 5px 0 0 5px;
}

.supplier-secret .btn {
  border-radius: 0 5px 5px 0;
}

@media (max-width: 1199.98px) {
  .myproxy-api-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myproxy-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-order-toolbar,
  .supplier-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-filter-form {
    grid-column: 1 / -1;
  }

  .supplier-credential-row {
    grid-template-columns: 35px minmax(170px, 1fr) minmax(140px, .7fr) minmax(180px, .8fr) 38px;
  }
}

@media (max-width: 575.98px) {
  .myproxy-api-health {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .myproxy-api-health .text-right {
    text-align: left !important;
  }

  .myproxy-operations-health .myproxy-api-health small {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .myproxy-operations-health .myproxy-api-health .btn {
    margin-top: 5px;
  }

  .myproxy-filter-shortcuts {
    flex-wrap: wrap;
    margin-top: 0;
  }

  .myproxy-detail-grid {
    grid-template-columns: 1fr;
  }

  .myproxy-detail-grid > div {
    border-right: 0;
  }

  .myproxy-admin-detail .card-footer {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .myproxy-admin-detail .card-footer form,
  .myproxy-admin-detail .card-footer .btn {
    width: 100%;
    margin: 0 !important;
  }

  .supplier-account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: -5px;
    margin-left: -5px;
  }

  .supplier-account-stats > div {
    max-width: none;
    padding-right: 5px;
    padding-left: 5px;
  }

  .supplier-account-stats .info-box {
    min-height: 82px;
  }

  .supplier-account-stats .info-box-icon {
    width: 48px;
    font-size: 18px;
  }

  .supplier-account-stats .info-box-number {
    font-size: 14px;
  }

  .supplier-order-center .card-header {
    display: block;
  }

  .supplier-order-center .card-tools {
    float: none;
    margin-top: 8px;
  }

  .supplier-order-toolbar,
  .supplier-filter-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .supplier-filter-form,
  .supplier-expiry-filters,
  .supplier-sync-note,
  .supplier-sync-progress {
    grid-column: 1;
  }

  .supplier-expiry-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-expiry-filters .btn:first-child {
    grid-column: 1 / -1;
  }

  .supplier-sync-note {
    text-align: left;
  }

  .supplier-order-center .table-responsive {
    overflow: visible;
  }

  .supplier-order-table,
  .supplier-order-table tbody,
  .supplier-order-table tr,
  .supplier-order-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .supplier-order-table thead {
    display: none;
  }

  .supplier-order-table tbody {
    padding: 10px;
    background: #f3f6fa;
  }

  .supplier-order-table tr {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e2e8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 39, 63, .05);
  }

  .supplier-order-table td {
    position: relative;
    min-width: 0 !important;
    padding: 11px 13px 11px 42%;
    border-top: 1px solid #edf1f6;
    white-space: normal;
  }

  .supplier-order-table td::before {
    position: absolute;
    left: 13px;
    width: calc(42% - 22px);
    color: #7a8aa2;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .supplier-order-table td:first-child {
    border-top: 0;
  }

  .supplier-order-table .supplier-empty-row td {
    padding: 30px 15px;
  }

  .supplier-order-table .supplier-empty-row td::before {
    content: none;
  }

  .supplier-actions .btn {
    min-width: 42px;
  }

  .supplier-credential-row {
    grid-template-columns: 30px minmax(0, 1fr) 38px;
  }

  .supplier-order-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .supplier-order-modal-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .supplier-order-modal-header,
  .supplier-order-modal-body {
    padding: 12px;
  }

  .supplier-order-modal-footer {
    flex-wrap: wrap;
    padding: 10px;
  }

  .supplier-order-modal-footer .btn {
    flex: 1 1 120px;
  }

  .supplier-provider-summary,
  .supplier-provider-grid,
  .supplier-provider-controls,
  .supplier-whitelist-form {
    grid-template-columns: 1fr;
  }

  .supplier-modal-actions {
    flex-direction: column;
  }

  .supplier-modal-actions .btn,
  .supplier-modal-actions form,
  .supplier-modal-actions form .btn {
    width: 100%;
  }

  .myproxy-detail-wide {
    grid-column: auto;
  }

  .supplier-credential-row > code:nth-of-type(1),
  .supplier-credential-row > code:nth-of-type(2),
  .supplier-credential-row > .supplier-copy-text:nth-of-type(1),
  .supplier-credential-row > .supplier-copy-text:nth-of-type(2),
  .supplier-secret {
    grid-column: 2;
  }

  .supplier-credential-row > .js-copy-supplier {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Final phone layout for reseller order history. This remains last so legacy rules cannot override it. */
@media (max-width: 575.98px) {
  .reseller-order-history-card > .card-header {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    position: relative !important;
  }

  .reseller-order-history-card > .card-header .card-title {
    float: none !important;
    font-size: 17px !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .reseller-order-history-card > .card-header .card-tools,
  .reseller-order-history-card > .card-header .reseller-all-orders-tools {
    align-items: center !important;
    display: flex !important;
    float: none !important;
    margin: 0 0 0 auto !important;
    position: static !important;
  }

  .reseller-order-history-card tbody tr {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    margin: 7px !important;
    max-width: calc(100% - 14px) !important;
    min-height: 58px;
    padding: 8px 9px !important;
    width: calc(100% - 14px) !important;
  }

  .reseller-order-history-card tbody td {
    align-self: center;
    margin: 0 !important;
    padding: 2px 4px !important;
  }

  .reseller-order-history-card tbody td:nth-child(1),
  .reseller-order-history-card tbody td:nth-child(3) {
    display: none !important;
  }

  .reseller-order-history-card tbody td:nth-child(2) { grid-column: 1 !important; grid-row: 1 !important; }
  .reseller-order-history-card tbody td:nth-child(4) { grid-column: 2 !important; grid-row: 1 !important; }
  .reseller-order-history-card tbody td:nth-child(5) { grid-column: 3 !important; grid-row: 1 !important; }

  .reseller-order-history-card tbody td:nth-child(6) {
    background: transparent !important;
    border: 0 !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    padding-right: 0 !important;
  }

  .reseller-order-history-card tbody td:nth-child(2) small,
  .reseller-order-history-card tbody td:nth-child(5) small,
  .reseller-order-history-card tbody td::before { display: none !important; }

  .reseller-order-history-card tbody td:nth-child(2) strong { font-size: 12px !important; max-width: 108px; }
  .reseller-order-history-card tbody td:nth-child(4) strong { font-size: 11px !important; }
  .reseller-order-history-card tbody td:nth-child(5) .badge { font-size: 9px !important; padding: 4px 5px !important; }

  .reseller-order-inline-actions,
  .reseller-order-inline-payment {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    margin: 0 !important;
    width: auto !important;
  }

  .reseller-order-inline-payment .payment-channel-grid.is-compact { display: none !important; }

  .reseller-order-inline-payment .btn,
  .reseller-order-inline-check {
    align-items: center !important;
    display: inline-flex !important;
    font-size: 0 !important;
    height: 30px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    width: 30px !important;
  }

  .reseller-order-inline-payment .btn i,
  .reseller-order-inline-check i { font-size: 11px !important; margin: 0 !important; }
  .reseller-order-inline-check span { display: none !important; }
}

.reseller-mobile-order-list {
  display: none;
}

@media (max-width: 767.98px) {
  .reseller-order-history-card .reseller-order-history-table {
    display: none;
  }

  .reseller-order-history-card .reseller-mobile-order-list {
    background: #f6f8fc;
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .reseller-mobile-order-item {
    background: #fff;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(20, 33, 61, .04);
    min-width: 0;
    overflow: hidden;
  }

  .reseller-mobile-order-item.is-actionable {
    border-color: #f0c4db;
  }

  .reseller-mobile-order-main {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 11px 12px;
  }

  .reseller-mobile-order-icon {
    align-items: center;
    background: #fff0f7;
    border-radius: 10px;
    color: #e20074;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  .reseller-mobile-order-service {
    min-width: 0;
  }

  .reseller-mobile-order-service strong,
  .reseller-mobile-order-service span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-mobile-order-service strong {
    color: #17233a;
    font-size: 13px;
    line-height: 1.25;
  }

  .reseller-mobile-order-service span {
    color: #7b8799;
    font-size: 11px;
    margin-top: 2px;
  }

  .reseller-mobile-order-amount {
    color: #14213a;
    font-size: 12px;
    white-space: nowrap;
  }

  .reseller-mobile-order-footer {
    align-items: center;
    background: #fbfcfe;
    border-top: 1px solid #edf1f6;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 8px 12px;
  }

  .reseller-mobile-order-footer > span {
    align-items: center;
    display: flex;
    gap: 5px;
    min-width: 0;
  }

  .reseller-mobile-order-footer .badge {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 4px 6px;
  }

  .reseller-mobile-order-footer small {
    color: #7a8799;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reseller-mobile-order-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  .reseller-mobile-order-actions form {
    margin: 0;
  }

  .reseller-mobile-order-pay,
  .reseller-mobile-order-check {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 31px;
    justify-content: center;
    min-width: 31px;
    text-decoration: none;
  }

  .reseller-mobile-order-pay {
    background: #e20074;
    color: #fff;
    gap: 5px;
    padding: 0 10px;
  }

  .reseller-mobile-order-pay:hover {
    background: #bd0061;
  }

  .reseller-mobile-order-check {
    background: #fff;
    border: 1px solid #dce5ef;
    color: #56718f;
    width: 31px;
  }

  .reseller-mobile-order-empty {
    color: #7a8799;
    font-size: 13px;
    padding: 28px 15px;
    text-align: center;
  }
}

.proxy-store-mobile-list,
.proxy-store-mobile-list[hidden],
.proxy-store-mobile-list[data-mobile-list="true"] {
  display: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 767.98px) {
  .proxy-store-desktop-list,
  .proxy-store-panel .proxy-store-desktop-list {
    display: none !important;
  }

  .proxy-store-mobile-list,
  .proxy-store-panel .proxy-store-mobile-list,
  .proxy-store-panel .proxy-store-mobile-list[hidden],
  .proxy-store-panel .proxy-store-mobile-list[data-mobile-list="true"] {
    background: #f6f8fc;
    display: grid !important;
    gap: 10px;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 10px;
    visibility: visible !important;
  }

  .proxy-store-board {
    overflow: hidden;
  }

  .proxy-store-mobile-card {
    background: #fff;
    border: 1px solid #e0e8f2;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(20, 33, 61, .04);
    color: #17233a;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
  }

  .proxy-store-mobile-card.is-expired {
    border-color: #f3c1c8;
  }

  .proxy-store-mobile-card-head {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 31px minmax(0, 1fr) 12px;
    padding: 11px 12px 9px;
  }

  .proxy-store-mobile-flag,
  .proxy-store-mobile-flag .proxy-store-flag,
  .proxy-store-mobile-flag .proxy-store-mini-flag {
    align-items: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
  }

  .proxy-store-mobile-card-title {
    min-width: 0;
  }

  .proxy-store-mobile-card-title small,
  .proxy-store-mobile-card-title strong,
  .proxy-store-mobile-card-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .proxy-store-mobile-card-title small {
    color: #8794a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .proxy-store-mobile-card-title strong {
    color: #14213a;
    font-size: 14px;
    line-height: 1.25;
  }

  .proxy-store-mobile-card-title span {
    color: #77869b;
    font-size: 11px;
    margin-top: 1px;
  }

  .proxy-store-mobile-card-head > i {
    color: #9aa9bc;
    font-size: 11px;
  }

  .proxy-store-mobile-host {
    align-items: center;
    background: #f8faff;
    border-bottom: 1px solid #edf1f6;
    border-top: 1px solid #edf1f6;
    display: grid;
    gap: 7px;
    grid-template-columns: 15px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 8px 12px;
  }

  .proxy-store-mobile-host > i {
    color: #597492;
    font-size: 11px;
  }

  .proxy-store-mobile-host strong {
    color: #31445f;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .proxy-store-mobile-host span {
    color: #75869d;
    font-size: 10px;
    white-space: nowrap;
  }

  .proxy-store-mobile-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 12px 10px;
  }

  .proxy-store-mobile-meta > span {
    align-items: center;
    background: #f3f6fa;
    border-radius: 7px;
    color: #52657e;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    line-height: 1.2;
    max-width: 100%;
    padding: 5px 6px;
  }

  .proxy-store-mobile-meta > span > i {
    color: #8393a8;
    font-size: 9px;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-active {
    background: #eaf8ef;
    color: #188a48;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-active > i {
    color: #22a75a;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-danger,
  .proxy-store-mobile-meta > span.is-expired {
    background: #fff0f1;
    color: #c73547;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-danger > i,
  .proxy-store-mobile-meta > span.is-expired > i {
    color: #dc4051;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-processing {
    background: #eaf5ff;
    color: #2372a5;
  }

  .proxy-store-mobile-meta .proxy-store-mobile-status.is-pending {
    background: #fff7df;
    color: #a36b00;
  }
}

/* Reseller self-service account and security center. */
.reseller-account-page {
  padding-bottom: 34px;
}

.reseller-account-header {
  padding: 20px 0 10px;
}

.reseller-account-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.reseller-account-heading > div > span,
.reseller-account-card .card-header > div > span,
.reseller-account-sessions-card span {
  color: #e20074;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.25;
}

.reseller-account-heading h1 {
  color: #12213b;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 4px 0;
}

.reseller-account-heading p {
  color: #70809a;
  font-size: 13px;
  margin: 0;
}

.reseller-account-card {
  border: 1px solid #e0e8f2;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(30, 52, 83, .05);
  margin-bottom: 14px;
  overflow: hidden;
}

.reseller-account-card .card-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
}

.reseller-account-card .card-header h3,
.reseller-account-sessions-card h3 {
  color: #15233b;
  font-size: 17px;
  font-weight: 800;
  margin: 3px 0 0;
}

.reseller-account-card .card-header small {
  color: #8491a4;
  font-size: 11px;
  text-align: right;
}

.reseller-account-card .card-body {
  background: #fff;
  padding: 16px;
}

.reseller-account-card .form-group {
  margin-bottom: 13px;
}

.reseller-account-card label {
  color: #445673;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.reseller-account-card .form-control {
  border-color: #dce5f0;
  border-radius: 9px;
  box-shadow: none;
  color: #1d2b42;
  font-size: 14px;
  min-height: 40px;
}

.reseller-account-card .form-control:focus {
  border-color: #e20074;
  box-shadow: 0 0 0 3px rgba(226, 0, 116, .1);
}

.reseller-account-subhead {
  background: #f9fbfd !important;
  min-height: 54px !important;
}

.reseller-account-card .card-footer {
  align-items: center;
  background: #f9fbfd;
  border-top: 1px solid #edf1f6;
  color: #718096;
  display: flex;
  font-size: 11px;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}

.reseller-account-card .card-footer > span i {
  color: #e20074;
  margin-right: 4px;
}

.reseller-account-summary-list {
  display: grid;
  gap: 0;
  padding: 4px 20px 12px !important;
}

.reseller-account-summary-list > div {
  border-bottom: 1px solid #edf1f6;
  display: grid;
  gap: 3px;
  padding: 12px 0;
}

.reseller-account-summary-list > div:last-child {
  border-bottom: 0;
}

.reseller-account-summary-list span {
  color: #8492a6;
  font-size: 11px;
  font-weight: 700;
}

.reseller-account-summary-list strong {
  color: #1b2942;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.reseller-account-summary-list small {
  font-size: 10px;
  font-weight: 800;
}

.reseller-account-summary-list .is-verified {
  color: #1c9a51;
}

.reseller-account-summary-list .is-warning {
  color: #ae7700;
}

.reseller-account-security-note,
.reseller-account-code-help {
  background: #f8faff;
  border: 1px solid #e4ebf4;
  border-radius: 10px;
  color: #5d6d85;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 10px 11px;
}

.reseller-account-security-note i {
  color: #e20074;
  margin-right: 5px;
}

.reseller-account-code-form .input-group .btn {
  border-bottom-right-radius: 9px;
  border-top-right-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.reseller-account-code-status {
  align-items: center;
  background: #eefaf3;
  border: 1px solid #ccefd9;
  border-radius: 9px;
  color: #237744;
  display: flex;
  font-size: 11px;
  gap: 7px;
  margin: 13px 0;
  padding: 9px 10px;
}

.reseller-account-code-input {
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: .22em;
  text-align: center;
}

.reseller-account-password-form small {
  color: #8794a7;
  display: block;
  font-size: 10px;
  margin-top: 5px;
}

.reseller-account-sessions-card .card-body {
  align-items: center;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.reseller-account-sessions-card h3 {
  margin-top: 3px;
}

.reseller-account-sessions-card p {
  color: #76859a;
  font-size: 11px;
  margin: 4px 0 0;
}

.reseller-account-sessions-card form {
  flex: 0 0 auto;
  margin: 0;
}

.reseller-account-sessions-card .btn {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .reseller-account-header {
    padding: 14px 0 8px;
  }

  .reseller-account-heading {
    align-items: flex-start;
  }

  .reseller-account-heading h1 {
    font-size: 23px;
  }

  .reseller-account-heading p {
    font-size: 12px;
    line-height: 1.45;
  }

  .reseller-account-card {
    border-radius: 13px;
    margin-bottom: 14px;
  }

  .reseller-account-card .card-header,
  .reseller-account-card .card-body,
  .reseller-account-card .card-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .reseller-account-card .card-header {
    min-height: 58px;
  }

  .reseller-account-card .card-header h3,
  .reseller-account-sessions-card h3 {
    font-size: 15px;
  }

  .reseller-account-card .card-header small {
    display: none;
  }

  .reseller-account-card .card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-account-card .card-footer .btn {
    width: 100%;
  }

  .reseller-account-card .form-group {
    margin-bottom: 12px;
  }

  .reseller-account-card .form-control {
    font-size: 16px;
  }

  .reseller-account-code-form .input-group {
    display: block;
  }

  .reseller-account-code-form .input-group-append {
    display: block;
    margin-top: 8px;
  }

  .reseller-account-code-form .input-group-append .btn {
    border-radius: 9px;
    width: 100%;
  }

  .reseller-account-sessions-card .card-body {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-account-sessions-card .btn {
    width: 100%;
  }
}

.admin-users-pagination {
  align-items: center;
  color: #687991;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  padding: 12px 16px;
}

.admin-users-pagination .btn-group .btn {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .admin-users-list-card .card-header {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .admin-users-list-card .card-tools {
    float: none;
    margin: 0;
  }

  .admin-users-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .admin-users-pagination .btn-group {
    display: flex;
    width: 100%;
  }

  .admin-users-pagination .btn-group .btn {
    flex: 1 1 0;
    padding-left: 6px;
    padding-right: 6px;
  }
}

.reseller-check-all-label-mobile {
  display: none;
}

.reseller-activity-hero {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.reseller-activity-hero__copy h1 {
  color: #1c2742;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}

.reseller-activity-hero__copy p {
  font-size: 16px;
  max-width: 760px;
}

.reseller-activity-kicker {
  color: #e20074;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.reseller-activity-hero__meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.reseller-activity-entries {
  background: linear-gradient(135deg, #ffedf7 0%, #fff 100%);
  border: 1px solid rgba(226, 0, 116, 0.14);
  border-radius: 999px;
  color: #d1006d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

.reseller-activity-hero__meta small {
  color: #6e7f99;
  font-size: 12px;
  font-weight: 700;
}

.reseller-activity-stats {
  margin-bottom: 18px;
}

.reseller-activity-stat-card {
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.reseller-activity-stat-card .card-body {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px 18px 16px;
}

.reseller-activity-stat-card small {
  color: #74839b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.reseller-activity-stat-card strong {
  color: #16233b;
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.reseller-activity-stat-icon {
  align-items: center;
  background: linear-gradient(135deg, #ff1f8f 0%, #d3006d 100%);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(226, 0, 116, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.reseller-activity-stat-icon.is-blue {
  background: linear-gradient(135deg, #2c9cff 0%, #1674dc 100%);
  box-shadow: 0 14px 28px rgba(44, 156, 255, 0.18);
}

.reseller-activity-stat-icon.is-gold {
  background: linear-gradient(135deg, #ffca3a 0%, #f59f00 100%);
  box-shadow: 0 14px 28px rgba(245, 159, 0, 0.18);
  color: #1b273d;
}

.reseller-activity-stat-icon.is-green {
  background: linear-gradient(135deg, #34c759 0%, #1ea44a 100%);
  box-shadow: 0 14px 28px rgba(30, 164, 74, 0.18);
}

.reseller-activity-card {
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.reseller-activity-card > .card-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.reseller-activity-card > .card-header .card-title {
  color: #16233b;
  font-size: 24px;
  font-weight: 800;
}

.reseller-activity-card > .card-header .badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.reseller-activity-table thead th {
  background: #fff;
  border-bottom: 1px solid #e7edf6;
  color: #6f7f98;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.reseller-activity-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reseller-activity-table tbody tr:hover {
  background: #fff8fc;
}

.reseller-activity-table tbody td {
  border-top: 1px solid #edf1f7;
  color: #21314c;
  font-size: 15px;
  padding: 16px 18px;
  vertical-align: top;
}

.reseller-activity-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.reseller-activity-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reseller-activity-main .font-weight-bold {
  color: #16233b;
  font-size: 15px;
  line-height: 1.35;
}

.reseller-activity-main small {
  color: #7f8da3;
  font-size: 12px;
  font-weight: 700;
}

.reseller-activity-target {
  background: #f6f8fc;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  color: #31415d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 8px 10px;
}

.reseller-activity-detail {
  color: #465670;
  line-height: 1.6;
  max-width: 560px;
}

.reseller-activity-amount,
.reseller-activity-balance {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.reseller-activity-amount.is-positive {
  color: #189c44;
}

.reseller-activity-amount.is-negative {
  color: #d63939;
}

.reseller-activity-amount.is-neutral,
.reseller-activity-balance {
  color: #16233b;
}

.reseller-activity-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.reseller-activity-time strong {
  color: #16233b;
  font-size: 14px;
  font-weight: 800;
}

.reseller-activity-time small {
  color: #74839b;
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .proxy-store-desktop-list,
  .proxy-store-panel .proxy-store-desktop-list,
  .reseller-order-history-card .reseller-order-history-table {
    display: block !important;
  }

  .proxy-store-mobile-list,
  .proxy-store-mobile-list[hidden],
  .proxy-store-mobile-list[data-mobile-list="true"],
  .proxy-store-panel .proxy-store-mobile-list,
  .proxy-store-panel .proxy-store-mobile-list[hidden],
  .proxy-store-panel .proxy-store-mobile-list[data-mobile-list="true"],
  .reseller-mobile-order-list {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }
}

@media (max-width: 575.98px) {
  .reseller-order-history-card > .card-header {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 12px 14px !important;
  }

  .reseller-order-history-card > .card-header .card-title {
    align-items: center !important;
    display: inline-flex !important;
    flex: 1 1 auto !important;
    font-size: 16px !important;
    gap: 7px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .reseller-order-history-card > .card-header .card-title i {
    flex: 0 0 auto !important;
  }

  .reseller-order-history-card > .card-header .card-tools,
  .reseller-order-history-card > .card-header .reseller-all-orders-tools {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    margin: 0 0 0 auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .reseller-all-orders-tools .text-muted,
  .reseller-check-all-label-desktop {
    display: none !important;
  }

  .reseller-check-all-label-mobile {
    display: inline !important;
  }

  .reseller-all-orders-tools form {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  .reseller-check-all-button {
    align-items: center !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    gap: 5px !important;
    height: 34px !important;
    justify-content: center !important;
    min-width: 0 !important;
    max-width: 42px !important;
    padding: 0 8px !important;
    white-space: nowrap !important;
    width: 42px !important;
  }

  .reseller-check-all-button i {
    margin: 0 !important;
  }

  .proxy-store-tab-actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .proxy-store-quick-search {
    min-width: 0 !important;
  }

  .proxy-store-quick-search label {
    min-width: 0 !important;
  }

  .proxy-store-mobile-card-head,
  .proxy-store-mobile-host {
    min-width: 0 !important;
  }

  .proxy-store-mobile-card-title,
  .proxy-store-mobile-card-title strong,
  .proxy-store-mobile-card-title span,
  .proxy-store-mobile-host strong {
    min-width: 0 !important;
  }

  .reseller-activity-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .reseller-activity-hero__copy h1 {
    font-size: 34px;
  }

  .reseller-activity-hero__meta {
    align-items: flex-start;
    text-align: left;
  }

  .reseller-activity-card > .card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .reseller-activity-card > .card-header .card-tools {
    float: none;
    margin: 0;
  }

  .reseller-activity-stat-card .card-body {
    padding: 16px;
  }

  .reseller-activity-stat-card strong {
    font-size: 24px;
  }

  .reseller-activity-table thead {
    display: none;
  }

  .reseller-activity-table,
  .reseller-activity-table tbody,
  .reseller-activity-table tr,
  .reseller-activity-table td {
    display: block;
    width: 100%;
  }

  .reseller-activity-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #edf1f7;
    padding: 12px 14px;
  }

  .reseller-activity-table tbody td {
    align-items: flex-start;
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
  }

  .reseller-activity-target,
  .reseller-activity-detail {
    max-width: 100%;
  }

  .reseller-activity-time {
    white-space: normal;
  }
}
