﻿/* ========================================
   BROWSENAMES PAGE - MATERNAL & ATTRACTIVE DESIGN
   PiyumLanka Baby Names - Designed for Mothers
   ======================================== */

/* ========================================
   COLOR VARIABLES - MATERNAL PALETTE
   ======================================== */
:root {
    /* Brand Colors */
    --brand-primary: #D4A574;
    --brand-secondary: #E8B5A5;
    --brand-accent: #F5E6D3;
    --brand-text: #8B5A3C;
    --brand-light: #FFF8F0;
    --brand-rose: #F4C2C2;
    /* Maternal Soft Colors */
    --soft-lavender: #E6D5E8;
    --powder-pink: #F7D5E0;
    --mint-cream: #E8F5E9;
    --peach-blossom: #FFDAB9;
    --baby-blue: #E3F2FD;
    --lotus-pink: #F4C2C2;
    /* Boy/Girl Colors */
    --boy-color: #667eea;
    --boy-light: #e8ecff;
    --girl-color: #f5576c;
    --girl-light: #ffe5e9;
    /* UI Colors */
    --success-color: #A8C686;
    --info-color: #93B5C4;
    --warning-color: #FFA500;
    --muted-color: #999;
    /* Spacing & Effects */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    /* Fonts */
    --sinhala-font: 'Noto Sans Sinhala', 'Iskoola Pota', sans-serif;
}

/* ========================================
   MAIN WRAPPER & BACKGROUND
   ======================================== */
.browse-names-wrapper {
    background: linear-gradient(135deg, var(--brand-light) 0%, #FFFFFF 50%, var(--powder-pink) 100%);
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative Lotus Elements */
.lotus-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23D4A574"/><ellipse cx="50" cy="50" rx="30" ry="45" fill="%23E8B5A5" opacity="0.7"/><ellipse cx="50" cy="50" rx="45" ry="30" fill="%23F4C2C2" opacity="0.5"/></svg>');
    background-size: contain;
    pointer-events: none;
}

.lotus-top-left {
    top: -100px;
    left: -100px;
    transform: rotate(-15deg);
}

.lotus-top-right {
    top: 200px;
    right: -150px;
    transform: rotate(25deg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.browse-hero-section {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(244, 194, 194, 0.15) 100%);
    padding: 60px 0 50px;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--brand-accent);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--brand-text);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-color);
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--brand-accent), transparent);
}

/* ========================================
   FILTERS CARD
   ======================================== */
.filters-card-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow-medium);
    border: 2px solid var(--brand-accent);
}

.filter-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px dashed var(--brand-accent);
}

    .filter-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .filter-title i {
        color: var(--brand-primary);
        font-size: 1.4rem;
    }

/* Category Cards */
.category-toggle-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--brand-light) 0%, white 100%);
    border: 3px solid var(--brand-accent);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    gap: 18px;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
        opacity: 0;
        transition: opacity var(--transition-speed) ease;
    }

    .category-card:hover {
        transform: translateY(-3px);
        border-color: var(--brand-primary);
        box-shadow: 0 8px 25px rgba(212, 165, 116, 0.25);
        text-decoration: none;
    }

        .category-card:hover::before {
            opacity: 1;
        }

    .category-card.active {
        background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
        border-color: var(--brand-primary);
        box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    }

        .category-card.active::before {
            opacity: 1;
        }

        .category-card.active h4,
        .category-card.active p {
            color: white;
        }

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.sinhala-icon {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

.christian-icon {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--baby-blue) 100%);
    color: white;
}

.category-card.active .category-icon {
    background: white;
    transform: scale(1.1);
}

.category-text {
    flex: 1;
    text-align: left;
}

.category-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin: 0;
    transition: color var(--transition-speed) ease;
}

/* Gender Buttons */
.gender-toggle-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gender-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 15px;
    background: white;
    border: 3px solid var(--brand-accent);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--brand-text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.gender-emoji {
    font-size: 2rem;
    line-height: 1;
    transition: all var(--transition-speed) ease;
}

.gender-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
    text-decoration: none;
    border-color: var(--brand-primary);
}

    .gender-btn:hover .gender-emoji {
        transform: scale(1.15);
    }

.gender-btn.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.gender-boy.active {
    background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 100%);
    border-color: #60A5FA;
}

.gender-girl.active {
    background: linear-gradient(135deg, #FDA4AF 0%, #FB7185 100%);
    border-color: #FB7185;
}

/* Letter Grid */
.letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
}

.letter-btn {
    padding: 12px 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    /* Warm Gradient Spectrum - Option 1 */
    .letter-btn:nth-child(10n+1) {
        background: linear-gradient(135deg, #FFE8D1 0%, #FFD9B7 100%);
        color: #B8732F;
    }

    .letter-btn:nth-child(10n+2) {
        background: linear-gradient(135deg, #FFE0C7 0%, #FFCFAD 100%);
        color: #A86B2D;
    }

    .letter-btn:nth-child(10n+3) {
        background: linear-gradient(135deg, #FFD8C0 0%, #FFC5A3 100%);
        color: #9A632A;
    }

    .letter-btn:nth-child(10n+4) {
        background: linear-gradient(135deg, #FFCFB8 0%, #FFBA99 100%);
        color: #8C5B28;
    }

    .letter-btn:nth-child(10n+5) {
        background: linear-gradient(135deg, #FFC7B0 0%, #FFB08F 100%);
        color: #7E5326;
    }

    .letter-btn:nth-child(10n+6) {
        background: linear-gradient(135deg, #FFBEA8 0%, #FFA585 100%);
        color: #704B24;
    }

    .letter-btn:nth-child(10n+7) {
        background: linear-gradient(135deg, #FFB6A0 0%, #FF9B7B 100%);
        color: #624322;
    }

    .letter-btn:nth-child(10n+8) {
        background: linear-gradient(135deg, #FFAD98 0%, #FF9071 100%);
        color: #543B20;
    }

    .letter-btn:nth-child(10n+9) {
        background: linear-gradient(135deg, #FFA590 0%, #FF8667 100%);
        color: #46331E;
    }

    .letter-btn:nth-child(10n+10) {
        background: linear-gradient(135deg, #FF9C88 0%, #FF7B5D 100%);
        color: #382B1C;
    }

    .letter-btn:hover {
        border-color: var(--brand-primary);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }

    .letter-btn.active,
    .letter-btn.all-letters.active {
        border-color: #D4A574;
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        transform: translateY(-3px) scale(1.05);
    }

.all-letters {
    grid-column: span 2;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

    .all-letters:hover {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
        border-color: var(--brand-primary);
    }

/* Sort Dropdown */
.sort-dropdown {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid var(--brand-accent);
    border-radius: var(--border-radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-text);
    background: white;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

    .sort-dropdown:hover {
        border-color: var(--brand-primary);
        box-shadow: var(--box-shadow-light);
    }

    .sort-dropdown:focus {
        outline: none;
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    }

/* Results Info Bar */
.results-info-bar {
    margin-top: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--powder-pink) 0%, var(--soft-lavender) 100%);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--lotus-pink);
}

.results-count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-text);
    font-size: 1rem;
}

    .results-count i {
        color: var(--success-color);
        font-size: 1.2rem;
    }

    .results-count strong {
        color: var(--brand-primary);
        font-weight: 700;
    }

/* ========================================
   NAME CARDS GRID
   ======================================== */
.names-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.name-card-modern {
    background: white;
    border: 2px solid var(--brand-accent);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-light);
}

    .name-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-rose) 100%);
        opacity: 0;
        transition: opacity var(--transition-speed) ease;
    }

    .name-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-heavy);
        border-color: var(--brand-primary);
    }

        .name-card-modern:hover::before {
            opacity: 1;
        }

/* Premium Ribbon */
.premium-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Card Header */
.card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.name-display {
    flex: 1;
}

.name-english {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.name-sinhala {
    font-family: var(--sinhala-font);
    font-size: 1.3rem;
    color: var(--muted-color);
    margin: 0;
    font-weight: 600;
}

.gender-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gender-emoji-card {
    font-size: 1.8rem;
    line-height: 1;
}

.gender-icon-badge.badge-boy,
.gender-icon-badge.badge-male {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.gender-icon-badge.badge-girl,
.gender-icon-badge.badge-female {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
}

/* Meaning Section */
.meaning-section {
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-light) 0%, rgba(255, 248, 240, 0.5) 100%);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--brand-primary);
}

.meaning-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meaning-english {
    font-size: 1.05rem;
    color: var(--brand-text);
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-weight: 500;
}

.meaning-sinhala-small {
    font-family: var(--sinhala-font);
    font-size: 0.95rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.5;
}

    .meaning-sinhala-small strong {
        color: var(--brand-primary);
    }

/* Astro Tags */
.astro-tags-preview {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.astro-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, rgba(230, 213, 232, 0.5) 100%);
    border: 1px solid var(--soft-lavender);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #6a4c93;
    font-weight: 600;
}

    .astro-tag i {
        color: #8b6fb8;
    }

/* Saint Tag */
.saint-preview-tag {
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--baby-blue) 0%, rgba(227, 242, 253, 0.5) 100%);
    border: 1px solid var(--baby-blue);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: #4a6fa5;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .saint-preview-tag i {
        color: #5a7fb8;
    }

/* Card Footer */
.card-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--brand-accent);
}

.btn-view-modern {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

    .btn-view-modern:hover {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
        text-decoration: none;
        color: white;
    }

    .btn-view-modern i {
        transition: transform var(--transition-speed) ease;
    }

    .btn-view-modern:hover i {
        transform: translateX(3px);
    }

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-favorite-heart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brand-accent);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--muted-color);
    font-size: 1.2rem;
}

    .btn-favorite-heart:hover {
        border-color: #dc3545;
        color: #dc3545;
        transform: scale(1.1);
    }

    .btn-favorite-heart.favorited,
    .btn-favorite-heart .fa-heart {
        color: #dc3545;
        border-color: #dc3545;
    }

.view-count-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--muted-color);
}

    .view-count-small i {
        color: var(--info-color);
    }

/* ========================================
   NO RESULTS DISPLAY
   ======================================== */
.no-results-display {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    border: 3px dashed var(--brand-accent);
}

.no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--powder-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--brand-primary);
}

.no-results-display h3 {
    font-size: 2rem;
    color: var(--brand-text);
    margin-bottom: 15px;
}

.no-results-display p {
    font-size: 1.1rem;
    color: var(--muted-color);
    margin-bottom: 30px;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

    .btn-reset-filters:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        text-decoration: none;
        color: white;
    }

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrapper {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.pagination-modern {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    background: white;
    border: 2px solid var(--brand-accent);
    border-radius: var(--border-radius-sm);
    color: var(--brand-text);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    min-width: 45px;
    justify-content: center;
}

    .page-link:hover {
        border-color: var(--brand-primary);
        background: var(--brand-light);
        transform: translateY(-2px);
        box-shadow: var(--box-shadow-light);
        text-decoration: none;
        color: var(--brand-text);
    }

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

    .page-item.disabled .page-link:hover {
        transform: none;
        box-shadow: none;
    }

/* ========================================
   SIGNUP CTA SECTION
   ======================================== */
.signup-cta-section {
    margin: 60px 0 40px;
}

.signup-cta-card {
    background: linear-gradient(135deg, var(--powder-pink) 0%, var(--soft-lavender) 100%);
    border: 3px solid var(--lotus-pink);
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--box-shadow-medium);
    position: relative;
    overflow: hidden;
}

    .signup-cta-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotate-gradient 15s linear infinite;
    }

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.signup-cta-card h3 {
    font-size: 2.2rem;
    color: var(--brand-text);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.signup-cta-card p {
    font-size: 1.1rem;
    color: var(--brand-text);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

    .cta-benefits span {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: white;
        border-radius: 50px;
        font-weight: 600;
        color: var(--brand-text);
        font-size: 0.95rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .cta-benefits i {
        color: var(--success-color);
        font-size: 1.1rem;
    }

.btn-signup-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    position: relative;
    z-index: 1;
}

    .btn-signup-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
        text-decoration: none;
        color: white;
    }

/* ========================================
   SIGNUP MODAL
   ======================================== */
.signup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
}

    .signup-modal.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content-custom {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1051;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: var(--brand-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    color: var(--brand-text);
    font-size: 1.2rem;
}

    .modal-close-btn:hover {
        background: var(--brand-primary);
        color: white;
        transform: rotate(90deg);
    }

.modal-header-custom {
    padding: 40px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-light) 0%, white 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: gentle-pulse 2s ease-in-out infinite;
}

.modal-header-custom h4 {
    font-size: 2rem;
    color: var(--brand-text);
    margin: 0;
}

.modal-body-custom {
    padding: 30px;
}

.modal-intro {
    font-size: 1.1rem;
    color: var(--brand-text);
    margin-bottom: 20px;
    text-align: center;
}

.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

    .modal-benefits li {
        padding: 12px 15px;
        margin-bottom: 10px;
        background: var(--brand-light);
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        color: var(--brand-text);
        transition: all var(--transition-speed) ease;
    }

        .modal-benefits li:hover {
            transform: translateX(5px);
            background: linear-gradient(135deg, var(--brand-light) 0%, var(--powder-pink) 100%);
        }

    .modal-benefits i {
        color: var(--success-color);
        font-size: 1.2rem;
    }

.modal-bonus {
    padding: 15px;
    background: linear-gradient(135deg, var(--powder-pink) 0%, var(--soft-lavender) 100%);
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--brand-text);
}

    .modal-bonus i {
        color: var(--brand-primary);
        font-size: 1.3rem;
    }

.modal-footer-custom {
    padding: 20px 30px 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-modal-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    border: none;
    cursor: pointer;
}

    .btn-modal-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        text-decoration: none;
        color: white;
    }

.btn-modal-continue {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--brand-accent);
    border-radius: 50px;
    color: var(--brand-text);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

    .btn-modal-continue:hover {
        border-color: var(--brand-primary);
        background: var(--brand-light);
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .names-display-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Filters */
    .filters-card-wrapper {
        padding: 25px;
    }

    .category-toggle-cards {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 18px 20px;
    }

    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .category-card h4 {
        font-size: 1.1rem;
    }

    .gender-toggle-buttons {
        grid-template-columns: 1fr;
    }

    .letter-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }

    /* Name Cards */
    .names-display-grid {
        grid-template-columns: 1fr;
    }

    .name-english {
        font-size: 1.5rem;
    }

    .name-sinhala {
        font-size: 1.1rem;
    }

    /* CTA */
    .signup-cta-card h3 {
        font-size: 1.8rem;
    }

    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    /* Hero */
    .browse-hero-section {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-divider {
        display: none;
    }

    /* Filters */
    .filter-title {
        font-size: 1.1rem;
    }

    .category-card {
        padding: 15px 18px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .category-card h4 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    .gender-btn {
        padding: 14px 12px;
        font-size: 1rem;
    }

    .gender-emoji {
        font-size: 1.8rem;
    }

    .letter-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 8px;
    }

    .letter-btn {
        font-size: 1rem;
        padding: 10px 6px;
    }

    /* Name Cards */
    .name-card-modern {
        padding: 20px;
    }

    .card-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .gender-icon-badge {
        width: 45px;
        height: 45px;
    }

    .gender-emoji-card {
        font-size: 1.6rem;
    }

    .card-footer-section {
        flex-direction: column;
        gap: 12px;
    }

    .btn-view-modern {
        width: 100%;
    }

    .card-meta {
        width: 100%;
        justify-content: space-between;
    }

    /* Modal */
    .modal-content-custom {
        width: 95%;
    }

    .modal-header-custom h4 {
        font-size: 1.6rem;
    }

    .modal-body-custom {
        padding: 20px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .filters-card-wrapper,
    .signup-cta-section,
    .pagination-wrapper,
    .btn-favorite-heart,
    .modal {
        display: none !important;
    }

    .name-card-modern {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.btn-view-modern:focus,
.btn-favorite-heart:focus,
.btn-signup-cta:focus,
.letter-btn:focus,
.gender-btn:focus,
.category-card:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   BROWSE PAGE - POPULAR NAMES QUICK LINK
   Add this to the end of BrowseNamesStyles.css
   ======================================== */

/* ========================================
   HERO STATS - POPULAR CLICKABLE STAT
   ======================================== */
.stat-item-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-link-popular {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

    .stat-link-popular:hover {
        text-decoration: none;
        transform: translateY(-3px);
    }

    .stat-link-popular .stat-number {
        transition: all 0.3s ease;
    }

    .stat-link-popular:hover .stat-number {
        transform: scale(1.15);
    }

    .stat-link-popular .stat-label {
        color: var(--brand-primary);
        font-weight: 700;
        transition: all 0.3s ease;
    }

    .stat-link-popular:hover .stat-label {
        color: #C44569;
    }

.stat-fire {
    animation: fire-flicker 2s ease-in-out infinite;
}

@keyframes fire-flicker {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.5));
        transform: scale(1.05);
    }
}

/* ========================================
   POPULAR QUICK LINK CARD
   ======================================== */
.popular-quick-link-section {
    margin-bottom: 30px;
    padding-top: 15px;
    animation: slideInDown 0.6s ease-out;
    overflow: visible;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popular-quick-link-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD3E1 50%, #E6D5E8 100%);
    border: 3px solid #FFB3D9;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(255, 179, 217, 0.3);
}

    .popular-quick-link-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .popular-quick-link-card:hover::before {
        left: 100%;
    }

    .popular-quick-link-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 179, 217, 0.5);
        border-color: #FF6B9D;
        text-decoration: none;
    }

/* Popular Icon Wrapper */
.popular-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-icon {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    animation: fire-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.15) rotate(0deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.popular-badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB3D9 0%, #FF6B9D 100%);
    opacity: 0.3;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Popular Text Content */
.popular-text-content {
    flex: 1;
}

.popular-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-text);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #C44569 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-arrow {
    font-size: 1.3rem;
    color: #FF6B9D;
    transition: transform 0.3s ease;
}

.popular-quick-link-card:hover .popular-arrow {
    transform: translateX(8px);
}

.popular-description {
    font-size: 1.05rem;
    color: var(--brand-text);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.popular-stats-mini {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .popular-stats-mini span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--brand-text);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

        .popular-stats-mini span:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

    .popular-stats-mini i {
        color: #FF6B9D;
        font-size: 1rem;
    }

/* ========================================
   TRENDING BADGE ANIMATION
   ======================================== */
.popular-quick-link-card::after {
    content: '🔥 TRENDING NOW';
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #FFB347 0%, #FF6B9D 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    animation: trending-bounce 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes trending-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
    .popular-quick-link-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .popular-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .popular-icon {
        font-size: 2.5rem;
    }

    .popular-title {
        flex-direction: column;
        gap: 8px;
        font-size: 1.3rem;
    }

    .popular-arrow {
        transform: rotate(90deg);
    }

    .popular-quick-link-card:hover .popular-arrow {
        transform: rotate(90deg) translateX(8px);
    }

    .popular-description {
        font-size: 1rem;
    }

    .popular-stats-mini {
        justify-content: center;
    }

    .popular-quick-link-card::after {
        right: 50%;
        transform: translateX(50%);
    }

    .stat-link-popular {
        padding: 10px;
        border-radius: 12px;
    }

        .stat-link-popular:hover {
            background: rgba(255, 179, 217, 0.1);
        }
}

@media (max-width: 576px) {
    .popular-quick-link-card {
        padding: 25px 15px;
    }

    .popular-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .popular-icon {
        font-size: 2rem;
    }

    .popular-title {
        font-size: 1.2rem;
    }

    .popular-description {
        font-size: 0.95rem;
    }

    .popular-stats-mini span {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .popular-quick-link-card::after {
        font-size: 0.7rem;
        padding: 5px 14px;
        top: -10px;
    }
}

/* ========================================
   ACCESSIBILITY & INTERACTIONS
   ======================================== */
.popular-quick-link-card:focus {
    outline: 3px solid #FF6B9D;
    outline-offset: 3px;
}

.stat-link-popular:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .popular-icon,
    .popular-badge-pulse,
    .stat-fire,
    .popular-quick-link-card::before,
    .popular-quick-link-card::after {
        animation: none !important;
    }

    .popular-quick-link-card:hover {
        transform: none;
    }

    .stat-link-popular:hover {
        transform: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .popular-quick-link-section,
    .stat-link-popular {
        display: none !important;
    }
}

/* ============================================
   ADDITIONAL STYLES FOR SIGNUP ENCOURAGEMENT
   Add these to your BrowseNamesStyles.css
   ============================================ */

/* ===========================
   DISABLED FAVORITE HEART (Anonymous Users)
   =========================== */

/* Disabled heart button styling */
.btn-favorite-heart.btn-favorite-disabled {
    opacity: 0.6;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .btn-favorite-heart.btn-favorite-disabled:hover {
        opacity: 1;
        transform: scale(1.15);
    }

/* Small "+" badge to indicate signup needed */
.btn-favorite-heart .signup-plus-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
}

/* Tooltip on hover for disabled heart */
.btn-favorite-heart.btn-favorite-disabled::after {
    content: "Sign up to save! 💝";
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.92);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Tooltip arrow */
.btn-favorite-heart.btn-favorite-disabled::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.92) transparent transparent transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-favorite-heart.btn-favorite-disabled:hover::after,
.btn-favorite-heart.btn-favorite-disabled:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===========================
   STICKY BOTTOM SIGNUP BAR
   =========================== */

.sticky-signup-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUpFromBottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.sticky-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .sticky-text strong {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    .sticky-text span {
        font-size: 13px;
        opacity: 0.95;
        font-weight: 400;
    }

.btn-sticky-signup {
    background: white;
    color: #667eea;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-sticky-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        color: #667eea;
        text-decoration: none;
    }

    .btn-sticky-signup i {
        font-size: 16px;
    }

.btn-sticky-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .btn-sticky-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Mobile responsive for sticky bar */
@media (max-width: 768px) {
    .sticky-signup-bar {
        padding: 12px 16px;
    }

    .sticky-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .sticky-icon {
        display: none;
    }

    .sticky-text {
        flex: 1 1 100%;
        align-items: center;
    }

        .sticky-text strong {
            font-size: 14px;
        }

        .sticky-text span {
            font-size: 12px;
        }

    .btn-sticky-signup {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-sticky-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sticky-signup-bar {
        padding: 10px 12px;
    }

    .btn-sticky-signup {
        flex: 1 1 100%;
        justify-content: center;
    }

    .btn-sticky-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* ===========================
   ENHANCED TOOLTIP STYLES
   =========================== */

/* Better tooltip for mobile devices */
@media (max-width: 768px) {
    .btn-favorite-heart.btn-favorite-disabled::after {
        font-size: 11px;
        padding: 6px 12px;
        bottom: calc(100% + 10px);
    }

    .btn-favorite-heart.btn-favorite-disabled::before {
        bottom: calc(100% + 2px);
        border-width: 5px 5px 0 5px;
    }
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */

/* Focus states for keyboard navigation */
.btn-favorite-heart.btn-favorite-disabled:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-sticky-signup:focus,
.btn-sticky-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .sticky-signup-bar,
    .btn-favorite-heart,
    .btn-sticky-signup,
    .signup-plus-badge {
        animation: none;
        transition: none;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .sticky-signup-bar,
    .btn-favorite-heart.btn-favorite-disabled {
        display: none !important;
    }
}

/* ============================================
   ADDITIONAL STYLES FOR DETAILS PAGE
   Add these to your NameDetailsPageStyles.css
   ============================================ */

/* ===========================
   DISABLED FAVORITE BUTTON (Top Bar - Anonymous Users)
   =========================== */

.btn-favorite-top.btn-favorite-disabled-details {
    opacity: 0.7;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

    .btn-favorite-top.btn-favorite-disabled-details:hover {
        opacity: 1;
        transform: translateY(-2px);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    }

/* "+" badge for disabled favorite on details page */
.signup-plus-badge-details {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: pulseGlowDetails 2s infinite;
}

@keyframes pulseGlowDetails {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.7);
    }
}

/* Tooltip for disabled favorite button */
.btn-favorite-disabled-details::after {
    content: "Sign up to save this name! 💝";
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.92);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Tooltip arrow */
.btn-favorite-disabled-details::before {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.92) transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-favorite-disabled-details:hover::after,
.btn-favorite-disabled-details:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===========================
   SIGNUP CTA CARD IN SIDEBAR
   =========================== */

.signup-cta-card-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

    .signup-cta-card-sidebar::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotateGradient 10s linear infinite;
    }

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-sidebar-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8px;
}

.cta-sidebar-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.signup-cta-card-sidebar h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.signup-cta-card-sidebar p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.95;
    color: white;
}

.cta-benefits-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

    .cta-benefits-small span {
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 8px;
        opacity: 0.95;
    }

    .cta-benefits-small i {
        font-size: 14px;
        width: 20px;
    }

.btn-cta-sidebar {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

    .btn-cta-sidebar:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
        color: #667eea;
        text-decoration: none;
    }

    .btn-cta-sidebar i {
        margin-right: 6px;
    }

/* ===========================
   STICKY BOTTOM SIGNUP BAR (Details Page)
   =========================== */

.sticky-signup-bar-details {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUpFromBottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-signup-bar-details .sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-signup-bar-details .sticky-icon {
    font-size: 32px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    10%, 30% {
        transform: scale(1.1);
    }

    20%, 40% {
        transform: scale(1);
    }
}

.sticky-signup-bar-details .sticky-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sticky-signup-bar-details .sticky-text strong {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    .sticky-signup-bar-details .sticky-text span {
        font-size: 14px;
        opacity: 0.95;
        font-weight: 400;
    }

    .sticky-signup-bar-details .sticky-text em {
        font-style: normal;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.sticky-signup-bar-details .btn-sticky-signup {
    background: white;
    color: #667eea;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .sticky-signup-bar-details .btn-sticky-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        color: #667eea;
        text-decoration: none;
    }

.sticky-signup-bar-details .btn-sticky-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .sticky-signup-bar-details .btn-sticky-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    /* Disabled favorite button */
    .btn-favorite-disabled-details::after {
        font-size: 11px;
        padding: 8px 12px;
        top: calc(100% + 10px);
    }

    .btn-favorite-disabled-details::before {
        top: calc(100% + 2px);
        border-width: 0 5px 5px 5px;
    }

    /* Sidebar CTA card */
    .signup-cta-card-sidebar {
        margin-bottom: 20px;
    }

    .cta-sidebar-icon {
        font-size: 40px;
    }

    .signup-cta-card-sidebar h4 {
        font-size: 18px;
    }

    .cta-benefits-small {
        align-items: center;
        text-align: center;
    }

    /* Sticky bar on details page */
    .sticky-signup-bar-details {
        padding: 12px 16px;
    }

        .sticky-signup-bar-details .sticky-content {
            flex-wrap: wrap;
            justify-content: center;
            text-align: center;
            gap: 12px;
        }

        .sticky-signup-bar-details .sticky-icon {
            display: none;
        }

        .sticky-signup-bar-details .sticky-text {
            flex: 1 1 100%;
            align-items: center;
        }

            .sticky-signup-bar-details .sticky-text strong {
                font-size: 15px;
            }

            .sticky-signup-bar-details .sticky-text span {
                font-size: 13px;
            }

        .sticky-signup-bar-details .btn-sticky-signup {
            padding: 10px 20px;
            font-size: 13px;
        }

        .sticky-signup-bar-details .btn-sticky-close {
            width: 36px;
            height: 36px;
            font-size: 16px;
        }
}

@media (max-width: 480px) {
    .sticky-signup-bar-details {
        padding: 10px 12px;
    }

        .sticky-signup-bar-details .btn-sticky-signup {
            flex: 1 1 100%;
            justify-content: center;
        }

        .sticky-signup-bar-details .btn-sticky-close {
            position: absolute;
            top: 8px;
            right: 8px;
        }

    .signup-cta-card-sidebar h4 {
        font-size: 16px;
    }

    .signup-cta-card-sidebar p {
        font-size: 13px;
    }

    .cta-benefits-small span {
        font-size: 12px;
    }

    .btn-cta-sidebar {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

.btn-favorite-disabled-details:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-cta-sidebar:focus,
.sticky-signup-bar-details .btn-sticky-signup:focus,
.sticky-signup-bar-details .btn-sticky-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .signup-plus-badge-details,
    .cta-sidebar-icon,
    .sticky-signup-bar-details .sticky-icon,
    .signup-cta-card-sidebar::before {
        animation: none;
    }

    .btn-favorite-disabled-details,
    .btn-cta-sidebar,
    .sticky-signup-bar-details .btn-sticky-signup {
        transition: none;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .btn-favorite-disabled-details,
    .signup-cta-card-sidebar,
    .sticky-signup-bar-details {
        display: none !important;
    }
}