/* ============================================================
   🏆 JASQANAT - HOME PAGE LEADERBOARD & LAYOUT (Көшбасшылар)
   Дизайн: Премиум көк стиль (Brand Blue), акцентті батырмалар, жарқыраған анимация
   Мобильді бейімделу: Android WebView және барлық смартфондар (Правило 9)
   ============================================================ */

/* 1. БАСТЫ КОНТЕЙНЕР (СИММЕТРИЧНЫЙ 2-КОЛОНОЧНЫЙ LAYOUT) */
.home-main-container {
    max-width: 1360px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 32px !important;
    box-sizing: border-box !important;
}

/* 2. СОЛ ЖАҚ БАҒАН: СЫНЫПТАР МЕН БАННЕРЛЕР */
.home-cards-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 860px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.home-cards-col .grades-grid.class-banners-grid {
    margin-bottom: 1rem !important;
}

.home-cards-col .cls-banner-nis {
    max-width: 100% !important;
}

/* 3. ОҢ ЖАҚ БАҒАН: КӨШБАСШЫЛАР РЕЙТИНГІ (LEADERBOARD SIDEBAR) */
.home-leaderboard-col {
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 90px !important;
    z-index: 20 !important;
}

/* 4.1 БЛОК ТЫСЫНДАҒЫ ТАЗА ТАҚЫРЫПША (ПРОСТО ТЕКСТ БЕЗ ОБВОДКИ И БЕЗ ВИДА КНОПКИ) */
.home-lb-outer-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
}

.home-lb-clean-heading {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hlb-nis-clean-text {
    color: #059669;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 4.2 КӨШБАСШЫЛАР КАРТОЧКАСЫ (ПРЕМИУМ КӨК ДИЗАЙН — ЖҰМСАҚ ЖИЕКТЕМЕ) */
.home-lb-card {
    background: #f8fbff; /* Жұмсақ ақшыл-көк таза фон */
    border: 1.5px solid #bfdbfe; /* Жұмсақ, жағымды ашық-көк жиектеме (выделяется аккуратно и не режет глаз) */
    border-radius: 24px;
    padding: 20px 18px 22px 18px;
    box-shadow: 0 10px 30px rgba(0, 87, 221, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-lb-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 38px rgba(0, 87, 221, 0.12), 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Декоративті жоғарғы сызық (Жұмсақ көк градиент) */
.home-lb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 50%, #60a5fa 100%);
}

/* 5. ШАПКА: КӨШБАСШЫЛАР ЖӘНЕ ТОП 10 (ІРІ, ҚАТАР) */
.home-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #dbeafe;
    margin-bottom: 14px;
}

.home-lb-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-lb-trophy {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 87, 221, 0.28));
    flex-shrink: 0;
}

.home-lb-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.home-lb-title-nis {
    color: #059669; /* фирменный изумрудный цвет НИШ */
    font-weight: 900;
    margin-right: 4px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ТОП 10 Live индикаторы — ірі, көрнекті, көк градиентті (нүктесіз) */
.home-lb-top10-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0057dd 0%, #003ea8 100%);
    color: #ffffff;
    font-size: 15px; /* Ірірек / Крупнее */
    font-weight: 900;
    padding: 7px 18px; /* Кеңірек / Просторнее */
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 87, 221, 0.32);
    letter-spacing: 0.6px;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.home-lb-top10-text {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 0.6px;
    font-size: 15px;
    line-height: 1.15;
}

/* 5.5 БАРЛЫҚ ПӘНДЕР РЕЙТИНГІ (ЖЕКЕ БАТЫРМА: 6 МОДУЛЬДЕН КЕЙІН, КУБОКСЫЗ, ІРІ ҚАРІППЕН) */
.home-lb-global-wrap {
    margin-top: 2px;
    margin-bottom: 14px;
    width: 100%;
}

.home-lb-global-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0057dd 0%, #003ea8 100%);
    border: 1.5px solid #2563eb;
    border-radius: 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 87, 221, 0.28);
    box-sizing: border-box;
    transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.home-lb-global-btn:hover {
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 87, 221, 0.38);
    border-color: #60a5fa;
    color: #ffffff !important;
}

.home-lb-global-btn:active {
    transform: translateY(0);
}

.home-lb-global-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-lb-global-text {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.2px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.home-lb-global-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-lb-global-btn:hover .home-lb-global-badge {
    background: rgba(255, 255, 255, 0.3);
}

.home-lb-global-arrow {
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.2s ease;
    display: inline-block;
}

.home-lb-global-btn:hover .home-lb-global-arrow {
    transform: translateX(3px);
}

/* 6. ПӘНДЕРДІ АУЫСТЫРҒЫШ (6 МОДУЛЬ — ТАЗА 2-БАҒАНДЫ ТОР, ИКОНКАЛАР МЕН ПӘНДІК ТҮСТЕР) */
.home-lb-switcher {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    align-items: center; /* Активті батырма көршісінен бірден биік әрі ірі болуы үшін */
    padding: 6px 3px;
}

/* Базалық карточка (таңдалмаған күй): Ықшам, таза, пастельді түсті */
.home-lb-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    border-radius: 13px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    line-height: 1.2;
    min-height: 38px;
    box-sizing: border-box;
    position: relative;
    opacity: 0.88;
}

/* Иконка контейнері */
.hlb-tab-ico-wrap {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.22s ease;
    padding: 2px;
    box-sizing: border-box;
}

.hlb-tab-ico-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 🎨 ТАҢДАЛМАҒАН КҮЙ: ӘР ПӘННІҢ ӨЗ ТҮСІ (Скриндағыдай нәзік пастельді түстер) */
/* 1. Математика (Жылы қызғылт-сары / Orange) */
.home-lb-tab-btn.sub-theme-math {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.8px solid #fdba74;
    color: #9a3412;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.1);
}
.home-lb-tab-btn.sub-theme-math .hlb-tab-ico-wrap { border: 1px solid #fed7aa; }

/* 2. Сандық сипат (Мятно-жасыл / Mint Green) */
.home-lb-tab-btn.sub-theme-sypat {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.8px solid #86efac;
    color: #166534;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.1);
}
.home-lb-tab-btn.sub-theme-sypat .hlb-tab-ico-wrap { border: 1px solid #bbf7d0; }

/* 3. Қазақ тілі (Көгілдір / Cyan) */
.home-lb-tab-btn.sub-theme-kaz {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border: 1.8px solid #67e8f9;
    color: #0e7490;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.1);
}
.home-lb-tab-btn.sub-theme-kaz .hlb-tab-ico-wrap { border: 1px solid #a5f3fc; }

/* 4. Орыс тілі (Қызғылт / Rose) */
.home-lb-tab-btn.sub-theme-rus {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1.8px solid #fecdd3;
    color: #9f1239;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.1);
}
.home-lb-tab-btn.sub-theme-rus .hlb-tab-ico-wrap { border: 1px solid #fda4af; }

/* 5. Ағылшын тілі (Корольдік көк / Royal Blue) */
.home-lb-tab-btn.sub-theme-eng {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.8px solid #93c5fd;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}
.home-lb-tab-btn.sub-theme-eng .hlb-tab-ico-wrap { border: 1px solid #bfdbfe; }

/* 6. Жаратылыстану (Лайм / Lime Green) */
.home-lb-tab-btn.sub-theme-science {
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
    border: 1.8px solid #bef264;
    color: #4d7c0f;
    box-shadow: 0 2px 6px rgba(132, 204, 22, 0.1);
}
.home-lb-tab-btn.sub-theme-science .hlb-tab-ico-wrap { border: 1px solid #d9f99d; }

/* Наведение на невыбранную кнопку */
.home-lb-tab-btn:hover:not(.active) {
    transform: translateY(-2px);
    opacity: 1;
    filter: brightness(0.97);
}

/* 🌟 ТАҢДАЛҒАН БАТЫРМА (ACTIVE): ӨТЕ ІРІ, ҚАНЫҚ ТҮСТІ, КӨЗГЕ БІРДЕН ТҮСЕТІН 3D-ЭФФЕКТ */
.home-lb-tab-btn.active {
    min-height: 56px !important;
    padding: 10px 14px !important;
    font-size: 14.5px !important;
    font-weight: 950 !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    transform: translateY(-4px) scale(1.08) !important;
    z-index: 10 !important;
    text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.45);
    opacity: 1 !important;
    letter-spacing: 0.3px;
}

.home-lb-tab-btn.active .hlb-tab-ico-wrap {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.06);
    padding: 2px !important;
}

.home-lb-tab-btn.active .hlb-tab-name {
    font-size: 14.5px !important;
    font-weight: 950 !important;
}

/* Активті түстер мен терең 3D-көлеңкелер */
.home-lb-tab-btn.sub-theme-math.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.home-lb-tab-btn.sub-theme-sypat.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.home-lb-tab-btn.sub-theme-kaz.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.home-lb-tab-btn.sub-theme-rus.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.home-lb-tab-btn.sub-theme-eng.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.home-lb-tab-btn.sub-theme-science.active {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%) !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 12px 32px rgba(132, 204, 22, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5) !important;
}

.hlb-tab-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 7. АҒЫМДАҒЫ ПӘН ТАҚЫРЫБЫ (БАТЫРМА ЕМЕС, ТАЗА ТЕКСТ) */
.home-lb-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px 0;
    padding: 2px 2px 8px 2px;
    border-bottom: 1.5px dashed #e2e8f0;
}

.home-lb-subject-pill {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.home-lb-season-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-lb-count {
    color: #0284c7;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    background: #eff6ff;
    padding: 3px 9px;
    border-radius: 8px;
    border: none !important;
}

/* 7.1 МАУСЫМДАР АУЫСТЫРҒЫШЫ (2x2 СЕТКА — МОНИТОРДА ДА, МОБИЛЬДЕ ДЕ ТОЛЫҚ СЫЯДЫ) */
.home-lb-season-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px 0;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.home-lb-sbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: 'Nunito', 'Inter', sans-serif !important;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
}

.home-lb-sbtn .hlb-sbtn-emoji {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.home-lb-sbtn .hlb-sbtn-name {
    line-height: 1.2;
}

/* 1-маусым (Жасыл Көктем), 2-маусым (Сары Жаз), 3-маусым (Қызғылт сары Күз), 4-маусым (Мұзды көк Қыс) */
.home-lb-sbtn.hlb-sbtn-1 { background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.home-lb-sbtn.hlb-sbtn-2 { background: #fefce8; border: 1.5px solid #fde047; color: #92400e; }
.home-lb-sbtn.hlb-sbtn-3 { background: #fff7ed; border: 1.5px solid #fdba74; color: #9a3412; }
.home-lb-sbtn.hlb-sbtn-4 { background: #f0f9ff; border: 1.5px solid #7dd3fc; color: #075985; }

.home-lb-sbtn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.home-lb-sbtn.active {
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    min-height: 42px;
    transform: translateY(-2px);
    font-weight: 900;
}

.home-lb-sbtn.hlb-sbtn-1.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42) !important;
}
.home-lb-sbtn.hlb-sbtn-2.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.44) !important;
}
.home-lb-sbtn.hlb-sbtn-3.active {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.42) !important;
}
.home-lb-sbtn.hlb-sbtn-4.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.44) !important;
}

/* 8. КӨШБАСШЫЛАР ТІЗІМІ (СКРИНДЕГІДЕЙ АҚ КАПСУЛАЛЫ ТОП-10 ҚАТАРЛАР — СКРОЛЛСЫЗ ТОЛЫҚ) */
.home-lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none; /* Барлық 10 оқушы скроллсыз толық сыюы үшін */
    overflow-y: visible;
    padding-right: 0;
    box-sizing: border-box;
}

/* Скроллбар */
.home-lb-list::-webkit-scrollbar {
    width: 5px;
}
.home-lb-list::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 5px;
}
.home-lb-list::-webkit-scrollbar-thumb:hover {
    background: #93c5fd;
}
.home-lb-list::-webkit-scrollbar-track {
    background: transparent;
}

/* Элемент: Скриндағыдай ақ дөңгеленген карточка (Pill card) */
.home-lb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 12px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
    box-sizing: border-box;
}

.home-lb-item:hover {
    background: #ffffff;
    border-color: #0057dd;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 87, 221, 0.14);
}

/* ТОП-1, ТОП-2, ТОП-3 жиектемелері */
.home-lb-item.home-lb-top-1 {
    background: #ffffff;
    border: 1.8px solid #fde68a;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.15);
}

.home-lb-item.home-lb-top-2 {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.12);
}

.home-lb-item.home-lb-top-3 {
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

/* Жүйеге кірген қолданушының өз орнын айқын обводкамен ерекшелеу */
.home-lb-item.home-lb-me {
    background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%) !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22) !important;
}
.lb-me-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    margin-left: 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* Позиция номері (Жетондар) - Скриндағыдай дөңгелек жетондар */
.home-lb-pos {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    user-select: none;
    width: 28px;
    height: 28px;
    font-size: 13.5px;
    font-family: inherit;
}

.home-lb-pos.pos-1 {
    color: #ffffff;
    background: #f59e0b;
    border: 1.5px solid #d97706;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.home-lb-pos.pos-2 {
    color: #ffffff;
    background: #94a3b8;
    border: 1.5px solid #64748b;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

.home-lb-pos.pos-3 {
    color: #ffffff;
    background: #ea580c;
    border: 1.5px solid #c2410c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.home-lb-pos.pos-other {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

/* Ранг аватары - Скриндағыдай дөңгелек окантовкамен */
.home-lb-avatar {
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border: 1.5px solid #cbd5e1;
}

.home-lb-avatar.top-1 {
    width: 36px;
    height: 36px;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(217, 119, 6, 0.2);
}

.home-lb-avatar.top-2 {
    width: 36px;
    height: 36px;
    border: 2px solid #94a3b8;
    box-shadow: 0 0 0 1.5px rgba(148, 163, 184, 0.25);
}

.home-lb-avatar.top-3 {
    width: 36px;
    height: 36px;
    border: 2px solid #ea580c;
    box-shadow: 0 0 0 1.5px rgba(234, 88, 12, 0.25);
}

.home-lb-rank-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Маусымдық аватара сәулеленуі (1=Жасыл, 2=Сары, 3=Қызғылт сары, 4=Мұзды көк) */
.home-lb-avatar.season-avatar-1 {
    border: 2px solid #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.home-lb-avatar.season-avatar-2 {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.48), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.home-lb-avatar.season-avatar-3 {
    border: 2px solid #ea580c;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.44), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.home-lb-avatar.season-avatar-4 {
    border: 2px solid #0284c7;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.50), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 7-дәреже (Қыран) арнайы эффект */
.home-lb-avatar.rank-wrap-7 {
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.65) !important;
    overflow: visible !important;
}
.home-lb-avatar.season-avatar-1.rank-wrap-7 {
    border-color: #10b981 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.62) !important;
}
.home-lb-avatar.season-avatar-2.rank-wrap-7 {
    border-color: #f59e0b !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.68) !important;
}
.home-lb-avatar.season-avatar-3.rank-wrap-7 {
    border-color: #ea580c !important;
    box-shadow: 0 0 14px rgba(234, 88, 12, 0.62) !important;
}
.home-lb-avatar.season-avatar-4.rank-wrap-7 {
    border-color: #0284c7 !important;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.68) !important;
}

.home-lb-rank-img.rank-img-7 {
    width: 48px !important;
    height: auto !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -52%);
    filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.55));
    pointer-events: none;
}
.season-avatar-1 .home-lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.55)); }
.season-avatar-2 .home-lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.55)); }
.season-avatar-3 .home-lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(194, 65, 12, 0.55)); }
.season-avatar-4 .home-lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.60)); }

/* Пайдаланушы мәліметтері — заманауи дизайнерлік қаріптер */
.home-lb-user-info {
    flex: 1;
    min-width: 0;
}

.home-lb-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: -0.2px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-lb-sub {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

.home-lb-sub .hlb-sub-tests {
    color: #475569;
    font-weight: 600;
    font-size: 12px;
}

.home-lb-sub .hlb-sub-tests b {
    color: #0f172a;
    font-weight: 800;
    font-size: 12.5px;
}

.home-lb-sub .hlb-sub-sep {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 11px;
}

.home-lb-sub .hlb-sub-score {
    color: #047857; /* НЗМ таза жасыл екпінді пайыз */
    font-weight: 850;
    font-size: 11.5px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.1px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* XP капсуласы — Скриндағыдай нәзік дизайнерлік көк капсула: 💎 388 xp */
.home-lb-xp {
    font-size: 12px;
    font-weight: 850;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #b9e6fe;
    padding: 4px 11px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

/* Бос күй (Empty State) */
.home-lb-empty {
    text-align: center;
    padding: 24px 14px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    margin: 4px 0;
}

.home-lb-empty-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
}

.home-lb-empty-sub {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    font-weight: 600;
}

/* 9. ФУТЕР БАТЫРМАСЫ (ФИРМАЛЫҚ КӨК ДИЗАЙН) */
.home-lb-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1.5px solid #dbeafe;
}

.home-lb-roadmap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #0057dd 0%, #004494 100%);
    border: 1.5px solid #003ea8;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    padding: 11px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 87, 221, 0.3);
    box-sizing: border-box;
}

.home-lb-roadmap-btn:hover {
    background: linear-gradient(135deg, #004494 0%, #003274 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 87, 221, 0.42);
    text-decoration: none;
}

.home-lb-btn-arrow {
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.home-lb-roadmap-btn:hover .home-lb-btn-arrow {
    transform: translateX(4px);
}

/* ============================================================
   📱 10. МОБИЛЬДІ БЕЙІМДЕЛУ ЖӘНЕ ANDROID WEBVIEW (Правило 9)
   ============================================================ */
@media (max-width: 1024px) {
    .home-main-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
        padding: 0 12px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .home-cards-col {
        max-width: 640px !important;
        width: 100% !important;
    }

    .home-leaderboard-col {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 640px !important;
        position: static !important;
        top: auto !important;
        margin: 0 auto !important;
    }

    .home-lb-card {
        padding: 18px 14px 20px 14px;
        border-radius: 20px;
    }

    .home-lb-title {
        font-size: 20px;
    }

    .home-lb-top10-badge {
        font-size: 13.5px;
        padding: 5px 14px;
    }
}

@media (max-width: 640px) {
    .home-main-container {
        padding: 0 8px !important;
    }

    .home-leaderboard-col {
        max-width: 100% !important;
    }

    .home-lb-card {
        padding: 16px 12px 18px 12px;
        border-radius: 18px;
    }

    .home-lb-clean-heading {
        font-size: 14px;
    }

    .hlb-nis-clean-text {
        font-size: 16px;
    }

    .home-lb-title {
        font-size: 18px;
    }

    .home-lb-trophy {
        font-size: 24px;
    }

    .home-lb-top10-badge {
        font-size: 13px;
        padding: 5px 12px;
    }

    .home-lb-global-btn {
        padding: 10px 14px;
        min-height: 44px;
    }

    .home-lb-global-text {
        font-size: 14px;
    }

    .home-lb-global-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .home-lb-switcher {
        gap: 6px;
    }

    .home-lb-season-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-lb-sbtn {
        min-height: 44px;
        font-size: 13px;
        padding: 8px 10px;
    }

    .home-lb-sbtn.active {
        min-height: 44px;
    }

    .home-lb-tab-btn {
        font-size: 11.5px;
        min-height: 38px;
        padding: 6px 6px;
    }

    .home-lb-tab-btn.active {
        min-height: 52px !important;
        font-size: 13.5px !important;
        padding: 8px 10px !important;
        transform: translateY(-3px) scale(1.06) !important;
    }

    .home-lb-tab-btn.active .hlb-tab-ico-wrap {
        width: 32px !important;
        height: 32px !important;
    }

    .home-lb-item {
        padding: 7px 10px;
        gap: 8px;
        border-radius: 14px;
    }

    .home-lb-pos {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .home-lb-avatar {
        width: 32px;
        height: 32px;
    }

    .home-lb-name {
        font-size: 13px;
    }

    .home-lb-sub {
        font-size: 12px;
        gap: 4px;
    }

    .home-lb-sub .hlb-sub-tests {
        font-size: 12px;
    }

    .home-lb-sub .hlb-sub-tests b {
        font-size: 12.5px;
    }

    .home-lb-sub .hlb-sub-score {
        font-size: 11.5px;
        padding: 1px 5px;
    }

    .home-lb-xp {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ============================================================
   📖 ЗАМАНАУИ ҚАДАМДЫҚ НҰСҚАУЛЫҚ МОДАЛКАСЫ (SWAL GUIDE STEPPER)
   ============================================================ */
.nis-guide-swal-container {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 14px 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.nis-guide-swal-popup {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    border-radius: 26px !important;
    padding: 20px 22px 18px 22px !important;
    width: 760px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
}

.nis-guide-swal-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
}

.nis-guide-swal-title {
    display: block !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Nunito', 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    padding: 0 34px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.nis-guide-swal-html {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 2px 2px 4px 2px !important;
    text-align: left !important;
}

.nis-guide-swal-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 14px 0 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.nis-guide-swal-actions button {
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    padding: 10px 18px !important;
}

.nis-guide-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nis-guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nis-guide-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nis-guide-tab:hover {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
}

.nis-guide-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.nis-guide-tab-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.nis-guide-tab.active .nis-guide-tab-num {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.nis-guide-panel {
    display: none;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 18px;
    padding: 14px;
    gap: 11px;
    flex-direction: column;
}

.nis-guide-panel.active {
    display: flex;
    animation: nisGuideFade 0.2s ease;
}

@keyframes nisGuideFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.nis-guide-panel-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.nis-guide-chain {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
}

.nis-guide-season-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 11px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.nis-guide-season-card.s1 { border-color: #34d399; background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%); }
.nis-guide-season-card.s2 { border-color: #fbbf24; background: linear-gradient(180deg, #fefce8 0%, #ffffff 100%); }
.nis-guide-season-card.s3 { border-color: #fb923c; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); }
.nis-guide-season-card.s4 { border-color: #38bdf8; background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%); }

.nis-guide-season-emoji {
    font-size: 28px;
    line-height: 1.1;
}

.nis-guide-season-name {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.nis-guide-season-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
}
.nis-guide-season-card.s2 .nis-guide-season-tag { background: #fef3c7; color: #92400e; }
.nis-guide-season-card.s3 .nis-guide-season-tag { background: #ffedd5; color: #c2410c; }
.nis-guide-season-card.s4 .nis-guide-season-tag { background: #e0f2fe; color: #0369a1; }

.nis-guide-season-sub {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.nis-guide-arrow {
    font-size: 16px;
    font-weight: 900;
    color: #2563eb;
    flex-shrink: 0;
    align-self: center;
}

/* 🦅 7×4 ПРЕСТИЖ МАТРИЦАСЫ (ТІГІНЕН ӨСУ + КӨЛДЕНЕҢ МАУСЫМДАР — СКРОЛЛСЫЗ ТОЛЫҚ) */
.nis-guide-prestige-matrix {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nis-guide-matrix-head {
    display: grid;
    grid-template-columns: 108px repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    padding: 4px 6px 5px 6px;
    border-bottom: 1.5px solid #e2e8f0;
    background: #ffffff;
}

.nis-guide-mhead-lbl {
    font-size: 11px;
    font-weight: 900;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nis-guide-mhead-s {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 4px;
    border-radius: 999px;
}
.nis-guide-mhead-s.s1 { background: #d1fae5; color: #065f46; }
.nis-guide-mhead-s.s2 { background: #fef3c7; color: #92400e; }
.nis-guide-mhead-s.s3 { background: #ffedd5; color: #c2410c; }
.nis-guide-mhead-s.s4 { background: #e0f2fe; color: #0369a1; }

.nis-guide-matrix-row {
    display: grid;
    grid-template-columns: 108px repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    padding: 3px 6px;
    border-radius: 11px;
    background: #f8fafc;
}
.nis-guide-matrix-row:nth-child(odd) {
    background: #f1f5f9;
}

.nis-guide-mrow-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 900;
    color: #0f172a;
}

.nis-guide-mrow-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.nis-guide-mrow-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.nis-guide-mrow-cell img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.nis-guide-mrow-cell img.eagle {
    border-radius: 0;
    object-fit: contain;
    width: 38px;
    height: 36px;
    box-shadow: none;
}

.nis-guide-mrow-arrow {
    font-size: 12px;
    font-weight: 900;
    color: #3b82f6;
}

.nis-guide-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nis-guide-mini-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-left: 5px solid #2563eb;
    border-radius: 15px;
    padding: 12px 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}
.nis-guide-mini-card.accent-green { border-left-color: #10b981; background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%); }
.nis-guide-mini-card.accent-amber { border-left-color: #f59e0b; background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%); }
.nis-guide-mini-card.accent-blue  { border-left-color: #2563eb; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); }

.nis-guide-mini-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 5px;
}

.nis-guide-mini-text {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    color: #0f172a;
}

.nis-guide-hero-callout {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.nis-guide-hero-callout b {
    color: #fde047;
    font-weight: 900;
}

.nis-guide-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nis-guide-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}
.nis-guide-pill-chip.p1 { border-color: #10b981; background: #ecfdf5; color: #065f46; }
.nis-guide-pill-chip.p2 { border-color: #f59e0b; background: #fefce8; color: #92400e; }
.nis-guide-pill-chip.p3 { border-color: #ea580c; background: #fff7ed; color: #c2410c; }
.nis-guide-pill-chip.p4 { border-color: #0284c7; background: #f0f9ff; color: #0369a1; }

.nis-guide-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nis-guide-nav-btn {
    min-height: 38px;
    padding: 6px 14px;
    border-radius: 11px;
    border: 1.5px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}
.nis-guide-nav-btn:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.nis-guide-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.nis-guide-step-counter {
    font-size: 13px;
    font-weight: 900;
    color: #1e293b;
}

@media (max-width: 640px) {
    .nis-guide-swal-container {
        padding: 10px 8px !important;
    }
    .nis-guide-swal-popup {
        padding: 15px 12px 14px 12px !important;
        border-radius: 20px !important;
    }
    .nis-guide-swal-title {
        font-size: 18px !important;
        padding: 0 32px !important;
    }
    .nis-guide-swal-actions {
        gap: 8px !important;
    }
    .nis-guide-swal-actions button {
        flex: 1 1 130px !important;
        font-size: 13.5px !important;
        padding: 10px 12px !important;
    }
    .nis-guide-tab {
        font-size: 11.5px;
        padding: 6px 5px;
        min-height: 44px;
    }
    .nis-guide-chain {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .nis-guide-chain .nis-guide-arrow {
        display: none;
    }
    .nis-guide-matrix-head,
    .nis-guide-matrix-row {
        grid-template-columns: 82px repeat(4, minmax(0, 1fr));
        gap: 3px;
        padding: 4px;
    }
    .nis-guide-mrow-name {
        font-size: 10.5px;
        gap: 4px;
    }
    .nis-guide-mrow-num {
        width: 17px;
        height: 17px;
        font-size: 10px;
    }
    .nis-guide-mrow-cell img {
        width: 28px;
        height: 28px;
    }
    .nis-guide-mrow-cell img.eagle {
        width: 31px;
        height: 30px;
    }
    .nis-guide-mrow-arrow {
        font-size: 9px;
    }
    .nis-guide-mhead-s {
        font-size: 9.5px;
        padding: 2px 3px;
    }
    .nis-guide-grid-2 {
        grid-template-columns: 1fr;
    }
    .nis-guide-mini-title {
        font-size: 14px;
    }
    .nis-guide-mini-text,
    .nis-guide-hero-callout {
        font-size: 13px;
    }
}
