:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f9f9f9;
    --card-background: #fff;
    --border-color: #ddd;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --text-color: #f5f5f5;
    --text-light: #bbb;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --border-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

button:hover {
    background-color: var(--primary-dark);
}

button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.secondary-button {
    background-color: var(--text-light);
}

.secondary-button:hover {
    background-color: var(--text-color);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 25%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-color);
    transition: var(--transition);
}

.progress-step.active {
    background-color: var(--primary-color);
    color: white;
}

/* Crypto Selection */
.crypto-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.crypto-option {
    position: relative;
}

.crypto-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.crypto-option label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.crypto-option input[type="radio"]:checked+label {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.crypto-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Payment Details */
.payment-info {
    text-align: center;
}

.qr-container {
    margin: 20px auto;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
}

.wallet-address-container {
    margin: 20px 0;
}

.wallet-address-label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: 500;
}

.wallet-address-box {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.wallet-address-box code {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    font-family: monospace;
    padding: 5px;
    color: var(--text-color);
}

.icon-button {
    width: auto;
    background: none;
    padding: 8px;
    color: var(--text-color);
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.copy-icon {
    width: 20px;
    height: 20px;
}

.payment-warning {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 5px;
    text-align: left;
}

.highlight {
    font-weight: bold;
    color: var(--primary-color);
}

/* Confirmation */
.confirmation-details {
    text-align: center;
}

.confirmation-icon {
    margin: 20px auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--success-color);
}

.pending-icon {
    width: 80px;
    height: 80px;
    color: var(--warning-color);
}

.transaction-details {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    text-align: left;
}

.transaction-details h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    flex: 0 0 120px;
    font-weight: 500;
}

.detail-value {
    flex: 1;
}

.transaction-id {
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.confirmation-message {
    margin: 20px 0;
    color: var(--success-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 900;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 100;
}

.theme-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

/* Payment Status Message */
.payment-status-message {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 5px;
    text-align: left;
}

.payment-status-message ul {
    margin-top: 10px;
    padding-left: 20px;
}

.payment-status-message li {
    margin-bottom: 5px;
}

/* Add styles for the currency select dropdown */
.currency-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.currency-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.dark .currency-select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f5f5f5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 15px;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        margin-bottom: 5px;
    }
}