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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #9945FF, #14F195);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #14F195, #00D1FF);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF00FF, #9945FF);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

#wavesCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0.4;
}

/* Shaving Animation */
.shaving-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

#shavingCanvas {
    width: 400px;
    height: 500px;
    filter: drop-shadow(0 0 30px rgba(153, 69, 255, 0.3));
}

/* Floating Popups */
.floating-popup {
    position: fixed;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: popupFloat 6s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-1 {
    bottom: 100px;
    left: 40px;
    animation-delay: 0s;
}

.popup-2 {
    top: 150px;
    right: 40px;
    animation-delay: -3s;
}

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

.popup-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #9945FF, #14F195);
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popup-text strong {
    color: #fff;
    font-size: 0.95rem;
}

.popup-text span {
    color: #888;
    font-size: 0.8rem;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #14F195, #9945FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

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

.nav-links .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-links .nav-icon:hover {
    color: #fff;
    transform: scale(1.1);
}

.nav-links .community-icon svg {
    filter: drop-shadow(0 0 6px rgba(74, 168, 216, 0.5));
}

.nav-links .community-icon:hover svg {
    filter: drop-shadow(0 0 10px rgba(74, 168, 216, 0.8));
}

.nav-links .pump-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14F195, #9945FF);
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    height: 40px;
}

.nav-links .pump-btn:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 241, 149, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 60px;
    max-width: 800px;
}

.title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #14F195, #9945FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Upload Area */
.upload-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: #14F195;
    background: rgba(20, 241, 149, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area p {
    color: #666;
    font-size: 0.95rem;
}

.preview {
    display: none;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(20, 241, 149, 0.3);
}

.preview.show {
    display: block;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cta-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

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

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 90%;
    animation: modalPop 0.4s ease;
    overflow: hidden;
}

.modal-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(20, 241, 149, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.modal.bald-result .modal-glow {
    background: radial-gradient(circle at center, rgba(20, 241, 149, 0.2) 0%, transparent 50%);
}

.modal.not-bald-result .modal-glow {
    background: radial-gradient(circle at center, rgba(255, 100, 100, 0.2) 0%, transparent 50%);
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-content.bald {
    color: #14F195;
}

.modal-content.not-bald {
    color: #FF6B6B;
}

.modal-content .emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
}

.modal-btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #14F195, #9945FF);
    color: #000;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: scale(1.05);
}

.modal-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
}

.modal-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Wallet Modal */
.wallet-modal {
    max-width: 450px;
}

.wallet-modal-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.wallet-modal-content .emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.wallet-modal-content h2 {
    color: #14F195;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.wallet-modal-content p {
    color: #888;
    margin-bottom: 20px;
}

.wallet-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

.wallet-input:focus {
    border-color: #14F195;
    background: rgba(20, 241, 149, 0.05);
}

.wallet-input::placeholder {
    color: #555;
}

.wallet-success {
    color: #14F195;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

.wallet-success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 20px 24px; }
    .nav-links { display: none; }
    .hero { padding: 40px 24px; }
    .title { font-size: 2.5rem; }
    .floating-popup { display: none; }
}
