:root {
    --primary-color: #FF6B00;
    --primary-hover: #ff5c00;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #F8F8F8;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --container-width: 800px;
    --card-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 64px;
}

header {
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    height: 32px;
}

.page-wrapper {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

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

.checkout-form {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.value-proposition {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.amount-info h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.fee-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.fee-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.fee-return {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.8;
}

.benefits {
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon i {
    color: var(--primary-color);
    font-size: 16px;
}

.input-group {
    margin-bottom: 16px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--card-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.security-logo {
    height: 20px;
    opacity: 0.6;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.creator-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

.creator-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    flex: 1;
}

.creator-name h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-name h2 .verified-badge {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
}

.creator-name h2 .verified-badge i {
    font-size: 20px;
}

.creator-name p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 24px;
    max-width: 360px;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timer {
    background: var(--background);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    width: 100%;
}

#qrContainer {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 204px;
    height: 204px;
}

#qrContainer img {
    display: block;
    width: 180px !important;
    height: 180px !important;
    max-width: 100%;
    max-height: 100%;
}

.qr-instructions {
    text-align: center;
    color: var(--text-secondary);
}

.qr-instructions p {
    margin-bottom: 6px;
    font-weight: 500;
}

.qr-instructions small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.copy-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.copy-button:hover {
    background: var(--primary-hover);
}

.payment-info {
    background: var(--background);
    border-radius: var(--card-radius);
    padding: 12px;
}

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

.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--background);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    background-color: var(--white);
    padding: 24px 0;
    border-top: 1px solid #EEEEEE;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    height: 24px;
    opacity: 0.6;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .amount {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    #qrContainer {
        width: 180px;
        height: 180px;
    }

    .creator-info {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .creator-picture {
        width: 56px;
        height: 56px;
    }

    .creator-name h2 {
        font-size: 1.1rem;
    }

    .creator-name p {
        font-size: 0.85rem;
    }
}
