body {
    background: #f5f7fb;
    color: #1f2937;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.min-vh-75 {
    min-height: 75vh;
}

.public-page,
.auth-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.hero-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    padding: 20px 16px;
    flex-shrink: 0;
}

.sidebar-brand {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.sidebar-nav .nav-link {
    display: block;
    color: rgba(255,255,255,0.82);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-role {
    margin-left: 8px;
    font-size: 12px;
    color: #6b7280;
}

.content-wrap {
    padding: 20px;
}

.page-header {
    margin-bottom: 18px;
}

.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    min-height: 100px;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
}

.grid-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
}

.grid-table th,
.grid-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.grid-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
}

@media (max-width: 991px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 767px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}
.profile-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #475569;
}

.profile-tabs .nav-link.active {
    color: #0f172a;
    background: #f8fafc;
    border-color: #dee2e6 #dee2e6 #f8fafc;
}
.social-profile-header {
    overflow: hidden;
    border-radius: 20px;
}

.social-cover {
    height: 260px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe, #e0f2fe);
    background-size: cover;
    background-position: center;
    position: relative;
}

.social-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.social-profile-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 24px 24px 24px;
    margin-top: -58px;
    flex-wrap: wrap;
}

.social-avatar-wrap {
    position: relative;
    z-index: 2;
}

.social-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.social-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
}

.social-profile-meta {
    padding-bottom: 10px;
    min-width: 240px;
    flex: 1;
}

.social-profile-meta h3 {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
}

.social-headline {
    font-size: 15px;
    color: #475569;
    margin-bottom: 4px;
}

.social-location {
    font-size: 14px;
    color: #64748b;
}

.social-profile-status {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.status-pill,
.live-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.status-pill {
    background: #e0f2fe;
    color: #075985;
}

.live-pill.is-live {
    background: #dcfce7;
    color: #166534;
}

.live-pill.not-live {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .social-cover {
        height: 180px;
    }

    .social-profile-bar {
        margin-top: -40px;
        padding: 0 16px 16px 16px;
        gap: 14px;
    }

    .social-avatar {
        width: 100px;
        height: 100px;
    }

    .social-profile-meta h3 {
        font-size: 24px;
    }
}
.profile-page-wrap {
    padding-bottom: 40px;
}

.profile-hero-sticky {
    position: sticky;
    top: 12px;
    z-index: 20;
    margin-bottom: 20px;
}

.profile-hero-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.profile-cover {
    height: 280px;
    background: linear-gradient(135deg, #bfdbfe, #c7d2fe, #e0f2fe);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #93c5fd, #a5b4fc, #67e8f9);
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.08));
}

.profile-hero-body {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 26px 22px 26px;
    margin-top: -70px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90) 0%, #ffffff 45%);
    flex-wrap: wrap;
}

.profile-avatar-col {
    position: relative;
    z-index: 2;
}

.profile-avatar-img {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ffffff;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
}

.profile-main-meta {
    flex: 1;
    min-width: 260px;
    padding-bottom: 10px;
}

.profile-display-name {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.05;
}

.profile-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.profile-headline-text {
    font-size: 17px;
    color: #334155;
    margin-bottom: 4px;
    font-weight: 500;
}

.profile-location-text {
    font-size: 14px;
    color: #64748b;
}

.profile-quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.profile-action-col {
    padding-bottom: 12px;
}

.profile-edit-btn {
    border-radius: 14px;
    padding: 12px 22px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.profile-stat-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.profile-stat-item {
    padding: 18px 16px;
    text-align: center;
    border-right: 1px solid #eef2f7;
}

.profile-stat-item:last-child {
    border-right: none;
}

.profile-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.profile-stat-small {
    font-size: 14px;
    font-weight: 700;
}

.profile-side-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-glass-card,
.profile-main-card,
.profile-section-card,
.file-card-modern {
    border-radius: 20px;
}

.profile-glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-glass-card:hover,
.file-card-modern:hover,
.profile-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.profile-bio-text {
    color: #334155;
    line-height: 1.75;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.profile-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: #64748b;
    font-weight: 600;
}

.info-value {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-tag {
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 13px;
}

.profile-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-metric-box {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.mini-metric-label {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mini-metric-value {
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
}

.profile-content-tabs {
    gap: 8px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 20px 20px 0 0;
}

.profile-content-tabs .nav-link {
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    padding: 10px 18px;
}

.profile-content-tabs .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.profile-section-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-empty-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px dashed #cbd5e1;
}

.content-empty-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.file-card-modern {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #eef2f7;
    padding: 18px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.file-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    font-size: 22px;
}

.file-card-category {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.file-card-name {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.file-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1199px) {
    .profile-stat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .profile-hero-sticky {
        position: static;
    }

    .profile-cover {
        height: 220px;
    }

    .profile-display-name {
        font-size: 30px;
    }

    .profile-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .profile-hero-body {
        padding: 0 16px 18px 16px;
        margin-top: -52px;
        gap: 16px;
    }

    .profile-avatar-img {
        width: 112px;
        height: 112px;
    }

    .profile-display-name {
        font-size: 24px;
    }

    .profile-action-col {
        width: 100%;
    }

    .profile-edit-btn {
        width: 100%;
    }

    .profile-stat-strip {
        grid-template-columns: 1fr;
    }

    .profile-mini-metrics {
        grid-template-columns: 1fr;
    }

    .profile-content-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}.profile-left-sticky {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.compact-profile-card {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.compact-profile-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.compact-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
}

.compact-profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
}

.compact-profile-meta {
    flex: 1;
    min-width: 180px;
}

.compact-profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.compact-profile-headline {
    font-size: 17px;
    color: #334155;
    margin-bottom: 4px;
    font-weight: 500;
}

.compact-profile-location {
    font-size: 14px;
    color: #64748b;
}

.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.compact-stat-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.compact-stat-label {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.compact-stat-value {
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
}

@media (max-width: 991px) {
    .profile-left-sticky {
        position: static;
    }
}

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

    .compact-profile-avatar {
        width: 90px;
        height: 90px;
    }

    .compact-profile-name {
        font-size: 22px;
    }
}
.profile-content-topbar {
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 20px 20px 0 0;
}

.profile-content-counts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 13px;
}

.profile-composer-header h5 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.social-content-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.social-content-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.social-content-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.social-content-meta {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.social-content-body {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 14px;
    white-space: normal;
    word-break: break-word;
}

.social-content-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.content-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.content-status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.content-status-badge.pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.content-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.content-status-badge.hidden {
    background: #e5e7eb;
    color: #374151;
}

.rejected-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
}
.tab-composer-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.video-preview-box {
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

.profile-video-preview {
    width: 100%;
    max-height: 340px;
    display: block;
}
.modular-composer {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.modular-composer-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.modular-input,
.modular-select,
.modular-textarea,
.modular-file-input {
    border-radius: 14px;
}

.modular-title {
    flex: 1 1 300px;
}

.modular-select {
    width: 150px;
    flex: 0 0 auto;
}

.modular-textarea {
    flex: 1 1 auto;
    resize: vertical;
    min-height: 54px;
}

.send-arrow-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-arrow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.30);
}

.send-arrow-btn:active {
    transform: translateY(0);
}

.reels-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reel-card {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.reel-video-wrap {
    background: #0f172a;
}

.reel-video-player {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
}

.reel-meta {
    padding: 18px;
}

@media (max-width: 767px) {
    .modular-composer-row {
        flex-direction: column;
    }

    .modular-select,
    .send-arrow-btn {
        width: 100%;
    }

    .send-arrow-btn {
        height: 48px;
    }
}
.messages-tab-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.messages-tab-badge.has-unread {
    background: #ef4444;
    color: #ffffff;
}

.messages-tab-badge.is-read {
    background: #e2e8f0;
    color: #475569;
}

.messages-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.messages-summary-pill.has-unread {
    background: #fee2e2;
    color: #b91c1c;
}

.messages-summary-pill.is-read {
    background: #e2e8f0;
    color: #475569;
}

.messages-panel-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.messages-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.messages-thread-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-thread-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.message-thread-card.is-unread {
    border-color: #fecaca;
    background: #fff7f7;
}

.message-thread-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.message-thread-body {
    flex: 1;
    min-width: 0;
}

.message-thread-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.message-thread-preview {
    color: #475569;
    line-height: 1.5;
}

.reel-card {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.reel-video-wrap {
    background: #0f172a;
}

.reel-video-player {
    width: 100%;
    height: 640px;
    object-fit: cover;
    display: block;
    background: #000;
}

@media (max-width: 767px) {
    .reel-card {
        max-width: 100%;
    }

    .reel-video-player {
        height: 520px;
    }
}
.conversation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conversation-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.conversation-row.has-unread {
    border-color: #fecaca;
    background: #fff7f7;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.conversation-main {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.conversation-preview {
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 12px;
    color: #64748b;
}

.conversation-side {
    flex-shrink: 0;
}

.conversation-unread-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.conversation-read-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

.message-thread-shell {
    overflow: hidden;
    border-radius: 22px;
}

.thread-messages-panel {
    min-height: 420px;
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.thread-bubble-row {
    display: flex;
    margin-bottom: 12px;
}

.thread-bubble-row.mine {
    justify-content: flex-end;
}

.thread-bubble-row.theirs {
    justify-content: flex-start;
}

.thread-bubble {
    max-width: 75%;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.thread-bubble.mine {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.thread-bubble.theirs {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
}

.thread-bubble-text {
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

.thread-bubble-time {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 6px;
}

.thread-compose-bar {
    border-top: 1px solid #e2e8f0;
    padding: 16px;
    background: #ffffff;
}

.thread-compose-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.thread-message-input {
    border-radius: 16px;
    resize: vertical;
}
.message-search-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 10px;
}

.message-search-user-main {
    min-width: 0;
}

.message-search-user-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.message-search-user-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.sidebar-message-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-message-badge.has-unread {
    background: #ef4444;
    color: #ffffff;
}

.sidebar-message-badge.is-read {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
}
.messages-app-shell {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 76vh;
    overflow: hidden;
    border-radius: 24px;
}

.messages-app-left {
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.messages-left-head {
    padding: 18px;
}

.messages-search-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
}

.messages-left-divider {
    height: 1px;
    background: #e2e8f0;
}

.messages-conversation-list-wrap {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.messages-list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.messages-app-right {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.messages-right-empty {
    flex: 1;
    min-height: 76vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.messages-thread-panel {
    display: flex;
    flex-direction: column;
    min-height: 76vh;
}

.messages-thread-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.messages-thread-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.messages-thread-meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.modern-conversation-row {
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
}

.modern-conversation-row.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

.compact-empty-state {
    min-height: 220px;
}

@media (max-width: 991px) {
    .messages-app-shell {
        grid-template-columns: 1fr;
    }

    .messages-app-left {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .messages-search-row {
        grid-template-columns: 1fr;
    }

    .messages-right-empty,
    .messages-thread-panel {
        min-height: 60vh;
    }
}
.browse-profile-card {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.browse-profile-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.browse-profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
    flex-shrink: 0;
}

.browse-profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
}

.browse-profile-meta {
    min-width: 0;
    flex: 1;
}

.browse-profile-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.browse-profile-role {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.browse-profile-headline {
    color: #334155;
    font-weight: 600;
    margin-bottom: 4px;
}

.browse-profile-location {
    font-size: 13px;
    color: #64748b;
}

.browse-profile-bio {
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.browse-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.post-comments-wrap {
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

.post-comments-title {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-comment-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.post-comment-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.post-comment-text {
    color: #334155;
    line-height: 1.6;
}

.post-comment-time {
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

.post-comment-compose {
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-comment-compose .form-control {
    border-radius: 999px;
}

.like-post-btn {
    min-width: 90px;
}
.admin-profile-hero {
    overflow: hidden;
    border-radius: 24px;
}

.admin-profile-cover {
    height: 220px;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    background-size: cover;
    background-position: center;
    position: relative;
}

.admin-profile-cover-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.admin-profile-head {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    padding: 0 24px 24px 24px;
    margin-top: -54px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), #fff 45%);
    flex-wrap: wrap;
}

.admin-profile-avatar-wrap {
    position: relative;
    z-index: 2;
}

.admin-profile-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.admin-profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
}

.admin-profile-meta {
    flex: 1;
    min-width: 240px;
    padding-bottom: 8px;
}

.admin-profile-subline {
    color: #475569;
    margin-top: 4px;
}

.admin-profile-statuses {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.admin-file-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.admin-file-preview {
    background: #f8fafc;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-file-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.admin-file-placeholder {
    font-size: 48px;
}

.admin-file-meta {
    padding: 14px;
    color: #334155;
    line-height: 1.6;
}
.admin-file-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

.admin-file-status-badge.pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-file-status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.admin-file-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.admin-file-reason {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}
.approval-readiness-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.approval-readiness-item {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.approval-readiness-item.is-ready {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.approval-readiness-item.not-ready {
    background: #fff7ed;
    border-color: #fed7aa;
}

.approval-readiness-title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.approval-readiness-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .approval-readiness-grid {
        grid-template-columns: 1fr;
    }
}
.admin-moderation-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    padding: 18px;
}

.admin-moderation-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-moderation-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.admin-moderation-meta {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.admin-moderation-body {
    color: #334155;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
}

.admin-content-media-wrap {
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
}

.admin-content-video {
    width: 100%;
    max-height: 420px;
    display: block;
    background: #000;
}
.match-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    min-height: 30px;
}

.match-state-badge.pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.match-state-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.match-state-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.match-state-badge.neutral {
    background: #e2e8f0;
    color: #475569;
}

.browse-profile-status-row {
    display: flex;
    align-items: center;
}
.review-thread-bubble {
    min-width: 320px;
}

.review-thread-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.review-thread-sender {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.review-thread-actions {
    flex-shrink: 0;
}
/* =========================================
   AFRICAN AUPAIRS CLEAN LANDING PAGE
========================================= */

:root {
    --aa-bg: #f8fafc;
    --aa-bg-soft: #fcfcff;
    --aa-surface: #ffffff;
    --aa-text: #0f172a;
    --aa-text-soft: #475569;
    --aa-text-muted: #64748b;
    --aa-line: #e5e7eb;
    --aa-line-soft: #eef2f7;
    --aa-primary: #7c3aed;
    --aa-primary-soft: #f3e8ff;
    --aa-accent-soft: #fdf2f8;
    --aa-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
    --aa-shadow-md: 0 16px 36px rgba(15, 23, 42, 0.08);
    --aa-radius-lg: 22px;
    --aa-radius-xl: 30px;
}

.aa-ui {
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.05), transparent 22%),
        linear-gradient(180deg, #fcfcff 0%, #f8fafc 46%, #ffffff 100%);
    color: var(--aa-text);
}

/* HERO */

.aa-hero-shell {
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
}

.aa-navbar {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-bottom: 42px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
}

.aa-navbar.is-scrolled {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.aa-brandmark {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
}

.aa-brandmark:hover {
    color: inherit;
}

.aa-brandmark-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.10);
}

.aa-brandmark-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}

.aa-brandmark-subtitle {
    font-size: 12px;
    color: var(--aa-text-muted);
    margin-top: 3px;
}

.aa-navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.aa-navbar-links a {
    color: var(--aa-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.aa-navbar-links a:hover {
    color: var(--aa-primary);
}

.aa-navbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.aa-hero-grid {
    min-height: 72vh;
}

.aa-hero-copy {
    max-width: 620px;
}

.aa-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--aa-primary-soft);
    color: var(--aa-primary);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.aa-eyebrow.dark {
    background: #f1f5f9;
    color: var(--aa-text);
}

.aa-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
    color: var(--aa-text);
    margin-bottom: 18px;
}

.aa-hero-title span {
    color: var(--aa-primary);
}

.aa-hero-text {
    max-width: 560px;
    font-size: 1.04rem;
    line-height: 1.9;
    color: var(--aa-text-soft);
    margin-bottom: 28px;
}

.aa-hero-actions,
.aa-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.aa-btn {
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.aa-btn:hover {
    transform: translateY(-1px);
}

.aa-btn-lg {
    padding: 14px 22px;
    font-size: 16px;
}

.aa-btn-primary {
    border: none;
    background: var(--aa-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.20);
}

.aa-btn-primary:hover,
.aa-btn-primary:focus {
    color: #fff;
    background: #6d28d9;
}

.aa-btn-soft {
    border: 1px solid var(--aa-line);
    background: #fff;
    color: var(--aa-text);
}

.aa-btn-outline {
    border: 1px solid #d8b4fe;
    background: #fff;
    color: var(--aa-primary);
}

.aa-hero-metrics {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.aa-metric-chip {
    background: #fff;
    border: 1px solid var(--aa-line-soft);
    border-radius: 18px;
    padding: 15px 17px;
    box-shadow: var(--aa-shadow-sm);
}

.aa-metric-chip strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.aa-metric-chip span {
    display: block;
    font-size: 13px;
    color: var(--aa-text-muted);
}

/* HERO VISUAL */

.aa-hero-visual {
    position: relative;
    max-width: 540px;
    margin-left: auto;
}

.aa-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.7;
}

.aa-orb-one {
    width: 160px;
    height: 160px;
    background: rgba(124, 58, 237, 0.10);
    top: 0;
    left: 20px;
}

.aa-orb-two {
    width: 160px;
    height: 160px;
    background: rgba(244, 114, 182, 0.08);
    bottom: 10px;
    right: 0;
}

.aa-showcase-card {
    position: relative;
    border-radius: var(--aa-radius-xl);
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--aa-line);
    box-shadow: var(--aa-shadow-md);
    overflow: hidden;
}

.aa-showcase-top {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aa-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--aa-primary-soft);
    color: var(--aa-primary);
    font-size: 12px;
    font-weight: 800;
}

.aa-status-pill.soft {
    background: var(--aa-accent-soft);
    color: #be185d;
}

.aa-showcase-logo-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 14px;
}

.aa-showcase-logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
}

.aa-showcase-content {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.aa-showcase-panel {
    padding: 18px;
    border-radius: 20px;
    background: #fafafa;
    border: 1px solid var(--aa-line-soft);
}

.aa-showcase-panel.accent {
    background: #fcfbff;
}

.aa-showcase-panel-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aa-primary);
    margin-bottom: 10px;
}

.aa-showcase-panel h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.aa-showcase-panel p {
    color: var(--aa-text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.aa-mini-flow {
    display: grid;
    gap: 10px;
}

.aa-mini-flow-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--aa-line-soft);
}

.aa-mini-flow-item span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aa-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.aa-mini-flow-item strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.aa-mini-flow-item small {
    display: block;
    color: var(--aa-text-muted);
    font-size: 12px;
}

.aa-float-note {
    position: absolute;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--aa-line);
    color: var(--aa-primary);
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--aa-shadow-sm);
}

.aa-float-note-a {
    top: 74px;
    right: 2px;
}

.aa-float-note-b {
    left: -12px;
    bottom: 16px;
}

.aa-value-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.aa-value-strip > div {
    text-align: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--aa-line-soft);
    color: var(--aa-text-soft);
    font-size: 14px;
}

.aa-value-strip strong {
    color: #111827;
}

/* SECTIONS */

.aa-section {
    position: relative;
}

.aa-section-soft {
    background: linear-gradient(180deg, #fcfcff, #ffffff);
}

.aa-section-head {
    max-width: 800px;
    margin: 0 auto 10px;
}

.aa-section-kicker {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aa-primary);
    margin-bottom: 10px;
}

.aa-section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--aa-text);
    margin-bottom: 14px;
}

.aa-section-text {
    color: var(--aa-text-muted);
    line-height: 1.85;
    font-size: 1rem;
}

.aa-clean-card {
    height: 100%;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--aa-line-soft);
    box-shadow: var(--aa-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aa-clean-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aa-shadow-md);
}

.aa-step-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aa-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
}

.aa-step-card h5,
.aa-info-card h5,
.aa-split-card h3 {
    color: #111827;
    font-weight: 800;
    margin-bottom: 10px;
}

.aa-step-card p,
.aa-info-card p,
.aa-split-card p {
    color: var(--aa-text-muted);
    line-height: 1.78;
    margin-bottom: 0;
}

.aa-split-card.featured {
    background: #fcfbff;
    border-color: #eadcff;
}

.aa-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--aa-primary-soft);
    color: var(--aa-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.aa-card-tag.featured {
    background: var(--aa-accent-soft);
    color: #be185d;
}

.aa-check-list {
    margin: 18px 0 22px;
    padding-left: 1.1rem;
    color: var(--aa-text-soft);
    line-height: 1.9;
}

.aa-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

/* CTA */

.aa-cta-section {
    padding-bottom: 30px;
}

.aa-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fcfbff);
    border: 1px solid #eadcff;
    box-shadow: var(--aa-shadow-md);
}

.aa-cta-copy {
    max-width: 760px;
}

.aa-cta-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--aa-text);
    margin-bottom: 12px;
}

.aa-cta-copy p {
    color: var(--aa-text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ANIMATION */

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .aa-navbar-links {
        display: none;
    }
}

@media (max-width: 991px) {
    .aa-navbar {
        position: relative;
        top: 0;
        flex-wrap: wrap;
        margin-bottom: 28px;
    }

    .aa-hero-grid {
        min-height: auto;
    }

    .aa-value-strip {
        grid-template-columns: 1fr;
    }

    .aa-float-note-b {
        left: 0;
    }
}

@media (max-width: 767px) {
    .aa-navbar {
        padding: 14px;
        border-radius: 18px;
    }

    .aa-brandmark-logo {
        width: 48px;
        height: 48px;
    }

    .aa-brandmark-title {
        font-size: 18px;
    }

    .aa-brandmark-subtitle {
        font-size: 11px;
    }

    .aa-hero-title {
        font-size: 2.2rem;
    }

    .aa-navbar-actions,
    .aa-hero-actions,
    .aa-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aa-btn,
    .aa-btn-lg {
        width: 100%;
        text-align: center;
    }

    .aa-showcase-card,
    .aa-clean-card,
    .aa-cta-card {
        padding: 20px;
        border-radius: 22px;
    }

    .aa-showcase-logo {
        max-width: 210px;
    }

    .aa-float-note {
        position: static;
        display: inline-flex;
        margin-top: 10px;
        margin-right: 8px;
    }
}
/* --- Hero balance refinement --- */

.aa-hero-grid {
    min-height: 66vh;
    align-items: center;
}

.aa-hero-copy {
    max-width: 590px;
}

.aa-hero-text {
    max-width: 540px;
    margin-bottom: 24px;
}

.aa-hero-metrics {
    gap: 10px;
    max-width: 500px;
}

.aa-metric-chip {
    padding: 13px 15px;
}

.aa-hero-visual {
    max-width: 500px;
}

.aa-showcase-card {
    padding: 18px;
    border-radius: 26px;
}

.aa-showcase-top {
    margin-bottom: 12px;
}

.aa-status-pill {
    padding: 6px 10px;
    font-size: 11px;
}

.aa-showcase-logo-wrap {
    padding: 0 0 10px;
}

.aa-showcase-logo {
    max-width: 200px;
}

.aa-showcase-content {
    gap: 10px;
    margin-bottom: 12px;
}

.aa-showcase-panel {
    padding: 14px 15px;
    border-radius: 18px;
}

.aa-showcase-panel-label {
    margin-bottom: 8px;
    font-size: 11px;
}

.aa-showcase-panel h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.aa-showcase-panel p {
    font-size: 13px;
    line-height: 1.65;
}

.aa-mini-flow {
    gap: 8px;
}

.aa-mini-flow-item {
    padding: 10px 12px;
    border-radius: 14px;
}

.aa-mini-flow-item span {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.aa-mini-flow-item strong {
    font-size: 13px;
}

.aa-mini-flow-item small {
    font-size: 11px;
}

.aa-orb-one {
    width: 130px;
    height: 130px;
}

.aa-orb-two {
    width: 130px;
    height: 130px;
}

@media (max-width: 991px) {
    .aa-hero-grid {
        min-height: auto;
    }

    .aa-hero-visual {
        max-width: 100%;
    }

    .aa-showcase-logo {
        max-width: 190px;
    }
}
/* --- Premium flat refinement --- */

.aa-section {
    padding-top: 8px;
    padding-bottom: 8px;
}

.aa-section-head {
    max-width: 760px;
    margin-bottom: 6px;
}

.aa-section-title {
    margin-bottom: 10px;
}

.aa-section-text {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.aa-clean-card,
.aa-showcase-card,
.aa-cta-card,
.aa-metric-chip,
.aa-value-strip > div {
    box-shadow: none;
}

.aa-clean-card,
.aa-showcase-card,
.aa-cta-card {
    border-color: #edf1f5;
}

.aa-clean-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.aa-showcase-card {
    background: #ffffff;
    border: 1px solid #eceff4;
}

.aa-showcase-panel {
    background: #fbfcfe;
    border: 1px solid #eef2f6;
}

.aa-showcase-panel.accent {
    background: #fcfbff;
}

.aa-metric-chip {
    background: #ffffff;
    border: 1px solid #eef2f6;
}

.aa-icon-box {
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.aa-step-badge {
    box-shadow: none;
}

.aa-btn-primary {
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.14);
}

.aa-btn:hover {
    transform: translateY(-1px);
}

.aa-check-list {
    margin-top: 16px;
    margin-bottom: 20px;
}

.aa-split-card p,
.aa-step-card p,
.aa-info-card p,
.aa-showcase-panel p {
    color: #5b6678;
}

.aa-cta-card {
    background: #ffffff;
    border: 1px solid #ece7f6;
}

.aa-cta-copy {
    max-width: 700px;
}

.aa-hero-shell {
    padding-bottom: 0;
}

.aa-hero-grid {
    padding-bottom: 18px;
}

.aa-orb {
    opacity: 0.45;
    filter: blur(50px);
}

.aa-orb-one {
    width: 110px;
    height: 110px;
}

.aa-orb-two {
    width: 110px;
    height: 110px;
}

@media (max-width: 767px) {
    .aa-section-text {
        max-width: 100%;
    }

    .aa-clean-card:hover {
        transform: none;
        box-shadow: none;
    }
}
/* --- Final landing polish: human hero + mobile menu --- */

.aa-mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--aa-line);
    background: #fff;
    border-radius: 14px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.aa-mobile-toggle span {
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    display: block;
}

.aa-mobile-menu {
    display: none;
    margin-top: -18px;
    margin-bottom: 24px;
}

.aa-mobile-menu.is-open {
    display: block;
}

.aa-mobile-menu-inner {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--aa-line);
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.aa-mobile-menu-inner a:not(.btn) {
    color: var(--aa-text-soft);
    font-weight: 600;
    padding: 6px 2px;
}

.aa-hero-human {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.aa-human-stage {
    position: relative;
}

.aa-human-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eceff4;
    border-radius: 30px;
    padding: 22px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.aa-human-top {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aa-human-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--aa-primary-soft);
    color: var(--aa-primary);
    font-size: 12px;
    font-weight: 800;
}

.aa-human-badge.soft {
    background: var(--aa-accent-soft);
    color: #be185d;
}

.aa-human-people {
    display: grid;
    gap: 14px;
}

.aa-person-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #eef2f6;
    background: #fbfcfe;
}

.aa-person-card.accent {
    background: #fcfbff;
}

.aa-avatar-stack {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.aa-avatar-stack.family {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.aa-avatar-stack.aupair {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.aa-person-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aa-primary);
    margin-bottom: 8px;
}

.aa-person-copy h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #111827;
}

.aa-person-copy p {
    margin: 0;
    color: #5b6678;
    line-height: 1.7;
    font-size: 13px;
}

.aa-connection-line {
    display: flex;
    justify-content: center;
    padding: 2px 0;
}

.aa-connection-line span {
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(219, 39, 119, 0.18));
    border-radius: 999px;
}

.aa-human-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.aa-human-point {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid #eef2f6;
    background: #ffffff;
    text-align: center;
}

.aa-human-point strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 4px;
}

.aa-human-point span {
    display: block;
    font-size: 12px;
    color: var(--aa-text-muted);
    line-height: 1.5;
}

.aa-human-mini {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #eceff4;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.aa-human-mini strong {
    display: block;
    font-size: 13px;
    color: #111827;
    line-height: 1.3;
}

.aa-human-mini small {
    display: block;
    color: var(--aa-text-muted);
    font-size: 11px;
}

.aa-human-mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.aa-human-mini-a {
    top: 74px;
    right: -10px;
}

.aa-human-mini-b {
    left: -12px;
    bottom: 28px;
}

@media (max-width: 1199px) {
    .aa-mobile-toggle {
        display: inline-flex;
    }

    .aa-navbar-actions {
        display: none;
    }
}

@media (max-width: 991px) {
    .aa-human-mini-a,
    .aa-human-mini-b {
        position: static;
        margin-top: 12px;
    }

    .aa-human-stage {
        display: grid;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .aa-mobile-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .aa-person-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .aa-avatar-stack {
        margin: 0 auto;
    }

    .aa-human-points {
        grid-template-columns: 1fr;
    }

    .aa-human-card {
        padding: 18px;
        border-radius: 24px;
    }
}
/* =========================================
   AFRICAN AUPAIRS AUTH PAGES
========================================= */

.aa-auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(219, 39, 119, 0.06), transparent 18%),
        linear-gradient(180deg, #fcfcff 0%, #f8fafc 48%, #ffffff 100%);
}

.aa-auth-side {
    padding: 24px 10px 24px 0;
    max-width: 540px;
}

.aa-auth-side-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.aa-auth-side-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

.aa-auth-side-text {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 24px;
    max-width: 500px;
}

.aa-auth-side-points {
    display: grid;
    gap: 12px;
}

.aa-auth-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid #eceff4;
}

.aa-auth-point span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #7c3aed;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.aa-auth-point strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.aa-auth-point small {
    display: block;
    color: #64748b;
    line-height: 1.6;
    font-size: 12px;
}

.aa-auth-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid #e8ecf3;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.aa-auth-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.aa-auth-kicker {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
}

.aa-auth-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.aa-auth-subtitle {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 0;
}

.aa-auth-form {
    display: block;
}

.aa-form-group {
    margin-bottom: 18px;
}

.aa-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.aa-form-control {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    background: #fff;
    padding: 12px 14px;
    box-shadow: none;
}

.aa-form-control:focus {
    border-color: #c4b5fd;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.10);
}

.aa-auth-submit {
    min-height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aa-auth-submit:hover,
.aa-auth-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(124, 58, 237, 0.24);
}

.aa-auth-submit:disabled {
    opacity: 0.8;
    transform: none;
    cursor: not-allowed;
}

.aa-auth-message {
    min-height: 24px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #64748b;
}

.aa-auth-message-success {
    color: #166534;
}

.aa-auth-message-error {
    color: #b91c1c;
}

.aa-auth-footer {
    color: #64748b;
    font-size: 14px;
}

.aa-auth-footer a {
    margin-left: 6px;
    font-weight: 700;
    color: #7c3aed;
}

.aa-auth-footer a:hover {
    color: #6d28d9;
}

@media (max-width: 991px) {
    .aa-auth-card {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .aa-auth-card {
        padding: 20px;
        border-radius: 22px;
    }

    .aa-auth-title {
        font-size: 1.75rem;
    }

    .aa-auth-logo {
        width: 76px;
    }
}
/* =========================================
   AFRICAN AUPAIRS REGISTRATION REVAMP
========================================= */

.aa-register-card {
    padding: 30px;
}

.aa-register-section {
    padding: 18px 0;
    border-top: 1px solid #eef2f7;
}

.aa-register-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.aa-register-section-head {
    margin-bottom: 14px;
}

.aa-register-section-head h5 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.aa-register-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.aa-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.aa-role-card {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    transition: all 0.18s ease;
    box-shadow: none;
}

.aa-role-card:hover {
    border-color: #c4b5fd;
    background: #fcfbff;
    transform: translateY(-1px);
}

.aa-role-card.is-active {
    border-color: #7c3aed;
    background: #f8f4ff;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.10);
}

.aa-role-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.aa-role-icon.family {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.aa-role-content strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-role-content span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.aa-password-wrap {
    position: relative;
}

.aa-password-input {
    padding-right: 74px;
}

.aa-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 10px;
}

.aa-password-toggle:hover {
    background: #f3e8ff;
}

.aa-field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.aa-field-hint-success {
    color: #166534;
}

.aa-field-hint-error {
    color: #b91c1c;
}

@media (max-width: 767px) {
    .aa-register-card {
        padding: 20px;
    }

    .aa-role-grid {
        grid-template-columns: 1fr;
    }

    .aa-role-card {
        border-radius: 18px;
    }
}
/* =========================================
   GROWING REGISTRATION WIZARD
========================================= */

.aa-register-wizard-card {
    padding: 30px;
}

.aa-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.aa-stepper-item {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    padding: 12px 10px;
    text-align: center;
}

.aa-stepper-item span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-stepper-item small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.aa-stepper-item.is-active {
    border-color: #c4b5fd;
    background: #fcfbff;
}

.aa-stepper-item.is-active span,
.aa-stepper-item.is-complete span {
    background: #7c3aed;
    color: #fff;
}

.aa-stepper-item.is-active small {
    color: #7c3aed;
}

.aa-form-step {
    display: none;
}

.aa-form-step.is-active {
    display: block;
}

.aa-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.aa-role-card {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    transition: all 0.18s ease;
}

.aa-role-card:hover {
    border-color: #c4b5fd;
    background: #fcfbff;
    transform: translateY(-1px);
}

.aa-role-card.is-active {
    border-color: #7c3aed;
    background: #f8f4ff;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.10);
}

.aa-role-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.aa-role-icon.family {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.aa-role-content strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-role-content span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.aa-register-section-head {
    margin-bottom: 14px;
}

.aa-register-section-head h5 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.aa-register-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.aa-role-panel {
    padding: 18px;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    background: #fcfcff;
}

.aa-password-wrap {
    position: relative;
}

.aa-password-input {
    padding-right: 74px;
}

.aa-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 10px;
}

.aa-password-toggle:hover {
    background: #f3e8ff;
}

.aa-review-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e7edf4;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

.aa-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.aa-field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.aa-field-hint-success {
    color: #166534;
}

.aa-field-hint-error {
    color: #b91c1c;
}

@media (max-width: 767px) {
    .aa-register-wizard-card {
        padding: 20px;
    }

    .aa-stepper {
        grid-template-columns: 1fr 1fr;
    }

    .aa-role-grid {
        grid-template-columns: 1fr;
    }

    .aa-wizard-actions > * {
        width: 100%;
    }
}
/* =========================================
   PROFILE VIEW REVAMP
========================================= */

.profile-view-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-hero-modern {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 22%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e8ecf3;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.profile-hero-modern-body {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 28px;
    flex-wrap: wrap;
}

.profile-hero-avatar {
    width: 118px;
    height: 118px;
    border-radius: 28px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
    flex-shrink: 0;
}

.profile-hero-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
}

.profile-hero-main {
    flex: 1;
    min-width: 260px;
}

.profile-hero-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-hero-name {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.profile-hero-headline {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 8px;
}

.profile-hero-location {
    color: #64748b;
    font-size: 14px;
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.profile-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.profile-summary-card {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e8ecf3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.profile-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 800;
}

.profile-summary-value {
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
}

.profile-summary-sub {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}

.profile-section-modern {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e8ecf3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.profile-section-modern-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.profile-section-modern-head h4,
.profile-section-modern-head h5 {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.profile-section-modern-body {
    padding: 22px;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-detail-item {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.profile-detail-item strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    margin-bottom: 6px;
}

.profile-detail-item span,
.profile-detail-item div {
    color: #475569;
    line-height: 1.7;
}

.profile-about-text {
    color: #334155;
    line-height: 1.9;
    font-size: 15px;
}

.profile-tabs-modern {
    gap: 8px;
    border-bottom: 1px solid #eef2f7;
    padding: 0 22px 18px;
    background: #fff;
}

.profile-tabs-modern .nav-link {
    border-radius: 999px;
    font-weight: 700;
    color: #475569;
    padding: 10px 16px;
}

.profile-tabs-modern .nav-link.active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

.profile-subtle-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

@media (max-width: 991px) {
    .profile-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .profile-hero-modern-body {
        padding: 20px;
    }

    .profile-summary-grid,
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-section-modern-body,
    .profile-section-modern-head,
    .profile-tabs-modern {
        padding-left: 18px;
        padding-right: 18px;
    }

    .profile-hero-actions {
        width: 100%;
    }

    .profile-hero-actions .btn {
        width: 100%;
    }
}
/* =========================================
   USER TOP NAV + SPLIT LAYOUT
========================================= */

.aa-user-topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 14px 20px 0;
    background: linear-gradient(180deg, #f5f7fb 0%, rgba(245,247,251,0.92) 72%, rgba(245,247,251,0) 100%);
    backdrop-filter: blur(8px);
}

.aa-user-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    border: 1px solid #e8ecf3;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    flex-wrap: wrap;
}

.aa-user-topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    min-width: 0;
}

.aa-user-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.aa-user-brand:hover {
    color: inherit;
}

.aa-user-brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.10);
}

.aa-user-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aa-user-brand-copy strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.aa-user-brand-copy span {
    color: #64748b;
    font-size: 12px;
}

.aa-user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-user-nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.aa-user-nav a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.aa-user-nav a.is-active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

.aa-user-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.aa-user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aa-user-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.aa-user-mini-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aa-user-mini-copy strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.aa-user-mini-copy span {
    color: #64748b;
    font-size: 11px;
}

.aa-user-page {
    padding: 20px;
}

.aa-user-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.aa-user-page-head h1,
.aa-user-page-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.08;
}

.aa-user-page-head p {
    margin: 0;
    color: #64748b;
}

.aa-split-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.aa-split-left {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-split-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-panel {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.aa-panel-head {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.aa-panel-head h4,
.aa-panel-head h5 {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.aa-panel-body {
    padding: 20px;
}

.aa-profile-card {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.aa-profile-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.aa-profile-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.aa-profile-card-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
}

.aa-profile-card-meta {
    flex: 1;
    min-width: 180px;
}

.aa-profile-card-name {
    font-size: 28px;
    line-height: 1.06;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.aa-profile-card-headline {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
}

.aa-profile-card-location {
    color: #64748b;
    font-size: 14px;
}

.aa-inline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.aa-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.aa-stat-box {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aa-stat-box-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.aa-stat-box-value {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
}

.aa-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aa-detail-card {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aa-detail-card strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 13px;
}

.aa-detail-card div {
    color: #475569;
    line-height: 1.7;
}

.aa-scroll-panel {
    max-height: 72vh;
    overflow-y: auto;
}

.aa-tabs-clean {
    gap: 8px;
    padding: 0 20px 18px;
    border-bottom: 1px solid #eef2f7;
}

.aa-tabs-clean .nav-link {
    border-radius: 999px;
    font-weight: 700;
    color: #475569;
    padding: 10px 16px;
}

.aa-tabs-clean .nav-link.active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

@media (max-width: 1199px) {
    .aa-split-shell {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .aa-user-topbar-wrap {
        padding: 12px 14px 0;
    }

    .aa-user-page {
        padding: 16px;
    }

    .aa-split-shell {
        grid-template-columns: 1fr;
    }

    .aa-split-left {
        position: static;
    }

    .aa-scroll-panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .aa-user-nav {
        gap: 6px;
    }

    .aa-user-nav a {
        padding: 9px 12px;
        font-size: 13px;
    }

    .aa-detail-grid,
    .aa-stat-grid {
        grid-template-columns: 1fr;
    }

    .aa-panel-body,
    .aa-panel-head {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* =========================================
   THREE-COLUMN PROFILE LAYOUT
========================================= */

.aa-three-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.aa-three-left,
.aa-three-center,
.aa-three-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-three-left,
.aa-three-right {
    position: sticky;
    top: 108px;
}

.aa-center-scroll {
    max-height: 78vh;
    overflow-y: auto;
    padding-right: 4px;
}

.aa-compact-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aa-overview-mini {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aa-overview-mini span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-overview-mini strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    word-break: break-word;
}

.aa-panel-tight .aa-panel-head {
    padding: 16px 18px;
}

.aa-panel-tight .aa-panel-body {
    padding: 16px 18px;
}

.aa-content-panel .aa-panel-head {
    padding-bottom: 14px;
}

.aa-content-panel .aa-tabs-clean {
    padding: 0 18px 16px;
}

.aa-content-panel .tab-content {
    padding: 16px 18px 18px;
}

@media (max-width: 1399px) {
    .aa-three-shell {
        grid-template-columns: 280px minmax(0, 1fr) 260px;
    }
}

@media (max-width: 1199px) {
    .aa-three-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .aa-three-right {
        position: static;
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .aa-three-shell {
        grid-template-columns: 1fr;
    }

    .aa-three-left,
    .aa-three-right {
        position: static;
    }

    .aa-center-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}
/* --- Compact profile overview --- */

.aa-panel-body-compact {
    padding: 16px 18px;
}

.aa-overview-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.aa-overview-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    min-width: 0;
}

.aa-overview-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-overview-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    word-break: break-word;
}

.aa-overview-item-wide {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .aa-overview-compact-grid {
        grid-template-columns: 1fr;
    }
}
/* --- smoother center content scrolling --- */

.aa-center-scroll {
    scrollbar-width: thin;
}

.aa-center-scroll::-webkit-scrollbar {
    width: 8px;
}

.aa-center-scroll::-webkit-scrollbar-thumb {
    background: #dbe3ee;
    border-radius: 999px;
}
/* --- public profile action spacing --- */

.aa-profile-card .match-state-badge {
    justify-content: center;
    min-height: 38px;
}
/* =========================================
   BROWSE PROFILES SPLIT VIEW
========================================= */

.aa-browse-shell .aa-three-left,
.aa-browse-shell .aa-three-right {
    top: 108px;
}

.aa-browse-list-wrap {
    max-height: 70vh;
    overflow-y: auto;
}

.aa-browse-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aa-browse-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: all 0.18s ease;
    color: inherit;
}

.aa-browse-list-item:hover {
    background: #fcfbff;
    border-color: #d8ccff;
    color: inherit;
}

.aa-browse-list-item.is-selected {
    background: #f8f4ff;
    border-color: #c4b5fd;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.aa-browse-list-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.aa-browse-list-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
}

.aa-browse-list-main {
    min-width: 0;
}

.aa-browse-list-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.aa-browse-list-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .aa-browse-list-wrap {
        max-height: none;
        overflow: visible;
    }
}
/* =========================================
   MATCHES SPLIT VIEW
========================================= */

.aa-matches-shell .aa-three-left,
.aa-matches-shell .aa-three-right {
    top: 108px;
}

.aa-matches-list-wrap {
    max-height: 72vh;
    overflow-y: auto;
}

.aa-matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aa-match-list-item {
    width: 100%;
    text-align: left;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: all 0.18s ease;
}

.aa-match-list-item:hover {
    background: #fcfbff;
    border-color: #d8ccff;
}

.aa-match-list-item.is-selected {
    background: #f8f4ff;
    border-color: #c4b5fd;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.aa-match-list-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.aa-match-list-top strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.aa-match-list-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.aa-match-detail-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aa-match-detail-name {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 900;
}

.aa-match-detail-meta {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.aa-match-block {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aa-match-block.is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.aa-match-block span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-match-block strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.aa-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 991px) {
    .aa-matches-list-wrap {
        max-height: none;
        overflow: visible;
    }

    .aa-match-actions > * {
        width: 100%;
    }
}
/* =========================================
   DASHBOARD ACTIVITY VIEW
========================================= */

.aa-dashboard-shell .aa-three-left,
.aa-dashboard-shell .aa-three-right {
    top: 108px;
}

.aa-stat-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aa-stat-box-value-text {
    font-size: 16px;
    line-height: 1.4;
}

.aa-quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aa-quick-link-card {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: inherit;
    transition: all 0.18s ease;
}

.aa-quick-link-card:hover {
    background: #fcfbff;
    border-color: #d8ccff;
    color: inherit;
}

.aa-quick-link-card strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.aa-quick-link-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.aa-dashboard-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aa-activity-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aa-activity-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.aa-activity-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.aa-activity-text {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
}

.aa-activity-time {
    color: #64748b;
    font-size: 12px;
}

.aa-next-step-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfbff, #ffffff);
    border: 1px solid #eadcff;
}

.aa-next-step-card strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.aa-next-step-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 14px;
}

@media (max-width: 1199px) {
    .aa-stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .aa-stat-grid-4 {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   USER MESSAGES REVAMP
========================================= */

.aa-messages-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.aa-messages-sidebar {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-messages-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-messages-list-wrap {
    max-height: 62vh;
    overflow-y: auto;
}

.aa-thread-empty {
    min-height: 72vh;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e8ecf3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 32px;
}

.aa-thread-panel {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
}

.aa-thread-panel-single {
    min-height: 76vh;
    display: flex;
    flex-direction: column;
}

.aa-thread-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #fafcff);
}

.aa-thread-name {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.aa-thread-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.aa-thread-messages {
    flex: 1;
    padding: 18px;
    background: linear-gradient(180deg, #fcfcff, #f8fafc);
}

.aa-thread-messages-single {
    min-height: 62vh;
}

.aa-thread-compose {
    padding: 16px 18px;
    border-top: 1px solid #eef2f7;
    background: #ffffff;
}

.aa-conversation-row {
    border-radius: 18px;
    border: 1px solid #eef2f7;
    background: #f8fafc;
    padding: 14px;
    transition: all 0.18s ease;
}

.aa-conversation-row:hover {
    background: #fcfbff;
    border-color: #d8ccff;
}

.aa-conversation-row.is-active {
    background: #f8f4ff;
    border-color: #c4b5fd;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.aa-conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    flex-shrink: 0;
}

.aa-thread-single-wrap {
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .aa-messages-shell {
        grid-template-columns: 1fr;
    }

    .aa-messages-sidebar {
        position: static;
    }

    .aa-messages-list-wrap {
        max-height: none;
        overflow: visible;
    }

    .aa-thread-empty,
    .aa-thread-panel,
    .aa-thread-panel-single {
        min-height: auto;
    }
}
/* =========================================
   PROFILE EDIT REVAMP
========================================= */

.aa-edit-shell .aa-three-left,
.aa-edit-shell .aa-three-right {
    top: 108px;
}

.aa-edit-center-panel {
    min-height: 76vh;
}

.aa-edit-tab-wrap {
    padding: 18px;
}

.aa-edit-tab {
    display: none;
}

.aa-edit-tab.is-active {
    display: block;
}

.aa-edit-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aa-edit-nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e8ecf3;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    transition: all 0.18s ease;
}

.aa-edit-nav-btn:hover {
    border-color: #d8ccff;
    background: #fcfbff;
}

.aa-edit-nav-btn.is-active {
    background: #f8f4ff;
    border-color: #c4b5fd;
    color: #6d28d9;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.aa-edit-section-head {
    margin-bottom: 16px;
}

.aa-edit-section-head h5 {
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 800;
}

.aa-edit-section-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.aa-progress-bar-mini {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.aa-progress-bar-mini-fill {
    height: 100%;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 999px;
}

.aa-progress-meta strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.aa-progress-meta span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .aa-edit-center-panel {
        min-height: auto;
    }
}
/* =========================================
   USER MESSAGES - 3 COLUMN OPTIMIZATION
========================================= */

.aa-messages-shell-3col {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.aa-messages-shell-3col .aa-messages-sidebar,
.aa-messages-shell-3col .aa-messages-rail {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aa-thread-panel-focused {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
}

.aa-thread-stage {
    flex: 1;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, #fcfcff, #f8fafc);
    padding: 0 18px;
}

.aa-thread-messages-focused {
    width: 100%;
    max-width: 760px;
    min-height: 420px;
    max-height: 62vh;
    margin: 0 auto;
    padding: 20px 8px;
    background: transparent;
}

.aa-thread-messages-focused .thread-bubble {
    max-width: 68%;
}

.aa-messages-rail {
    min-width: 0;
}

@media (max-width: 1399px) {
    .aa-messages-shell-3col {
        grid-template-columns: 300px minmax(0, 1fr) 250px;
    }

    .aa-thread-messages-focused {
        max-width: 680px;
    }
}

@media (max-width: 1199px) {
    .aa-messages-shell-3col {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .aa-messages-shell-3col .aa-messages-rail {
        position: static;
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .aa-messages-shell-3col {
        grid-template-columns: 1fr;
    }

    .aa-messages-shell-3col .aa-messages-sidebar,
    .aa-messages-shell-3col .aa-messages-rail {
        position: static;
    }

    .aa-thread-messages-focused {
        max-width: 100%;
        max-height: none;
        padding: 18px 0;
    }

    .aa-thread-messages-focused .thread-bubble {
        max-width: 82%;
    }
}
/* =========================================
   USER MOBILE UX ENHANCEMENT
========================================= */

.aa-user-nav-desktop {
    display: flex;
}

.aa-user-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #e8ecf3;
    background: #fff;
    border-radius: 14px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.aa-user-mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
    display: block;
}

.aa-user-mobile-menu {
    display: none;
    margin-top: 10px;
}

.aa-user-mobile-menu.is-open {
    display: block;
}

.aa-user-mobile-menu-inner {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.97);
    border: 1px solid #e8ecf3;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.aa-user-mobile-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.aa-user-mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.aa-user-mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-weight: 700;
}

.aa-user-mobile-nav a.is-active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 991px) {
    .aa-user-page {
        padding: 14px;
    }

    .aa-user-page-head {
        margin-bottom: 14px;
        gap: 10px;
    }

    .aa-user-page-head h1,
    .aa-user-page-head h2 {
        font-size: 32px;
        margin-bottom: 4px;
    }

    .aa-user-page-head p {
        font-size: 14px;
        line-height: 1.6;
    }

    .aa-user-topbar-wrap {
        padding: 10px 12px 0;
    }

    .aa-user-topbar {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .aa-user-nav-desktop,
    .aa-user-mini-desktop,
    .aa-logout-desktop {
        display: none;
    }

    .aa-user-mobile-toggle {
        display: inline-flex;
    }

    .aa-user-brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .aa-user-brand-copy strong {
        font-size: 14px;
    }

    .aa-user-brand-copy span {
        font-size: 11px;
    }

    .aa-user-topbar-left,
    .aa-user-topbar-right {
        gap: 12px;
    }

    .aa-panel {
        border-radius: 20px;
    }

    .aa-panel-head {
        padding: 14px 16px;
    }

    .aa-panel-body {
        padding: 16px;
    }

    .aa-profile-card-top {
        gap: 14px;
    }

    .aa-profile-card-avatar {
        width: 82px;
        height: 82px;
        border-radius: 20px;
    }

    .aa-profile-card-name {
        font-size: 22px;
    }

    .aa-profile-card-headline {
        font-size: 14px;
        line-height: 1.6;
    }

    .aa-inline-chips {
        gap: 6px;
    }

    .aa-inline-chips > * {
        font-size: 11px;
    }

    .aa-three-shell,
    .aa-messages-shell,
    .aa-messages-shell-3col,
    .aa-split-shell {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .aa-three-left,
    .aa-three-right,
    .aa-split-left,
    .aa-messages-sidebar,
    .aa-messages-rail {
        position: static !important;
        top: auto !important;
    }

    .aa-three-center,
    .aa-split-right,
    .aa-messages-main {
        order: 1;
    }

    .aa-three-left,
    .aa-split-left {
        order: 2;
    }

    .aa-three-right,
    .aa-messages-rail {
        order: 3;
    }

    .aa-center-scroll,
    .aa-messages-list-wrap,
    .aa-browse-list-wrap,
    .aa-matches-list-wrap,
    .aa-scroll-panel {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .aa-stat-grid,
    .aa-stat-grid-4,
    .aa-detail-grid,
    .aa-overview-compact-grid {
        grid-template-columns: 1fr !important;
    }

    .aa-tabs-clean,
    .profile-tabs-modern {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        gap: 8px;
        scrollbar-width: none;
    }

    .aa-tabs-clean::-webkit-scrollbar,
    .profile-tabs-modern::-webkit-scrollbar {
        display: none;
    }

    .aa-tabs-clean .nav-link,
    .profile-tabs-modern .nav-link {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 13px;
    }

    .aa-edit-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .aa-edit-nav-btn {
        text-align: center;
        font-size: 13px;
        padding: 11px 12px;
    }

    .aa-thread-empty,
    .aa-thread-panel,
    .aa-thread-panel-single {
        min-height: auto;
    }

    .aa-thread-header {
        padding: 14px 16px;
    }

    .aa-thread-name {
        font-size: 16px;
    }

    .aa-thread-meta {
        font-size: 12px;
    }

    .aa-thread-compose {
        padding: 12px 14px;
    }

    .aa-thread-stage {
        padding: 0 12px;
    }

    .aa-thread-messages,
    .aa-thread-messages-focused,
    .aa-thread-messages-single {
        padding: 14px 0;
        max-width: 100% !important;
        max-height: none !important;
        min-height: 320px;
    }

    .aa-thread-messages .thread-bubble,
    .aa-thread-messages-focused .thread-bubble,
    .aa-thread-messages-single .thread-bubble {
        max-width: 86% !important;
    }

    .thread-compose-row {
        gap: 10px;
    }

    .thread-message-input {
        min-height: 48px;
        font-size: 15px;
        border-radius: 16px;
    }

    .send-arrow-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .aa-conversation-row,
    .aa-match-list-item,
    .aa-browse-list-item,
    .aa-quick-link-card,
    .aa-overview-mini,
    .aa-detail-card,
    .aa-stat-box,
    .aa-overview-item {
        border-radius: 16px;
    }

    .aa-browse-list-avatar {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .aa-match-actions,
    .profile-hero-actions,
    .aa-hero-actions,
    .aa-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .aa-match-actions > *,
    .profile-hero-actions .btn,
    .aa-hero-actions .btn,
    .aa-cta-actions .btn {
        width: 100%;
    }

    .aa-content-panel .tab-content,
    .aa-edit-tab-wrap {
        padding: 14px;
    }

    .aa-panel-tight .aa-panel-body,
    .aa-panel-tight .aa-panel-head {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 575px) {
    .aa-user-page {
        padding: 12px;
    }

    .aa-user-page-head h1,
    .aa-user-page-head h2 {
        font-size: 28px;
    }

    .aa-user-topbar {
        padding: 10px 12px;
    }

    .aa-user-brand-copy strong {
        font-size: 13px;
    }

    .aa-user-brand-copy span {
        font-size: 10px;
    }

    .aa-panel {
        border-radius: 18px;
    }

    .aa-panel-head,
    .aa-panel-body,
    .aa-content-panel .tab-content,
    .aa-edit-tab-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .aa-profile-card-name {
        font-size: 20px;
    }

    .aa-profile-card-avatar {
        width: 74px;
        height: 74px;
        border-radius: 18px;
    }

    .aa-edit-nav {
        grid-template-columns: 1fr;
    }

    .messages-search-row {
        grid-template-columns: 1fr;
    }

    .thread-compose-row {
        align-items: flex-end;
    }

    .thread-message-input {
        font-size: 14px;
    }

    .aa-thread-messages .thread-bubble,
    .aa-thread-messages-focused .thread-bubble,
    .aa-thread-messages-single .thread-bubble {
        max-width: 92% !important;
    }
}
/* =========================================
   MESSAGES MOBILE-FIRST UX
========================================= */

.aa-messages-mobile-topbar {
    display: none;
    gap: 10px;
    margin-bottom: 14px;
}

.aa-mobile-pane-btn {
    flex: 1 1 0;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 700;
}

.aa-mobile-pane-btn.is-active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-color: transparent;
    color: #fff;
}

.aa-thread-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aa-thread-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.aa-thread-back-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e8ecf3;
    background: #fff;
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.aa-thread-compose-mobile {
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.aa-thread-compose-row-mobile {
    align-items: flex-end;
}

.aa-messages-sidebar.is-hidden-mobile,
.aa-messages-main.is-hidden-mobile,
.aa-messages-rail.is-hidden-mobile {
    display: none !important;
}

@media (max-width: 991px) {
    .aa-messages-page-head {
        margin-bottom: 10px;
    }

    .aa-messages-mobile-topbar {
        display: flex;
    }

    .aa-messages-mobile-app {
        display: block;
    }

    .aa-messages-sidebar,
    .aa-messages-main,
    .aa-messages-rail {
        width: 100%;
    }

    .aa-messages-sidebar .aa-panel,
    .aa-messages-main .aa-panel,
    .aa-messages-rail .aa-panel {
        margin-bottom: 14px;
    }

    .aa-thread-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .aa-thread-panel-focused {
        min-height: calc(100vh - 220px);
    }

    .aa-thread-stage {
        padding: 0 10px;
    }

    .aa-thread-messages-focused {
        min-height: calc(100vh - 360px);
        padding: 12px 0;
    }

    .aa-thread-messages-focused .thread-bubble {
        max-width: 88% !important;
    }

    .aa-thread-compose-mobile {
        padding: 12px;
        border-top: 1px solid #eef2f7;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(8px);
    }

    .aa-thread-compose-row-mobile .thread-message-input {
        min-height: 46px;
        max-height: 120px;
        resize: none;
    }

    .aa-thread-compose-row-mobile .send-arrow-btn {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .aa-messages-rail {
        margin-top: 0;
    }

    .aa-messages-list-wrap {
        max-height: none !important;
    }
}

@media (max-width: 575px) {
    .aa-messages-mobile-topbar {
        gap: 8px;
    }

    .aa-mobile-pane-btn {
        min-height: 42px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .aa-thread-header-left {
        gap: 10px;
    }

    .aa-thread-back-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .aa-thread-messages-focused .thread-bubble {
        max-width: 92% !important;
    }
}
/* =========================================
   DASHBOARD MOBILE COMPACT REFINEMENT
========================================= */

@media (max-width: 991px) {
    .aa-dashboard-shell .aa-three-left,
    .aa-dashboard-shell .aa-three-right {
        order: 2;
    }

    .aa-dashboard-shell .aa-three-center {
        order: 1;
    }

    .aa-dashboard-shell .aa-stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .aa-dashboard-shell .aa-stat-box {
        padding: 14px;
        min-height: 96px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .aa-dashboard-shell .aa-stat-box-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .aa-dashboard-shell .aa-stat-box-value {
        font-size: 18px;
        line-height: 1.15;
    }

    .aa-dashboard-shell .aa-stat-box-value-text {
        font-size: 14px;
        line-height: 1.35;
    }

    .aa-dashboard-shell .aa-panel-head {
        padding: 14px 16px;
    }

    .aa-dashboard-shell .aa-panel-body {
        padding: 16px;
    }

    .aa-dashboard-shell .aa-activity-card {
        padding: 14px 15px;
    }

    .aa-dashboard-shell .aa-user-page-head {
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {
    .aa-dashboard-shell .aa-stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .aa-dashboard-shell .aa-stat-box {
        padding: 12px;
        min-height: 88px;
        border-radius: 14px;
    }

    .aa-dashboard-shell .aa-stat-box-label {
        font-size: 10px;
    }

    .aa-dashboard-shell .aa-stat-box-value {
        font-size: 16px;
    }

    .aa-dashboard-shell .aa-stat-box-value-text {
        font-size: 13px;
    }
}
/* =========================================
   GLOBAL COLLAPSIBLE PANELS
========================================= */

.aa-panel-head {
    position: relative;
}

.aa-panel-collapse-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid #e8ecf3;
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.aa-panel-collapse-btn:hover {
    background: #f8f4ff;
    border-color: #c4b5fd;
    color: #7c3aed;
}

.aa-panel.is-collapsed > :not(.aa-panel-head) {
    display: none !important;
}

.aa-panel.is-collapsed {
    overflow: hidden;
}

@media (max-width: 575px) {
    .aa-panel-collapse-btn {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 18px;
    }
}
/* --- Keep collapse buttons aligned right consistently --- */

.aa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aa-panel-head > h4,
.aa-panel-head > h5,
.aa-panel-head > strong {
    margin: 0;
    min-width: 0;
}

.aa-panel-head > :not(.aa-panel-collapse-btn):first-child {
    min-width: 0;
}

.aa-panel-collapse-btn {
    margin-left: auto;
    flex: 0 0 auto;
}

/* If the header contains title + other badges/actions, keep them grouped cleanly */
.aa-panel-head .profile-content-counts,
.aa-panel-head .mini-badge,
.aa-panel-head .match-state-badge {
    flex-shrink: 0;
}

/* Mobile: prevent wrapping from pushing the +/- down */
@media (max-width: 575px) {
    .aa-panel-head {
        flex-wrap: nowrap;
    }

    .aa-panel-head h4,
    .aa-panel-head h5 {
        font-size: 18px;
    }
}
/* =========================================
   ALWAYS VISIBLE MESSAGE COMPOSE BAR
========================================= */

.aa-thread-panel,
.aa-thread-panel-focused,
.aa-thread-panel-single {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aa-thread-stage {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.aa-thread-messages,
.aa-thread-messages-focused,
.aa-thread-messages-single,
.thread-messages-panel {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 90px;
}

.aa-thread-compose,
.aa-thread-compose-mobile,
.thread-compose-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #eef2f7;
    backdrop-filter: blur(10px);
}

.thread-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.thread-message-input {
    resize: none;
    max-height: 120px;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .aa-thread-panel-focused,
    .aa-thread-panel,
    .aa-thread-panel-single {
        height: calc(100vh - 185px);
        min-height: 520px;
    }

    .aa-thread-stage {
        min-height: 0;
    }

    .aa-thread-messages,
    .aa-thread-messages-focused,
    .aa-thread-messages-single,
    .thread-messages-panel {
        max-height: none !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .aa-thread-compose,
    .aa-thread-compose-mobile,
    .thread-compose-bar {
        padding: 12px;
    }
}

@media (max-width: 575px) {
    .aa-thread-panel-focused,
    .aa-thread-panel,
    .aa-thread-panel-single {
        height: calc(100vh - 165px);
        min-height: 500px;
    }

    .thread-message-input {
        min-height: 46px;
    }
}
/* =========================================
   MOBILE CHAT COMPOSER FIXED TO SCREEN
========================================= */

@media (max-width: 991px) {
    body.aa-chat-open {
        overflow: hidden;
    }

    body.aa-chat-open .aa-user-page {
        height: 100vh;
        overflow: hidden;
    }

    body.aa-chat-open .aa-messages-page-head,
    body.aa-chat-open .aa-messages-mobile-topbar,
    body.aa-chat-open .aa-messages-rail {
        display: none !important;
    }

    body.aa-chat-open .aa-messages-mobile-app {
        height: calc(100vh - 110px);
        overflow: hidden;
    }

    body.aa-chat-open .aa-messages-main {
        height: 100%;
        overflow: hidden;
    }

    body.aa-chat-open .aa-thread-panel-focused {
        height: 100%;
        min-height: 0;
        display: flex !important;
        flex-direction: column;
    }

    body.aa-chat-open .aa-thread-stage {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    body.aa-chat-open .aa-thread-messages-focused {
        height: 100%;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding-bottom: 18px;
    }

    body.aa-chat-open .aa-thread-compose-mobile,
    body.aa-chat-open .aa-thread-compose {
        flex-shrink: 0;
        position: relative;
        bottom: auto;
        padding: 10px 12px;
        background: #fff;
    }
}
/* =========================================
   TRUE MOBILE FIXED CHAT COMPOSER
========================================= */

@media (max-width: 991px) {
    body.aa-chat-open {
        overflow: hidden;
    }

    body.aa-chat-open .aa-user-page {
        height: 100dvh;
        overflow: hidden;
        padding-bottom: 0;
    }

    body.aa-chat-open .aa-user-topbar-wrap {
        position: sticky;
        top: 0;
        z-index: 140;
    }

    body.aa-chat-open .aa-messages-page-head,
    body.aa-chat-open .aa-messages-mobile-topbar,
    body.aa-chat-open .aa-messages-rail {
        display: none !important;
    }

    body.aa-chat-open .aa-messages-mobile-app {
        height: calc(100dvh - 86px);
        overflow: hidden;
    }

    body.aa-chat-open .aa-messages-main {
        height: 100%;
        overflow: hidden;
    }

    body.aa-chat-open .aa-thread-panel-focused {
        height: 100%;
        min-height: 0;
        display: flex !important;
        flex-direction: column;
        border-radius: 0;
    }

    body.aa-chat-open .aa-thread-header-mobile {
        flex-shrink: 0;
    }

    body.aa-chat-open .aa-thread-stage {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        padding: 0 10px;
    }

    body.aa-chat-open .aa-thread-messages-focused,
    body.aa-chat-open .thread-messages-panel {
        height: 100%;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding-bottom: 110px;
        -webkit-overflow-scrolling: touch;
    }

    body.aa-chat-open .aa-thread-compose-mobile,
    body.aa-chat-open .aa-thread-compose {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #eef2f7;
        backdrop-filter: blur(10px);
    }

    body.aa-chat-open #threadMessageForm {
        max-width: 820px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    body.aa-chat-open .aa-messages-mobile-app {
        height: calc(100dvh - 78px);
    }

    body.aa-chat-open .aa-thread-messages-focused,
    body.aa-chat-open .thread-messages-panel {
        padding-bottom: 104px;
    }
}
/* =========================================
   MESSENGER-LIKE MOBILE MESSAGES
========================================= */

.aa-mobile-inbox-head {
    display: none;
}

.aa-mobile-inbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.aa-mobile-inbox-title {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    color: #0f172a;
}

.aa-mobile-inbox-actions,
.aa-thread-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aa-mobile-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.aa-mobile-inbox-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.aa-mobile-search-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
}

.aa-mobile-search-input {
    min-height: 50px;
    border-radius: 999px;
    padding-left: 42px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.aa-thread-header-mobile-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.aa-thread-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.aa-thread-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.aa-thread-user-meta {
    min-width: 0;
}

.aa-thread-user-meta .aa-thread-name {
    margin-bottom: 2px;
}

@media (max-width: 991px) {
    .aa-messages-page-head,
    .aa-messages-mobile-topbar,
    .aa-messages-rail {
        display: none !important;
    }

    .aa-mobile-inbox-head {
        display: block;
        padding: 6px 4px 2px;
    }

    #messagesSidebarPane > .aa-panel:first-of-type {
        display: none;
    }

    .aa-messages-mobile-app {
        display: block;
    }

    .aa-messages-sidebar,
    .aa-messages-main {
        width: 100%;
    }

    body:not(.aa-chat-open) .aa-messages-main {
        display: none !important;
    }

    body:not(.aa-chat-open) .aa-messages-sidebar {
        display: block !important;
    }

    body.aa-chat-open .aa-messages-sidebar {
        display: none !important;
    }

    body.aa-chat-open .aa-messages-main {
        display: block !important;
        height: calc(100dvh - 84px);
    }

    body.aa-chat-open .aa-user-page {
        padding-top: 8px;
    }

    body.aa-chat-open .aa-thread-panel-focused {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    body.aa-chat-open .aa-thread-stage {
        padding: 0 8px;
    }

    body.aa-chat-open .aa-thread-messages-focused,
    body.aa-chat-open .thread-messages-panel {
        padding-top: 12px;
        padding-bottom: 98px;
    }

    body.aa-chat-open .aa-thread-compose-mobile,
    body.aa-chat-open .aa-thread-compose {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 300;
        background: rgba(255,255,255,0.98);
        border-top: 1px solid #e8ecf3;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        backdrop-filter: blur(10px);
    }

    body.aa-chat-open #threadMessageForm {
        max-width: 860px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .aa-mobile-inbox-title {
        font-size: 24px;
    }

    .aa-mobile-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 18px;
    }

    .aa-thread-header-mobile-app {
        padding: 10px 12px;
    }
}

/* =========================================
   HOME HERO BACKGROUND CAROUSEL
   Keeps the original hero structure intact.
========================================= */

.aa-hero-shell {
    isolation: isolate;
    position: relative;
    background: #f8fafc;
}

.aa-hero-shell > .container {
    position: relative;
    z-index: 3;
}

.aa-hero-bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #f8fafc;
}

.aa-hero-bg-slide {
    position: absolute;
    inset: -2%;
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    filter: saturate(0.98) contrast(1.00);
    animation: aaHeroBackgroundCycle 28s infinite ease-in-out;
    will-change: opacity, transform;
}

.aa-hero-bg-slide-1 { animation-delay: 0s; }
.aa-hero-bg-slide-2 { animation-delay: 7s; }
.aa-hero-bg-slide-3 { animation-delay: 14s; }
.aa-hero-bg-slide-4 { animation-delay: 21s; }

/*
 * The image itself stays reasonably visible; readability is controlled by
 * this white wash rather than by making the photo almost transparent.
 */
.aa-hero-bg-wash {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(252, 252, 255, 0.82) 0%,
            rgba(252, 252, 255, 0.72) 33%,
            rgba(252, 252, 255, 0.50) 62%,
            rgba(252, 252, 255, 0.38) 100%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(248, 250, 252, 0.72) 100%);
}

@keyframes aaHeroBackgroundCycle {
    0% {
        opacity: 0.92;
        transform: scale(1.02);
    }
    20% {
        opacity: 0.92;
        transform: scale(1.055);
    }
    25% {
        opacity: 0;
        transform: scale(1.07);
    }
    100% {
        opacity: 0;
        transform: scale(1.07);
    }
}

/* Keep foreground cards readable over photography. */
.aa-hero-shell .aa-navbar {
    background: rgba(255, 255, 255, 0.94);
}

.aa-hero-shell .aa-human-card,
.aa-hero-shell .aa-human-mini,
.aa-hero-shell .aa-metric-chip {
    background-color: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(8px);
}

@media (max-width: 991px) {
    .aa-hero-bg-slide {
        background-position: center center;
    }

    .aa-hero-bg-wash {
        background:
            linear-gradient(180deg,
                rgba(252, 252, 255, 0.78) 0%,
                rgba(252, 252, 255, 0.66) 42%,
                rgba(252, 252, 255, 0.58) 68%,
                rgba(248, 250, 252, 0.82) 100%);
    }

    @keyframes aaHeroBackgroundCycle {
        0% { opacity: 0.78; transform: scale(1.015); }
        20% { opacity: 0.78; transform: scale(1.045); }
        25% { opacity: 0; transform: scale(1.06); }
        100% { opacity: 0; transform: scale(1.06); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .aa-hero-bg-slide {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .aa-hero-bg-slide-1 {
        opacity: 0.88;
    }
}


/* =========================================
   PUBLIC / AUTH FLOATING HEADER NAVIGATION
========================================= */

.aa-public-floatnav-wrap {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    padding: 14px 18px 0;
    pointer-events: none;
}

.aa-public-floatnav {
    width: min(1180px, 100%);
    min-height: 70px;
    margin: 0 auto;
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.aa-public-floatnav.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.11);
}

.aa-public-floatnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 210px;
    color: #0f172a;
    text-decoration: none;
}

.aa-public-floatnav-brand:hover {
    color: #0f172a;
}

.aa-public-floatnav-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(124, 58, 237, 0.10);
    flex: 0 0 46px;
}

.aa-public-floatnav-brand-copy {
    min-width: 0;
}

.aa-public-floatnav-brand-copy strong,
.aa-public-floatnav-brand-copy span {
    display: block;
}

.aa-public-floatnav-brand-copy strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 850;
}

.aa-public-floatnav-brand-copy span {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.aa-public-floatnav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.aa-public-floatnav-links a {
    padding: 9px 10px;
    border-radius: 11px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease;
}

.aa-public-floatnav-links a:hover {
    color: #7c3aed;
    background: #f7f3ff;
}

.aa-public-floatnav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.aa-public-nav-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
}

.aa-public-nav-btn-soft {
    color: #334155;
    border: 1px solid #dbe3ee;
    background: #fff;
}

.aa-public-nav-btn-soft:hover,
.aa-public-nav-btn-soft:focus {
    color: #7c3aed;
    border-color: #c4b5fd;
    background: #faf8ff;
}

.aa-public-nav-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.18);
}

.aa-public-nav-btn-primary:hover,
.aa-public-nav-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
}

.aa-public-floatnav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 44px;
}

.aa-public-floatnav-toggle span {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #0f172a;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.aa-public-floatnav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.aa-public-floatnav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.aa-public-floatnav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.aa-public-floatnav-mobile {
    display: none;
    width: min(1180px, 100%);
    margin: 8px auto 0;
    pointer-events: auto;
}

.aa-public-floatnav-mobile.is-open {
    display: block;
}

.aa-public-floatnav-mobile-links {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.aa-public-floatnav-mobile-links > a:not(.btn) {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.aa-public-floatnav-mobile-links > a:not(.btn):hover {
    color: #7c3aed;
    background: #f7f3ff;
}

.aa-public-floatnav-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 5px;
}

.aa-public-floatnav-mobile-actions:has(> :only-child) {
    grid-template-columns: 1fr;
}

/* Account for the floating public header on auth screens without changing the auth layout. */
.aa-public-floatnav-wrap + .aa-auth-shell {
    margin-top: -84px;
    padding-top: 84px;
}

@media (max-width: 991px) {
    .aa-public-floatnav-wrap {
        padding: 10px 12px 0;
    }

    .aa-public-floatnav {
        min-height: 64px;
        padding: 9px 10px 9px 12px;
        border-radius: 19px;
    }

    .aa-public-floatnav-links,
    .aa-public-floatnav-actions {
        display: none;
    }

    .aa-public-floatnav-toggle {
        display: inline-flex;
    }

    .aa-public-floatnav-brand {
        min-width: 0;
    }

    .aa-public-floatnav-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .aa-public-floatnav-brand-copy strong {
        font-size: 14px;
    }

    .aa-public-floatnav-brand-copy span {
        font-size: 10px;
    }

    .aa-public-floatnav-wrap + .aa-auth-shell {
        margin-top: -74px;
        padding-top: 74px;
    }
}

@media (max-width: 575px) {
    .aa-public-floatnav-wrap {
        padding: 8px 10px 0;
    }

    .aa-public-floatnav {
        min-height: 60px;
        border-radius: 17px;
    }

    .aa-public-floatnav-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .aa-public-floatnav-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .aa-public-floatnav-brand-copy span {
        display: none;
    }

    .aa-public-floatnav-mobile-actions {
        grid-template-columns: 1fr;
    }

    .aa-public-floatnav-wrap + .aa-auth-shell {
        margin-top: -68px;
        padding-top: 68px;
    }
}
