/* 模块说明：中英文个人中心的共用布局；依赖各语言站的基础和世界观样式。 */

#profile-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
#profile-back:hover {
  color: var(--text);
  border-color: var(--accent2);
}

#profile-tabs-row {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
}
#profile-tabs-row::-webkit-scrollbar {
  height: 0;
}

#profile-main {
  max-width: 710px;
  margin: 0 auto;
  padding: 28px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

#profile-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: block;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
  border: 2px solid var(--bg);
  color: #fff;
}
.profile-avatar-edit:hover {
  background: var(--accent2);
}

.profile-display-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.profile-display-email {
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.profile-section-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-section-head .profile-section-title {
  margin-bottom: 0;
}

.profile-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 28px 7px 12px;
  max-width: 180px;
  outline: none;
}

.profile-combobox {
  position: relative;
  flex: 0 0 auto;
}

.profile-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-combobox-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 132px;
  cursor: pointer;
  text-align: left;
}

.profile-combobox-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.profile-combobox.open .profile-combobox-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.profile-combobox-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 80;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}

.profile-combobox.open .profile-combobox-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-combobox-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.profile-combobox-option:hover,
.profile-combobox-option[aria-selected="true"] {
  background: rgba(77, 184, 176, 0.1);
  color: var(--accent2);
}

[hidden] {
  display: none !important;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  min-height: 40px;
}
.profile-row:last-of-type {
  border-bottom: none;
}

.profile-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 84px;
  flex-shrink: 0;
}

.profile-value {
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-muted {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.profile-link-btn {
  background: none;
  border: none;
  color: var(--accent2);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition:
    color 0.15s,
    opacity 0.15s;
  flex-shrink: 0;
}
.profile-link-btn:hover:not(:disabled) {
  color: var(--accent);
}
.profile-link-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.profile-input:focus {
  border-color: var(--accent);
}

.profile-action-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-action-btn:hover {
  background: var(--accent2);
}
.profile-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.profile-email-sent-notice {
  background: rgba(77, 184, 176, 0.08);
  border: 1px solid rgba(77, 184, 176, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--accent2);
  margin-top: 4px;
}

.profile-danger-section {
  border-color: rgba(192, 57, 43, 0.3);
}

.profile-danger-btn {
  margin-top: 14px;
  background: transparent;
  border: 1px solid #c0392b;
  border-radius: 8px;
  color: #e74c3c;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 16px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  align-self: flex-start;
}
.profile-danger-btn:hover {
  background: rgba(231, 76, 60, 0.12);
}
.profile-danger-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.profile-hint,
.profile-copy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

#profile-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.88rem;
  color: var(--text);
  font-family: var(--font-body);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 999;
  white-space: nowrap;
}
#profile-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#profile-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.pq-pool {
  margin-bottom: 18px;
}

.pq-pool-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pq-pool-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
  image-rendering: -webkit-optimize-contrast;
}

.pq-bar-wrap {
  height: 6px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.pq-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.pq-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-body);
  gap: 12px;
}

.pq-note,
.pq-invite-count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.pq-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pq-invite-row:last-of-type {
  border-bottom: none;
}

.pq-invite-val {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text);
  font-family: var(--font-body);
  word-break: break-all;
  min-width: 0;
}

.pq-invite-code {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent2);
}

.pq-pricing-group {
  margin-bottom: 0;
}

.profile-pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.profile-pricing-grid .pq-pricing-group {
  flex: 1 1 0;
  min-width: 0;
}

.pq-pricing-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pq-pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pq-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  background: var(--surface2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
}

.pq-pricing-row > span:first-child {
  flex: 0 0 auto;
}

.pq-pricing-row > span:last-child {
  min-width: 0;
  text-align: right;
  line-height: 1.35;
}

.pq-pricing-row.is-clickable {
  cursor: pointer;
  border: 1px solid rgba(167, 139, 250, 0.28);
  transition:
    border-color 0.18s,
    transform 0.18s,
    background 0.18s;
}

.pq-pricing-row.is-clickable:hover,
.pq-pricing-row.is-clickable:focus-visible {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.pq-pricing-row.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

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

.profile-pricing-lead {
  margin: 10px 0 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.6;
}

.profile-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s,
    transform 0.18s,
    background 0.18s;
}

.profile-product-card::after {
  content: "点击购买";
  align-self: flex-end;
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-product-card:hover,
.profile-product-card:focus-visible {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.profile-product-card.is-best {
  border-color: rgba(196, 156, 255, 0.65);
}

.profile-product-card.is-points {
  border-color: rgba(167, 139, 250, 0.22);
}

.profile-product-card.is-monthly {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), var(--surface2));
  border-color: rgba(45, 212, 191, 0.42);
}

.profile-product-card.is-serial {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.13), var(--surface2));
  border-color: rgba(250, 204, 21, 0.38);
}

.profile-product-card.is-monthly:hover,
.profile-product-card.is-monthly:focus-visible {
  border-color: rgba(45, 212, 191, 0.72);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(167, 139, 250, 0.06));
}

.profile-product-card.is-serial:hover,
.profile-product-card.is-serial:focus-visible {
  border-color: rgba(250, 204, 21, 0.68);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(167, 139, 250, 0.06));
}

.profile-product-main,
.profile-monthly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-product-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  flex-wrap: wrap;
}

.profile-product-badge {
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  color: var(--accent2);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
}

.profile-product-card.is-monthly .profile-product-badge {
  border-color: rgba(45, 212, 191, 0.5);
  color: #5eead4;
}

.profile-product-card.is-serial .profile-product-badge {
  border-color: rgba(250, 204, 21, 0.5);
  color: #facc15;
}

.profile-product-price {
  color: var(--accent2);
  font-weight: 700;
  white-space: nowrap;
}

.profile-product-desc,
.profile-monthly-expire {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.profile-monthly-cards {
  margin-top: 18px;
}

.profile-monthly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-monthly-card {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px;
}

.profile-monthly-card.is-active {
  border-color: rgba(77, 184, 176, 0.75);
  box-shadow: 0 10px 24px rgba(77, 184, 176, 0.12);
}

.profile-monthly-head {
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-monthly-head b {
  color: var(--accent2);
  font-size: 0.72rem;
}

.profile-monthly-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.profile-monthly-credits img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.pq-pricing-best {
  border: 1px solid var(--accent);
}

.pq-best-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: 1px;
}

.profile-usage-analytics {
  gap: 12px;
}

.profile-analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-chart-card {
  min-width: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.profile-chart-card[hidden] {
  display: none;
}

.profile-chart-card--combo {
  padding: 14px 16px 16px;
}

.profile-chart-title {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 10px;
}

.profile-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-chart-legend b {
  font-weight: 400;
}

.profile-chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-pro {
  background: #80b8ff;
}

.legend-prowv {
  background: #4fc0b8;
}

.legend-trend {
  background: #f1b846;
}

.usage-combo-chart {
  position: relative;
  min-height: 330px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
}

.usage-combo-chart.is-empty {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.usage-combo-chart svg {
  display: block;
  width: 100%;
  height: 330px;
}

.profile-model-usage-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 12px;
  padding: 12px;
}

.profile-table-scroll {
  overflow-x: auto;
}

.profile-model-usage-table {
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.78rem;
  min-width: 560px;
  width: 100%;
}

.profile-model-usage-table th,
.profile-model-usage-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}

.profile-model-usage-table th {
  color: var(--muted);
  font-weight: 600;
}

.profile-model-usage-table td:not(:first-child),
.profile-model-usage-table th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.profile-model-usage-table tbody tr:last-child td {
  border-bottom: none;
}

.usage-grid-line {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.usage-axis-label {
  fill: rgba(235, 231, 221, 0.52);
  font-size: 13px;
  font-family: var(--font-body);
}

.usage-x-label {
  fill: rgba(235, 231, 221, 0.42);
}

.usage-bar-rect {
  fill: url(#usageBarGradient);
  opacity: 0.88;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease;
}

.usage-bar-rect.is-peak {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(79, 192, 184, 0.28));
}

.usage-trend-area {
  fill: url(#usageLineGradient);
}

.usage-trend-line {
  fill: none;
  stroke: #f1b846;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(241, 184, 70, 0.28));
}

.usage-trend-dot,
.usage-hover-dot {
  fill: var(--surface2);
  stroke: #f1b846;
  stroke-width: 3;
}

.usage-hover-line,
.usage-hover-dot {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.usage-hover-line {
  stroke: rgba(241, 184, 70, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.usage-combo-chart svg.is-hovering .usage-hover-line,
.usage-combo-chart svg.is-hovering .usage-hover-dot {
  opacity: 1;
}

.usage-hover-zone {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
  touch-action: manipulation;
}

.usage-combo-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  min-width: 174px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 184, 70, 0.32);
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  color: rgba(245, 242, 232, 0.9);
  font-size: 0.76rem;
  line-height: 1.7;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.usage-combo-tooltip[hidden] {
  display: none;
}

.usage-tooltip-date {
  color: #f1b846;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-billing-head {
  align-items: flex-start;
}

.profile-billing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-export-btn {
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 7px 12px;
  border-radius: 999px;
}

.profile-plan-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}

.profile-plan-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  padding: 14px;
  min-height: 148px;
}

.profile-plan-card--best {
  border-color: rgba(196, 156, 255, 0.55);
  box-shadow: 0 14px 34px rgba(132, 90, 220, 0.16);
}

.profile-plan-name {
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-plan-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(128, 184, 255, 0.12);
  color: #acd2ff;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.profile-plan-card--best .profile-plan-tag {
  background: rgba(196, 156, 255, 0.16);
  color: #dcc4ff;
}

.profile-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.billing-support-box {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#billing-support-overlay {
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#billing-support-overlay.open {
  display: flex;
}

.billing-support-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

#profile-billing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#profile-payment-orders {
  margin-bottom: 14px;
}

.profile-billing-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.profile-billing-subtitle--ledger {
  margin-top: 16px;
}

.profile-payment-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-payment-order {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 1fr) auto auto minmax(100px, auto);
  padding: 10px 12px;
}

.profile-payment-order strong {
  color: #f2d28c;
  font-size: 0.9rem;
}

.profile-payment-order em,
.profile-payment-order small {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.profile-billing-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(110px, auto) 20px minmax(72px, auto) auto auto;
  align-items: center;
  gap: 10px;
}

.profile-billing-time,
.profile-billing-source,
.profile-billing-balance {
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.profile-billing-time,
.profile-billing-source,
.profile-billing-balance {
  color: var(--muted);
}

.profile-billing-pool-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
  image-rendering: -webkit-optimize-contrast;
}

.profile-billing-delta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  justify-self: end;
}

.profile-billing-delta.positive {
  color: #5ad38a;
}

.profile-billing-delta.negative {
  color: #ff8686;
}

.profile-billing-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 680px) {
  #profile-main {
    padding: 22px 14px 80px;
  }

.profile-row,
.pq-invite-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-section-head,
  .profile-billing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-select,
  .profile-combobox,
  .profile-export-btn {
    width: 100%;
    max-width: none;
  }

  .profile-combobox-trigger {
    max-width: none;
  }

  .profile-label {
    min-width: 100%;
  }

  .profile-link-btn,
  .profile-action-btn,
  .profile-danger-btn {
    min-height: 34px;
  }

  .pq-stats,
  .profile-billing-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-billing-item {
    display: flex;
    gap: 8px;
  }

  .profile-payment-order {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-pricing-grid,
  .profile-plan-compare,
  .profile-analytics-grid,
  .profile-product-grid,
  .profile-monthly-grid {
    grid-template-columns: 1fr;
  }

  .usage-combo-chart {
    min-height: 260px;
  }

  .usage-combo-chart svg {
    height: 260px;
  }

  .profile-billing-delta {
    justify-self: start;
  }
}

.profile-redemption-row {
  align-items: center;
}

.redemption-code-result {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0 0;
  padding: 9px 11px;
}

.redemption-code-result.is-success {
  background: rgba(77, 184, 176, 0.1);
  border-color: rgba(77, 184, 176, 0.38);
  color: var(--accent2);
}

.redemption-code-result.is-error {
  background: rgba(225, 101, 101, 0.08);
  border-color: rgba(225, 101, 101, 0.34);
  color: #ffaaa6;
}
