/* ═══════════════════════════════════════════════════════
   ATHEX — Admin Command Center Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Athex Backdrop — blurred Hub content visible behind panel ── */
.athex-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(5,11,20,0.65);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.athex-backdrop.athex-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Panel — Glass Tile sliding in from right ────── */
.athex-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(560px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(1.08);
  backdrop-filter: blur(40px) saturate(1.8) brightness(1.08);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -24px 0 80px rgba(0,0,0,0.55), 0 0 40px rgba(0,229,255,0.06);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.athex-panel.athex-panel--open {
  transform: translateX(0);
}

/* ─── Header ────────────────────────────────────────── */
.athex-panel__header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 24px 16px 24px;
  padding-right: 56px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.athex-panel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.athex-panel__title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #00e5ff, #b44dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.athex-panel__subtitle {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Inter Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.athex-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.athex-panel__close:hover {
  color: #ff4444;
  border-color: rgba(255,68,68,0.3);
  background: rgba(255,68,68,0.08);
}

/* ─── Tab Navigation ────────────────────────────────── */
.athex-panel__nav {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  padding-right: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.athex-nav__tab {
  background: none;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.athex-nav__tab:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.athex-nav__tab--active {
  color: #00e5ff;
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.2);
  box-shadow: 0 0 12px rgba(0,229,255,0.1);
  font-weight: 600;
}

/* ─── Body / Tab Panes ──────────────────────────────── */
.athex-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.athex-tab-pane {
  display: none;
}
.athex-tab-pane--active {
  display: block;
}

/* ─── Section Headers ───────────────────────────────── */
.athex-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.athex-section-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

/* ─── Toolbar ───────────────────────────────────────── */
.athex-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.athex-search {
  flex: 1;
  min-width: 200px;
  background: rgba(10,18,32,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.athex-search:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 4px rgba(0,229,255,0.1);
}
.athex-search::placeholder { color: rgba(255,255,255,0.25); }

/* ─── Buttons ───────────────────────────────────────── */
.athex-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
  white-space: nowrap;
}
.athex-btn svg { width: 14px; height: 14px; }
.athex-btn--primary {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,229,255,0.08));
  border-color: rgba(0,229,255,0.3);
  color: #00e5ff;
}
.athex-btn--primary:hover {
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,229,255,0.12));
  box-shadow: 0 0 16px rgba(0,229,255,0.15);
}
.athex-btn--danger {
  background: rgba(255,68,68,0.08);
  border-color: rgba(255,68,68,0.25);
  color: #ff4444;
}
.athex-btn--danger:hover {
  background: rgba(255,68,68,0.15);
}
.athex-btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.athex-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.athex-btn--sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}
.athex-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.athex-btn:active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ─── User Card Grid ────────────────────────────────── */
.athex-users-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow-x: hidden;
  max-width: 100%;
}
@media (min-width: 700px) { .athex-users-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .athex-users-grid { grid-template-columns: repeat(3, 1fr); } }

.athex-user-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), rgba(10,18,32,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
  overflow: hidden;
}
.athex-user-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.athex-user-card--admin {
  border-color: rgba(180,77,255,0.25);
}

.athex-user-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.athex-user-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e5ff;
  overflow: hidden;
  flex-shrink: 0;
}
.athex-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.athex-user-card__info {
  flex: 1;
  min-width: 0;
}
.athex-user-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.athex-user-card__username {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Inter Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.athex-user-card__email {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges row */
.athex-user-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.athex-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.athex-badge--g { background: rgba(0,255,159,0.1); color: #00ff9f; border: 1px solid rgba(0,255,159,0.2); }
.athex-badge--pg { background: rgba(0,229,255,0.1); color: #00e5ff; border: 1px solid rgba(0,229,255,0.2); }
.athex-badge--pg13 { background: rgba(229,165,0,0.1); color: #e5a500; border: 1px solid rgba(229,165,0,0.2); }
.athex-badge--r { background: rgba(255,136,0,0.1); color: #ff8800; border: 1px solid rgba(255,136,0,0.2); }
.athex-badge--r_plus { background: rgba(255,45,120,0.1); color: #ff2d78; border: 1px solid rgba(255,45,120,0.2); }
.athex-badge--child { background: rgba(180,77,255,0.1); color: #b44dff; border: 1px solid rgba(180,77,255,0.2); }
.athex-badge--no-rating { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); }
.athex-badge--family { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.athex-badge--manager { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }

/* Jellyfin status dot */
.athex-jelly-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.athex-jelly-dot--matched { background: #00ff9f; box-shadow: 0 0 6px rgba(0,255,159,0.4); }
.athex-jelly-dot--missing { background: #ff4444; box-shadow: 0 0 6px rgba(255,68,68,0.4); }

/* Card actions */
.athex-user-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
}

/* Inline edit area */
.athex-user-card__edit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.athex-user-card__edit[hidden] { display: none; }
.athex-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.athex-edit-row--photo {
  gap: 12px;
  margin-bottom: 4px;
}
.athex-photo-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(79,209,197,0.12);
  border: 2px solid rgba(79,209,197,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: rgba(79,209,197,0.8);
  font-weight: 700;
  font-size: 0.85rem;
}
.athex-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.athex-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.athex-btn--muted {
  opacity: 0.5;
  font-size: 0.75rem !important;
}
.athex-edit-section {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.athex-edit-section__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.athex-household-admin__loading,
.athex-household-admin__empty {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding: 4px 0;
}
.athex-household-admin__members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.athex-household-admin__member {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 4px 8px;
}
.athex-household-admin__member-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79,209,197,0.12);
  color: rgba(79,209,197,0.8);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.athex-household-admin__member-name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.athex-household-admin__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.athex-edit-row label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  min-width: 80px;
}
.athex-edit-select {
  flex: 1;
  background: rgba(10,18,32,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.78rem;
  outline: none;
}
.athex-edit-select:focus {
  border-color: rgba(0,229,255,0.4);
}

/* Toggle (reuse anda pattern, smaller) */
.athex-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.athex-toggle input { display: none; }
.athex-toggle__track {
  width: 32px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
}
.athex-toggle input:checked + .athex-toggle__track {
  background: rgba(0,229,255,0.3);
}
.athex-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  transition: transform 0.2s;
}
.athex-toggle input:checked + .athex-toggle__track .athex-toggle__thumb {
  transform: translateX(14px);
  background: #00e5ff;
}

/* ─── Announcements ─────────────────────────────────── */
.athex-announcement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.athex-announcement-item {
  background: rgba(10,18,32,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
}
.athex-announcement-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.athex-announcement-item__title {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.athex-announcement-item__meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.athex-announcement-item__body {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.athex-announcement-item__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* Type badges */
.athex-type-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.athex-type-badge--info { background: rgba(0,229,255,0.12); color: #00e5ff; }
.athex-type-badge--update { background: rgba(0,255,159,0.12); color: #00ff9f; }
.athex-type-badge--alert { background: rgba(255,68,68,0.12); color: #ff4444; }
.athex-type-badge--pinned { background: rgba(229,165,0,0.12); color: #e5a500; }

/* ─── Create Form ───────────────────────────────────── */
.athex-form {
  background: rgba(10,18,32,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.athex-form__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.athex-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.athex-form-group:last-child { margin-bottom: 0; }
.athex-form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.athex-form-input,
.athex-form-textarea,
.athex-form-select {
  background: rgba(10,18,32,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.athex-form-input:focus,
.athex-form-textarea:focus,
.athex-form-select:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}
.athex-form-textarea {
  min-height: 80px;
  resize: vertical;
}
.athex-form-row {
  display: flex;
  gap: 10px;
}
.athex-form-row > * { flex: 1; }

/* ─── FAQ Editor ────────────────────────────────────── */
.athex-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.athex-faq-item {
  background: rgba(10,18,32,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
}
.athex-faq-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.athex-faq-item__order {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Inter Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  min-width: 20px;
}
.athex-faq-item__arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.athex-faq-item__arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
}
.athex-faq-item__arrow:hover { color: #00e5ff; }
.athex-faq-item__delete {
  margin-left: auto;
}

/* ─── Loading / Empty States ────────────────────────── */
.athex-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}
.athex-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

/* ─── Service Accounts (collapsible) ─────────────────── */
.athex-service-accounts-section {
  grid-column: 1 / -1;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}
.athex-service-toggle {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
#athexServiceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
#athexServiceGrid .athex-user-card {
  opacity: 0.6;
}

/* ─── Messages (banner form section) ────────────────── */
.athex-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 24px 0;
}

/* ─── Add-User Form (modal-style) ──────────────────── */
.athex-add-user-form {
  display: none;
  margin-bottom: 20px;
}
.athex-add-user-form--open { display: block; }

/* ─── Sync-All result toast ────────────────────────── */
.athex-sync-result {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  display: none;
}
.athex-sync-result--visible { display: block; }

/* ─── Jellyfin Orphans ──────────────────────────────── */
.athex-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  line-height: 1.5;
}
.athex-orphans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.athex-orphan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.athex-orphan-card:hover { border-color: rgba(255,255,255,0.15); }
.athex-orphan-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.athex-orphan-card__info { flex: 1; min-width: 0; }
.athex-orphan-card__actions {
  display: flex;
  gap: 6px;
}

/* ─── Households Tab ─────────────────────────────────── */
.athex-households-grid {
  display:flex; flex-direction:column; gap:12px;
}
.athex-household-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06);
  border-radius:10px; overflow:hidden;
}
.athex-household-card__header {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; border-bottom:1px solid rgba(255,255,255,0.06);
}
.athex-household-card__title {
  font-size:0.82rem; font-weight:600; color:rgba(255,255,255,0.85);
}
.athex-household-card__meta {
  font-size:0.75rem; color:rgba(255,255,255,0.3); margin-top:2px;
}
.athex-household-card__members {
  padding:8px 12px;
}
.athex-hh-member {
  display:flex; align-items:center; gap:10px; padding:6px 4px;
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.athex-hh-member:last-of-type { border-bottom:none; }
.athex-hh-member__avatar {
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg, rgba(79,209,197,0.2), rgba(147,130,220,0.2));
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:700; color:rgba(255,255,255,0.6);
}
.athex-hh-member__info {
  flex:1; min-width:0; display:flex; flex-direction:column;
}
.athex-hh-member__name {
  font-size:0.75rem; color:rgba(255,255,255,0.75); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.athex-hh-member__email {
  font-size:0.75rem; color:rgba(255,255,255,0.3);
}
.athex-hh-member__actions {
  display:flex; gap:4px; flex-shrink:0;
}
.athex-hh-add {
  padding:6px 4px; text-align:center;
}
.athex-btn--xs {
  font-size:0.75rem; padding:2px 6px; min-height:auto; border-radius:4px;
}

/* ─── Confirm Dialog ────────────────────────────────── */
.athex-confirm-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: athex-fade-in 0.2s ease;
}
.athex-confirm-dialog {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px; max-width: 400px; width: 90%;
  text-align: center;
}
.athex-confirm-dialog h3 { color: #fff; margin: 0 0 8px; font-size: 1.1rem; }
.athex-confirm-dialog p { color: rgba(255,255,255,0.7); margin: 0 0 20px; font-size: 0.85rem; }
.athex-confirm-dialog__actions { display: flex; gap: 12px; justify-content: center; }
.athex-confirm-dialog__btn { padding: 8px 24px; border-radius: 8px; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.athex-confirm-dialog__btn--cancel { background: rgba(255,255,255,0.1); color: #fff; }
.athex-confirm-dialog__btn--danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.athex-confirm-dialog__btn--primary { background: linear-gradient(135deg, #06b6d4, #0ea5e9); color: #fff; }
@keyframes athex-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ─── Mobile base ────────────────────────────────────── */
.athex-panel__header { padding: 12px 16px; padding-right: 56px; padding-bottom: 16px; }
.athex-panel__nav { padding: 10px 16px; padding-right: 56px; }
.athex-panel__body { padding: 16px; }
.athex-form-row { flex-direction: column; }
.athex-user-card__actions { flex-wrap: wrap; }
.athex-orphans-grid { grid-template-columns: 1fr; }
.athex-btn { min-height: 44px; }
@media (min-width: 601px) {
  .athex-panel__header { padding: 16px 24px; padding-right: 56px; padding-bottom: 16px; }
  .athex-panel__nav { padding: 12px 24px; padding-right: 56px; }
  .athex-panel__body { padding: 24px; }
  .athex-form-row { flex-direction: row; }
  .athex-user-card__actions { flex-wrap: nowrap; }
  .athex-orphans-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .athex-btn { min-height: unset; }
}

@media (prefers-reduced-motion: reduce) {
  .athex-panel { transition-duration: 0.01ms !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
}

/* ─── Keyboard Focus Visibility (WCAG AAA) ──────────── */
.athex-btn:focus-visible,
.athex-hh-member__actions button:focus-visible,
.athex-confirm-dialog button:focus-visible {
  outline: 2px solid #00E0FF;
  outline-offset: 2px;
}
