/* ============================================================
 * APEX SALES OS · PROFILE / SETTINGS
 * Owner: Worker W23 (r6-020-profile-css)
 *
 * Layout: 240px nav + 1fr pane, both surface cards.
 * Tabs: Profile · Notifications · Security · Payouts · Theme.
 * Tokens only (Stripe-precedent). Light + dark via data-theme.
 * Purple rgba is the documented focus-ring exception.
 * ============================================================ */

/* ---- grid: nav + pane ---- */
.page-profile-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

/* ---- left nav ---- */
.page-profile-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
}

.page-profile-nav-item:hover {
  background: var(--hover);
  color: var(--text);
}

.page-profile-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.page-profile-nav-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
}

/* ---- right pane (white card on light, surface on dark) ---- */
.page-profile-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.page-profile-pane h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-profile-pane .sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* ---- foot: right-aligned action row with top border ---- */
.page-profile-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---- 72px gradient avatar (initials inside) ---- */
.page-profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* ---- theme tab: 3-col card grid with swatch previews ---- */
.page-profile-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-profile-theme-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.page-profile-theme-card:hover {
  border-color: var(--border-strong);
}

.page-profile-theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.10);
}

.page-profile-theme-card:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
}
