:root {
    --primary-pink: #ff1493;
    --light-pink: #ffb6c1;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-pink: rgba(255, 20, 147, 0.1);
    --shadow-pink: rgba(255, 20, 147, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-pink);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-pink) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pink), var(--light-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-pink), #ff69b4);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-pink);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-pink);
    background: transparent;
    color: var(--primary-pink);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-pink);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section-sm {
    padding: 100px 0 40px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    min-height: auto;
    margin-top: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border-pink);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.1);
}

/* Ensure buttons in cards are clickable */
.app-card .btn {
    position: relative;
    z-index: 2;
}

.app-card a {
    position: relative;
    z-index: 1;
}

/* Rating Stars */
.rating-stars {
    color: #ffd700;
}

/* Badges */
.badge-featured {
    background: linear-gradient(135deg, var(--primary-pink), #ff69b4);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 105, 180, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.1));
}

.comparison-table table {
    margin-bottom: 0;
}

.comparison-table td,
.comparison-table th {
    padding: 1rem;
    vertical-align: middle;
}

/* Language Selector */
.language-selector {
    background: var(--card-bg);
    border: 1px solid rgba(255, 20, 147, 0.2);
    color: var(--text-light);
    border-radius: 10px;
    padding: 5px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: var(--primary-pink);
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.05));
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem 0;
    border: 1px solid var(--border-pink);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-pink);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-pink) !important;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Avatar Gallery Styles */
.avatar-tabs {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--border-pink);
    border-radius: 50px;
    padding: 5px;
    gap: 5px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-pink), #ff69b4);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.avatar-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-pink);
}

.avatar-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 20, 147, 0.3);
}

.avatar-age-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-pink);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .app-card {
        margin-bottom: 1rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .avatar-image-placeholder {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .language-selector {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .avatar-image-placeholder {
        height: 250px;
    }
}

/* Filter Form Styles */
.form-control,
.form-select {
    background: var(--card-bg);
    border: 1px solid var(--border-pink);
    color: var(--text-light);
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--card-bg);
    border-color: var(--primary-pink);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 20, 147, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Pagination Styles */
.pagination {
    gap: 0.5rem;
}

.page-link {
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-pink);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-pink), #ff69b4);
    color: white;
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-pink);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-pink), #ff69b4);
    color: white;
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px var(--shadow-pink);
}

.page-item.disabled .page-link {
    background: rgba(26, 26, 26, 0.5);
    color: var(--text-muted);
    border-color: rgba(255, 20, 147, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(26, 26, 26, 0.5);
    color: var(--text-muted);
}

/* Fix text visibility on light backgrounds */
.bg-light,
.bg-white,
.premium-card,
.guide-card,
.accordion-body,
section.bg-light,
section.py-5.bg-light,
.modal-content,
.card {
    color: #333 !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.premium-card h1,
.premium-card h2,
.premium-card h3,
.premium-card h4,
.premium-card h5,
.premium-card h6,
.guide-card h1,
.guide-card h2,
.guide-card h3,
.guide-card h4,
.guide-card h5,
.guide-card h6,
.accordion-body h1,
.accordion-body h2,
.accordion-body h3,
.accordion-body h4,
.accordion-body h5,
.accordion-body h6 {
    color: #333 !important;
}

.bg-light p,
.bg-light ul,
.bg-light ol,
.bg-light li,
.bg-light span,
.bg-light small,
.bg-white p,
.bg-white ul,
.bg-white ol,
.bg-white li,
.bg-white span,
.bg-white small,
.premium-card p,
.premium-card ul,
.premium-card ol,
.premium-card li,
.premium-card span,
.premium-card small,
.guide-card p,
.guide-card ul,
.guide-card ol,
.guide-card li,
.guide-card span,
.guide-card small,
.accordion-body p,
.accordion-body ul,
.accordion-body ol,
.accordion-body li,
.accordion-body span,
.accordion-body small {
    color: #555 !important;
}

/* Text muted should be darker on light backgrounds */
.bg-light .text-muted,
.bg-white .text-muted,
.premium-card .text-muted,
.guide-card .text-muted,
.accordion-body .text-muted {
    color: #666 !important;
}

/* Ensure links remain visible */
.bg-light a:not(.btn):not(.cta-button),
.bg-white a:not(.btn):not(.cta-button),
.premium-card a:not(.btn):not(.cta-button),
.guide-card a:not(.btn):not(.cta-button),
.accordion-body a:not(.btn):not(.cta-button) {
    color: var(--primary-pink) !important;
}

.bg-light a:not(.btn):not(.cta-button):hover,
.bg-white a:not(.btn):not(.cta-button):hover,
.premium-card a:not(.btn):not(.cta-button):hover,
.guide-card a:not(.btn):not(.cta-button):hover,
.accordion-body a:not(.btn):not(.cta-button):hover {
    color: var(--primary-purple) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top i {
    font-size: 28px;
    font-weight: bold;
}

/* Pulse animation for scroll button */
@keyframes pulse-scroll {
    0% {
        box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 105, 180, 0.6);
    }
    100% {
        box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    }
}

.scroll-to-top:hover {
    animation: pulse-scroll 1.5s infinite;
}

/* Responsive adjustments for scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .scroll-to-top i {
        font-size: 24px;
    }
}