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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #000000 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

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

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 1s ease-out;
}

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

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
    to { filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1)); }
}

.status-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

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

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.status-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-subtitle {
    font-size: 1.3rem;
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.6;
    color: #cccccc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: slideUp 1s ease-out 0.6s both;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.card-label {
    font-size: 0.9rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #999999;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #ffffff;
    animation: spin 1s linear infinite;
}

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

.action-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out 0.9s both;
}

.retry-btn {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #000000;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 10px 20px;
    position: relative;
    overflow: hidden;
}

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

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

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

.retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-indicator {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #cccccc, #ffffff);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressFlow 2s ease-in-out infinite;
}

@keyframes progressFlow {
    0% { width: 0%; background-position: 200% 0; }
    50% { width: 70%; background-position: 0% 0; }
    100% { width: 0%; background-position: -200% 0; }
}

.info-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    animation: fadeIn 1.8s ease-out 1.2s both;
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.panel-content {
    line-height: 1.8;
    opacity: 0.8;
    color: #cccccc;
}

.highlight {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .status-title {
        font-size: 2.2rem;
    }
    
    .status-subtitle {
        font-size: 1.1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .retry-btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}

/* Additional animations */
.pulse {
    animation: pulse 2s infinite;
}

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

.error-state {
    border-color: #666666 !important;
    background: rgba(100, 100, 100, 0.1) !important;
}

.error-state .panel-title {
    color: #cccccc !important;
}

.success-state {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.success-state .panel-title {
    color: #ffffff !important;
}

.success-state .panel-content {
    color: #cccccc !important;
}
