/* Network recovery uses its own scoped shell; no page-specific CSS changes. */
.bt-connectivity-layer[hidden],
.bt-connectivity-banner[hidden] { display: none !important; }

.bt-connectivity-layer {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(8, 19, 31, .72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
}

.bt-connectivity-card {
    width: min(100%, 445px);
    padding: 32px 30px 25px;
    border: 1px solid rgba(8, 19, 31, .09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .23);
    text-align: center;
}

.bt-connectivity-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 23px;
    color: #142b45;
    font-size: 14px;
    font-weight: 900;
}

.bt-connectivity-brand img {
    width: 39px;
    height: 39px;
    border-radius: 10px;
}

.bt-connectivity-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 23px;
    color: #9a6900;
    background: #fff8e5;
    border: 1px solid #ffe7ab;
}

.bt-connectivity-icon svg {
    width: 43px;
    height: 43px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bt-connectivity-card h2 {
    margin: 0 0 10px;
    color: #142b45;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
}

.bt-connectivity-description {
    margin: 0 auto;
    max-width: 335px;
    color: #667085;
    font-size: 12.5px;
    line-height: 2;
}

.bt-connectivity-state {
    display: block;
    margin: 19px 0;
    padding: 10px 12px;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    background: #f8fafc;
    color: #667085;
    font-size: 11px;
}

.bt-connectivity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.bt-connectivity-primary,
.bt-connectivity-secondary {
    flex: 1 1 0;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 11px;
    font: 800 12px "Vazirmatn", Tahoma, sans-serif;
    cursor: pointer;
}

.bt-connectivity-primary {
    color: #08131f;
    background: #ffbd00;
    border: 1px solid #ffbd00;
}

.bt-connectivity-primary:hover { background: #ffd148; }

.bt-connectivity-secondary {
    color: #344054;
    background: #fff;
    border: 1px solid #d6dfe9;
}

.bt-connectivity-secondary:hover { background: #f8fafc; }

.bt-connectivity-primary:disabled { opacity: .65; cursor: wait; }

.bt-connectivity-card small {
    display: block;
    margin-top: 15px;
    color: #8a95a5;
    font-size: 10.5px;
    line-height: 1.9;
}

.bt-connectivity-banner {
    position: fixed;
    z-index: 100500;
    bottom: calc(15px + env(safe-area-inset-bottom));
    left: 15px;
    right: 15px;
    max-width: 510px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    background: #142b45;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(8,19,31,.25);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 11.5px;
    line-height: 1.7;
    direction: rtl;
}

.bt-connectivity-banner button {
    padding: 7px 11px;
    color: #08131f;
    background: #ffbd00;
    border: none;
    border-radius: 9px;
    white-space: nowrap;
    font: 800 11px "Vazirmatn", Tahoma, sans-serif;
    cursor: pointer;
}

.bt-connectivity-banner button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 480px) {
    .bt-connectivity-card { padding: 27px 19px 20px; border-radius: 18px; }
    .bt-connectivity-card h2 { font-size: 17px; }
    .bt-connectivity-description { font-size: 12px; }
    .bt-connectivity-brand { margin-bottom: 18px; }
    .bt-connectivity-banner { font-size: 11px; }
}
