/* ===================================================
   admin.css — Modern SaaS Update
   Focus: Indigo/Slate palette, Elevation, and Whitespace
   =================================================== */

/* CSS variables → from app.css */

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  height: 100vh;
  overflow: hidden;
  font-size: 15px;
}

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

.hidden { display: none !important; }

/* ─────────────────────────────────────────────
   STATS GRID
   ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px 8px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────
   PAGE HEADER — matches topbar style
   ───────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.user-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   STATUS BAR
   ───────────────────────────────────────────── */
.status-bar {
  padding: 10px 40px;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.status-bar.hidden { display: none; }
.status-bar.info,
.status-bar.status-info    { background: rgba(59,130,246,0.08);  color: var(--accent);  border-color: rgba(59,130,246,0.2); }
.status-bar.success,
.status-bar.status-success { background: rgba(16,185,129,0.08);  color: var(--success); border-color: rgba(16,185,129,0.2); }
.status-bar.error,
.status-bar.status-error   { background: rgba(239,68,68,0.08);   color: var(--danger);  border-color: rgba(239,68,68,0.2); }

/* ─────────────────────────────────────────────
   MASTER-DETAIL LAYOUT
   ───────────────────────────────────────────── */
.admin-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── Left Sidebar ─── */
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.admin-sidebar-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
}

.admin-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.admin-search-wrap input::placeholder {
  color: var(--text-muted);
}

.admin-search-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.admin-org-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.admin-sidebar-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Org list items */
.org-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s;
  border-left: 3px solid transparent;
}

.org-item:hover {
  background: var(--bg-tertiary);
}

.org-item.active {
  background: rgba(59,130,246,0.1);
  border-left-color: var(--accent);
}

.org-item-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.org-item-name {
  flex: 1;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-item.active .org-item-name {
  color: var(--accent);
  font-weight: 600;
}

.org-plan-pill {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.25);
  flex-shrink: 0;
}

/* ─── Right Detail Panel ─── */
.admin-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Empty state */
.admin-detail-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.admin-detail-empty-icon {
  font-size: 2.5rem;
}

.admin-detail-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-detail-empty p {
  font-size: 0.82rem;
}

/* Detail header bar */
.admin-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.admin-detail-header-icon {
  font-size: 1.1rem;
}

.admin-detail-header-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-plan-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.25);
  flex-shrink: 0;
}

.admin-detail-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   TAB NAVIGATION
   ───────────────────────────────────────────── */
.admin-tab-navigation {
  display: flex;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 0;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-tab-button {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
}

.admin-tab-button:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.admin-tab-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Scrollable detail body */
.admin-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 60px;
}

/* ─────────────────────────────────────────────
   TAB PANELS
   ───────────────────────────────────────────── */
.admin-tab-panel {
  display: none;
  animation: fadeIn 0.15s ease-in-out;
}

.admin-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections within detail body */
.admin-section {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.admin-section:last-child {
  border-bottom: none;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─────────────────────────────────────────────
   FIELD GROUPS — sub-sections within a section
   ───────────────────────────────────────────── */
.field-group {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Field grid layouts */
.field-grid {
  display: grid;
  gap: 12px 20px;
}

.field-grid-1 { grid-template-columns: 1fr; }
.field-grid-2 { grid-template-columns: repeat(2, 1fr); }
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }

.field-item {
  min-width: 0;
}

.field-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.field-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  min-height: 1.2em;
}

.field-value:empty::after {
  content: '';
  display: inline-block;
}

/* ─────────────────────────────────────────────
   ENTITLEMENTS VISUAL COMPONENTS
   ───────────────────────────────────────────── */
.ent-summary-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 4px;
}

.ent-plan-block,
.ent-billing-block,
.ent-period-block {
  min-width: 120px;
}

.ent-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.3);
  margin-top: 3px;
}

.ent-usage-block {
  padding: 0 2px;
}

.ent-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ent-usage-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ent-progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ent-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}

.ent-progress-bar--workload {
  background: var(--success);
}

.ent-progress-bar--warn {
  background: var(--warning);
}

.ent-progress-bar--danger {
  background: var(--danger);
}

/* ─────────────────────────────────────────────
   BILLING & USAGE CONSOLIDATION LAYOUT
   ───────────────────────────────────────────── */
.billing-summary-block {
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}

.billing-usage-section {
  padding: 0 2px;
  margin-bottom: 16px;
}

.billing-usage-block {
  padding: 0 2px;
}

.billing-usage-block .ent-progress-track {
  max-width: 50%;
}


/* ─────────────────────────────────────────────
   LEGACY: keep .admin-main for any fallback
   ───────────────────────────────────────────── */
.admin-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─────────────────────────────────────────────
   CARD — matches settings.html .card
   ───────────────────────────────────────────── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────
   LOADING / EMPTY STATES
   ───────────────────────────────────────────── */
.loading-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.muted {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─────────────────────────────────────────────
   INFO TABLE (key/value pairs)
   ───────────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.info-table th,
.info-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 160px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 20px;
}

.info-table td {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   DATA TABLE (members, apps)
   ───────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--bg-tertiary);
}

.directory-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 16px 10px !important;
  font-size: 0.82rem;
}

.member-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-actions .btn {
  width: auto;
}

/* ─────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-yes      { background: rgba(16,185,129,0.12);  color: #10b981; }
.badge-no       { background: rgba(100,116,139,0.12); color: #64748b; }
.badge-active   { background: rgba(16,185,129,0.12);  color: #10b981; }
.badge-inactive { background: rgba(100,116,139,0.12); color: #64748b; }
.badge-trialing { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.badge-past_due { background: rgba(239,68,68,0.12);   color: #ef4444; }
.badge-canceled { background: rgba(239,68,68,0.12);   color: #ef4444; }
.badge-none     { background: rgba(100,116,139,0.12); color: #64748b; }

/* ─────────────────────────────────────────────
   ROLE SELECT (inline dropdown in members table)
   ───────────────────────────────────────────── */
.role-select {
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.role-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary   { background: var(--accent);    color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary { background: var(--bg-tertiary);  color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-input); }

.btn-success   { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.btn-success:hover:not(:disabled) { background: rgba(16,185,129,0.2); }

.btn-danger    { background: rgba(239,68,68,0.1);   color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,0.18); }

/* Small variant */
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }

/* ─────────────────────────────────────────────
   BUTTON ROW
   ───────────────────────────────────────────── */
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ─────────────────────────────────────────────
   FORM GROUP (edit sections within cards)
   ───────────────────────────────────────────── */
.form-group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  margin-top: 12px;
}

.form-group label:first-of-type { margin-top: 0; }

.form-group input,
.form-group select {
  width: 100%;
  max-width: 400px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  display: block;
  margin-bottom: 12px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 16px;
  margin-bottom: 12px;
}

.entitlement-grid > div {
  min-width: 0;
}

.entitlement-grid input,
.entitlement-grid select {
  max-width: 100%;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group button:disabled {
  opacity: 0.6;
}

/* ─────────────────────────────────────────────
   ADMIN MODALS
   ───────────────────────────────────────────── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.admin-modal-overlay.hidden {
  display: none !important;
}

.admin-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  color: var(--text-primary);
}

.admin-modal-body {
  padding: 16px 20px;
}

.admin-modal-body label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  margin-top: 12px;
}

.admin-modal-body label:first-of-type {
  margin-top: 0;
}

.admin-modal-body input,
.admin-modal-body select {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.admin-modal-body input:focus,
.admin-modal-body select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { width: 200px; }
}

@media (max-width: 768px) {
  .admin-tab-button {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .page-header { padding: 0 16px; }
  .admin-main  { padding: 20px 16px 60px; }
  .card        { padding: 18px 16px; }
  .info-table th { width: 110px; }
  .entitlement-grid { grid-template-columns: 1fr; }
  .button-row  { flex-direction: column; }
  .btn         { width: 100%; justify-content: center; }
  .member-actions .btn { width: auto; }
  .admin-modal-footer { flex-direction: column; }
  .admin-modal-footer .btn { width: 100%; }
  .admin-layout { flex-direction: column; flex: none; height: auto; overflow: visible; }
  .admin-sidebar { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-detail-panel { height: auto; overflow: visible; }
  .admin-detail-body { overflow: visible; }
  .admin-section { padding: 16px; }
  .admin-tab-button {
    min-width: 85px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

/* ─────────────────────────────────────────────
   TOS STATUS BADGES
   ───────────────────────────────────────────── */
.tos-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tos-badge--current {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.tos-badge--outdated {
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.3);
}

.tos-badge--none {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.25);
}

/* Current version cards in the manage modal */
.tos-version-card {
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 10px;
}

.tos-version-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tos-version-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tos-version-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
