/* ============================================================
   Beacon SDK — standalone CSS
   All styles needed for the beacon / playing-now feature.
   Host apps can override any --beacon-* custom property.
   ============================================================ */

:root {
    --beacon-primary: #4ECDC4;
    --beacon-primary-dark: #38b2ac;
    --beacon-accent: #FF6B6B;
    --beacon-accent-dark: #FF4444;
    --beacon-navy: #1b3358;
    --beacon-navy-light: #2a4a7f;
    --beacon-gold: #FFD93D;
    --beacon-slate: #6C7B95;
    --beacon-light-gray: #F4F5F7;
    --beacon-white: #ffffff;
    --beacon-text-primary: #1b3358;
    --beacon-text-secondary: #4a5568;
    --beacon-text-light: #a0aec0;
    --beacon-radius: 12px;
    --beacon-error: #E74C3C;
    --beacon-soft-coral: #FFE5E5;
    --beacon-coral: #FF6B6B;
}
.beacon-sdk {
    max-width: 500px;
    margin: 0 auto;
}

/* ============ PLAYING NOW TAB ============ */
.playing-container { padding: 12px 16px; padding-bottom: 80px; }
.playing-location-warn {
    background: #FFF3CD; border: 1px solid #FFEAA7; border-radius: var(--beacon-radius);
    padding: 10px 14px; font-size: 13px; color: #856404; cursor: pointer;
    margin-bottom: 12px; text-align: center;
}
.playing-map-wrap {
    position: relative; border-radius: var(--beacon-radius); overflow: hidden;
    margin: 0 auto 12px; max-width: 360px; background: var(--beacon-light-gray);
}
.playing-map-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-radius: var(--beacon-radius);
}
.playing-map-overlay {
    position: absolute; bottom: 8px; right: 8px;
}
.playing-map-expand-btn {
    background: rgba(255,255,255,0.95); border: none; border-radius: 8px;
    padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--beacon-navy);
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.playing-view-toggle {
    display: flex; background: var(--beacon-light-gray); border-radius: var(--beacon-radius);
    padding: 3px; margin-bottom: 12px; gap: 3px;
}
.playing-toggle-btn {
    flex: 1; padding: 8px; border: none; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--beacon-slate); transition: all 0.2s;
}
.playing-toggle-btn.active {
    background: white; color: var(--beacon-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#bsdk_courtsList {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.court-card {
    background: white; border-radius: var(--beacon-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden;
}
.court-card-body { padding: 10px 12px; }
.court-card-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; line-height: 1.3; }
.court-card-addr { font-size: 11px; color: var(--beacon-slate); margin-bottom: 4px; }
.court-card-dist { font-size: 11px; color: var(--beacon-primary); font-weight: 600; }
.court-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.court-card-actions button {
    flex: 1; padding: 6px; border-radius: 6px; border: none;
    font-size: 11px; font-weight: 600; cursor: pointer;
}
.court-dir-btn { background: var(--beacon-light-gray); color: var(--beacon-navy); }
.court-beacon-btn { background: var(--beacon-primary); color: white; }

.playing-past-toggle {
    width: 100%; padding: 10px; border: 1px solid #eee; border-radius: var(--beacon-radius);
    background: white; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-size: 13px; font-weight: 600; color: var(--beacon-slate);
}
.past-beacon-card {
    background: white; border-radius: var(--beacon-radius); padding: 12px 14px;
    margin-top: 8px; opacity: 0.65; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.past-beacon-card .beacon-card-time { color: var(--beacon-slate); }

/* Full map overlay */
.fullmap-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: white; z-index: 250;
}
.fullmap-header {
    position: absolute; top: 0; left: 0; right: 0; height: 56px;
    background: var(--beacon-navy); display: flex; align-items: center; padding: 0 16px; z-index: 2;
}
.fullmap-back {
    background: none; border: none; color: white; font-size: 24px; cursor: pointer;
    margin-right: 12px;
}
.fullmap-title { color: white; font-weight: 600; font-size: 16px; flex: 1; }
.fullmap-img {
    width: 100%; height: calc(100% - 56px); margin-top: 56px; object-fit: cover;
}
.fullmap-legend {
    position: absolute; bottom: 20px; left: 16px; right: 16px;
    background: rgba(255,255,255,0.95); border-radius: var(--beacon-radius);
    padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.fullmap-legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.fullmap-dot { width: 12px; height: 12px; border-radius: 50%; }
.fullmap-dot-active { background: #E53E3E; }
.fullmap-dot-court { background: #4ECDC4; }

/* Beacon card map & actions */
.beacon-card-map {
    width: 100%; height: 120px; object-fit: cover; border-radius: 8px;
    margin-bottom: 8px; display: block; background: var(--beacon-light-gray);
}
.beacon-card-bottom-actions {
    display: flex; gap: 8px; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.beacon-chat-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 12px 14px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, var(--beacon-primary), #38b2ac);
    color: white; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 8px rgba(78,205,196,0.3);
    touch-action: manipulation; -webkit-tap-highlight-color: rgba(78,205,196,0.3);
    min-height: 44px; position: relative; z-index: 2;
}
.beacon-directions-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 4px; padding: 12px 14px;
    border-radius: 10px; border: 1px solid var(--beacon-primary); background: white;
    color: var(--beacon-primary); font-size: 13px; font-weight: 600; cursor: pointer;
    touch-action: manipulation; -webkit-tap-highlight-color: rgba(78,205,196,0.3);
    min-height: 44px;
}

/* ---- Beacon Animations ---- */
@keyframes beaconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes beaconGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(255,60,60,0.4); }
    50% { box-shadow: 0 0 18px rgba(255,60,60,0.9), 0 0 36px rgba(255,60,60,0.4); }
}
@keyframes beaconFlash {
    0%, 100% { opacity: 1; background: linear-gradient(135deg, #FF4444, #FF6B6B); }
    50% { opacity: 0.85; background: linear-gradient(135deg, #FF6B6B, #FFD93D); }
}
@keyframes beaconBannerSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.tab-beacon-alert {
    position: absolute; top: 2px; right: calc(50% - 20px);
    width: 12px; height: 12px; border-radius: 50%;
    background: #FF4444; border: 2px solid rgba(19,37,68,0.92);
    animation: beaconPulse 1s ease-in-out infinite, beaconGlow 1s ease-in-out infinite;
}
@keyframes tabBeaconFlash {
    0%, 100% { color: #FF4444; transform: scale(1); filter: drop-shadow(0 0 4px rgba(255,68,68,0.6)); }
    50% { color: #FFFFFF; transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(255,68,68,1)); }
}
.tab-item.beacon-active {
    animation: tabBeaconFlash 0.6s ease-in-out infinite !important;
    position: relative;
}
.tab-item.beacon-active span {
    color: #FF4444;
    font-weight: 700;
}

/* Beacon intro text */
.playing-intro {
    margin: 0 16px 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #e8f4f8, #f0f7ff);
    border-radius: 14px;
    border-left: 4px solid var(--beacon-primary);
}
.playing-intro-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--beacon-navy);
    margin-bottom: 6px;
}
.playing-intro-text {
    font-size: 13px;
    color: var(--beacon-slate);
    line-height: 1.55;
}

/* Live banner */
.playing-live-banner {
    border-radius: var(--beacon-radius); padding: 14px 16px;
    cursor: pointer; text-align: center;
    background: linear-gradient(270deg, #FF4444, #FF6B6B, #FFD93D, #FF6B6B, #FF4444);
    background-size: 400% 400%;
    animation: beaconBannerSlide 3s ease infinite, beaconFlash 2s ease-in-out infinite;
    color: white; font-weight: 700; font-size: 15px;
    box-shadow: 0 4px 20px rgba(255,68,68,0.4);
    position: relative; overflow: hidden;
    /* hidden by default -- animations always run, just invisible */
    max-height: 0; opacity: 0; padding: 0 16px;
    margin-bottom: 0; pointer-events: none;
    transition: max-height 0.3s, opacity 0.3s, padding 0.3s, margin-bottom 0.3s;
}
.playing-live-banner.visible {
    max-height: 200px; opacity: 1; padding: 14px 16px;
    margin-bottom: 14px; pointer-events: auto;
}
.playing-live-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: beaconPulse 2s ease-in-out infinite;
}
.playing-live-banner .live-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: white; margin-right: 8px;
    animation: beaconPulse 0.8s ease-in-out infinite;
}
.playing-live-count {
    font-size: 24px; font-weight: 800; display: block; margin: 4px 0;
}
.playing-live-sub {
    font-size: 12px; font-weight: 500; opacity: 0.9;
}

/* My beacon */
.playing-my-beacon {
    background: linear-gradient(135deg, var(--beacon-primary), #38b2ac);
    border-radius: var(--beacon-radius);
    padding: 16px;
    margin-bottom: 16px;
    color: white;
}
.playing-my-beacon h3 { font-size: 16px; margin-bottom: 8px; }
.playing-my-beacon .beacon-court { font-size: 14px; opacity: 0.9; margin-bottom: 4px; }
.playing-my-beacon .beacon-timer { font-size: 13px; opacity: 0.8; margin-bottom: 12px; }
.playing-my-beacon .beacon-stats { display: flex; gap: 16px; margin-bottom: 12px; }
.playing-my-beacon .beacon-stat { font-size: 13px; }
.playing-my-beacon .beacon-actions { display: flex; gap: 8px; }
.playing-my-beacon .beacon-actions button {
    flex: 1; padding: 8px; border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.beacon-btn-extend { background: rgba(255,255,255,0.25); color: white; }
.beacon-btn-cancel { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.beacon-btn-chat { background: white; color: var(--beacon-primary); }

/* Beacon cards */
.beacon-card {
    background: white;
    border-radius: var(--beacon-radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.beacon-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.beacon-card-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; background: var(--beacon-light-gray);
}
.beacon-card-info { flex: 1; }
.beacon-card-name { font-weight: 600; font-size: 14px; }
.beacon-card-skill { font-size: 12px; color: var(--beacon-slate); }
.beacon-card-time { font-size: 11px; color: var(--beacon-primary); font-weight: 600; }
.beacon-card-court { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.beacon-card-court-icon { color: var(--beacon-primary); font-size: 16px; }
.beacon-card-court-name { font-size: 13px; font-weight: 500; }
.beacon-card-court-dist { font-size: 12px; color: var(--beacon-slate); }
.beacon-card-message {
    background: var(--beacon-light-gray); border-radius: 8px;
    padding: 8px 10px; font-size: 13px; color: var(--beacon-text-secondary);
    margin-bottom: 10px; font-style: italic;
}
.beacon-card-footer { display: flex; align-items: center; gap: 8px; }
.beacon-card-responses { font-size: 12px; color: var(--beacon-slate); flex: 1; }
.beacon-card-btn {
    padding: 6px 14px; border-radius: 20px; border: none;
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.beacon-btn-omw { background: var(--beacon-primary); color: white; }
.beacon-btn-interested { background: var(--beacon-soft-coral); color: var(--beacon-coral); }
.beacon-btn-responded { background: var(--beacon-light-gray); color: var(--beacon-slate); }

/* Create button */
.playing-create-btn {
    position: fixed;
    bottom: calc(var(--tab-height) + 20px + env(safe-area-inset-bottom, 0px));
    right: max(16px, calc(50% - 224px));
    width: 56px; height: 56px; border-radius: 28px;
    background: linear-gradient(135deg, var(--beacon-primary), #38b2ac);
    border: none; color: white; font-size: 28px;
    box-shadow: 0 4px 16px rgba(78,205,196,0.4);
    cursor: pointer; z-index: 90;
    display: flex; align-items: center; justify-content: center;
}

/* Beacon detail */
.beacon-detail-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200;
    display: flex; align-items: flex-end; justify-content: center;
}
.beacon-detail-sheet {
    background: white; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 480px; max-height: 85vh;
    overflow-y: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.beacon-detail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.beacon-detail-close {
    width: 32px; height: 32px; border-radius: 16px; border: none;
    background: var(--beacon-light-gray); font-size: 18px; cursor: pointer;
}
.beacon-detail-title { flex: 1; font-weight: 700; font-size: 16px; }

.beacon-detail-map {
    width: 100%; height: 160px; border-radius: var(--beacon-radius);
    object-fit: cover; background: var(--beacon-light-gray); margin-bottom: 12px;
}
.beacon-responders { margin-bottom: 12px; }
.beacon-responders h4 { font-size: 13px; color: var(--beacon-slate); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.beacon-responder-row {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
}
.beacon-responder-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.beacon-responder-name { flex: 1; font-size: 13px; font-weight: 500; }
.beacon-responder-type { font-size: 11px; padding: 3px 8px; border-radius: 10px; }
.beacon-responder-omw { background: #e6faf8; color: var(--beacon-primary); }
.beacon-responder-interested { background: var(--beacon-soft-coral); color: var(--beacon-coral); }

/* Beacon chat */
.beacon-chat-area {
    border-top: 2px solid var(--beacon-primary); padding-top: 14px; margin-top: 12px;
    background: linear-gradient(to bottom, rgba(78,205,196,0.05), transparent);
    border-radius: 0 0 var(--beacon-radius) var(--beacon-radius);
    padding: 14px 4px 4px;
}
.beacon-chat-area h4 {
    display: flex; align-items: center; gap: 6px;
}
.beacon-chat-label {
    background: var(--beacon-primary); color: white; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
}
.beacon-chat-messages {
    max-height: 200px; overflow-y: auto; margin-bottom: 10px;
}
.beacon-chat-msg { display: flex; gap: 10px; margin-bottom: 10px; }
.beacon-chat-msg-avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 2px solid var(--beacon-light-gray);
}
.beacon-chat-msg-body { flex: 1; }
.beacon-chat-msg-name { font-size: 12px; font-weight: 700; color: var(--beacon-text-primary); }
.beacon-chat-msg-body {
    background: var(--beacon-light-gray); border-radius: 0 12px 12px 12px;
    padding: 8px 12px; flex: 1;
}
.beacon-chat-msg-text { font-size: 13px; color: var(--beacon-text-primary); }
.beacon-chat-msg-time { font-size: 10px; color: var(--beacon-text-light); }
.beacon-chat-input {
    display: flex; gap: 8px;
}
.beacon-chat-input input {
    flex: 1; padding: 10px 14px; border-radius: 20px;
    border: 1px solid #ddd; font-size: 14px; outline: none;
}
.beacon-chat-input button {
    padding: 10px 16px; border-radius: 20px; border: none;
    background: var(--beacon-primary); color: white; font-weight: 600;
    font-size: 14px; cursor: pointer;
}

/* Create beacon form */
.create-beacon-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 40px 16px;
    box-sizing: border-box;
}
.create-beacon-sheet {
    background: white; border-radius: 16px;
    width: 100%; max-width: 420px;
    margin: 0 auto;
    padding: 20px 16px 24px;
}
.create-beacon-sheet h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.court-search-wrap {
    position: relative; margin-bottom: 12px;
}
.court-search-input {
    width: 100%; padding: 12px 14px; border-radius: var(--beacon-radius);
    border: 1px solid #ddd; font-size: 14px; outline: none;
}
.court-search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-radius: 0 0 var(--beacon-radius) var(--beacon-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 200px;
    overflow-y: auto; z-index: 10; display: none;
}
.court-search-results.visible { display: block; }
.court-search-item {
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.court-search-item:hover { background: var(--beacon-light-gray); }
.court-search-item .court-item-name { font-weight: 600; }
.court-search-item .court-item-loc { color: var(--beacon-slate); font-size: 12px; }
.court-selected-card {
    background: var(--beacon-light-gray); border-radius: var(--beacon-radius);
    padding: 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.court-selected-name { font-weight: 600; font-size: 14px; flex: 1; }
.court-selected-remove {
    width: 24px; height: 24px; border-radius: 12px; border: none;
    background: rgba(0,0,0,0.1); cursor: pointer; font-size: 14px;
}
.create-beacon-field { margin-bottom: 14px; }
.create-beacon-field label { display: block; font-size: 13px; font-weight: 600; color: var(--beacon-slate); margin-bottom: 6px; }
.create-beacon-field select, .create-beacon-field input, .create-beacon-field textarea {
    width: 100%; padding: 10px 12px; border-radius: var(--beacon-radius);
    border: 1px solid #ddd; font-size: 14px; outline: none;
}
.create-beacon-field textarea { resize: none; height: 60px; }
.create-beacon-submit {
    width: 100%; padding: 14px; border-radius: var(--beacon-radius); border: none;
    background: linear-gradient(135deg, var(--beacon-primary), #38b2ac);
    color: white; font-size: 16px; font-weight: 700; cursor: pointer;
    margin-top: 8px;
}
.create-beacon-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Playing empty state */
.playing-empty {
    text-align: center; padding: 60px 20px; color: var(--beacon-slate);
}
.playing-empty-icon { font-size: 48px; margin-bottom: 12px; }
.playing-empty-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--beacon-text-primary); }
.playing-empty-sub { font-size: 14px; line-height: 1.5; }

/* ============ BEACON ALERT OVERLAY ============ */
@keyframes msgAlertBounce {
    0% { transform: scale(0.3) translateY(60px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes msgGlowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes beaconAlertPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.beacon-alert-overlay {
    position: fixed; inset: 0; z-index: 450;
    background: rgba(0,0,0,0.9);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px; text-align: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.beacon-alert-overlay.active { opacity: 1; visibility: visible; }
.beacon-alert-card {
    background: var(--beacon-white); border-radius: 24px;
    padding: 28px 24px; max-width: 340px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(255,68,68,0.4);
    animation: msgAlertBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.beacon-alert-card::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, #FF4444, #FFD93D, #FF4444, #FFD93D);
    background-size: 300% 300%;
    animation: msgGlowShift 1.5s ease infinite;
    z-index: -1;
}
.beacon-alert-icon {
    font-size: 56px; margin-bottom: 4px;
    animation: beaconAlertPulse 0.5s ease-in-out infinite alternate;
}
.beacon-alert-title {
    font-size: 20px; font-weight: 800; margin-bottom: 4px;
}
.beacon-alert-court {
    font-size: 16px; font-weight: 700; color: var(--beacon-navy); margin-bottom: 2px;
}
.beacon-alert-sub {
    font-size: 14px; color: var(--beacon-slate); margin-bottom: 16px;
}
.beacon-alert-body {
    background: var(--beacon-light-gray); border-radius: 12px;
    padding: 12px 16px; font-size: 15px; color: var(--beacon-text-primary);
    margin-bottom: 20px; font-weight: 600;
}
.beacon-alert-btn {
    width: 100%; padding: 16px; font-size: 16px; font-weight: 700;
    border: none; border-radius: 30px; cursor: pointer; margin-bottom: 10px;
    touch-action: manipulation;
}
.beacon-alert-btn-go {
    background: linear-gradient(135deg, var(--beacon-primary), #38b2ac);
    color: white; box-shadow: 0 4px 16px rgba(78,205,196,0.4);
}
.beacon-alert-btn-dismiss {
    background: transparent; color: var(--beacon-slate); font-size: 14px;
}

/* ============ SDK UTILITIES ============ */
.beacon-sdk-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: var(--beacon-navy); color: white; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; z-index: 9999;
    opacity: 0; transition: opacity 0.3s;
}
.beacon-sdk-toast.visible { opacity: 1; }

.beacon-sdk .spinner {
    width: 28px; height: 28px; border: 3px solid var(--beacon-light-gray);
    border-top-color: var(--beacon-primary); border-radius: 50%;
    animation: spin 0.6s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.beacon-sdk .loading-wrap { text-align: center; padding: 40px; }
