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

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

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 32px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.security-badge i {
    font-size: 16px;
}

/* Main Content */
.main-content {
    padding: 30px;
}

.section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ef4444;
}

.section h2 i {
    font-size: 22px;
}

/* Client Info */
.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.info-item p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

/* Order Summary */
.summary-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.item-label {
    color: #d1d5db;
    font-size: 15px;
}

.item-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 8px 0;
}

.summary-item.total {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(153, 27, 27, 0.2));
    padding: 16px;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.summary-item.total .item-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.summary-item.total .item-value {
    color: #ef4444;
    font-size: 24px;
    font-weight: 700;
}

/* PIX Payment */
.timer-container {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 15px;
}

.timer-container i {
    font-size: 20px;
    color: #ef4444;
}

.timer-container strong {
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
}

.timer-container.warning {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

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

/* QR Code */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 25px;
}

#qrcode {
    max-width: 100%;
    height: auto;
}

/* PIX Code */
.pix-code-container {
    margin-bottom: 25px;
}

.pix-code-container label {
    display: block;
    margin-bottom: 12px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.code-box {
    display: flex;
    gap: 10px;
}

#pixCode {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    outline: none;
}

.copy-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

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

.copy-success {
    margin-top: 12px;
    color: #10b981;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.copy-success.show {
    display: flex;
}

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

/* Instructions */
.instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.instructions h3 {
    color: #ef4444;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 12px;
    color: #d1d5db;
    line-height: 1.6;
}

.instructions strong {
    color: #ef4444;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.footer-info {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 16px;
    }

    .header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 20px;
    }

    .section {
        padding: 20px;
    }

    .code-box {
        flex-direction: column;
    }

    #pixCode {
        font-size: 11px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .summary-item.total .item-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo i {
        font-size: 24px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .section h2 {
        font-size: 18px;
    }

    .qr-code-container {
        padding: 20px;
    }
}
