/* ==========================================================================
   بیم‌لند — assets/shell.css
   ========================================================================== */

/* -------------------------- نوار بالای صفحه -------------------------- */
.bl-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    background: linear-gradient(180deg, rgba(11, 18, 32, .97), rgba(11, 18, 32, .93));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bl-line);
    font-family: var(--bl-font);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.bl-topbar-row {
    max-width: 1180px;
    margin-inline: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bl-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: none;
}

.bl-brand-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, .5));
}

.bl-brand-word {
    color: var(--bl-text-hi);
    font-weight: 800;
    font-size: 17px;
    background: linear-gradient(90deg, var(--bl-text-hi), var(--bl-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
}

.bl-topbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bl-btn {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--bl-line);
    color: var(--bl-silver);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: .15s;
    white-space: nowrap;
}

.bl-btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--bl-blue-light);
    color: var(--bl-text-hi);
    transform: translateY(-1px);
}

.bl-btn-danger {
    border-color: rgba(239, 68, 68, .4);
    color: #fca5a5;
}

.bl-btn-eitaa {
    border-color: rgba(230, 81, 0, .45);
    color: #ffb74d;
}

.bl-btn-eitaa:hover {
    background: rgba(230, 81, 0, .18);
    border-color: #e65100;
}

.bl-btn-telegram {
    border-color: rgba(2, 132, 199, .45);
    color: #7dd3fc;
}

.bl-btn-telegram:hover {
    background: rgba(2, 132, 199, .18);
    border-color: #0284c7;
}

.bl-btn-updated {
    border-color: var(--bl-blue);
    color: var(--bl-blue-light);
}

.bl-btn-user {
    border-color: var(--bl-silver);
    color: var(--bl-text-hi);
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
}

.bl-btn-user:hover {
    background: var(--bl-blue);
    border-color: var(--bl-blue);
}

/* -------------------- بنر تبلیغاتی تصادفی (بالای صفحه) -------------------- */
.bl-top-banner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.bl-top-banner a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .16), rgba(56, 189, 248, .08));
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 10px;
    padding: 9px 16px;
    text-decoration: none;
    margin-top: 10px;
    transition: .15s;
}

.bl-top-banner a:hover {
    border-color: var(--bl-blue-light);
    background: linear-gradient(90deg, rgba(37, 99, 235, .25), rgba(56, 189, 248, .14));
}

.bl-top-banner-icon {
    font-size: 20px;
    flex: none;
}

.bl-top-banner-txt {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
    color: var(--bl-text-hi);
}

.bl-top-banner-txt b {
    font-size: 13px;
    white-space: nowrap;
}

.bl-top-banner-txt span {
    font-size: 11.5px;
    color: var(--bl-silver);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-top-banner-cta {
    flex: none;
    font-size: 11.5px;
    font-weight: bold;
    color: var(--bl-blue-light);
    white-space: nowrap;
}

@media (max-width: 560px) {
    .bl-top-banner-txt span { display: none; }
}

/* ------------------------ بلوک عنوان محصول ------------------------ */
.bl-title-block {
    max-width: 1180px;
    margin-inline: auto;
    padding: 4px 16px 16px;
    text-align: center;
}

.bl-product-title {
    margin: 0;
    font-size: clamp(19px, 3.2vw, 26px);
    font-weight: 800;
    color: var(--bl-text-hi);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* افکت جذاب: خط زیرین متحرک آبی درخشان */
.bl-product-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 90px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--bl-blue-light), var(--bl-blue), transparent);
    background-size: 200% 100%;
    animation: bl-shimmer 3.2s linear infinite;
}

@keyframes bl-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bl-product-subtitle {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--bl-blue-light);
    font-weight: 600;
}

.bl-live-info {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--bl-text-lo);
    font-family: ui-monospace, monospace;
}

.bl-live-info b {
    color: var(--bl-silver);
    font-family: inherit;
}

/* --------------------------- نوار وضعیت آفلاین ------------------------- */
.bl-net-status {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform .3s ease;
    background: var(--bl-warn);
    color: #1e293b;
    text-align: center;
    font-size: 12.5px;
    font-weight: bold;
    padding: 8px 12px;
}

.bl-net-status.show { transform: translateY(0); }
.bl-net-status.is-ok { background: var(--bl-success); color: #06281c; }

/* ------------------------------- فوتر ---------------------------------- */
.bl-footer {
    background: var(--bl-bg);
    border-top: 1px solid var(--bl-line);
    font-family: var(--bl-font);
    padding: 22px 16px 16px;
    margin-top: 40px;
    text-align: center;
}

.bl-promo-row {
    max-width: 900px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.bl-promo-circle {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--bl-text-lo);
    transition: .2s;
}

.bl-promo-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .35), rgba(15, 23, 42, .9));
    border: 1px solid var(--bl-line);
    transition: .2s;
}

.bl-promo-circle:hover .bl-promo-icon {
    border-color: var(--bl-blue-light);
    box-shadow: 0 0 16px rgba(56, 189, 248, .45);
    transform: translateY(-3px);
}

.bl-promo-circle:hover {
    color: var(--bl-text-hi);
}

.bl-promo-label {
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
}

.bl-footer-bottom {
    font-size: 12px;
    color: var(--bl-text-lo);
    padding-top: 14px;
    border-top: 1px solid var(--bl-line);
    max-width: 900px;
    margin-inline: auto;
}

/* --------------------------- مودال به‌روزرسانی -------------------------- */
.bl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 16, .7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bl-modal {
    background: var(--bl-panel);
    border: 1px solid var(--bl-line);
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--bl-font);
    text-align: right;
}

.bl-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bl-line);
    color: var(--bl-text-hi);
    font-weight: bold;
}

.bl-modal-head button {
    background: none;
    border: none;
    color: var(--bl-text-lo);
    font-size: 16px;
    cursor: pointer;
}

.bl-modal-body {
    padding: 14px 16px;
    overflow-y: auto;
}

.bl-changelog-entry { margin-bottom: 14px; }

.bl-changelog-date {
    color: var(--bl-blue-light);
    font-family: ui-monospace, monospace;
    font-size: 13px;
    margin-bottom: 6px;
}

.bl-changelog-entry ul {
    margin: 0;
    padding-inline-start: 18px;
    color: var(--bl-silver);
    font-size: 13px;
    line-height: 1.9;
}

/* ------------------------------ واکنش‌گرا ------------------------------ */
@media (max-width: 760px) {
    .bl-topbar-row { justify-content: center; }
    .bl-topbar-actions { justify-content: center; width: 100%; }
    .bl-brand-word { font-size: 15px; }
    .bl-live-info { gap: 8px 14px; }
    .bl-promo-circle { width: 72px; }
    .bl-promo-icon { width: 50px; height: 50px; font-size: 20px; }
}

@media (max-width: 420px) {
    .bl-btn { padding: 6px 8px; font-size: 11px; }
}
