/* ActiveAdmin dashboard — Latest registrations */
.lr-wrap { overflow-x: auto; margin: -1px; }
.lr-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; line-height: 1.5; }
.lr-th { padding: 8px 16px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; white-space: nowrap; }
.lr-th--action { width: 1%; }
.lr-row { transition: background-color 120ms ease; }
.lr-row:hover { background-color: rgba(255,255,255,0.03); }
.lr-row:not(:last-child) .lr-td { border-bottom: 1px solid rgba(255,255,255,0.05); }
.lr-td { padding: 10px 16px; vertical-align: middle; white-space: nowrap; }
.lr-td--avatar { width: 48px; padding-right: 0; }
.lr-td--info { padding-left: 10px; }
.lr-td--action { text-align: right; width: 1%; }

/* Avatar */
.lr-avatar { width: 38px; min-width: 38px; max-width: 38px; height: 38px; min-height: 38px; max-height: 38px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06); }
.lr-avatar--photo img { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; object-fit: cover; display: block; border-radius: 10px; }
.lr-avatar--initials { color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; user-select: none; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* User info */
.lr-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.lr-name-row { display: flex; align-items: center; gap: 6px; }
.lr-name { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.92); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-type { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 6px; border-radius: 4px; white-space: nowrap; line-height: 1.7; }
.lr-type--athlete { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.lr-type--admin { background: rgba(34,197,94,0.15); color: #86efac; }
.lr-sub { display: flex; align-items: center; gap: 5px; min-width: 0; }
.lr-email { font-size: 0.78rem; color: rgba(255,255,255,0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
.lr-dot { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.lr-country { font-size: 0.78rem; color: rgba(255,255,255,0.35); white-space: nowrap; }

/* Pills */
.lr-pill { display: inline-block; font-size: 0.72rem; font-weight: 500; padding: 2px 10px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.lr-pill--position { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.08); }

/* Status indicator */
.lr-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; }
.lr-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.lr-status--draft { color: #fbbf24; }
.lr-status--draft .lr-status-dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,0.15); }
.lr-status--active { color: #4ade80; }
.lr-status--active .lr-status-dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.15); }
.lr-status--suspended { color: #f87171; }
.lr-status--suspended .lr-status-dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.15); }

/* Profile completeness progress bar */
.lr-progress { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.lr-progress-track { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.lr-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #818cf8, #6366f1); transition: width 300ms ease; }
.lr-progress-label { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.45); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* Misc */
.lr-muted { color: rgba(255,255,255,0.15); }
.lr-time { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* View button */
.lr-view { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; text-decoration: none; transition: all 120ms ease; cursor: pointer; white-space: nowrap; }
.lr-view:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.lr-view-arrow { transition: transform 120ms ease; font-size: 0.82rem; }
.lr-view:hover .lr-view-arrow { transform: translateX(2px); }

/* Footer */
.lr-footer { padding: 12px 16px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.lr-footer-link { font-size: 0.82rem; font-weight: 500; color: #a5b4fc; text-decoration: none; transition: color 120ms ease; }
.lr-footer-link:hover { color: #c7d2fe; }

/* ActiveAdmin cards */
.aa-card-stack { display: flex; flex-direction: column; gap: 16px; }
.aa-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.aa-card { background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.aa-card--compact { padding: 14px; }
.aa-card--link { text-decoration: none; color: inherit; display: block; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.aa-card--link:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); }
.aa-card--link .aa-card-header { margin-bottom: 0; }
.aa-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.aa-card-title { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.aa-card-body { display: flex; flex-direction: column; gap: 8px; }

.aa-badge { display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }
.aa-badge--ok { background: rgba(34,197,94,0.15); color: #86efac; border-color: rgba(34,197,94,0.3); }
.aa-badge--missing { background: rgba(248,113,113,0.12); color: #fca5a5; border-color: rgba(248,113,113,0.3); }
.aa-badge--warn { background: rgba(251,191,36,0.15); color: #fde68a; border-color: rgba(251,191,36,0.35); }
.aa-badge--neutral { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.14); }

.aa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aa-action { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; text-decoration: none; transition: all 120ms ease; cursor: pointer; white-space: nowrap; }
.aa-action:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.aa-action--success { border-color: rgba(34,197,94,0.35); color: #86efac; }
.aa-action--danger { border-color: rgba(248,113,113,0.35); color: #fca5a5; }

.aa-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.aa-kv { display: flex; flex-direction: column; gap: 4px; }
.aa-kv-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); }
.aa-kv-value { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

.aa-identity { display: flex; align-items: center; gap: 12px; }
.aa-avatar { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06); background: rgba(255,255,255,0.05); }
.aa-avatar--photo img { width: 64px !important; height: 64px !important; object-fit: cover; display: block; }
.aa-avatar--initials { color: #fff; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.aa-identity-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aa-identity-name { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.95); }
.aa-identity-sub { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.aa-dot { color: rgba(255,255,255,0.2); }
.aa-status { text-transform: capitalize; font-weight: 600; }
.aa-status--active { color: #4ade80; }
.aa-status--draft { color: #fbbf24; }
.aa-status--suspended { color: #f87171; }

.aa-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.aa-progress-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.aa-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #818cf8, #6366f1); transition: width 300ms ease; }
.aa-progress-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.45); min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }

.aa-section-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aa-section { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.aa-section-title { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.aa-stat { font-size: 1rem; font-weight: 700; color: #a5b4fc; background: rgba(99,102,241,0.12); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(99,102,241,0.2); }

.aa-muted { color: rgba(255,255,255,0.35); }

/* Index table icon actions */
.aa-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: rgba(255,255,255,0.45); transition: all 120ms ease; }
.aa-icon-action:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
.aa-icon-action--delete:hover { background: rgba(248,113,113,0.12); color: #f87171; }

/* Two-column form grid */
.aa-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.aa-form-grid > fieldset { margin-bottom: 0; }
@media (max-width: 860px) { .aa-form-grid { grid-template-columns: 1fr; } }
