/* ============================================================
   LCR Gate Interceptor — Styles
   Wallet badge, auth overlay, spinner, error states.
   Designed to integrate with dark-bg, gold-accent pages.
   ============================================================ */

/* ── Wallet Badge (Header) ─────────────────────────────────── */

#lcr-wallet-status {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.lcr-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
}

.lcr-wallet-connected {
    background: rgba(239, 215, 160, 0.12);
    border: 1px solid rgba(239, 215, 160, 0.3);
    color: #efd7a0;
}

.lcr-wallet-connect-btn {
    background: linear-gradient(135deg, rgba(239, 215, 160, 0.15), rgba(239, 215, 160, 0.08));
    border: 1px solid rgba(239, 215, 160, 0.4);
    color: #efd7a0;
    cursor: pointer;
    font-weight: 500;
}

.lcr-wallet-connect-btn:hover {
    background: linear-gradient(135deg, rgba(239, 215, 160, 0.25), rgba(239, 215, 160, 0.15));
    border-color: rgba(239, 215, 160, 0.6);
}

.lcr-wallet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}

.lcr-wallet-addr {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    opacity: 0.9;
}

.lcr-wallet-balance {
    font-weight: 600;
    color: #efd7a0;
}

.lcr-wallet-disconnect {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s;
}

.lcr-wallet-disconnect:hover {
    color: #ff6b6b;
}

/* ── Auth Overlay ──────────────────────────────────────────── */

.lcr-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.lcr-gate-overlay.active {
    display: flex;
}

.lcr-gate-overlay-box {
    position: relative;
    background: #1a1a2e;
    border: 1px solid rgba(239, 215, 160, 0.2);
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 380px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lcr-gate-overlay-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lcr-gate-overlay-close:hover {
    color: #fff;
}

.lcr-gate-overlay-icon {
    margin-bottom: 16px;
}

.lcr-gate-overlay-msg {
    color: #e0e0e0;
    font-size: 1rem;
    margin: 0 0 12px;
    line-height: 1.5;
}

.lcr-gate-overlay-detail {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0 0 20px;
    line-height: 1.6;
}

.lcr-gate-overlay-btn {
    background: linear-gradient(135deg, #efd7a0, #c5a059);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.lcr-gate-overlay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 215, 160, 0.3);
}

/* ── Spinner ───────────────────────────────────────────────── */

.lcr-gate-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(239, 215, 160, 0.2);
    border-top-color: #efd7a0;
    border-radius: 50%;
    animation: lcr-gate-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes lcr-gate-spin {
    to { transform: rotate(360deg); }
}
