/* Premium Design Variables */
:root {
    --primary-cyan: #00f5ff;
    --primary-teal: #008b8b;
    --accent-cyan: #40e0d0;
    --dark-bg: #0a0f14;
    --darker-bg: #050a0f;
    --card-bg: rgba(10, 25, 35, 0.9);
    --glass-bg: rgba(0, 20, 30, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #708090;
    --border-color: rgba(0, 245, 255, 0.2);
    --glow-cyan: 0 0 30px rgba(0, 245, 255, 0.4);
    --glow-teal: 0 0 20px rgba(0, 139, 139, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 139, 139, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(64, 224, 208, 0.04) 0%, transparent 60%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: dotFloat 15s ease-in-out infinite;
    opacity: 0.6;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-cyan);
    filter: drop-shadow(var(--glow-cyan));
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.version-badge {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-bg);
    box-shadow: var(--glow-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--glow-teal);
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.nav-container {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    font-size: 0.9rem;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 245, 255, 0.1);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-cyan));
    color: var(--dark-bg);
    box-shadow: var(--glow-cyan);
    font-weight: 600;
}

.tab-icon {
    width: 18px;
    height: 18px;
}

/* Tab Content */
.tab-panel {
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.tab-panel.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Card */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--glow-teal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.form-group {
    position: relative;
}

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

.input-icon {
    position: absolute;
    left: 1.25rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition-smooth);
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 30, 40, 0.8);
}

.form-input:focus + .input-icon {
    color: var(--primary-cyan);
}

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

/* Access Button */
.access-btn {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-cyan));
    color: var(--dark-bg);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: var(--glow-cyan);
}

.access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-cyan));
}

.access-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.access-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 15, 20, 0.3);
    border-top: 2px solid var(--dark-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    z-index: 10;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-cyan);
    animation: checkmark 0.8s ease-out;
    filter: drop-shadow(var(--glow-cyan));
}

.success-message h3 {
    color: var(--primary-cyan);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Progress Tab */
.progress-container {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.progress-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-primary);
}

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

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--background-light);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.progress-percentage {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.countdown-item {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.countdown-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update Info */
.update-info {
    margin-top: 2rem;
}

.info-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card li {
    padding: 1rem;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-card li:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

/* Support Tab */
.support-container {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-primary);
    width: 100%;
}

.support-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 16px;
    transition: var(--transition);
}

.support-feature:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.support-feature .feature-icon {
    font-size: 1.5rem;
}

.support-feature div {
    display: flex;
    flex-direction: column;
}

.support-feature strong {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.support-feature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

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

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .login-card,
    .progress-card,
    .support-card {
        padding: 2rem 1.5rem;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-tab {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .countdown {
        grid-template-columns: 1fr;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes dotFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) translateX(8px);
        opacity: 0.9;
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 40px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

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

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}