* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.admin-link {
    background: #667eea !important;
    color: white !important;
}

.admin-link:hover {
    background: #5a6fd8 !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
}

.hero h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.pix-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
}

.pix-info i {
    font-size: 1.5rem;
    color: #00bc8c;
}

.pix-info span {
    color: white;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Upload Cards */
.upload-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.upload-card.premium {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.upload-card.free {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f0f9f0 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.5rem;
}

.upload-card.premium .card-header i {
    color: #ffd700;
}

.upload-card.free .card-header i {
    color: #28a745;
}

.card-header h3 {
    font-size: 1.3rem;
    color: #333;
}

/* Upload Section */
.upload-section {
    margin-bottom: 1.5rem;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-label i {
    font-size: 2rem;
    color: #667eea;
}

.upload-label span {
    font-weight: 500;
    color: #333;
}

input[type="file"] {
    display: none;
}

/* File Status */
.file-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.file-status-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-status-text.success {
    color: #28a745;
}

.file-status-text.error {
    color: #dc3545;
}

/* Price Section */
.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.free-price {
    color: #28a745;
}

.download-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.download-btn:hover:not(.disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.download-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Floating Element */
.floating-excel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    z-index: 1000;
    transition: right 0.3s ease;
    display: none;
}

.floating-excel.show {
    right: 20px;
}

.excel-preview {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 300px;
    cursor: move;
}

.excel-header {
    background: #217346;
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.excel-title {
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.excel-content {
    padding: 1rem;
}

.excel-content table {
    width: 100%;
    border-collapse: collapse;
}

.excel-content th,
.excel-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.8rem;
}

.excel-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal .close:hover {
    color: #333;
}

.modal h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pix-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pix-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.payment-instructions {
    margin-bottom: 2rem;
}

.payment-instructions h3 {
    color: #333;
    margin-bottom: 1rem;
}

.payment-instructions ol {
    padding-left: 1.5rem;
}

.payment-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

/* Gratitude Section */
.gratitude {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 0;
    text-align: center;
    border-radius: 20px;
    margin: 2rem 0;
}

.gratitude-content {
    max-width: 600px;
    margin: 0 auto;
}

.gratitude i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.gratitude h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.gratitude p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.back-to-top {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-to-top:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-radius: 20px 20px 0 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    margin-left: auto;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification button:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-section {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-excel.show {
        right: 10px;
    }
    
    .excel-preview {
        width: 280px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .upload-card {
        padding: 1.5rem;
    }
    
    .upload-label {
        padding: 1.5rem;
    }
    
    .excel-preview {
        width: 260px;
    }
}

/* Animações adicionais */
.upload-card {
    animation: fadeInUp 0.6s ease;
}

.upload-card:nth-child(1) { animation-delay: 0.1s; }
.upload-card:nth-child(2) { animation-delay: 0.2s; }
.upload-card:nth-child(3) { animation-delay: 0.3s; }
.upload-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}