/* SBLTT Public CSS — explorer.sbalott.com integration */
:root {
    --sbltt-gold:   #d4a032;
    --sbltt-dark:   #0d0d0d;
    --sbltt-card:   #1a1a1a;
    --sbltt-border: #2e2e2e;
    --sbltt-green:  #22c55e;
    --sbltt-red:    #ef4444;
    --sbltt-blue:   #60a5fa;
    --sbltt-text:   #e0e0e0;
}

/* ── Wallet Wrap ─────────────────────────────────────────────────────────── */
.sbltt-wallet-wrap { font-family: inherit; color: #333; }

.sbltt-wallet-header-bar {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 2px solid var(--sbltt-gold);
}
.sbltt-logo-sm { width: 48px; height: 48px; object-fit: contain; }
.sbltt-wallet-header-bar h2 { margin: 0 0 .2rem; }
.sbltt-explorer-tag a { color: var(--sbltt-gold); font-size: .85rem; text-decoration: none; }

/* ── Balance Card ─────────────────────────────────────────────────────────── */
.sbltt-balance-card {
    display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(135deg, #1a1a0a, #0d0d0d);
    border: 1px solid var(--sbltt-gold);
    border-radius: 12px; padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
}
.sbltt-balance-icon { font-size: 2.5rem; }
.sbltt-balance-info { flex: 1; }
.sbltt-balance-label { font-size: .8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.sbltt-balance-amount { font-size: 1.8rem; font-weight: 700; color: var(--sbltt-gold); line-height: 1.2; }
.sbltt-balance-amount span { font-size: 1rem; }
.sbltt-balance-equiv { font-size: .85rem; color: #aaa; margin-top: .3rem; }
.sbltt-refresh-btn {
    background: none; border: 1px solid #444; color: #999;
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
    font-size: 1rem; transition: all .3s;
}
.sbltt-refresh-btn:hover { border-color: var(--sbltt-gold); color: var(--sbltt-gold); }
.sbltt-spin { animation: sbltt-rotate .6s linear infinite; }
@keyframes sbltt-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Wallet Meta ──────────────────────────────────────────────────────────── */
.sbltt-wallet-meta {
    background: #f9f9f9; border: 1px solid #e0e0e0;
    border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.sbltt-meta-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; }
.sbltt-meta-row:last-child { margin-bottom: 0; }
.sbltt-meta-label { color: #888; font-size: .85rem; min-width: 90px; }
.sbltt-address { font-size: .8rem; color: #333; word-break: break-all; }
.sbltt-explorer-link { color: var(--sbltt-gold); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.sbltt-explorer-link:hover { text-decoration: underline; }

/* ── Rates Row ────────────────────────────────────────────────────────────── */
.sbltt-rates-row {
    display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.sbltt-rate-card {
    flex: 1; min-width: 120px;
    background: #f5f5f5; border: 1px solid #e5e5e5;
    border-radius: 8px; padding: .8rem 1rem; text-align: center;
}
.sbltt-rate-label { font-size: .75rem; color: #888; margin-bottom: .3rem; }
.sbltt-rate-value { font-size: 1rem; font-weight: 700; color: #222; }

/* ── Actions ──────────────────────────────────────────────────────────────── */
.sbltt-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sbltt-btn-gold {
    background: var(--sbltt-gold) !important; color: #000 !important;
    border-color: var(--sbltt-gold) !important; font-weight: 600;
}
.sbltt-btn-gold:hover { background: #c49028 !important; }
.sbltt-btn-danger {
    background: #fff !important; color: var(--sbltt-red) !important;
    border-color: var(--sbltt-red) !important;
}
.sbltt-btn-secondary { border-color: #999 !important; }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.sbltt-msg { padding: .8rem 1rem; border-radius: 6px; margin: .8rem 0; font-size: .9rem; }
.sbltt-msg-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.sbltt-msg-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Link Box ─────────────────────────────────────────────────────────────── */
.sbltt-link-box {
    background: #fffdf5; border: 1px solid var(--sbltt-gold);
    border-radius: 10px; padding: 1.5rem; margin-bottom: 1rem;
}
.sbltt-link-box h3 { margin-top: 0; }
.sbltt-link-table { width: 100%; }
.sbltt-link-table td input { width: 100%; max-width: 300px; }

/* ── TX Table ─────────────────────────────────────────────────────────────── */
.sbltt-table-wrap { overflow-x: auto; }
.sbltt-tx-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.sbltt-tx-table th { background: #f5f5f5; padding: .6rem .8rem; text-align: left; font-size: .8rem; text-transform: uppercase; }
.sbltt-tx-table td { padding: .6rem .8rem; border-bottom: 1px solid #eee; }
.sbltt-type-credit { color: #166534; font-weight: 700; }
.sbltt-type-debit  { color: #991b1b; font-weight: 700; }
.sbltt-txid { color: #999; font-size: .75rem; word-break: break-all; }
.sbltt-empty { color: #888; font-style: italic; }

/* ── Checkout Box ─────────────────────────────────────────────────────────── */
.sbltt-checkout-box {
    background: #fafafa; border: 1px solid #e0e0e0;
    border-radius: 8px; padding: 1rem; margin-top: .5rem;
}
.sbltt-ticker-mini {
    background: #0d0d0d; color: var(--sbltt-gold);
    border-radius: 6px; padding: .5rem .8rem;
    font-size: .8rem; margin-bottom: .8rem;
}
.sbltt-wallet-summary { margin-top: .5rem; }
.sbltt-wallet-user { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.sbltt-badge-user {
    background: #1a1a0a; color: var(--sbltt-gold);
    border-radius: 20px; padding: .2rem .8rem; font-size: .85rem; font-weight: 600;
}
.sbltt-balance-row, .sbltt-order-cost {
    padding: .5rem .8rem; border-radius: 6px; margin-bottom: .4rem; font-size: .9rem;
}
.sbltt-balance-row.sbltt-ok  { background: #f0fdf4; border: 1px solid #86efac; }
.sbltt-balance-row.sbltt-low { background: #fef2f2; border: 1px solid #fca5a5; }
.sbltt-order-cost { background: #eff6ff; border: 1px solid #93c5fd; }
.sbltt-tx-note { color: #888; font-size: .8rem; margin: .4rem 0 0; }
.sbltt-error { color: #991b1b; background: #fef2f2; border-radius: 6px; padding: .5rem .8rem; font-size: .9rem; }
.sbltt-not-linked { text-align: center; padding: 1rem; }
.sbltt-hint { color: #888; font-size: .8rem; margin-top: .5rem; }

/* ── Product Badge ────────────────────────────────────────────────────────── */
.sbltt-badge {
    display: inline-block; background: var(--sbltt-gold);
    color: #000; font-size: .75rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 20px;
    margin-left: .4rem; vertical-align: middle;
}
.sbltt-product-price {
    background: #fffdf5; border: 1px solid var(--sbltt-gold);
    border-radius: 6px; padding: .5rem .8rem;
    font-size: .9rem; margin: .5rem 0;
}
