
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --promo: #f4f7fc;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --border: #eef0f4;
  --border-strong: #e5e8ee;
  --brand: #2f7bff;
  --brand-ink: #0b1a36;
  --blue-50: #eaf2ff;
  --blue-100: #dbe9ff;
  --blue-600: #2f7bff;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 60px rgba(15, 23, 42, 0.06);
  --shadow-btn: 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  margin: 0 auto;
  padding: 36px 24px 40px;
}

/* Header */
.header {
  padding: 6px 4px 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 44px;
  height: 44px;
  display: block;
}
.brand__name {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}
.brand__name--accent { color: var(--brand); }

/* Card */
.cb-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 600px;
}

.panel { position: relative; }
.panel__inner {
  padding: 56px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel--login { background: #fff; }
.panel--promo {
  background: var(--promo);
  overflow: hidden;
}

/* Login */
.login__head { margin-top: 40px; }
.login__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
}
@keyframes wave {
  0%,60%,100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.login__sub {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 14px;
}

.providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.provider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand-ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-btn);
}
.provider:hover {
  border-color: #cfd6e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.provider:active { transform: translateY(0); }
.provider__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.provider__icon img { width: 100%; height: 100%; display: block; }
.provider__label {
  flex: 1;
  text-align: center;
  transform: translateX(-11px); /* compensate for icon so text appears centered */
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
}
.divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.divider__text {
  color: var(--text-soft);
  font-size: 14px;
}

/* Legal */
.legal {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.55;
}
.legal__icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  opacity: 0.7;
}
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--accent);
}

/* Promo panel */
.promo__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.promo__blob {
  position: absolute;
  right: -60px; bottom: -40px;
}
.promo__dots {
  position: absolute;
  left: 56px;
  bottom: 130px;
  width: 70px;
  height: 90px;
  background-image: radial-gradient(#b8cdf0 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.7;
}

.promo__inner {
  position: relative;
  z-index: 1;
}
.promo__head { margin-top: 40px; }
.promo__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  margin: 0 0 14px;
  line-height: 1.2;
}
.promo__sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 34px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.feature__icon img { width: 22px; height: 22px; display: block; }
.feature__title {
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-ink);
}
.feature__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Mascot */
.mascot {
  margin-top: auto;
  position: relative;
  align-self: flex-end;
  width: 320px;
  height: 320px;
}
.mascot__img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(47, 123, 255, 0.18));
  animation: float 5s ease-in-out infinite;
}
.mascot__bubble {
  position: absolute;
  right: 40px;
  top: 10px;
  width: 80px;
  height: 80px;
  animation: float 5s ease-in-out infinite 0.3s;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0 12px;
  color: var(--text-muted);
}
.footer__copy {
  margin: 0 0 14px;
  font-size: 13px;
}
.footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
}
.footer__nav a {
  color: var(--text-muted);
}
.footer__nav a:hover { color: var(--text); text-decoration: none; }
.footer__sep { color: #cbd5e1; }

/* Responsive */
@media (max-width: 860px) {
  .cb-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .panel__inner { padding: 40px 28px; }
  .mascot { align-self: center; margin: 20px auto 0; }
  .promo__dots { left: 18px; bottom: 180px; }
}
@media (max-width: 480px) {
  .page { padding: 20px 14px 28px; }
  .brand__name { font-size: 24px; }
  .brand__mark { width: 38px; height: 38px; }
  .login__title, .promo__title { font-size: 24px; }
  .panel__inner { padding: 32px 22px; }
  .provider { height: 48px; font-size: 14px; }
}

/* Settings */
.page--settings {
  max-width: 1220px;
}

.header--settings {
  padding-bottom: 12px;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings__hero {
  padding: 4px 4px 8px;
}

.settings__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--brand-ink);
}

.settings__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.settings-card {
  background:
    radial-gradient(circle at top right, rgba(47, 123, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  border: 1px solid rgba(229, 232, 238, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.settings-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.settings-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.settings-card__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.summary-profile,
.summary-balance {
  min-width: 0;
}

.summary-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.summary-profile__avatar {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f6ff 0%, #dbeafe 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.summary-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-profile__name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-ink);
}

.summary-profile__meta,
.summary-balance__label,
.summary-balance__note,
.settings-note {
  margin: 0;
  color: var(--text-muted);
}

.summary-profile__meta {
  font-size: 14px;
}

.summary-balance {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-balance__label {
  font-size: 14px;
  font-weight: 500;
}

.summary-balance__value {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--brand-ink);
}

.summary-balance__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.summary-actions {
  justify-self: end;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.status-dot--success {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.status-dot--warning {
  background: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
  margin-left: 6px;
  cursor: help;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cb-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cb-btn:disabled,
.cb-btn.is-disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
}

.cb-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #3590ff 0%, #2f7bff 100%);
  box-shadow: 0 16px 30px rgba(47, 123, 255, 0.22);
}

.cb-btn--primary:hover {
  color: #fff;
  box-shadow: 0 20px 34px rgba(47, 123, 255, 0.26);
}

.cb-btn--ghost {
  color: var(--brand);
  background: #fff;
  border-color: rgba(47, 123, 255, 0.55);
  box-shadow: var(--shadow-btn);
}

.cb-btn--ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.cb-btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}

.cb-btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-icon--sm {
  width: 18px;
  height: 18px;
}

.cb-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.indexing {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.indexing__progress {
  display: flex;
  align-items: center;
  gap: 16px;
}

.indexing__track {
  position: relative;
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}

.indexing__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7bff 0%, #1376ff 100%);
}

.indexing__percent {
  min-width: 52px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
}

.stat-tile__icon,
.setting-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: var(--blue-50);
  flex: 0 0 auto;
}

.stat-tile__icon svg,
.setting-row__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.stat-tile__label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.stat-tile__value {
  margin: 0;
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
}

.settings-note {
  font-size: 14px;
}

.settings-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.settings-alert--error {
  color: #b42318;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-stack {
  display: flex;
  flex-direction: column;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.setting-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.setting-row:last-child {
  padding-bottom: 0;
}

.setting-row__intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.setting-row__icon--avatar {
  padding: 0;
  overflow: hidden;
}

.setting-row__icon--avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.setting-row__icon--swatch {
  background: var(--swatch-color, var(--brand));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.setting-row__title {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-ink);
}

.setting-row__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.setting-row__content {
  min-width: 0;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-choice {
  position: relative;
}

.color-choice.color-choice--picker {
  width: 150px;
}

.color-choice--picker .wp-picker-container .wp-color-result.button {
  font-size: 15px;
  margin:0;
  padding: 0 0 0 36px;
  border-radius: 12px;
}

.color-choice--picker .wp-picker-container .wp-color-result.button .wp-color-result-text {
  border-radius: 0px 12px 12px 0px;
}

.color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.color-choice:hover {
  transform: translateY(-1px);
}

.color-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.color-choice.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.color-choice__swatch {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: block;
  background: var(--color-choice);
}

.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.avatar-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  padding: 2px;
}

.avatar-choice:hover {
  transform: translateY(-1px);
}

.avatar-choice.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.avatar-choice img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field--textarea {
  position: relative;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--brand-ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.field__input:focus {
  outline: none;
  border-color: rgba(47, 123, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.12);
}

.field__input--textarea {
  min-height: 140px;
  resize: vertical;
  padding-bottom: 32px;
}

.field__hint,
.field__counter {
  color: var(--text-muted);
  font-size: 13px;
}

.field__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  pointer-events: none;
}

.settings-form__footer {
  display: flex;
  justify-content: flex-end;
}

.page--usage {
  max-width: 1320px;
}

.summary-grid--usage {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr) auto;
  align-items: stretch;
}

.usage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 6px 28px;
  border-left: 1px solid var(--border);
}

.usage-metric:first-child {
  border-left: 0;
}

.summary-balance__value--sm {
  font-size: 34px;
  line-height: 1.08;
}

.summary-balance__note--positive {
  color: #12b76a;
}

.settings-card__header--stack {
  align-items: stretch;
}

.usage-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.usage-toolbar__refresh {
  margin-left: auto;
}

.usage-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  min-width: 150px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}

.usage-select--wide {
  min-width: 230px;
}

.usage-select--compact {
  min-width: 120px;
  min-height: 42px;
}

.usage-table-wrap {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
}

.usage-table th,
.usage-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.usage-table th {
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.75);
}

.usage-table td {
  color: #223255;
  font-size: 15px;
}

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

.usage-table__time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usage-table__time span:first-child {
  font-weight: 500;
  color: #35507c;
}

.usage-table__time span:last-child {
  color: var(--text-muted);
}

.usage-app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--brand-ink);
}

.usage-app__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.usage-app__icon svg {
  width: 15px;
  height: 15px;
}

.usage-app__icon--support {
  background: linear-gradient(180deg, #7c5cff 0%, #5b38f6 100%);
}

.usage-app__icon--sales {
  background: linear-gradient(180deg, #22c7aa 0%, #12b8a0 100%);
}

.usage-app__icon--knowledge {
  background: linear-gradient(180deg, #ffb11f 0%, #ff9800 100%);
}

.usage-app__icon--marketing {
  background: linear-gradient(180deg, #ff5a93 0%, #ff3f78 100%);
}

.usage-table__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.usage-table__results {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.usage-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 10px;
}

.usage-pagination__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}

.usage-pagination__btn svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.usage-pagination__btn.is-active {
  color: var(--brand);
  border-color: rgba(47, 123, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.12);
}

.usage-pagination__dots {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 4px;
}

.usage-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.usage-support__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.usage-support__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: var(--blue-50);
  flex: 0 0 auto;
}

.usage-support__icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .summary-grid,
  .setting-row {
    grid-template-columns: 1fr;
  }

  .summary-grid--usage,
  .usage-metrics {
    grid-template-columns: 1fr;
  }

  .usage-metric {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .usage-metric:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .summary-profile {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .summary-actions {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .settings__title {
    font-size: 24px;
  }

  .settings-card {
    padding: 22px;
    border-radius: 24px;
  }

  .settings-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .indexing__progress {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .usage-toolbar__refresh {
    margin-left: 0;
  }

  .usage-table-wrap {
    overflow-x: auto;
  }

  .usage-table {
    min-width: 860px;
  }

  .usage-table__footer,
  .usage-support {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .page--settings {
    padding-top: 24px;
  }

  .settings__title {
    font-size: 24px;
  }

  .summary-profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-balance__value {
    font-size: 32px;
  }

  .cb-btn {
    width: 100%;
  }

  .usage-select {
    width: 100%;
  }
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-card--featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}

.product-card--featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__tokens {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 8px;
}

.product-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-card__price-wrap {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__discount {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: line-through;
}

.product-card__price {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-ink);
}

.product-card__price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card__button {
  width: 100%;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
