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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #888;
    margin-top: 10px;
}

.upload-area {
    border: 3px dashed #444;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.upload-area:hover, .upload-area.dragover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.file-info {
    margin-top: 15px;
    color: #00d4ff;
    font-weight: 500;
}

.mode-selection {
    margin-top: 30px;
}

.mode-selection h3 {
    margin-bottom: 15px;
    color: #aaa;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mode-btn {
    background: rgba(255,255,255,0.05);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-align: left;
}

.mode-btn:hover {
    border-color: #555;
    background: rgba(255,255,255,0.08);
}

.mode-btn.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

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

.mode-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mode-desc {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.options {
    margin-top: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 25px;
}

.options h3 {
    margin-bottom: 20px;
    color: #aaa;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.option-group select, .option-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #1a1a2e;
    color: #fff;
    font-size: 1rem;
}

.option-group select:focus, .option-group input:focus {
    outline: none;
    border-color: #00d4ff;
}

.upload-btn {
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-message h2 {
    color: #00ff88;
    margin-bottom: 10px;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-box input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #0d1117;
    color: #00d4ff;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    background: #00ff88;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #00cc6a;
}

.warning {
    color: #ffaa00;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.new-upload-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.new-upload-btn:hover {
    border-color: #00d4ff;
}

.locked-icon, .ready-icon, .expired-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 20px;
}

#view-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

#view-section p {
    text-align: center;
    color: #aaa;
}

.countdown {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 30px 0;
    font-family: monospace;
}

.filename {
    text-align: center;
    color: #00d4ff;
    margin-top: 15px;
    font-family: monospace;
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 15px;
    padding: 18px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .mode-buttons {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 2rem;
    }
    .countdown {
        font-size: 2rem;
    }
}
