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

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

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.main-content {
    padding: 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.upload-area h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.file-info {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 40px;
}

.file-meta {
    flex: 1;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #fecaca;
}

.quota-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quota-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    flex: 1;
}

.quota-icon {
    font-size: 28px;
}

.quota-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quota-text strong {
    font-size: 14px;
    color: #166534;
}

.quota-text span {
    font-size: 12px;
    color: #15803d;
}

.btn-upgrade {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.action-area {
    margin-bottom: 20px;
}

.btn-convert {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-convert:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-convert:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-area {
    text-align: center;
}

.result-success {
    background: #f0fdf4;
    border-radius: 16px;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.result-success h3 {
    font-size: 24px;
    color: #166534;
    margin-bottom: 24px;
}

.btn-download {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.paypal-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.paypal-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.paypal-card h3 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.period {
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
}

.features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.features li {
    padding: 10px 0;
    font-size: 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.features li:last-child {
    border-bottom: none;
}

#paypal-button-container {
    margin: 24px 0;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.footer {
    background: #f9fafb;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 480px) {
    .container {
        border-radius: 0;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .quota-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-upgrade {
        width: 100%;
    }
}
