@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.payment-container {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.invoice {
    color: #8b949e;
    font-size: 1rem;
    margin: 0;
}

.status {
    background-color: #238636;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
    white-space: nowrap;
}

.status.pending {
    background-color: #f7931a;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.total {
    background-color: #0d1117;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.total p {
    margin: 0;
    font-size: 1.2rem;
    color: #8b949e;
}

.amount {
    font-size: 2.2rem !important;
    font-weight: 700;
    color: #c9d1d9 !important;
}

.currency-selection {
    margin-bottom: 1rem;
}

.currency-selection > p {
    color: #8b949e;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.currencies {
    display: flex;
    gap: 1rem;
}

.currency {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    flex-grow: 1;
    transition: all 0.2s ease-in-out;
}

.currency.active, .currency:hover {
    border-color: #58a6ff;
    background-color: #1f6feb26;
}

.currency i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.currency .fa-bitcoin { color: #f7931a; }

.currency-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.currency p {
    margin: 0;
    font-weight: 500;
}

.currency .ticker {
    color: #8b949e;
    font-size: 0.9rem;
}

.email-container {
    margin-top: 1.5rem;
}

.email-container label {
    display: block;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.email-container input {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
}

.email-container input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px #1f6feb4d;
}

.buy-button-container {
    margin-top: 1.5rem;
}

.buy-button {
    background-color: #238636;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.buy-button:hover {
    background-color: #2da042;
}

#payment-details {
    margin-top: 2rem;
    border-top: 1px solid #30363d;
    padding-top: 2rem;
}

#payment-details h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.qr-code img {
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.address {
    margin-bottom: 1rem;
}

.address > p {
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.address-input-container {
    position: relative;
}

#crypto-address {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding-right: 2.5rem; /* Make space for the icon */
}

.address-input-container i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8b949e;
    transition: color 0.2s;
}

.address-input-container i:hover {
    color: #c9d1d9;
}

.crypto-amount-container {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.warning {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-left-color: #f7931a;
    border-left-width: 4px;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #8b949e;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }
    
    .payment-container {
        padding: 1.5rem;
        border: none;
        max-width: 100%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .amount {
        font-size: 1.8rem !important;
    }

    .currencies {
        flex-direction: column;
    }
}
