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

:root {
    --primary-color: #FF69B4;
    --primary-dark: #FF1493;
    --secondary-color: #FFB6C1;
    --accent-color: #FFC0CB;
    --bg-color: #FFF5F7;
    --text-color: #2D3748;
    --text-light: #718096;
    --card-bg: #FFFFFF;
    --border-color: #FFE4E1;
    --shadow-sm: 0 2px 8px rgba(255, 105, 180, 0.1);
    --shadow-md: 0 4px 20px rgba(255, 105, 180, 0.15);
    --shadow-lg: 0 10px 40px rgba(255, 105, 180, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE4E8 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #FF1493, #FF69B4, #FFB6C1);
    color: white;
    padding: 1.2rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, #FF1493, #FF69B4, #FFB6C1, #FFC0CB);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary, .btn-outline, .btn-small {
    padding: 0.85rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.4);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.15);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.section {
    padding: 4rem 0;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF1493, #FFB6C1);
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF1493, #FF69B4, #FFB6C1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 105, 180, 0.3);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.badge {
    background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.badge-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 600;
    background: white;
}

.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.auth-card h1 {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 2rem;
}

.subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    transform: translateY(-1px);
}

.error-message {
    background: #FFE4E1;
    color: #D8000C;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success-message {
    background: #DFF2BF;
    color: #4F8A10;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.qa-list, .questions-list {
    margin-top: 2rem;
}

.qa-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.qa-item h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.qa-item h3 a:hover {
    color: var(--primary-color);
}

.qa-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD, #E1F5FE);
    color: #1976D2;
    border-left: 5px solid #2196F3;
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.footer {
    background: linear-gradient(135deg, #2D3748, #1a202c);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1493, #FF69B4, #FFB6C1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
    border: 4px solid white;
}

.profile-info h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-since {
    color: #666;
    font-size: 0.9rem;
}

.profile-section {
    margin: 2rem 0;
}

.profile-details {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.quiz-container {
    max-width: 750px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.ai-advice-box {
    background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.ai-advice-box h3 {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
}

.ai-content {
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group select {
    min-width: 150px;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.ask-question-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.question-detail {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.question-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: #666;
}

.question-content {
    line-height: 1.8;
    margin-top: 1.5rem;
}

.answers-section {
    margin-top: 2rem;
}

.answer-form {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.answer-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.answer-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.answer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.admin-nav {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

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

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
}

.admin-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-form-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .filter-bar {
        flex-direction: column;
    }
}
