/* Wallet Modal — matches site theme (dark bg, gold accents, Inter font) */

.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.wallet-modal-overlay.active {
    opacity: 1;
}

.wallet-modal {
    background: var(--bg-card, #111);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 168, 83, 0.1);
}

.wallet-modal-overlay.active .wallet-modal {
    transform: translateY(0) scale(1);
}

.wallet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal-header h3 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
}

.wallet-modal-body {
    padding: 20px 24px;
}

.wallet-modal-subtitle {
    color: var(--text-secondary, #888);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--text-primary, #fff);
}

.wallet-option:hover {
    background: rgba(212, 168, 83, 0.08);
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateY(-1px);
}

.wallet-option:active {
    transform: translateY(0);
}

.wallet-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.wallet-option-info {
    flex: 1;
    text-align: left;
}

.wallet-option-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary, #fff);
}

.wallet-option-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, #888);
    margin-top: 2px;
}

.wallet-option svg {
    color: var(--text-secondary, #666);
    flex-shrink: 0;
}

.wallet-modal-install {
    text-align: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal-install p {
    color: var(--text-secondary, #888);
    font-size: 13px;
    margin: 0 0 10px 0;
}

.wallet-install-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #D4A853, #B8903E);
    color: #000;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.wallet-install-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.wallet-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.wallet-modal-footer p {
    color: var(--text-secondary, #666);
    font-size: 11px;
    margin: 0;
}

.wallet-modal-footer a {
    color: #D4A853;
    text-decoration: none;
}

/* Wallet Status Bar (shown in header/booking) */
.wallet-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 10px;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.wallet-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.wallet-status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.wallet-status-address {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.wallet-status-network {
    font-size: 11px;
    color: var(--text-secondary, #888);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Transaction Status Toast */
.tx-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 20px;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    max-width: 380px;
    font-family: var(--font-body, 'Inter', sans-serif);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.tx-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.tx-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tx-toast-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tx-toast-status.pending {
    background: rgba(212, 168, 83, 0.2);
    color: #D4A853;
    animation: pulse 1.5s infinite;
}

.tx-toast-status.confirmed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.tx-toast-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

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

.tx-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
}

.tx-toast-message {
    font-size: 13px;
    color: var(--text-secondary, #888);
    margin-bottom: 10px;
}

.tx-toast-link {
    display: inline-block;
    font-size: 12px;
    color: #D4A853;
    text-decoration: none;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.tx-toast-link:hover {
    text-decoration: underline;
}

/* Connect Wallet Button (reusable) */
.btn-connect-wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #D4A853, #B8903E);
    color: #000;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

.btn-connect-wallet:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-connect-wallet .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .wallet-modal {
        max-width: 100%;
        margin: 0 12px;
        border-radius: 14px;
    }

    .wallet-modal-header,
    .wallet-modal-body,
    .wallet-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tx-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
