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

body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.terms-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

    .terms-btn:hover {
        border-color: #fff;
        color: #fff;
        background: rgba(255,255,255,0.05);
    }

.container {
    text-align: center;
    max-width: 600px;
}

.tagline {
    color: #666;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.pay-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-size: 48px;
    font-weight: 700;
    padding: 24px 72px;
    border-radius: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

    .pay-btn:hover {
        background-color: #e0e0e0;
        transform: scale(1.02);
    }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-content {
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .modal-header h2 {
        font-size: 22px;
        font-weight: 500;
        color: #fff;
    }

.close-modal {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

    .close-modal:hover {
        color: #fff;
    }

.currency-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    max-height: 300px;
    overflow-y: auto;
}

.currency-option {
    background-color: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 48px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s;
}

    .currency-option:hover {
        background-color: #262626;
        border-color: #555;
    }

.currency-name {
    font-weight: 500;
    font-size: 18px;
    color: #fff;
}

.currency-symbol {
    color: #aaa;
    font-size: 14px;
    font-family: monospace;
}

.address-card {
    background-color: #050505;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 20px;
    margin-top: 16px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 16px 0 20px 0;
}

#qrcode {
    background: white;
    padding: 12px;
    border-radius: 20px;
    display: inline-block;
}

.address-box {
    background-color: #000;
    padding: 14px;
    border-radius: 16px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    color: #ddd;
    border: 1px solid #2a2a2a;
    margin-bottom: 16px;
}

.copy-btn {
    background: #2a2a2a;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: background 0.2s;
}

    .copy-btn:hover {
        background: #3a3a3a;
    }

.status-message {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}

.error-msg {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

.loader {
    text-align: center;
    color: #888;
    padding: 20px;
}

.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.terms-content {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 32px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

    .terms-content h2 {
        color: #fff;
        margin-bottom: 24px;
        font-size: 28px;
    }

    .terms-content h3 {
        color: #ddd;
        margin: 24px 0 12px 0;
        font-size: 18px;
    }

    .terms-content p {
        color: #aaa;
        line-height: 1.6;
        margin-bottom: 16px;
        font-size: 14px;
    }

    .terms-content .legal-note {
        border-top: 1px solid #222;
        margin-top: 32px;
        padding-top: 20px;
        font-size: 12px;
        color: #666;
        font-style: italic;
    }

.close-terms {
    background: #2a2a2a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

    .close-terms:hover {
        background: #3a3a3a;
    }
