/* ============================================================
   EmbedFlows — Auth & Admin Styles
   Matching the EmbedFlows dark glassmorphism theme
   ============================================================ */

/* ---- Auth Pages (Login / Signup) ---- */

.ef-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.ef-auth__card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(108, 92, 231, 0.18);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(108, 92, 231, 0.06);
    animation: ef-fadeUp 0.5s ease-out;
}

@keyframes ef-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ef-auth__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.ef-auth__icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.ef-auth__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.ef-auth__subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.75rem;
}

/* ---- Form Elements ---- */

.ef-form-group {
    margin-bottom: 1.25rem;
}

.ef-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.ef-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    box-sizing: border-box;
}

.ef-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ef-input:focus {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.06);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.ef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.ef-btn--primary {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.ef-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.45);
}

.ef-btn--danger {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.ef-btn--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.45);
}

.ef-btn--success {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.ef-btn--success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.45);
}

.ef-btn--sm {
    width: auto;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.ef-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.ef-btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(108, 92, 231, 0.4);
    color: #fff;
}

.ef-auth__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.ef-auth__footer a {
    color: #a29bfe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ef-auth__footer a:hover {
    color: #6c5ce7;
}

/* ---- Admin Panel ---- */

.ef-admin {
    padding: 1rem 0;
    animation: ef-fadeUp 0.5s ease-out;
}

.ef-admin__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ef-admin__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.ef-admin__title span {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Stats Cards ---- */

.ef-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ef-stat-card {
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.ef-stat-card:hover {
    border-color: rgba(108, 92, 231, 0.25);
    transform: translateY(-2px);
}

.ef-stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ef-stat-card__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ef-stat-card--purple .ef-stat-card__value { color: #a29bfe; }
.ef-stat-card--green  .ef-stat-card__value { color: #55efc4; }
.ef-stat-card--yellow .ef-stat-card__value { color: #ffeaa7; }
.ef-stat-card--red    .ef-stat-card__value { color: #ff7675; }

/* ---- Data Tables ---- */

.ef-table-wrap {
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.ef-table-wrap__title {
    padding: 1.25rem 1.5rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

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

.ef-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ef-table td {
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

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

.ef-table tr:hover td {
    background: rgba(108, 92, 231, 0.04);
}

.ef-table a {
    color: #a29bfe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ef-table a:hover {
    color: #6c5ce7;
}

/* ---- Badges ---- */

.ef-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ef-badge--active {
    background: rgba(0, 184, 148, 0.15);
    color: #55efc4;
}

.ef-badge--suspended {
    background: rgba(255, 234, 167, 0.15);
    color: #ffeaa7;
}

.ef-badge--banned {
    background: rgba(255, 118, 117, 0.15);
    color: #ff7675;
}

.ef-badge--admin {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
}

.ef-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---- User Detail ---- */

.ef-user-detail {
    animation: ef-fadeUp 0.5s ease-out;
}

.ef-user-detail__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ef-user-detail__avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.25);
}

.ef-user-detail__info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.ef-user-detail__info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.ef-user-detail__actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ef-user-detail__actions form {
    display: inline;
}

/* ---- Section Dividers ---- */

.ef-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Empty States ---- */

.ef-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.ef-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.2;
}

/* ---- Back Link ---- */

.ef-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.ef-back:hover {
    color: #a29bfe;
}

/* ---- Nav Auth Items ---- */

.vx-nav__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-left: 1rem;
}

.vx-nav__user-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.vx-nav__user-name strong {
    color: #fff;
}

.vx-nav__logout {
    font-size: 0.75rem;
    color: rgba(255, 118, 117, 0.7);
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(255, 118, 117, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
}

.vx-nav__logout:hover {
    color: #ff7675;
    border-color: rgba(255, 118, 117, 0.5);
    background: rgba(255, 118, 117, 0.08);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .ef-auth__card {
        padding: 2rem 1.5rem;
    }

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

    .ef-table {
        font-size: 0.78rem;
    }

    .ef-table th,
    .ef-table td {
        padding: 0.65rem 0.75rem;
    }

    .ef-admin__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ef-user-detail__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vx-nav__user {
        margin-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .ef-stats {
        grid-template-columns: 1fr;
    }

    .ef-table-wrap {
        overflow-x: auto;
    }
}

/* ============================================================
   Activity Feed — Tabs, Badges, Avatars, Live Indicator
   ============================================================ */

/* ---- Live Indicator ---- */

.ef-activity-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(0, 184, 148, 0.1);
    color: #55efc4;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 1rem;
}

.ef-activity-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55efc4;
    animation: ef-livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(85, 239, 196, 0.5);
}

@keyframes ef-livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---- Tabs ---- */

.ef-activity-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ef-activity-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ef-activity-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.ef-activity-tab--active {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

.ef-activity-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.ef-activity-tab--active .ef-activity-tab__count {
    background: rgba(108, 92, 231, 0.25);
    color: #a29bfe;
}

/* ---- Panels ---- */

.ef-activity-panel {
    display: none;
    animation: ef-fadeUp 0.35s ease-out;
}

.ef-activity-panel--active {
    display: block;
}

/* ---- Activity Row ---- */

.ef-activity-row {
    transition: background 0.2s ease;
}

.ef-activity-row:hover {
    background: rgba(255, 255, 255, 0.025) !important;
}

/* ---- User Avatar ---- */

.ef-activity-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ef-activity-user__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ef-activity-user__avatar--admin {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.ef-activity-user__name {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.2;
}

.ef-activity-user__email {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

/* ---- Clickable User Link ---- */

.ef-activity-user--link {
    text-decoration: none;
    border-radius: 10px;
    padding: 0.3rem 0.5rem;
    margin: -0.3rem -0.5rem;
    transition: background 0.2s ease;
}

.ef-activity-user--link:hover {
    background: rgba(108, 92, 231, 0.08);
}

.ef-activity-user--link:hover .ef-activity-user__name {
    color: #a29bfe;
}

.ef-activity-user--link:hover .ef-activity-user__avatar {
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

/* ---- Activity Details ---- */

.ef-activity-details {
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

/* ---- Activity Date ---- */

.ef-activity-date__relative {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
}

.ef-activity-date__time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ---- Activity Target Link ---- */

.ef-activity-target {
    color: #74b9ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.ef-activity-target:hover {
    color: #a29bfe;
    text-decoration: underline;
}

/* ---- Badge Color Variants ---- */

.ef-badge--signup {
    background: rgba(0, 184, 148, 0.12);
    color: #55efc4;
}

.ef-badge--login {
    background: rgba(9, 132, 227, 0.12);
    color: #74b9ff;
}

.ef-badge--logout {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.ef-badge--video {
    background: rgba(108, 92, 231, 0.12);
    color: #a29bfe;
}

.ef-badge--domain {
    background: rgba(0, 206, 209, 0.12);
    color: #81ecec;
}

.ef-badge--payment {
    background: rgba(253, 203, 110, 0.12);
    color: #fdcb6e;
}

.ef-badge--danger {
    background: rgba(255, 118, 117, 0.12);
    color: #ff7675;
}

/* Badge icon alignment */
.ef-badge svg {
    flex-shrink: 0;
}

/* ---- Header layout fix ---- */

.ef-admin__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   User Cards — Grouped Activity Layout
   ============================================================ */

.ef-user-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- User Card ---- */

.ef-ucard {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.ef-ucard:hover {
    border-color: rgba(108, 92, 231, 0.2);
}

/* ---- Card Header (clickable) ---- */

.ef-ucard__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.ef-ucard__header:hover {
    background: rgba(108, 92, 231, 0.06);
}

.ef-ucard__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ef-ucard__header:hover .ef-ucard__avatar {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(9, 132, 227, 0.35);
}

.ef-ucard__info {
    flex: 1;
    min-width: 0;
}

.ef-ucard__name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.25;
    transition: color 0.2s;
}

.ef-ucard__header:hover .ef-ucard__name {
    color: #a29bfe;
}

.ef-ucard__email {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

.ef-ucard__count {
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.1);
    color: #a29bfe;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ef-ucard__arrow {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.ef-ucard__header:hover .ef-ucard__arrow {
    color: #a29bfe;
    transform: translateX(2px);
}

/* ---- Activity Timeline ---- */

.ef-ucard__timeline {
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
}

.ef-tl-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    position: relative;
}

/* Connecting line between dots */
.ef-tl-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: -4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Timeline Dot ---- */

.ef-tl-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ef-tl-dot--signup   { background: #55efc4; box-shadow: 0 0 6px rgba(85, 239, 196, 0.35); }
.ef-tl-dot--login    { background: #74b9ff; box-shadow: 0 0 6px rgba(116, 185, 255, 0.35); }
.ef-tl-dot--logout   { background: rgba(255, 255, 255, 0.25); }
.ef-tl-dot--video    { background: #a29bfe; box-shadow: 0 0 6px rgba(162, 155, 254, 0.35); }
.ef-tl-dot--domain   { background: #81ecec; box-shadow: 0 0 6px rgba(129, 236, 236, 0.35); }
.ef-tl-dot--payment  { background: #fdcb6e; box-shadow: 0 0 6px rgba(253, 203, 110, 0.35); }
.ef-tl-dot--danger   { background: #ff7675; box-shadow: 0 0 6px rgba(255, 118, 117, 0.35); }
.ef-tl-dot--admin    { background: #a29bfe; box-shadow: 0 0 6px rgba(162, 155, 254, 0.35); }

/* ---- Timeline Content ---- */

.ef-tl-content {
    flex: 1;
    min-width: 0;
}

.ef-tl-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ef-tl-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: nowrap;
    margin-left: auto;
}

.ef-tl-details {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

/* ============================================================
   USER LEADS — Admin Activity tab
   ============================================================ */

.ef-activity-tabs { overflow-x: auto; }
.ef-user-leads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.ef-user-leads-toolbar > div { display: flex; flex-direction: column; gap: .15rem; }
.ef-user-leads-toolbar strong { color: #fff; font-size: .88rem; }
.ef-user-leads-toolbar > div span { color: rgba(255,255,255,.35); font-size: .7rem; }
.ef-user-leads-search {
    display: flex;
    width: min(310px, 100%);
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.3);
}
.ef-user-leads-search:focus-within { border-color: rgba(108,92,231,.65); box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.ef-user-leads-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-family: inherit; font-size: .76rem; font-weight: 500; }
.ef-user-leads-search input::placeholder { color: rgba(255,255,255,.26); }
.ef-user-leads-list { display: flex; flex-direction: column; gap: 1rem; }
.ef-lead-owner {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 14px;
    background: rgba(255,255,255,.022);
    transition: border-color .2s ease;
}
.ef-lead-owner:hover { border-color: rgba(108,92,231,.25); }
.ef-lead-owner[hidden] { display: none; }
.ef-lead-owner__header {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.045);
    background: linear-gradient(90deg, rgba(108,92,231,.065), rgba(255,255,255,.01));
}
.ef-lead-owner__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(108,92,231,.22);
}
.ef-lead-owner__identity { flex: 1; min-width: 150px; }
.ef-lead-owner__identity a, .ef-lead-owner__identity strong { display: block; color: #fff; font-size: .88rem; font-weight: 700; }
.ef-lead-owner__identity a:hover { color: #a29bfe; }
.ef-lead-owner__identity span { display: block; margin-top: .15rem; overflow: hidden; color: rgba(255,255,255,.35); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.ef-lead-owner__badges { display: flex; gap: .35rem; }
.ef-owner-badge { padding: .26rem .55rem; border-radius: 7px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.ef-owner-badge--plan { background: rgba(108,92,231,.14); color: #a29bfe; }
.ef-owner-badge--active { background: rgba(85,239,196,.1); color: #55efc4; }
.ef-owner-badge--suspended, .ef-owner-badge--banned { background: rgba(255,118,117,.11); color: #ff7675; }
.ef-owner-badge--unknown { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); }
.ef-lead-owner__stats { display: flex; min-width: 65px; flex-direction: column; align-items: flex-end; }
.ef-lead-owner__stats strong { color: #fff; font-size: .88rem; }
.ef-lead-owner__stats span { color: rgba(255,255,255,.3); font-size: .62rem; }
.ef-lead-owner__account {
    display: flex;
    gap: 1.4rem;
    padding: .48rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.035);
    background: rgba(0,0,0,.09);
    color: rgba(255,255,255,.28);
    font-size: .65rem;
}
.ef-lead-owner__account strong { color: rgba(255,255,255,.55); font-weight: 600; }
.ef-lead-owner__entries { padding: 0 1.15rem; }
.ef-captured-lead {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
    gap: 1rem;
    align-items: center;
    padding: .9rem 0;
}
.ef-captured-lead + .ef-captured-lead { border-top: 1px solid rgba(255,255,255,.045); }
.ef-captured-lead__contact { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.ef-captured-lead__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(85,239,196,.18);
    border-radius: 10px;
    background: rgba(85,239,196,.08);
    color: #55efc4;
    font-size: .75rem;
    font-weight: 800;
}
.ef-captured-lead__contact div { min-width: 0; }
.ef-captured-lead__contact a, .ef-captured-lead__contact strong { display: block; overflow: hidden; color: #fff; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ef-captured-lead__contact a:hover { color: #55efc4; }
.ef-captured-lead__contact div > span { display: block; margin-top: .12rem; color: rgba(255,255,255,.33); font-size: .66rem; }
.ef-captured-lead__fact { min-width: 0; }
.ef-captured-lead__fact > span { display: block; margin-bottom: .2rem; color: rgba(255,255,255,.25); font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ef-captured-lead__fact > a, .ef-captured-lead__fact > strong { display: block; overflow: hidden; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ef-captured-lead__fact > a:hover { color: #a29bfe; }
.ef-captured-lead__fact small { display: block; margin-top: .15rem; overflow: hidden; color: rgba(255,255,255,.25); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.ef-user-leads-empty-search { padding: 2.5rem 1rem; color: rgba(255,255,255,.35); text-align: center; }
.ef-user-leads-empty-search[hidden] { display: none; }

@media (max-width: 1100px) {
    .ef-captured-lead { grid-template-columns: minmax(210px, 1.2fr) repeat(2, minmax(140px, 1fr)); }
    .ef-captured-lead__fact:nth-last-child(-n+2) { grid-column: auto; }
}

@media (max-width: 760px) {
    .ef-user-leads-toolbar { align-items: stretch; flex-direction: column; }
    .ef-user-leads-search { width: 100%; }
    .ef-lead-owner__header { align-items: flex-start; flex-wrap: wrap; }
    .ef-lead-owner__badges { order: 3; width: 100%; }
    .ef-lead-owner__stats { min-width: 52px; }
    .ef-lead-owner__account { flex-direction: column; gap: .25rem; }
    .ef-captured-lead { grid-template-columns: 1fr; gap: .65rem; }
}
