.cloudpano-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    text-align: center;
    backdrop-filter: blur(2px);
    transition: opacity 0.4s ease;
}
.cloudpano-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.media-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}
.media-tile img,
.media-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-tile .ratio {
    width: 100%;
}
.perf-section{
    content-visibility:auto;
    contain-intrinsic-size: 600px;
}
.chat-modal .modal-content{
    border-radius:1.25rem;
    overflow:hidden;
    border:1px solid rgba(15,23,42,.08);
    box-shadow:0 24px 48px rgba(15,23,42,.16);
}
.chat-modal .modal-header{
    border-bottom:1px solid #eef1f4;
}
.chat-corner-dialog{
    position:fixed;
    right:1rem;
    bottom:1rem;
    margin:0;
    width:420px;
    max-width:calc(100vw - 2rem);
    height:78vh;
}
.chat-corner-modal .modal-content{
    height:100%;
    display:flex;
    flex-direction:column;
}
.chat-corner-modal .modal-body{
    flex:1 1 auto;
}
.chat-modal-iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
    background:#fff;
}
@media (max-width: 575.98px){
    .chat-corner-dialog{
        width:100%;
        height:85vh;
        right:0;
        bottom:0;
        max-width:100%;
    }
    .chat-corner-modal .modal-content{
        border-radius:1rem 1rem 0 0;
    }
}
.agent-connect-card{
    position:relative;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.08);
    background:linear-gradient(180deg, #ffffff, #f6f7fb);
    box-shadow:0 16px 28px rgba(15,23,42,.08);
    padding:1.25rem;
    overflow:hidden;
}
.agent-connect-card::before{
    content:"";
    position:absolute;
    top:-70px;
    right:-70px;
    width:160px;
    height:160px;
    background:radial-gradient(circle, rgba(37,99,235,.12), transparent 65%);
    pointer-events:none;
}
.agent-connect-label{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    font-size:.7rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#475569;
    background:#e2e8f0;
    padding:.25rem .65rem;
    border-radius:999px;
}
.agent-meta{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:1rem;
    margin-top:.75rem;
}
.agent-avatar{
    width:60px;
    height:60px;
    border-radius:14px;
    object-fit:cover;
}
.agent-socials a{
    width:32px;
    height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#fff;
    color:#495057;
    box-shadow:0 6px 14px rgba(15,23,42,.08);
}
.agent-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:.5rem;
    margin-top:.75rem;
}
.agent-status{
    margin-top:.75rem;
    display:flex;
    align-items:center;
    gap:.45rem;
    padding:.5rem .75rem;
    border-radius:12px;
    background:#fff7ed;
    border:1px dashed rgba(234,179,8,.5);
    color:#a16207;
    font-size:.85rem;
}
.app-download-card{
    margin-top:1rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.75rem 1rem;
    border-radius:14px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.app-download-card .app-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e2e8f0;
    color:#334155;
    font-size:1.1rem;
    flex:0 0 auto;
}
.app-download-card .app-text{
    font-size:.85rem;
    color:#6c757d;
    margin:0;
}
@media (max-width: 575.98px){
    .agent-actions{
        grid-template-columns:1fr;
    }
    .app-download-card{
        flex-direction:column;
        align-items:flex-start;
    }
}
.app-cta { box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.app-cta__icon{
    width:46px; height:46px;
    border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    color:#dc3545; /* bootstrap danger */
    flex:0 0 auto;
}
.app-cta__icon i{ font-size:22px; }
.app-cta__text{ line-height:1.25; }
.app-cta__btn{ white-space:nowrap; }

.report-card{
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.report-card__icon{
    width:46px;
    height:46px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    color:#6c757d; /* bootstrap muted-ish */
    flex:0 0 auto;
}

.report-card__icon i{ font-size:22px; }

.share-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    border:1px solid rgba(0,0,0,.06);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.share-icon i{ font-size:18px; line-height:1; }

.share-icon:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, .10);
    opacity:.95;
}

.share-icon--fb{ background:#1877F2; }
.share-icon--ig{ background:#E1306C; }
.share-icon--wa{ background:#25D366; }

/* even smaller on very small screens */
@media (max-width: 380px){
    .share-icon{ width:32px; height:32px; border-radius:9px; }
    .share-icon i{ font-size:17px; }
}

.agent-badge{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.28rem .6rem;
    border-radius:999px;
    font-weight:700;
    font-size:.78rem;
    line-height:1;
    border:1px solid transparent;
}
.agent-badge i{ font-size:1rem; }

.agent-badge--ok{
    color:#198754;
    background: rgba(25,135,84,.10);
    border-color: rgba(25,135,84,.25);
}

.agent-badge--no{
    color:#6c757d;
    background: rgba(108,117,125,.10);
    border-color: rgba(108,117,125,.25);
}
