/* ============================================
   Astrologer AI — Styles & Animations
   Works with both light and dark themes
   ============================================ */

/* ── Keyframe Animations ── */

@keyframes slideLeftInfinite {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmerLine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes subtleBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════
   1. SIDEBAR — Astrology AIs Section
   ══════════════════════════════════════════════ */

.astrologer-sidebar-section {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.astrologer-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.astrologer-sidebar-header:hover {
    background: var(--bg-hover);
}

.astrologer-sidebar-header .sidebar-star-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-on-accent);
    flex-shrink: 0;
    animation: subtleBreathe 3s ease-in-out infinite;
}

.astrologer-sidebar-header .sidebar-ai-info {
    flex: 1;
    min-width: 0;
}

.astrologer-sidebar-header .sidebar-ai-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.astrologer-sidebar-header .sidebar-ai-subtitle {
    font-size: 10px;
    color: var(--text-muted);
}

.astrologer-sidebar-header .sidebar-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.astrologer-sidebar-header:hover .sidebar-chevron {
    color: var(--accent);
}

/* Mini AI preview cards */
.astrologer-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.astrologer-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.astrologer-mini-card:hover {
    background: var(--bg-hover);
}

.astrologer-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}

.astrologer-mini-info {
    flex: 1;
    min-width: 0;
}

.astrologer-mini-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astrologer-mini-specialty {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astrologer-mini-rank {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.astrologer-see-all {
    display: block;
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.astrologer-see-all:hover {
    background: var(--accent-soft);
    text-decoration: none;
}

/* ══════════════════════════════════════════════
   2. AI RANKINGS POPUP MODAL
   ══════════════════════════════════════════════ */

.ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.ai-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-modal {
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 165, 116, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-base);
    animation: fadeInUp 0.3s ease forwards;
}

.ai-modal-overlay.active .ai-modal {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.ai-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.ai-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.ai-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ai-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.ai-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* Modal Tabs */
.ai-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}

.ai-modal-tab {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.ai-modal-tab:hover {
    color: var(--text-primary);
}

.ai-modal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* Modal Body */
.ai-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
}

.ai-modal-body::-webkit-scrollbar {
    width: 5px;
}

.ai-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-soft);
    border-radius: 9999px;
}

/* Section Headers inside modal */
.ai-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-section-header:first-child {
    margin-top: 0;
}

.ai-section-header .badge {
    font-size: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
}

.ai-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 16px 0;
}

/* ── Ranked AI Card ── */
.ai-ranked-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 8px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.ai-ranked-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.ai-ranked-card .rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-ranked-card .ai-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.25);
}

.ai-ranked-card .ai-card-body {
    flex: 1;
    min-width: 0;
}

.ai-ranked-card .ai-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-ranked-card .ai-card-name .card-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    white-space: nowrap;
}

.ai-ranked-card .ai-card-specialty {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.ai-ranked-card .ai-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

.ai-ranked-card .ai-card-meta .star {
    color: #f59e0b;
}

.ai-ranked-card .ai-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.ai-ranked-card .ai-card-features span {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent);
}

.ai-ranked-card .ai-card-action {
    flex-shrink: 0;
    align-self: center;
}

.ai-card-btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.ai-card-btn.free {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.ai-card-btn.free:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

.ai-card-btn.pro {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.ai-card-btn.pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
}

/* Modal Footer */
.ai-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-modal-footer-text {
    font-size: 11px;
    color: var(--text-muted);
}

.ai-modal-upgrade-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-modal-upgrade-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* Scroll indicator dots */
.ai-scroll-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}

.ai-scroll-dots .dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-strong);
    transition: all var(--transition-fast);
}

.ai-scroll-dots .dot.active {
    background: var(--accent);
    width: 32px;
}

/* ══════════════════════════════════════════════
   3. AI RECOMMENDATION POPUP (Choose Your Guide)
   ══════════════════════════════════════════════ */

.ai-rec-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.ai-rec-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.ai-rec-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.ai-rec-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-rec-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.25);
}

.ai-rec-card-header .ai-rec-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-rec-card-header .ai-rec-specialty {
    font-size: 10px;
    color: var(--text-muted);
}

.ai-rec-card .ai-rec-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.ai-rec-card .ai-rec-features li {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 2px 0;
}

.ai-rec-card .ai-rec-features li::before {
    content: '✦ ';
    color: var(--accent);
    font-size: 8px;
}

.ai-rec-card .ai-rec-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.ai-rec-card .ai-rec-btn.free-btn {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.ai-rec-card .ai-rec-btn.free-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

.ai-rec-card .ai-rec-btn.pro-btn {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.ai-rec-card .ai-rec-btn.pro-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
}

/* ══════════════════════════════════════════════
   4. FADED SLIDING ASTROLOGER CARDS
   ══════════════════════════════════════════════ */

.astrologer-slider {
    width: 100%;
    overflow: hidden;
    opacity: 0.35;
    padding: 20px 0 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.astrologer-slider-track {
    display: flex;
    gap: 14px;
    animation: slideLeftInfinite 30s linear infinite;
    width: max-content;
    will-change: transform;
}

.astrologer-slider-track:hover {
    animation-play-state: paused;
}

.astrologer-slide-card {
    width: 110px;
    padding: 14px 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.astrologer-slide-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.astrologer-slide-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border: 2px solid rgba(212, 165, 116, 0.25);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.2);
}

.astrologer-slide-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

.astrologer-slide-specialty {
    font-size: 8px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.astrologer-slide-trust {
    font-size: 8px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 4px;
}

/* (Signup slider removed — replaced by explore section below) */



/* ══════════════════════════════════════════════
   5. RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ai-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }

    .ai-modal-header {
        padding: 16px 18px 12px;
    }

    .ai-modal-body {
        padding: 12px 18px 16px;
    }

    .ai-modal-tabs {
        padding: 0 18px;
        overflow-x: auto;
    }

    .ai-rec-cards-row {
        grid-template-columns: 1fr;
    }

    .ai-ranked-card {
        flex-wrap: wrap;
    }

    .ai-ranked-card .ai-card-action {
        width: 100%;
        margin-top: 8px;
    }

    .ai-ranked-card .ai-card-action .ai-card-btn {
        width: 100%;
        text-align: center;
    }

    .astrologer-slide-card {
        width: 90px;
        padding: 10px 8px;
    }

    .astrologer-slide-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ══════════════════════════════════════════════
   6. DECORATIVE SHIMMER LINE (optional accent)
   ══════════════════════════════════════════════ */

.ai-shimmer-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
    opacity: 0.4;
}

/* ══════════════════════════════════════════════
   8. EXPLORE ASTROLOGERS TAB BUTTON
   ══════════════════════════════════════════════ */

.explore-tab-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    width: 100%;
    max-width: 640px;
}

.explore-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(196, 151, 58, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.explore-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 165, 116, 0.07) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.explore-tab-btn:hover::before {
    opacity: 1;
}

.explore-tab-btn:hover {
    border-color: rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.13), rgba(196, 151, 58, 0.09));
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(212, 165, 116, 0.12);
}

.explore-tab-icon {
    font-size: 16px;
    color: var(--accent);
    animation: starTwinkle 2s ease-in-out infinite;
}

.explore-tab-label {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: left;
}

.explore-tab-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.explore-tab-arrow {
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.3s;
}

.explore-tab-btn:hover .explore-tab-arrow {
    transform: translateX(4px);
}

.rankings-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.rankings-tab-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   9. EXPLORE ASTROLOGERS MODAL
   ══════════════════════════════════════════════ */

.explore-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.explore-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.explore-modal {
    width: 92%;
    max-width: 980px;
    max-height: 88vh;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 165, 116, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 0.72, 0, 1);
}

.explore-modal-overlay.active .explore-modal {
    transform: translateY(0) scale(1);
}

/* Modal header */
.explore-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

.explore-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.25;
}

.explore-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.explore-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-on-accent);
    flex-shrink: 0;
    animation: subtleBreathe 3s ease-in-out infinite;
}

.explore-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.explore-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.explore-modal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.explore-rankings-redirect {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 20px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.explore-rankings-redirect:hover {
    background: rgba(212, 165, 116, 0.16);
    border-color: rgba(212, 165, 116, 0.45);
    transform: translateX(2px);
}

.explore-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.explore-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* Filter tabs */
.explore-filter-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.explore-filter-tab {
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.explore-filter-tab:hover {
    color: var(--text-primary);
}

.explore-filter-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* Scrollable body */
.explore-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
}

.explore-modal-body::-webkit-scrollbar {
    width: 5px;
}

.explore-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.explore-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-soft);
    border-radius: 9999px;
}

/* Cards grid — 3 columns on desktop */
.explore-cards-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .explore-cards-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .explore-cards-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── THE EXPLORE CARD — 4:3 profile photo top ── */
.explore-new-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.4s ease both;
}

.explore-new-card:nth-child(1) {
    animation-delay: 0.04s;
}

.explore-new-card:nth-child(2) {
    animation-delay: 0.08s;
}

.explore-new-card:nth-child(3) {
    animation-delay: 0.12s;
}

.explore-new-card:nth-child(4) {
    animation-delay: 0.16s;
}

.explore-new-card:nth-child(5) {
    animation-delay: 0.20s;
}

.explore-new-card:nth-child(6) {
    animation-delay: 0.24s;
}

.explore-new-card:nth-child(7) {
    animation-delay: 0.28s;
}

.explore-new-card:nth-child(8) {
    animation-delay: 0.32s;
}

.explore-new-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-strong);
}

.explore-new-card.is-pro:hover {
    border-color: rgba(212, 165, 116, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 165, 116, 0.1);
}

/* Badge (TOP RATED etc.) */
.enc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(212, 165, 116, 0.85);
    color: #0b1120;
    backdrop-filter: blur(4px);
}

/* 4:3 profile image area */
.enc-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Gradient bg acts as "profile photo" */
.enc-photo-bg {
    position: absolute;
    inset: 0;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cosmic pattern overlay on photo */
.enc-photo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 0, 0, 0.25) 0%, transparent 60%);
}

.enc-photo-icon {
    font-size: 52px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: subtleBreathe 3.5s ease-in-out infinite;
}

/* Ellipse fade from photo into card body — the separator */
.enc-photo-fade {
    position: absolute;
    bottom: -2px;
    left: -10%;
    width: 120%;
    height: 55%;
    background: var(--bg-secondary);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    /* invisible ellipse line — matches card bg so it looks like a fade */
}

/* Shimmer line on the ellipse edge */
.enc-photo-fade::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color, rgba(212, 165, 116, 0.3)), transparent);
    border-radius: 50%;
}

/* Card body */
.enc-body {
    position: relative;
    padding: 0 16px 16px;
    margin-top: -28px;
    /* slightly overlap photo for seamless look */
    z-index: 2;
}

.enc-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enc-specialty {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.enc-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.enc-rating {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
}

.enc-users {
    font-size: 10px;
    color: var(--text-muted);
}

.enc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.enc-features li {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.enc-features li::before {
    content: '✦';
    color: var(--accent);
    font-size: 7px;
    flex-shrink: 0;
}

/* Pricing CTA button — glowing */
.enc-cta-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Shimmer on CTA */
.enc-cta-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    animation: btnShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Free button */
.enc-cta-btn.enc-free {
    background: rgba(16, 185, 129, 0.12);
    color: rgb(16, 185, 129);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
}

.enc-cta-btn.enc-free:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* Pro/Paid button — gold glow */
.enc-cta-btn.enc-pro {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(196, 151, 58, 0.25));
    color: rgba(212, 165, 116, 0.95);
    border: 1px solid rgba(212, 165, 116, 0.4);
    box-shadow: 0 0 16px rgba(212, 165, 116, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.enc-cta-btn.enc-pro:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.32), rgba(196, 151, 58, 0.38));
    border-color: rgba(212, 165, 116, 0.7);
    box-shadow: 0 6px 28px rgba(212, 165, 116, 0.28), 0 0 0 1px rgba(212, 165, 116, 0.2);
    transform: translateY(-1px);
}

/* Modal footer */
.explore-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.explore-modal-footer-text {
    font-size: 11px;
    color: var(--text-muted);
}

.explore-modal-upgrade-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.explore-modal-upgrade-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* Loading / empty state */
.explore-loading,
.explore-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Hide cards when filtered */
.explore-new-card.filtered-out {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .explore-tab-row {
        flex-direction: column;
    }

    .explore-tab-btn,
    .rankings-tab-btn {
        width: 100%;
        justify-content: center;
    }

    .explore-modal {
        width: 98%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .explore-modal-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .explore-modal-header-right {
        align-self: flex-end;
    }

    .explore-modal-body {
        padding: 16px;
    }
}


/* ══════════════════════════════════════════════ */
@keyframes exploreCardAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes activeGlow {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(212, 165, 116, 0.4), 0 0 40px rgba(212, 165, 116, 0.15);
    }

    50% {
        box-shadow: 0 0 24px rgba(212, 165, 116, 0.6), 0 0 60px rgba(212, 165, 116, 0.2);
    }
}

.signup-explore {
    position: relative;
    background: #0b1120;
    min-height: 100vh;
    padding: 80px 40px 60px;
    overflow: hidden;
}

.explore-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 165, 116, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.explore-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.explore-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: rgba(210, 195, 155, 0.85);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.explore-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(200, 185, 150, 0.4);
    text-align: center;
    margin-bottom: 48px;
}

.explore-category {
    margin-bottom: 40px;
}

.explore-category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.7);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.explore-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

/* Explore Card */
.explore-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    animation: exploreCardAppear 0.4s ease both;
}

.explore-card:hover {
    border-color: rgba(212, 165, 116, 0.25);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.explore-card.active {
    border-color: rgba(212, 165, 116, 0.6);
    background: rgba(212, 165, 116, 0.08);
    transform: translateY(-3px) scale(1.01);
    animation: activeGlow 2s ease-in-out infinite;
}

.explore-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.2);
}

.explore-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(240, 235, 255, 0.9);
    margin-bottom: 2px;
}

.explore-card-specialty {
    font-size: 11px;
    color: rgba(200, 185, 150, 0.5);
    margin-bottom: 10px;
}

.explore-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.explore-card-features li {
    font-size: 11px;
    color: rgba(200, 190, 220, 0.55);
    padding: 2px 0;
    font-family: 'Inter', sans-serif;
}

.explore-card.active .explore-card-features li {
    color: rgba(212, 165, 116, 0.7);
}

.explore-card-meta {
    font-size: 10px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.5);
}

.explore-card.active .explore-card-meta {
    color: rgba(212, 165, 116, 0.9);
}

/* CTA Button */
.explore-cta {
    text-align: center;
    margin-top: 40px;
}

.explore-cta-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(196, 151, 58, 0.25));
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    color: rgba(212, 165, 116, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.explore-cta-btn:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(196, 151, 58, 0.4));
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .signup-explore {
        padding: 60px 20px 40px;
    }

    .explore-title {
        font-size: 24px;
    }

    .explore-cards-grid {
        grid-template-columns: 1fr;
    }
}