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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-dot.red {
    background-color: #F44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

#walletText {
    font-size: 14px;
    color: #666;
}

.btn-connect {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-connect:hover {
    background: #5568d3;
}

/* Banner Section */
.banner-section {
    margin: 20px 0;
}

.banner-image {
    width: 100%;
    aspect-ratio: 4/2;
    object-fit: cover;
    border-radius: 10px;
}

/* Video Demo Section */
.video-demo-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 315px;
    height: 158px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-video {
    width: 315px;
    height: 158px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.replay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}

.replay-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Upload Form */
.upload-form {
    margin-top: 30px;
}

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

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

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-upload {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

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

.btn-upload:active {
    transform: translateY(0);
}

.rocket-icon {
    font-size: 20px;
}

/* Status Page */
.status-container {
    text-align: center;
    padding: 20px 0;
}

.status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.status-container h2 {
    color: #333;
    margin-bottom: 10px;
}

.status-container p {
    color: #666;
    margin-bottom: 30px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 30px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.status-details {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.status-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.status-details span {
    font-weight: bold;
    color: #333;
}

/* Download Section */
.download-section {
    margin-top: 30px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 10px;
}

.download-section h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #45a049;
}

/* Error Section */
.error-section {
    margin-top: 30px;
    padding: 20px;
    background: #ffebee;
    border-radius: 10px;
}

.error-section h3 {
    color: #F44336;
    margin-bottom: 15px;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-retry {
    padding: 12px 30px;
    background: #F44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-retry:hover {
    background: #d32f2f;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .file-input-wrapper {
        flex-direction: column;
    }
    
    .video-wrapper {
        width: 100%;
        max-width: 315px;
        height: auto;
        aspect-ratio: 2/1;
    }
    
    .demo-video {
        width: 100%;
        height: auto;
    }
    
    .replay-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .mute-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

