/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #001f3f 0%, #003d7a 30%, #0074d9 60%, #39cccc 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

/* Underwater Animation Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 219, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 219, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%);
    animation: bubbleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

/* Floating particles */
body::after {
    content: '🐠 🐟 🦈 🐙 🦑 🐚 🌊';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    opacity: 0.1;
    animation: oceanLife 30s linear infinite;
    pointer-events: none;
    z-index: -1;
    white-space: pre;
    line-height: 3;
}

@keyframes oceanLife {
    0% { transform: translateX(-100px) translateY(100vh); }
    100% { transform: translateX(100vw) translateY(-100px); }
}

/* Header Styles */
header {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

header.header-visible {
    transform: translateY(0);
    opacity: 1;
    animation: headerBounceIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile optimizations for header */
@media (max-width: 768px) {
    header {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }
    
    header.header-visible {
        animation: headerBounceIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body {
        padding-top: 70px;
    }
}

/* Account Page Styles */
.account-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

/* Welcome banner styles */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
    animation: wbFadeIn 400ms ease-out;
    margin-bottom: 16px;
}
.wb-left { display: flex; align-items: center; gap: 10px; }
.wb-emoji { font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.wb-text { font-size: 2rem; font-weight: 700; letter-spacing: 0.2px; }
.logout-btn {
    appearance: none;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.logout-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.15); }
.logout-btn:active { transform: translateY(0); }
@keyframes wbFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bottom Logout Button */
.logout-bottom { display: flex; justify-content: center; margin: 24px 0 8px; }
.logout-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-bottom-btn:hover { background: #f8fafc; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* Points Header */
.points-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: slideInFromTop 1s ease-out;
}

.points-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.points-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-icon {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.points-sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.points-info {
    color: white;
    flex: 1;
}

.points-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.points-value {
    font-size: 4rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: pointsGlow 2s ease-in-out infinite alternate;
}

.points-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Rewards Shop */
.rewards-shop {
    margin-bottom: 3rem;
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.shop-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.shop-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.mini-reward-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: cardSlideIn 0.6s ease-out;
}

.mini-reward-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mini-reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.mini-reward-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-emoji {
    font-size: 2.5rem;
    animation: cardEmojiFloat 3s ease-in-out infinite;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-points {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.card-points-icon {
    font-size: 1.2rem;
}

.card-redeem-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-redeem-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.card-redeem-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Login Prompt */
.login-prompt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.login-prompt::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.prompt-content {
    position: relative;
    z-index: 2;
}

.prompt-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.login-prompt h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-prompt p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.prompt-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.prompt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Logged In Content */
.logged-in-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.account-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pointsGlow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.8); }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardEmojiFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-page-container {
        padding: 1rem;
    }
    
    .points-header {
        padding: 2rem 1.5rem;
    }
    
    .points-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .points-title {
        font-size: 2rem;
    }
    
    .points-value {
        font-size: 3rem;
    }
    
    .mini-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .prompt-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prompt-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .account-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .account-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: #667eea;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Audio Controls */
.audio-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.audio-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.audio-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.audio-btn.active {
    opacity: 1;
    background: rgba(72, 187, 120, 0.2);
}

.audio-btn.muted {
    opacity: 0.3;
    filter: grayscale(100%);
}

@media (max-width: 768px) {
    .audio-controls {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .audio-btn {
        font-size: 1rem;
        padding: 0.3rem;
    }
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
}

.section {
    display: block; /* Changed from none to block */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 31, 63, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 219, 226, 0.2);
    animation: bubbleUp 0.6s ease-out; /* Added animation here */
}

.section.active {
    display: block;
    /* animation: bubbleUp 0.6s ease-out; Removed since it's now default */
}

/* Account Page Styles */
.account-simple-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.points-display {
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.15), rgba(0, 255, 150, 0.15));
    border-radius: 25px;
    border: 3px solid rgba(0, 150, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.2);
}

.points-display h2 {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(45deg, #0096ff, #00ff96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.total-points-text {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.points-number {
    color: #ff6b35;
    font-weight: 900;
    font-size: 2.2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    animation: pointsGlow 2s ease-in-out infinite alternate;
}

@keyframes pointsGlow {
    from {
        text-shadow: 2px 2px 6px rgba(255, 107, 53, 0.3);
    }
    to {
        text-shadow: 2px 2px 15px rgba(255, 107, 53, 0.6);
    }
}

/* Product Cards Section */
.product-cards-section {
    margin-bottom: 3rem;
}

.product-cards-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 150, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.3);
}

.product-card-image {
    width: 60px;
    height: 60px;
    font-size: 3rem;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1), rgba(0, 255, 150, 0.1));
    border-radius: 50%;
}

.product-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-card-price {
    font-size: 0.9rem;
    color: #ff6b35;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Redeem Rewards Section (kept for compatibility) */
.redeem-rewards-section {
    margin-bottom: 3rem;
}

.redeem-rewards-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.reward-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.reward-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.reward-info {
    padding: 1rem;
}

.reward-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.reward-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.reward-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-tag {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.redeem-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.redeem-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth Section with Switch Animation */
.auth-section {
    background: linear-gradient(135deg, rgba(57, 204, 204, 0.1), rgba(0, 116, 217, 0.1));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(57, 204, 204, 0.2);
    backdrop-filter: blur(10px);
}

.auth-message {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(0, 150, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.auth-message p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.auth-tabs-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(0, 31, 63, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-tabs::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(50% - 0.5rem);
    height: calc(100% - 1rem);
    background: linear-gradient(135deg, #39cccc, #0074d9);
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.auth-tabs.signup-active::before {
    transform: translateX(100%);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.auth-tab {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    color: white;
}

.auth-tab:hover {
    color: #333;
}

.auth-tab.active:hover {
    color: white;
}

.auth-forms-container {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

.auth-form-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.auth-form-wrapper.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.auth-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.1);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    text-indent: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-container input:focus {
    border-color: #39cccc;
    background: white;
    box-shadow: 0 0 0 3px rgba(57, 204, 204, 0.1);
    outline: none;
}

.form-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    z-index: 1;
}

.password-container {
    position: relative;
}

.password-group {
    position: relative;
}

.password-group input {
    padding-right: 3.5rem !important;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    font-size: 1.2rem;
    color: #666;
}

.eye-icon {
    font-size: 1.2rem;
    color: #666;
}

.auth-submit-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Comic Neue', cursive;
    margin-top: 1rem;
}

.login-btn-improved {
    background: linear-gradient(135deg, #39cccc, #0074d9);
    color: white;
    box-shadow: 0 6px 20px rgba(57, 204, 204, 0.3);
}

.signup-btn-improved {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-ripple {
    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;
}

.auth-submit-btn:hover .btn-ripple {
    left: 100%;
}

/* Forgot Password Button */
.forgot-password-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 0;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.forgot-password-btn:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.forgot-password-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.forgot-password-btn:hover::after {
    width: 100%;
}

/* Legacy Auth Buttons (kept for compatibility) */
.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.signup-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-effect {
    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;
}

.auth-btn:hover .btn-effect {
    left: 100%;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-weight: 600;
    font-style: normal;
}

/* Rewards Store Styles */
.rewards-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.rewards-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rewards-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-points-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    padding: 1rem 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    animation: pointsBounce 2s ease-in-out infinite;
}

@keyframes pointsBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.points-icon {
    font-size: 1.5rem;
    animation: pointsRotate 3s linear infinite;
}

@keyframes pointsRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.points-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rewards-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.reward-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.reward-card:hover::before {
    opacity: 1;
    animation: cardShine 0.5s ease;
}

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

.reward-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.reward-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: rewardFloat 3s ease-in-out infinite;
}

@keyframes rewardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.reward-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.reward-cost {
    font-size: 1.2rem;
    color: #ffeaa7;
    margin-bottom: 1rem;
    font-weight: bold;
}

.reward-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.redeem-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.redeem-btn:disabled {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.redemption-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.redemption-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.redemption-history {
    max-height: 400px;
    overflow-y: auto;
}

.redemption-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.redemption-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.redemption-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.redemption-icon {
    font-size: 2rem;
}

.redemption-details h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.redemption-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.redemption-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@keyframes bubbleUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-text h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Black Hole Animation */
.black-hole-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-hole {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #000 30%, #333 60%, #666 100%);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.garbage-items {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.garbage-item {
    position: absolute;
    font-size: 2rem;
    animation: orbit 4s linear infinite;
}

.garbage-item:nth-child(1) {
    animation-delay: 0s;
    top: 20%;
    left: 20%;
}

.garbage-item:nth-child(2) {
    animation-delay: 1.3s;
    top: 60%;
    right: 20%;
}

.garbage-item:nth-child(3) {
    animation-delay: 2.6s;
    bottom: 20%;
    left: 40%;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: 2px solid rgba(120, 219, 226, 0.3);
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #0074d9, #39cccc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 204, 204, 0.6);
    border-color: rgba(120, 219, 226, 0.6);
    background: linear-gradient(45deg, #39cccc, #78dbe2);
}

.btn-secondary {
    background: linear-gradient(45deg, #003d7a, #0074d9);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.6);
    border-color: rgba(120, 219, 226, 0.6);
    background: linear-gradient(45deg, #0074d9, #39cccc);
}

.btn-recyclable {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn-compostable {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

.btn-blackhole {
    background: linear-gradient(45deg, #424242, #212121);
    color: white;
}

/* Game Styles */
.game-container {
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.game-container h2 {
    font-size: 2.5rem;
    color: #39cccc;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(57, 204, 204, 0.6);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info > div {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.game-area {
    min-height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.instructions {
    text-align: center;
    padding: 2rem;
}

.instructions p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

.classification-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.classification-buttons button {
    position: relative;
    overflow: hidden;
}

.classification-buttons button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.classification-buttons button:active::before {
    width: 300px;
    height: 300px;
}

.classification-buttons button:active {
    animation: buttonPress 0.1s ease;
}

.classification-buttons button.correct {
    animation: correctGlow 0.5s ease;
}

.classification-buttons button.incorrect {
    animation: incorrectShake 0.5s ease;
}

.garbage-item-game {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    min-width: 120px;
}

.garbage-item-game:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.garbage-item-game.selected {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.05);
    animation: none;
}

.garbage-item-game.item-entrance {
    animation: itemEntrance 0.6s ease-out;
}

.garbage-item-game.item-exit {
    animation: itemExit 0.3s ease-in forwards;
}

.item-emoji {
    font-size: 3.5rem;
    margin-bottom: 6px;
    display: block;
    transition: transform 0.2s ease;
}

.garbage-item-game:hover .item-emoji {
    transform: scale(1.1);
}

.item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.garbage-item-game:hover .item-name {
    color: #667eea;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.score-float {
    position: absolute;
    pointer-events: none;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: floatUp 1s ease-out forwards;
    transform: translate(-50%, -20%);
}

@keyframes floatUp {
    0% { opacity: 0; transform: translate(-50%, 20%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -10%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1.2); }
}

/* AI tool styles removed */

/* Error Popup Styles */
.error-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(231, 76, 60, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: overlayFade 0.2s ease-out;
    pointer-events: none; /* do not block buttons */
}

.error-popup {
    background: #fff5f5;
    border: 2px solid #e74c3c;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    max-width: 520px;
    text-align: center;
    pointer-events: auto; /* keep popup clickable */
}

.error-title {
    color: #e74c3c;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #c0392b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Over Styles */
.game-over-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: block;
    z-index: 12;
    pointer-events: none; /* do not block buttons */
}

/* Full-screen end screen content */
.game-over-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: auto; /* allow interacting with links */
}

.go-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}

.go-score {
    font-size: 1.6rem;
    color: #eef2ff;
    margin-bottom: 1.4rem;
}

.go-points {
    font-weight: 900;
    color: #ffb86b;
    font-size: 1.8rem;
}

/* Pill-shaped Play Again button on end screen */
.game-over-content .play-again-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 999px;
}

/* Cooler login/signup buttons */
.login-save {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.45);
    filter: brightness(1.05);
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
}

.signup-btn {
    background: linear-gradient(135deg, #10b981, #22d3ee);
}


/* Error Popup Timer and Interaction Lock */
.error-footer { margin-top: 0.8rem; }
.error-timer-message { font-size: 0.95rem; color: #c0392b; font-weight: 700; margin-bottom: 0.4rem; text-align: center; }
.error-timer { position: relative; height: 6px; background: rgba(231, 76, 60, 0.25); border-radius: 6px; overflow: hidden; }
.error-timer-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #e74c3c; animation: errorTimer 5s linear forwards; }
@keyframes errorTimer { from { width: 0%; } to { width: 100%; } }

.classification-buttons.disabled { pointer-events: none; opacity: 0.5; filter: grayscale(0.3); }

/* Registration Styles */
.register-container {
    max-width: 800px;
    margin: 0 auto;
}

.register-container h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.register-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.benefits h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.register-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3.5rem !important;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.password-input-container .password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.password-requirements h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #28a745;
}

.check-icon {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    min-width: 1rem;
}

.requirement.met .check-icon {
    color: #28a745;
}

/* Verification Code Section */
.verification-actions {
    margin-top: 0.5rem;
    text-align: right;
}

.verification-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

#verificationGroup {
    background-color: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6c3;
    margin-top: 1rem;
}

#verificationGroup label {
    color: #155724;
    font-weight: 600;
}

#verificationGroup input {
    border-color: #28a745;
}

#verificationGroup input:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.login-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(240, 147, 251, 0.05);
    border-radius: 15px;
}

.login-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: rgba(45, 55, 72, 0.9);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide and transform nav links for mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: background-color 0.2s ease;
    }
    
    .nav-links a:hover {
        background-color: rgba(102, 126, 234, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Adjust logo size for mobile */
    .logo h1 {
        font-size: 1.4rem;
    }
    
    /* Ensure nav stays compact */
    nav {
        padding: 0 1rem;
    }
    
    /* Mobile Hero Optimization */
    .hero {
        padding: 1rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* Reorder: black hole first, then text */
        grid-template-areas: 
            "animation"
            "text";
    }
    
    .hero-image {
        grid-area: animation;
        order: -1;
    }
    
    .hero-text {
        grid-area: text;
    }
    
    .hero-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .black-hole-animation {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem auto;
    }
    
    .black-hole {
        width: 120px;
        height: 120px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .classification-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .guess-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .register-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section {
        padding: 0.8rem;
        margin: 0.5rem;
    }
    
    main {
        padding: 0.5rem;
        margin-top: 60px;
    }
    
    /* Ensure mobile viewport fits without scrolling */
    body {
        padding-top: 60px;
    }
    
    /* Reduce orbit animation for smaller mobile screens */
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(70px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
    }
    
    /* Mobile Account Page Styles */
    .account-simple-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .points-display {
        padding: 1.5rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reward-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .auth-section {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .auth-tabs-container {
        max-width: 100%;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .input-container input {
        padding: 0.9rem 2.5rem 0.9rem 2.5rem;
        text-indent: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .auth-message {
        padding: 1rem;
    }
    
    .account-header {
        flex-direction: column;
        text-align: center;
    }
    
    .account-info {
        text-align: center;
    }
    
    .account-content {
        grid-template-columns: 1fr;
    }
    
    .rewards-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pointPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1) translateY(-50px);
    }
}

@keyframes lifeLost {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.3) rotate(-10deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
}

@keyframes gameOverShake {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate(-50%, -50%) rotate(-2deg);
    }
    20%, 40%, 60%, 80% {
        transform: translate(-50%, -50%) rotate(2deg);
    }
}

@keyframes itemEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes itemExit {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes correctGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(72, 187, 120, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(72, 187, 120, 0.8);
    }
}

@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

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

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) rotate(360deg) translateY(-30px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerBounceIn {
    0% {
        opacity: 0;
        transform: translateY(-100%) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(5%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes educationalPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes educationalShake {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(-1deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(1deg);
    }
}

/* Success/Error Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    margin-bottom: 10px;
}

.message.secondary-message {
    margin-top: 10px;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

.message.info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid #2196F3;
}

/* Educational Timeout Styling */
.educational-timeout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.educational-content {
    background: #e53e3e;
    border: 2px solid #c53030;
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.educational-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    order: 1;
    font-weight: bold;
}

.educational-content p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
    order: 2;
}

.educational-content button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 1px solid #0056b3;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.educational-content button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .educational-timeout {
        max-width: 90%;
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .educational-timeout div:first-child {
        font-size: 1.5rem !important;
    }
}

/* Confirmation Modal Styles */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.confirmation-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: white;
    animation: slideIn 0.3s ease;
}

.confirmation-modal h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.confirmation-modal p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.confirmation-modal .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.confirmation-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.confirmation-modal input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.confirmation-modal input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-buttons .btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-cancel {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #c53030;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .confirmation-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Beautiful Account Page Styles */
.account-auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.account-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.account-hero-content h2 {
    font-size: 3rem;
    color: #001f3f;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.account-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.benefit-card {
    background: linear-gradient(135deg, #39cccc, #0074d9);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.benefit-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(0, 31, 63, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-tab {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
}

.auth-tab.active {
    background: linear-gradient(135deg, #39cccc, #0074d9);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 116, 217, 0.3);
}

.auth-tab:hover:not(.active) {
    background: rgba(0, 116, 217, 0.1);
    color: #0074d9;
}

.auth-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-help {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

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

/* Enhanced form styles for account page */
.auth-form-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #001f3f;
}

.auth-form-container .form-group input,
.auth-form-container .form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.auth-form-container .form-group input:focus,
.auth-form-container .form-group select:focus {
    outline: none;
    border-color: #39cccc;
    box-shadow: 0 0 0 3px rgba(57, 204, 204, 0.1);
    transform: translateY(-2px);
}

.auth-form-container .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form-container .btn-primary {
    background: linear-gradient(135deg, #39cccc, #0074d9);
    border: none;
    color: white;
}

.auth-form-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 116, 217, 0.3);
}

/* Responsive design for account page */
@media (max-width: 768px) {
    .account-auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .account-hero-content h2 {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .auth-tabs {
        max-width: 350px;
        padding: 0.3rem;
    }
    
    .auth-tab {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .auth-tabs::before {
        top: 0.3rem;
        left: 0.3rem;
        width: calc(50% - 0.3rem);
        height: calc(100% - 0.6rem);
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .account-hero-content h2 {
        font-size: 2rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-tabs {
        max-width: 320px;
        padding: 0.25rem;
    }
    
    .auth-tab {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        min-height: 44px; /* Better touch target */
    }
    
    .auth-tabs::before {
        top: 0.25rem;
        left: 0.25rem;
        width: calc(50% - 0.25rem);
        height: calc(100% - 0.5rem);
    }
    
    .auth-section {
        padding: 1rem 0.75rem;
        margin: 0.25rem;
    }
    
    .auth-message {
        padding: 1rem;
    }
    
    .auth-message p {
        font-size: 1.1rem;
    }
    
    .auth-form {
        padding: 1.25rem;
    }
}

/* Newsletter Section Styles */
.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0074d9, #39cccc);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: newspaperPattern 20s linear infinite;
}

@keyframes newspaperPattern {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.newsletter-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.newsletter-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.newsletter-date {
    font-size: 1rem;
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Featured Story */
.featured-story {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ff4757;
}

.story-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.story-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.story-tag {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #34495e;
}

/* Ocean Pollution Chart */
.ocean-pollution-chart {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease;
}

.chart-bar.fish .bar-fill {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.chart-bar.plastic .bar-fill {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.bar-label, .bar-value {
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.bar-value {
    margin-left: auto;
}

/* Statistics Grid */
.stats-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card.alarming {
    border-top-color: #e74c3c;
}

.stat-card.warning {
    border-top-color: #f39c12;
}

.stat-card.hopeful {
    border-top-color: #3498db;
}

.stat-card.positive {
    border-top-color: #27ae60;
}

.stat-card.energy {
    border-top-color: #f39c12;
    background: linear-gradient(135deg, #fff5e6, #ffffff);
}

.stat-card.jobs {
    border-top-color: #9b59b6;
    background: linear-gradient(135deg, #f4f0f7, #ffffff);
}

/* Pie Chart Styles */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 10px;
}

.pie-chart {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-color, #27ae60) 0deg calc(var(--percentage, 50) * 3.6deg),
        var(--secondary-color, #e74c3c) calc(var(--percentage, 50) * 3.6deg) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pie-chart.energy-pie {
    --primary-color: #27ae60;
    --secondary-color: #e74c3c;
}

.pie-chart.plastic-pie {
    --primary-color: #e74c3c;
    --secondary-color: #27ae60;
}

.pie-center {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pie-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.pie-label {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    line-height: 1;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.saved {
    background: #27ae60;
}

.legend-color.used {
    background: #e74c3c;
}

.legend-color.not-recycled {
    background: #e74c3c;
}

.legend-color.recycled {
    background: #27ae60;
}

.job-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 1.5rem;
}

.worker {
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.worker:nth-child(1) { --i: 0; }
.worker:nth-child(2) { --i: 1; }
.worker:nth-child(3) { --i: 2; }
.worker:nth-child(4) { --i: 3; }

.waste-trend {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 60px;
    margin-top: 10px;
}

.trend-bar {
    width: 15px;
    border-radius: 3px 3px 0 0;
    animation: growUp 1.5s ease-out;
}

.economic-impact {
    text-align: center;
    margin-top: 10px;
}

.money-icons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.money {
    animation: pulse 1.5s infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

.money:nth-child(1) { --i: 0; }
.money:nth-child(2) { --i: 1; }
.money:nth-child(3) { --i: 2; }

.impact-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.waste-growth {
    text-align: center;
    margin-top: 10px;
}

.growth-text {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 5px;
}

.growth-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes growUp {
    from {
        height: 0;
    }
    to {
        height: var(--height, 100%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.stat-visual {
    margin-top: 1rem;
    width: 100%;
    overflow: hidden;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ring-fill {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        #e74c3c 0deg,
        #e74c3c calc(var(--progress) * 3.6deg),
        #ecf0f1 calc(var(--progress) * 3.6deg),
        #ecf0f1 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-text {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #e74c3c;
}

/* Animal Icons */
.animal-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.animal-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.animal-icon.affected {
    background: rgba(231, 76, 60, 0.2);
    animation: shake 2s infinite;
}

.animal-icon.safe {
    background: rgba(39, 174, 96, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Recycling Chart */
.recycling-chart {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 200px;
}

.recycled {
    background: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.not-recycled {
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* CO2 Savings */
.co2-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tree-icons {
    display: flex;
    gap: 0.2rem;
}

.tree {
    font-size: 1.2rem;
    animation: sway 3s ease-in-out infinite;
}

.tree:nth-child(2) {
    animation-delay: 0.5s;
}

.tree:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.equals {
    font-weight: bold;
    font-size: 1.2rem;
}

.co2-icon {
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Timeline Section */
.timeline-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.timeline-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-duration {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
    padding: 0.5rem 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Action Section */
.action-section {
    background: linear-gradient(135deg, #00b894, #00a085);
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.action-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.action-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.action-impact {
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.impact-positive {
    color: white;
}

/* Success Section */
.success-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.success-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.success-story {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #27ae60;
}

.success-story:hover {
    transform: translateY(-5px);
}

.success-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.success-story h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.success-story p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.success-metric {
    font-weight: bold;
    color: #27ae60;
    padding: 0.5rem 1rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    padding: 3rem;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 500;
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Ocean Animation */
.ocean-animation {
    position: relative;
    height: 200px;
    background: linear-gradient(to bottom, #74b9ff 0%, #0984e3 100%);
    border-radius: 15px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50% 50% 0 0;
    animation: wave 3s ease-in-out infinite;
}

.wave1 {
    animation-delay: 0s;
}

.wave2 {
    animation-delay: 1s;
    opacity: 0.7;
}

.wave3 {
    animation-delay: 2s;
    opacity: 0.5;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.sea-life {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
}

.sea-creature {
    font-size: 2rem;
    animation: swim 4s ease-in-out infinite;
}

.sea-creature:nth-child(1) {
    animation-delay: 0s;
}

.sea-creature:nth-child(2) {
    animation-delay: 1s;
}

.sea-creature:nth-child(3) {
    animation-delay: 2s;
}

@keyframes swim {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(10px) translateY(-5px);
    }
    50% {
        transform: translateX(-5px) translateY(5px);
    }
    75% {
        transform: translateX(5px) translateY(-3px);
    }
}

/* Responsive Design for Newsletter */
@media (max-width: 768px) {
    .newsletter-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .newsletter-header {
        padding: 1.5rem;
    }
    
    .newsletter-header h1 {
        font-size: 2rem;
    }
    
    .newsletter-header h2 {
        font-size: 1.5rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .success-stories {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-header h1 {
        font-size: 1.8rem;
    }
    
    .newsletter-header h2 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Newsletter Mobile Fixes */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-visual {
        margin-top: 15px;
        overflow: hidden;
    }
    
    .recycling-chart {
        height: 30px;
        font-size: 0.8rem;
        display: flex;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .recycling-chart .recycled,
    .recycling-chart .not-recycled {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
        font-weight: bold;
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .pie-chart {
        width: 100px;
        height: 100px;
    }
    
    .pie-center {
        width: 60px;
        height: 60px;
    }
    
    .pie-percentage {
        font-size: 1rem;
    }
    
    .pie-label {
        font-size: 0.6rem;
    }
    
    .pie-legend {
        font-size: 0.75rem;
    }
    

    
    .floating-elements {
        display: none;
    }
    
    .job-icons {
        font-size: 1.2rem;
    }
    
    .waste-trend {
        height: 40px;
    }
    
    .trend-bar {
        width: 12px;
    }
    
    .money-icons {
        font-size: 1rem;
    }
    
    .timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .ocean-animation {
        height: 150px;
    }
}



/* AI Analysis Section Styles */
.ai-analysis-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.ai-analysis-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #0074d9, #39cccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.ai-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

.analysis-methods {
    margin-bottom: 2rem;
}

.method-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-tab {
    padding: 1rem 2rem;
    border: 2px solid rgba(120, 219, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.method-tab.active {
    background: linear-gradient(45deg, #0074d9, #39cccc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
    transform: translateY(-2px);
}

.method-tab:hover:not(.active) {
    background: rgba(120, 219, 226, 0.2);
    transform: translateY(-1px);
}

.analysis-method {
    display: none;
    animation: fadeIn 0.3s ease;
}

.analysis-method.active {
    display: block;
}

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

/* Photo Upload Styles */
.photo-upload-area {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 3px dashed rgba(120, 219, 226, 0.5);
    border-radius: 20px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upload-zone:hover {
    border-color: rgba(120, 219, 226, 0.8);
    background: rgba(120, 219, 226, 0.1);
    transform: translateY(-2px);
}

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

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: uploadFloat 3s ease-in-out infinite;
}

@keyframes uploadFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.upload-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-content p {
    color: #666;
    margin-bottom: 1rem;
}

.photo-preview {
    margin-top: 2rem;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.photo-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Text Analysis Styles */
.text-input-area {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.text-input-area label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.text-input-area textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(120, 219, 226, 0.3);
    border-radius: 15px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.text-input-area textarea:focus {
    outline: none;
    border-color: rgba(120, 219, 226, 0.8);
    box-shadow: 0 0 0 3px rgba(120, 219, 226, 0.2);
}

.text-input-area button {
    margin-top: 1rem;
    width: 100%;
}

/* Loading Styles */
.analysis-loading {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(120, 219, 226, 0.3);
    border-top: 4px solid #39cccc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-loading p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Results Styles */
.analysis-results {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 219, 226, 0.2);
    animation: resultsSlideIn 0.5s ease;
}

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

.result-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.result-content {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.result-content > div {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(120, 219, 226, 0.1);
}

.result-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.classification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.classification-badge.recyclable {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.classification-badge.compostable {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

.classification-badge.blackhole {
    background: linear-gradient(45deg, #424242, #212121);
    color: white;
}



.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.analyze-another-btn {
    padding: 1.2rem 3rem !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    min-width: 250px;
    transform: scale(1.1);
}

/* Tips Section */
.ai-tips {
    margin-top: 3rem;
    text-align: center;
}

.ai-tips h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.tip-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 219, 226, 0.2);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: tipFloat 4s ease-in-out infinite;
}

@keyframes tipFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    75% { transform: translateY(-3px) rotate(-2deg); }
}

.tip-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tip-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Mobile Responsiveness for AI Analysis */
@media (max-width: 768px) {
    .ai-analysis-container {
        padding: 1rem;
    }
    
    .ai-analysis-container h2 {
        font-size: 2.2rem;
    }
    
    .method-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .method-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .photo-actions {
        flex-direction: column;
    }
}

/* Celebration Animation Keyframes */
@keyframes celebrationFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pointsUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #FFD700;
    }
    100% {
        transform: scale(1);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #0074d9 0%, #39cccc 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffeb3b;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Comic Neue', cursive;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0074d9;
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Comic Neue', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #0074d9 0%, #39cccc 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 116, 217, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.modal-footer p {
    margin: 0;
    color: #666;
}

.modal-footer a {
    color: #0074d9;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* Enhanced Profile Page Styles */
.account-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.profile-hero {
    background: linear-gradient(135deg, rgba(116, 235, 213, 0.2) 0%, rgba(159, 172, 230, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

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

.account-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.account-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.account-level {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 16px rgba(252, 182, 159, 0.3);
    transform: translateY(-10px);
}

.level-badge {
    font-weight: 700;
    color: #8b4513;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.account-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

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

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

/* Match profile card text color with welcome banner (white) */
.section#profile .profile-card,
.section#profile .stat-item {
    color: #ffffff;
}
.section#profile .stat-label {
    color: #ffffff;
}

/* Primary action buttons (Full Shop + Logout) */
.full-shop-btn,
.logout-shop-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 1.1rem 2.2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}
.full-shop-btn:hover,
.logout-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.35);
    filter: brightness(1.05);
}
.full-shop-btn .btn-icon,
.logout-shop-btn .btn-icon { font-size: 1.3rem; }

.points-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    height: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 25px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    display: block;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-score {
    font-weight: 600;
    color: #fff;
}

.activity-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.activity-points {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Enhanced Rewards Store Styles */
.rewards-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.rewards-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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.rewards-header {
    position: relative;
    z-index: 1;
}

.rewards-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.points-banner {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.points-icon {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.rewards-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.reward-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-card:hover::before {
    opacity: 1;
}

.reward-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.reward-image {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}

.reward-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.reward-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.reward-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.reward-badge.exclusive {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

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

.reward-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.reward-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.reward-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.redeem-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.redeem-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.redeem-btn.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.redeem-btn.premium:hover {
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.4);
}

.redemption-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rewards-hero {
        padding: 1.5rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .reward-card {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Category filtering animation */
.reward-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.reward-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Readability overrides: Stats section - force black text */
.newsletter-container .stats-section .stat-card,
.newsletter-container .stats-section .stat-card *,
.newsletter-container .stats-section .stat-icon,
.newsletter-container .stats-section .stat-number,
.newsletter-container .stats-section .stat-label,
.newsletter-container .stats-section .growth-arrow,
.newsletter-container .stats-section .growth-text,
.newsletter-container .stats-section .bar-label,
.newsletter-container .stats-section .bar-value,
.newsletter-container .stats-section .pie-center,
.newsletter-container .stats-section .pie-percentage,
.newsletter-container .stats-section .pie-label {
  color: #111 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: initial !important;
}

/* My Idea Section styles */
#my-idea.section {
  background: #fff;
}
#my-idea .idea-container {
  max-width: 1000px;
  margin-inline: auto;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
#my-idea .idea-hero,
#my-idea .idea-text {
  text-align: center;
}
#my-idea .idea-hero h2 {
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.3px;
}
#my-idea .idea-subtitle {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  max-width: 820px;
  margin: 0 auto;
  font-weight: 800;
  background: linear-gradient(135deg, #39cccc, #0074d9, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#my-idea .idea-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  align-items: start;
  margin-top: 1.5rem;
}
#my-idea .idea-explanation {
  max-width: 800px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.8;
  color: #111;
  margin: 0 auto;
}
.idea-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.idea-points {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
}
.idea-points li {
  margin: 0.35rem 0;
}
.idea-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.note-icon { font-size: 1.25rem; }
.idea-visual { text-align: center; }
.bh-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #000 0%, #0b1020 40%, #111 100%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 12px 30px rgba(0,0,0,0.25);
}
.stars {
  position: absolute; inset: 0;
  background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent 60%),
              radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,0.6), transparent 60%),
              radial-gradient(2px 2px at 40% 80%, rgba(255,255,255,0.7), transparent 60%),
              radial-gradient(1px 1px at 60% 60%, rgba(255,255,255,0.5), transparent 60%);
  opacity: 0.6;
}
.event-horizon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 48%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0,0,0,0.9) inset, 0 0 50px rgba(0,0,0,0.7);
  background: radial-gradient(circle at 50% 50%, #000 0%, #111 60%, #000 100%);
}
.accretion {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 75%; height: 75%;
  border-radius: 50%;
  border: 6px solid rgba(102,126,234,0.25);
  filter: drop-shadow(0 0 14px rgba(102,126,234,0.35));
  animation: swirl 12s linear infinite;
}
.waste-icons {
  position: absolute;
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}
.waste-icons span {
  display: inline-block;
  font-size: 1.5rem;
  animation: fall-in 4s ease-in-out infinite;
}
.visual-caption {
  margin-top: 0.75rem;
  color: #eee;
  font-size: 0.9rem;
}
@keyframes swirl {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes fall-in {
  0% { transform: translateY(-30px) scale(0.95); opacity: 0; }
  40% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-30px) scale(0.95); opacity: 0; }
}
@media (max-width: 900px) {
  .idea-content { grid-template-columns: 1fr; }
  .idea-hero h2 { font-size: 1.7rem; }
  .idea-subtitle { font-size: 1rem; }
}
/* Project Disclaimer Footer */
.project-disclaimer {
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.8;
}
