/* ─── Brand link ─────────────────────────────────────────── */
.brand-link { text-decoration: none; color: inherit; }

.hidden { display: none !important; }

/* ─── Chrome bar ─────────────────────────────────────────── */
.ac-chrome {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 80px;
  z-index: 90;
}

.ac-chrome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.6rem;
  flex-wrap: wrap;
}

.ac-title-block {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.ac-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ac-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.ac-session-bar {}

.ac-session-text {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Tabs ───────────────────────────────────────────────── */
.ac-tabs-wrap {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.ac-tabs {
  display: flex;
}

.ac-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.ac-tab:hover { color: var(--fg); }
.ac-tab.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ─── Main ───────────────────────────────────────────────── */
.ac-main {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.ac-panel { display: none; }
.ac-panel.active { display: block; }

/* ─── Stat grid ──────────────────────────────────────────── */
.ac-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-box {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  transition: border-color 0.15s;
}

.summary-box:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
}

.summary-box .value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.summary-box .label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ─── Spacing ────────────────────────────────────────────── */
.mt-lg { margin-top: 1.25rem; }

/* ─── 2-col grid ─────────────────────────────────────────── */
.ac-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.25rem;
}

/* ─── Card ───────────────────────────────────────────────── */
.ac-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.ac-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.2rem 0 1.25rem;
  letter-spacing: -0.02em;
}

/* ─── Quota bar ──────────────────────────────────────────── */
.quota-bar-wrap {
  margin-bottom: 1.5rem;
}

.quota-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quota-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.5), var(--accent));
  transition: width 0.5s ease;
}

.quota-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Billing meta list ──────────────────────────────────── */
.billing-meta-list {
  display: grid;
  gap: 0;
}

.bml-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

.bml-row:last-child { border-bottom: none; }

.bml-row span { color: var(--muted); }

.bml-row strong {
  font-size: 0.875rem;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Settings grid ──────────────────────────────────────── */
.ac-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

/* ─── Auth form ──────────────────────────────────────────── */
.account-form {
  display: grid;
  gap: 0.6rem;
}

.account-form label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.account-form input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.account-form input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-message {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* ─── Info card ──────────────────────────────────────────── */
.ac-info-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.ac-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.ac-info-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(var(--accent-rgb),0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.05rem;
}

.ac-session-detail {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ac-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ac-chrome-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .ac-settings-grid {
    grid-template-columns: 1fr;
  }
}
