:root {
    --bg-primary: #001a0f;
    --bg-secondary: rgba(0, 40, 30, 0.7);
    --bg-tertiary: rgba(0, 80, 60, 0.6);
    --text-primary: #e0fff0;
    --text-secondary: #a0ffd0;
    --accent: #00ffaa;
    --accent-secondary: #00ffcc;
    --border: rgba(0, 255, 170, 0.2);
    --gradient: linear-gradient(135deg, #00ffaa, #00ffcc, #00ffff);
    --glow: 0 0 30px rgba(0, 255, 170, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 255, 204, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #002015 0%, #001a0f 100%);
}

/* Enhanced Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(100px);
    opacity: 0.4;
}

.mesh-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 55%, rgba(0, 255, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(0, 255, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 45% 75%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
    animation: cyberFlow 20s ease-in-out infinite;
}

@keyframes cyberFlow {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateX(0);
    }
    25% {
        transform: scale(1.2) rotate(90deg) translateX(20px);
    }
    50% {
        transform: scale(0.9) rotate(180deg) translateX(-40px);
    }
    75% {
        transform: scale(1.1) rotate(270deg) translateX(60px);
    }
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    mix-blend-mode: screen;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.08), transparent);
    top: 15%;
    left: -10%;
    animation: cyberFloat 25s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.06), transparent);
    top: 65%;
    right: -5%;
    animation: cyberFloat 30s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05), transparent);
    bottom: 10%;
    left: 50%;
    animation: cyberRotate 35s linear infinite;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.04), transparent);
    top: 40%;
    right: 20%;
    animation: cyberPulse 15s ease-in-out infinite;
}

@keyframes cyberFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    20% {
        transform: translateY(-30px) translateX(50px) scale(1.2) rotate(45deg);
        opacity: 0.6;
    }
    40% {
        transform: translateY(25px) translateX(-25px) scale(0.9) rotate(90deg);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-50px) translateX(25px) scale(1.1) rotate(180deg);
        opacity: 0.7;
    }
    80% {
        transform: translateY(35px) translateX(-50px) scale(0.8) rotate(270deg);
        opacity: 0.5;
    }
}

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

@keyframes cyberPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.4) rotate(180deg);
        opacity: 0.6;
    }
}

/* Grid lines overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(rgba(0, 255, 170, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Content overlay */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Enhanced header with neon effect */
header {
    text-align: center;
    margin: 8rem 0 4rem;
    position: relative;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gradient-text {
    background: linear-gradient(90deg, #00ffaa, #00ffcc, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonFlicker 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px rgba(0, 255, 170, 0.6));
}

@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(0, 255, 170, 0.6));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 40px rgba(0, 255, 170, 0.9)) drop-shadow(0 0 20px rgba(0, 255, 204, 0.8));
        background-position: 100%;
    }
}

.subtitle {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: #c8c8ff;
    margin-top: 1.5rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Enhanced steps cyberpunk design */
.steps {
    margin: 6rem 0;
    position: relative;
}

.steps h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #00ffaa, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.step-card {
    background: rgba(0, 40, 30, 0.8);
    padding: 3.5rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    backdrop-filter: blur(25px);
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 255, 170, 0.1);
}

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

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

.step-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 
        0 25px 50px rgba(0, 255, 170, 0.2),
        0 0 60px rgba(0, 255, 170, 0.3);
}

.step-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 170, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.step-card:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.step-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: 
        drop-shadow(0 0 15px rgba(0, 255, 170, 0.6))
        drop-shadow(0 0 25px rgba(0, 255, 204, 0.4));
    transition: transform 0.3s ease;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { filter: drop-shadow(0 0 15px rgba(0, 255, 170, 0.6)) drop-shadow(0 0 25px rgba(0, 255, 204, 0.4)); }
    100% { filter: drop-shadow(0 0 25px rgba(0, 255, 170, 0.9)) drop-shadow(0 0 35px rgba(0, 255, 204, 0.7)); }
}

.step-card:hover .step-icon {
    transform: scale(1.3) rotate(10deg);
}

.step-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.step-btn {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.8), rgba(0, 255, 204, 0.8));
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: #001a0f;
    padding: 1.2rem 3rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(0, 255, 170, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

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

.step-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 255, 170, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent);
}

/* Enhanced comment section */
.comment-section {
    max-width: 800px;
    margin: 6rem auto;
}

.comment-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-form {
    background: rgba(0, 40, 30, 0.8);
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(0, 255, 170, 0.2);
    backdrop-filter: blur(30px);
    box-shadow: 
        0 8px 32px rgba(0, 255, 170, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#comment-input {
    width: 100%;
    min-height: 180px;
    background: rgba(0, 40, 30, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.2rem;
    resize: vertical;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 30px rgba(0, 255, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(0, 40, 30, 0.8);
}

::placeholder {
    color: rgba(200, 200, 255, 0.6);
}

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

.char-count {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 255, 170, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 255, 170, 0.6);
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
}

.submit-btn:hover .arrow {
    transform: translateX(12px) rotate(45deg);
}

/* Recent Comments with glassmorphism */
.recent-comments {
    margin: 5rem 0;
}

.recent-comments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.comments-list {
    max-width: 900px;
    margin: 0 auto;
}

.comment-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    animation: glassSlideIn 0.5s ease-out;
}

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

.comment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 59, 154, 0.15);
    border-color: rgba(255, 59, 154, 0.3);
}

.comment-item .author {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.comment-item .text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.comment-item .time {
    color: rgba(224, 224, 224, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Credit Balance */
.credit-balance {
    text-align: center;
    margin: 4rem 0;
}

.balance-card {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 2rem 4rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.refresh-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Modal with glassmorphism */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: glassFadeIn 0.3s ease;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    padding: 3.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.modal-content button {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 154, 0.3);
    transition: all 0.3s ease;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 154, 0.4);
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.2rem;
    cursor: pointer;
    color: rgba(224, 224, 224, 0.7);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

/* Enhanced glow dots */
.glow-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--accent),
        0 0 40px var(--accent),
        0 0 60px var(--accent);
    animation: enhancedTwinkle 3s ease-in-out infinite;
}

@keyframes enhancedTwinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.8);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Responsive cyberpunk design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .steps h2 {
        font-size: 2.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .step-card {
        padding: 3rem 2rem;
    }
    
    .step-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .steps h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 2.5rem;
    }
}