/* Quota-exhausted modal */

.quota-modal-box {
  max-width: 400px;
  width: 100%;
  padding: 28px 24px 24px;
}

.quota-info-block {
  margin: 4px 0 20px;
}

.quota-pool-label {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.quota-bar-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
}

.quota-requested {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  margin-top: 4px;
  opacity: 0.8;
}

.quota-option {
  margin-bottom: 10px;
}

.quota-opt-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quota-opt-btn:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--accent2);
}

.quota-opt-disabled {
  opacity: 0.55;
  cursor: default !important;
}

.quota-opt-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  margin-top: 5px;
  padding: 0 4px;
}

.quota-opt-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
}

.quota-pricing-title {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.quota-pricing-group {
  margin-bottom: 12px;
}

.quota-pricing-group:last-of-type {
  margin-bottom: 0;
}

.quota-pricing-label {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.quota-pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quota-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--surface2);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
}

.quota-pricing-row.is-clickable {
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.quota-pricing-row.is-clickable:hover,
.quota-pricing-row.is-clickable:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.quota-buy-contact {
  margin-top: 10px;
  font-size: 0.82rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--accent2);
}

.quota-buy-note {
  margin-top: 4px;
  font-size: 0.75rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--muted);
}

.quota-invite-rule {
  font-size: 0.82rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.quota-invite-count {
  font-size: 0.78rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--accent2);
  margin-bottom: 10px;
}

.quota-invite-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.quota-invite-label {
  font-size: 0.75rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--muted);
}

.quota-invite-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-invite-val {
  flex: 1;
  font-size: 0.82rem;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  word-break: break-all;
  min-width: 0;
}

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

.quota-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent2);
  font-size: 0.75rem;
  font-family: "Noto Sans SC", sans-serif;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.quota-copy-btn:hover {
  border-color: var(--accent2);
  color: var(--accent);
}
