
:root {
    --blue-dark:  #0d47a1;
    --blue-main:  #1566B7;
    --blue-light: #90caf9;
    --red:        #dc3545;
    --green:      #198754;
    --white:      #ffffff;
    --gray-bg:    #f8f9fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); overflow-x: hidden; }

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: var(--blue-dark);
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: visible !important;
}
.top-bar-contacts { display: flex; gap: 18px; }
.top-bar-contacts a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.top-bar-contacts a:hover { color: #fff; }
.top-bar-contacts i { color: var(--blue-light); font-size: 11px; }

.top-bar-langs {
    display: flex;
    align-items: center;
    gap: 3px;
}
/* panel elementlari hech qachon o'z ichida qatorga bo'linmaydi va qisilmaydi */
.top-bar-contacts, .top-bar-langs, .top-bar-socials, .state-symbols, .dark-toggle-topbar { flex: none; }
.top-bar-contacts a, .top-bar-langs a, .state-symbol-btn { white-space: nowrap; }
.top-bar-langs a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid transparent;
    letter-spacing: 0.8px;
    transition: all 0.2s;
}
.top-bar-langs a:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.top-bar-langs a.active { background: #fff; color: var(--blue-dark); border-color: #fff; }

.top-bar-socials { display: flex; gap: 7px; }
.top-bar-socials a {
    color: rgba(255,255,255,0.65);
    width: 27px; height: 27px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
}
.top-bar-socials a:hover { color: #fff; border-color: #fff; }
.top-bar-socials a:nth-child(1):hover { background:#1877f2; border-color:#1877f2; }
.top-bar-socials a:nth-child(2):hover { background:#229ed9; border-color:#229ed9; }
.top-bar-socials a:nth-child(3):hover { background:#e1306c; border-color:#e1306c; }
.top-bar-socials a:nth-child(4):hover { background:#2ca5e0; border-color:#2ca5e0; }
.top-bar-socials a:nth-child(5):hover { background:#ff0000; border-color:#ff0000; }
.top-bar-socials a:nth-child(6):hover { background:#0077b5; border-color:#0077b5; }

/* top-bar container */
.top-bar .container {
    flex-wrap: wrap;
    gap: 6px;
}

/* ================================================
   MAXSUS IMKONIYATLAR TUGMASI (odam ikonkasi)
   ================================================ */
.a11y-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.22s;
    flex-shrink: 0;
    padding: 0;
}
.a11y-toggle-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.a11y-toggle-btn svg {
    display: block;
}

/* ================================================
   XA-BOX — reyting logolari
   ================================================ */
/* Logolar panelning o'rtasidagi bo'sh joyda turadi (chap va o'ng guruhlarga tegmaydi) va panel balandligini
   oshirmasdan pastga, navbar tomon biroz osilib turadi. Joyi ekran kengligiga emas, bo'sh joyga bog'liq. */
.XA-box {
    --xa-h: 36px;                               /* logo balandligi; ekran torayganda kamayadi */
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    align-self: flex-start;
    margin: 0 0 calc(-1 * var(--xa-h));
    z-index: 1030;                              /* navbar (1020) dan yuqori, qoraytirgich (1040) va maxsus imkoniyatlar paneli (1045) dan past */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;                       /* bo'sh joy bosishni to'smaydi, faqat logolar bosiladi */
    padding: 4px 0;
}
.XA-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px 6px;
    border-radius: 6px;
    text-decoration: none;
    pointer-events: auto;
    transition: background 0.2s;
}
.XA-box a:hover               { background: rgba(255,255,255,0.10); }
body.dark .XA-box a:hover     { background: rgba(255,255,255,0.12); }
.XA-box img {
    border-radius: 4px !important;
    object-fit: cover;
    height: var(--xa-h);
    width: auto;
    background: rgba(0,0,0,0.315);
}
body.dark .XA-box img {
    background: rgba(255,255,255,0.05);
    filter: brightness(1.18) contrast(1.06);
}

/* Navbar da XA-box uchun yuqori padding */
.navbar {
    background: var(--blue-main) !important;
    padding: 8px 0 0 !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
@media (max-width: 992px) {
    .XA-box { display: none; }
    .navbar { padding: 0 !important; }
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-brand img { width: 60px; height: auto; }
.navbar-brand span { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 22px 15px !important;
    position: relative;
    transition: color 0.2s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: #fff;
    border-radius: 3px 3px 0 0;
    transition: width 0.25s ease;
}
.navbar-nav .nav-link:hover { color: #fff !important; }
.navbar-nav .nav-link:hover::after { width: 70%; }

.navbar-nav .dropdown-toggle::after {
    border: none;
    content: '▾';
    font-size: 11px;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s;
}
.navbar-nav .dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

.navbar .dropdown:hover .main-menu,
.navbar .dropdown:hover .dropdown-menu { display: block; position: absolute; }

.navbar .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0 !important;
    border: none !important;
    border-top: 3px solid var(--blue-main) !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    background: #fff;
    animation: dropFade 0.18s ease;
}
.navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px; left: 0;
    width: 100%; height: 12px;
    background: transparent;
}
.navbar .dropdown.position-static .dropdown-menu { left: 50%; transform: translateX(-50%); }

.navbar .dropdown-menu h5 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
}
.navbar .dropdown-menu .dropdown-item {
    font-size: 13.5px;
    color: #333;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, padding-left 0.2s;
    font-weight: 500;
}
.navbar .dropdown-menu .dropdown-item:hover { background: #e8f0fe; color: var(--blue-main); padding-left: 20px; }
.navbar-nav .nav-link.active-nav { color: #fff !important; }
.navbar-nav .nav-link.active-nav::after { width: 70%; }

.menu-col-green  { color: #198754 !important; font-weight: 800 !important; font-size: 11px !important; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #d1f0e0; margin-bottom: 10px; }
.menu-col-blue   { color: #1566B7 !important; font-weight: 800 !important; font-size: 11px !important; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #d0e4f7; margin-bottom: 10px; }
.menu-col-orange { color: #e65100 !important; font-weight: 800 !important; font-size: 11px !important; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #ffe0cc; margin-bottom: 10px; }
.menu-col-red    { color: #dc3545 !important; font-weight: 800 !important; font-size: 11px !important; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #fdd; margin-bottom: 10px; }
.menu-col-indigo { color: #3949ab !important; font-weight: 800 !important; font-size: 11px !important; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #dde0f5; margin-bottom: 10px; }

.navbar .dropdown-menu .dropdown-item.menu-active {
    background: #e8f0fe;
    color: #1566B7 !important;
    font-weight: 700;
    padding-left: 20px;
}
.navbar .dropdown-menu .dropdown-item.menu-active::before {
    content: '▸ ';
    font-size: 11px;
}

@keyframes dropFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Interaktiv xizmatlar */
.nav-interactive { color: #FFD54F !important; font-weight: 700 !important; }
.nav-interactive::after { background: #FFD54F !important; opacity: 0.7; }
.nav-interactive:hover { color: #fff !important; }
.nav-interactive:hover::after { width: 70%; opacity: 1; }
.nav-interactive.active-nav { color: #FFD54F !important; }

/* ================================================
   TO-TOP
   ================================================ */
.to-top {
    position: fixed;
    right: 24px; bottom: 32px;
    width: 48px; height: 48px;
    background: var(--blue-main);
    border-radius: 50%;
    display: none;
    justify-content: center; align-items: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 18px rgba(21,102,183,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(21,102,183,0.5); }

/* ================================================
   HERO — asosiy yangilik + surib ko'riladigan tasma
   ================================================ */
.hero-news {
    position: relative;
    padding: 36px 0 44px;
    background: linear-gradient(155deg, #e8f0fb 0%, #f4f8ff 55%, #e8effa 100%);
}
.hero-news__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.info-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue-main);
    background: rgba(21,102,183,0.09);
    padding: 5px 14px;
    border-radius: 20px;
}
.hn-all { font-size: 13px; font-weight: 600; color: var(--blue-main); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.hn-all:hover { color: var(--blue-dark); }
.hero-news__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }

.hn-main {
    position: relative; display: block; height: 460px; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #b8cce4, #8aafd4); color: #fff; text-decoration: none; isolation: isolate;
    box-shadow: 0 18px 48px rgba(13,71,161,0.18);
}
.hn-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hn-main:hover img, .hn-main:focus-visible img { transform: scale(1.04); }
.hn-main::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,22,48,.9) 0%, rgba(7,22,48,.5) 45%, rgba(7,22,48,0) 78%);
}
.hn-main__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 30px; z-index: 1; }
.hn-date { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .4px; opacity: .85; margin-bottom: 8px; }
.hn-main h2 {
    font-family: 'Merriweather', serif; font-size: clamp(19px, 2.3vw, 29px); line-height: 1.38; font-weight: 700;
    margin: 0 0 16px; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hn-more {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 8px 15px; border-radius: 999px;
}
.hn-main:hover .hn-more { background: var(--blue-main); }

.hn-rail-wrap { display: flex; flex-direction: column; height: 460px; min-width: 0; }
.hn-rail-ctrl { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.hn-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(21,102,183,.25); background: #fff;
    color: var(--blue-main); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
    display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.hn-btn:hover:not(:disabled) { background: var(--blue-main); color: #fff; }
.hn-btn:disabled { opacity: .35; cursor: default; }
.hn-rail {
    flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 2px 6px 2px 2px;
    scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: thin;
}
.hn-card {
    display: flex; gap: 12px; flex: 0 0 auto; padding: 10px; background: #fff; border-radius: 14px; text-decoration: none;
    color: var(--blue-dark); box-shadow: 0 2px 12px rgba(13,71,161,.08); scroll-snap-align: start;
    transition: transform .2s, box-shadow .2s;
}
.hn-card:hover, .hn-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,71,161,.16); }
.hn-card__img { width: 120px; height: 88px; flex: none; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #b8cce4, #8aafd4); }
.hn-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-card__txt { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.hn-card .hn-date { color: #5b7aa6; opacity: 1; margin: 0; font-size: 11.5px; }
.hn-card h3 {
    margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; font-family: inherit; color: inherit;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.image-loading { background: linear-gradient(135deg, #b8cce4, #8aafd4); position: relative; }
.image-loading::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .hero-news { padding: 22px 0 30px; }
    .hero-news__grid { grid-template-columns: 1fr; gap: 14px; }
    .hn-main { height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
    .hn-main__body { padding: 18px 18px 20px; }
    .hn-rail-wrap { height: auto; }
    .hn-rail-ctrl { display: none; }
    .hn-rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 2px 2px 12px; gap: 12px; }
    .hn-card { flex-direction: column; width: min(74vw, 300px); }
    .hn-card__img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}
@media (min-width: 992px) { .hn-rail-ctrl { display: flex; } }
@media (prefers-reduced-motion: reduce) {
    .hn-main img, .hn-card, .hn-btn { transition: none; }
    .hn-rail { scroll-behavior: auto; }
}
body.dark .hero-news { background: linear-gradient(155deg, #0c1929 0%, #0f2038 55%, #0c1929 100%); }
body.dark .hn-card { background: #162a45; color: #e2e8f0; box-shadow: none; }
body.dark .hn-card .hn-date { color: #90a8c8; }
body.dark .hn-btn { background: #162a45; color: #90caf9; border-color: #2a3d55; }
body.dark .hn-all, body.dark .info-badge { color: #90caf9; }

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--blue-main) !important;
    color: #fff;
    padding: 3rem 0 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
footer h5 {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}
footer a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.2s, padding-left 0.2s; }
footer a:hover { color: #fff; padding-left: 4px; }
footer .text-white { font-size: 13.5px; line-height: 1.7; opacity: 0.85; }
footer hr { border-color: rgba(255,255,255,0.15); margin: 28px 0 16px; }
footer .d-flex a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding-left: 0 !important;
    color: rgba(255,255,255,0.85) !important;
}
footer .d-flex a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); color: #fff !important; }
footer .text-center p { font-size: 12.5px; opacity: 0.65; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
}
@media (max-width: 768px) {
    .top-bar-contacts { display: none; }
}
@media (max-width: 480px) {
    .top-bar { padding: 5px 0; font-size: 11px; }
    .top-bar-langs a { padding: 2px 7px; font-size: 10px; }
    .top-bar-socials a { width: 24px; height: 24px; font-size: 10px; }
    .navbar-brand span { font-size: 13px; }
}

/* ================================================
   FASLLAR VA BAYRAMLAR
   ================================================ */
#season-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
}

/* ── MARQUEE BANNER ── */
.holiday-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    font-family: 'Playfair Display', serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 9989;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.holiday-marquee.hm-custom      { background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%); color: #FFD54F; border-bottom: 1px solid rgba(255, 213, 79, 0.20); }
.holiday-marquee.hm-new-year    { background: linear-gradient(90deg, #04091a 0%, #0d1f42 50%, #04091a 100%); color: #ffe082; border-bottom: 1px solid rgba(255,224,130,0.20); border-top: 1px solid rgba(255,224,130,0.10); }
.holiday-marquee.hm-navruz      { background: linear-gradient(90deg, #0d2e10 0%, #1b5e20 50%, #0d2e10 100%); color: #e8f5e9; border-bottom: 1px solid rgba(165,214,167,0.20); }
.holiday-marquee.hm-memory      { background: linear-gradient(90deg, #0d0f2b 0%, #1a237e 50%, #0d0f2b 100%); color: #e8eaf6; border-bottom: 1px solid rgba(121,134,203,0.20); }
.holiday-marquee.hm-independence { background: linear-gradient(90deg, #003366 0%, #0d47a1 50%, #003366 100%); color: #e3f2fd; border-bottom: 1px solid rgba(30,181,58,0.30); border-top: 1px solid rgba(30,181,58,0.15); }
.holiday-marquee.hm-teachers    { background: linear-gradient(90deg, #1e0533 0%, #4a148c 50%, #1e0533 100%); color: #f3e5f5; border-bottom: 1px solid rgba(206,147,216,0.20); }
.holiday-marquee.hm-constitution { background: linear-gradient(90deg, #3b0000 0%, #b71c1c 50%, #3b0000 100%); color: #ffebee; border-bottom: 1px solid rgba(239,154,154,0.20); }
.holiday-marquee.hm-eid         { background: linear-gradient(90deg, #00201a 0%, #00695c 50%, #00201a 100%); color: #e0f2f1; border-bottom: 1px solid rgba(128,203,196,0.20); }

.holiday-marquee-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: hmScroll 30s linear infinite;
    will-change: transform;
}
.holiday-marquee-inner:hover { animation-play-state: paused; }

@keyframes hmScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

.holiday-marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 48px; }
.hm-icon { font-size: 17px; line-height: 1; }
.hm-sep  { opacity: 0.30; font-size: 14px; margin-left: 10px; }
.hm-year-num { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 900; color: #ffd54f; letter-spacing: 1px; }
.hm-dash { opacity: 0.5; margin: 0 2px; }
.hm-years-badge {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 12px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.30);
    font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 900;
    letter-spacing: 0.5px; color: #ffe082; flex-shrink: 0;
}

.hm-border-navruz {
    height: 3px;
    background: repeating-linear-gradient(90deg, #4caf50 0px, #4caf50 25px, #ff9800 25px, #ff9800 50px, #f44336 50px, #f44336 75px, #2196f3 75px, #2196f3 100px);
    animation: navruzShift 5s linear infinite; background-size: 200% 100%;
}
@keyframes navruzShift { from { background-position: 0 0; } to { background-position: 200px 0; } }

.hm-border-independence {
    height: 4px;
    background: linear-gradient(90deg, #1eb53a 0%, #1eb53a 42%, #ffffff 42%, #ffffff 47%, #1eb53a 47%, #1eb53a 53%, #ffffff 53%, #ffffff 58%, #1eb53a 58%, #1eb53a 100%);
    animation: independenceShift 8s linear infinite; background-size: 300px 100%;
}
@keyframes independenceShift { from { background-position: 0 0; } to { background-position: 300px 0; } }

/* ── LOGO OVERLAY-LAR ── */
.navbar-brand { position: relative; display: inline-flex; align-items: center; }
.nb-logo-img { position: relative; }
.logo-overlay { position: absolute; pointer-events: none; z-index: 5; line-height: 1; user-select: none; }

.logo-hat { top: -18px; left: -6px; animation: hatWobble 2.8s ease-in-out infinite; transform-origin: bottom center; display: block; }
@keyframes hatWobble { 0%, 100% { transform: rotate(-8deg); } 25% { transform: rotate(4deg); } 75% { transform: rotate(-4deg); } }
.logo-flower { top: -14px; right: -14px; font-size: 22px; animation: flowerSpin 5s linear infinite; filter: drop-shadow(0 0 4px rgba(255,100,130,0.5)); }
@keyframes flowerSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-candle { top: -16px; right: -8px; font-size: 20px; animation: candleFlicker 0.85s ease-in-out infinite alternate; filter: drop-shadow(0 0 5px #ff8f00); }
@keyframes candleFlicker { from { transform: scaleY(1) scaleX(1); filter: drop-shadow(0 0 4px #ff8f00); } to { transform: scaleY(0.93) scaleX(1.04); filter: drop-shadow(0 0 9px #ffcc02); } }
.logo-flag { top: -10px; right: -18px; font-size: 22px; animation: flagWave 1.6s ease-in-out infinite; transform-origin: left center; }
@keyframes flagWave { 0%, 100% { transform: rotate(0deg) scaleX(1); } 30% { transform: rotate(9deg) scaleX(0.90); } 70% { transform: rotate(-5deg) scaleX(1.06); } }
.logo-book { top: -12px; right: -14px; font-size: 20px; animation: bookBounce 2s ease-in-out infinite; }
@keyframes bookBounce { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(5deg); } }
.logo-star { top: -14px; right: -12px; font-size: 20px; animation: starPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,213,79,0.8)); }
@keyframes starPulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.20) rotate(36deg); } }
.logo-crescent { top: -14px; right: -12px; font-size: 20px; animation: crescentGlow 2.2s ease-in-out infinite; }
@keyframes crescentGlow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255,213,79,0.5)); transform: rotate(0deg); } 50% { filter: drop-shadow(0 0 10px rgba(255,213,79,0.9)); transform: rotate(8deg); } }

/* ── FASL BADGE ── */
.season-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 20px;
    font-family: sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px;
    margin-left: 8px; vertical-align: middle; white-space: nowrap;
    animation: badgePulse 4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
.season-badge.sb-winter { background: rgba(144,202,249,0.20); color: #e3f2fd; border: 1px solid rgba(144,202,249,0.30); }
.season-badge.sb-spring { background: rgba(129,199,132,0.20); color: #c8e6c9; border: 1px solid rgba(129,199,132,0.30); }
.season-badge.sb-summer { background: rgba(255,213,79,0.18);  color: #fff9c4; border: 1px solid rgba(255,213,79,0.30); }
.season-badge.sb-autumn { background: rgba(255,143,0,0.18);   color: #ffe0b2; border: 1px solid rgba(255,143,0,0.30); }

/* ================================================
   OVOZLI O'QISH INDICATOR
   ================================================ */
.tb-voice-bar {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    z-index: 99998;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96,165,250,0.2);
    white-space: nowrap;
    max-width: calc(100vw - 48px);
    animation: tbBarIn 0.3s ease;
}
@keyframes tbBarIn {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.tb-voice-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: tbPulse 1.1s ease-in-out infinite;
}
@keyframes tbPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { opacity: 0.6; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.tb-voice-stop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 20px;
    background: rgba(239,68,68,0.1);
    color: #fca5a5;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.tb-voice-stop-btn:hover { background: rgba(239,68,68,0.25); color: #fff; }

/* ================================================
   MAXSUS IMKONIYATLAR OFFCANVAS
   ================================================ */
.a11y-offcanvas {
    width: 340px !important;
    max-width: 95vw;
    background: #f8f9fa;
    border-left: none;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.a11y-oc-header {
    background: #1566B7;
    color: #fff;
    padding: 18px 20px;
    border-bottom: none;
}
.a11y-oc-header .offcanvas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}
.a11y-oc-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.a11y-oc-close:hover { background: rgba(255,255,255,0.28); }

.a11y-oc-body {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Har bir bo'lim */
.a11y-section {
    padding: 14px 18px;
    border-bottom: 1px solid #e8ecf0;
    background: #fff;
    margin-bottom: 6px;
}
.a11y-section:last-child { border-bottom: none; }

.a11y-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Theme cards */
.a11y-theme-cards {
    display: flex;
    gap: 8px;
}
.a11y-theme-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border: 2px solid #e0e6f0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
}
.a11y-theme-card:hover { border-color: #1566B7; background: #e8f0fe; color: #1566B7; }
.a11y-theme-card.active { border-color: #1566B7; background: #e8f0fe; color: #1566B7; }

/* Theme preview mini */
.a11y-theme-preview {
    width: 60px; height: 44px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dde2ec;
}
.theme-preview-light { background: #fff; }
.theme-preview-light .tp-bar { background: #e0e6f0; height: 11px; }
.theme-preview-light .tp-lines { padding: 6px; }
.theme-preview-light .tp-line { background: #c5ced8; height: 4px; border-radius: 2px; margin-bottom: 3px; }
.theme-preview-light .tp-line.short { width: 70%; }

.theme-preview-odd { background: #fffbe6; }
.theme-preview-odd .tp-bar { background: #f0e08a; height: 11px; }
.theme-preview-odd .tp-lines { padding: 6px; }
.theme-preview-odd .tp-line { background: #cbbf6a; height: 4px; border-radius: 2px; margin-bottom: 3px; }
.theme-preview-odd .tp-line.short { width: 70%; }

.theme-preview-dark { background: #1a1a2e; }
.theme-preview-dark .tp-bar { background: #0d3b66; height: 11px; }
.theme-preview-dark .tp-lines { padding: 6px; }
.theme-preview-dark .tp-line { background: #3a4a60; height: 4px; border-radius: 2px; margin-bottom: 3px; }
.theme-preview-dark .tp-line.short { width: 70%; }

/* Font slider */
.a11y-font-pct {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}
.a11y-font-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.a11y-font-a {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    flex-shrink: 0;
}
.a11y-font-a.small { font-size: 12px; }
.a11y-font-a.big   { font-size: 20px; font-weight: 700; }

.a11y-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #1566B7 0%, #1566B7 var(--pct, 25%), #d0dae8 var(--pct, 25%), #d0dae8 100%);
    outline: none;
    cursor: pointer;
}
.a11y-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #1566B7;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(21,102,183,0.3);
    cursor: pointer;
    transition: transform 0.15s;
}
.a11y-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.a11y-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #1566B7;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(21,102,183,0.3);
    cursor: pointer;
}

/* Volume ticks */
.a11y-vol-ticks {
    display: flex;
    justify-content: space-between;
    padding: 2px 2px 0;
    margin-top: 4px;
    font-size: 10px;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

/* Tugma guruhlari */
.a11y-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.a11y-opt-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 6px;
    border: 1.5px solid #d0dae8;
    border-radius: 8px;
    background: #f4f7fb;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
    line-height: 1.3;
}
.a11y-opt-btn:hover { border-color: #1566B7; background: #e8f0fe; color: #1566B7; }
.a11y-opt-btn.active { border-color: #1566B7; background: #1566B7; color: #fff; }

/* Full-width tugma */
.a11y-full-btn {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #d0dae8;
    border-radius: 8px;
    background: #f4f7fb;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}
.a11y-full-btn:hover { border-color: #1566B7; background: #e8f0fe; color: #1566B7; }

/* Switch toggle */
.a11y-row-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0 !important;
}
.a11y-toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.a11y-toggle-switch input { opacity: 0; width: 0; height: 0; }
.a11y-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d0dae8;
    border-radius: 24px;
    transition: 0.3s;
}
.a11y-switch-slider:before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
/* klaviatura bilan yurganda qaysi tugma tanlangani ko'rinib turishi uchun */
#a11yOffcanvas button:focus-visible,
#a11yOffcanvas input:focus-visible,
.a11y-toggle-btn:focus-visible,
.tb-voice-stop-btn:focus-visible { outline: 3px solid #1566B7; outline-offset: 2px; }
.a11y-toggle-switch input:focus-visible + .a11y-switch-slider { outline: 3px solid #1566B7; outline-offset: 2px; }
.a11y-toggle-switch input:checked + .a11y-switch-slider { background: #1566B7; }
.a11y-toggle-switch input:checked + .a11y-switch-slider:before { transform: translateX(18px); }

/* Shortcut hint */
.a11y-shortcut-hint {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f4fb;
    border-radius: 8px;
    font-size: 11.5px;
    color: #555;
    line-height: 1.5;
}
.a11y-shortcut-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    background: #fff;
    border: 1px solid #bcc8dc;
    border-radius: 4px;
    font-size: 10.5px;
    font-family: monospace;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 0 1px;
}

/* Color cards */
.a11y-color-cards {
    display: flex;
    gap: 8px;
}
.a11y-color-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border: 2px solid #e0e6f0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    text-align: center;
}
.a11y-color-card:hover { border-color: #1566B7; color: #1566B7; }
.a11y-color-card.active { border-color: #1566B7; background: #e8f0fe; color: #1566B7; }

.a11y-color-preview {
    width: 52px; height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.color-none { background: linear-gradient(135deg, #ddd 0%, #aaa 100%); color: #666; }
.color-low  { background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%); color: #a0aec0; }
.color-high { background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%); color: #e65100; }

/* Reset tugmasi */
.a11y-reset-row {
    padding: 16px 18px;
    background: #fff;
    border-top: 1px solid #e8ecf0;
}
.a11y-reset-btn {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #e0dbd0;
    border-radius: 10px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.a11y-reset-btn:hover { border-color: #dc3545; color: #dc3545; background: #fff5f5; }

/* ================================================
   TUN REJIMI — body.dark
   ================================================ */
body.dark {
    background: #0f1724 !important;
    color: #e2e8f0 !important;
}
body.dark .top-bar   { background: #071630 !important; }
body.dark nav.navbar { background: #0d3b66 !important; }
body.dark footer     { background: #0d3b66 !important; }

/* A11y offcanvas dark */
body.dark .a11y-offcanvas  { background: #1a2332; }
body.dark .a11y-section    { background: #1e2d42; border-bottom-color: #2a3d55; }
body.dark .a11y-section-title { color: #e2e8f0; }
body.dark .a11y-theme-card { background: #253449; border-color: #2a3d55; color: #aec6e8; }
body.dark .a11y-theme-card:hover,
body.dark .a11y-theme-card.active { border-color: #5b9bd5; background: #1a3358; color: #90c4f8; }
body.dark .a11y-opt-btn { background: #253449; border-color: #2a3d55; color: #aec6e8; }
body.dark .a11y-opt-btn:hover { border-color: #5b9bd5; background: #1a3358; color: #90c4f8; }
body.dark .a11y-opt-btn.active { border-color: #1566B7; background: #1566B7; color: #fff; }
body.dark .a11y-full-btn { background: #253449; border-color: #2a3d55; color: #aec6e8; }
body.dark .a11y-full-btn:hover { border-color: #5b9bd5; background: #1a3358; color: #90c4f8; }
body.dark .a11y-color-card { background: #253449; border-color: #2a3d55; color: #aec6e8; }
body.dark .a11y-color-card.active { border-color: #5b9bd5; background: #1a3358; color: #90c4f8; }
body.dark .a11y-shortcut-hint { background: #1a2d42; color: #aec6e8; }
body.dark .a11y-shortcut-hint kbd { background: #253449; border-color: #3a5070; color: #c8d8ec; }
body.dark .a11y-reset-row { background: #1e2d42; border-color: #2a3d55; }
body.dark .a11y-reset-btn { color: #7a90a8; border-color: #2a3d55; }
body.dark .a11y-reset-btn:hover { color: #ff8080; border-color: #dc3545; background: #2d1f22; }
body.dark .a11y-toggle-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

/* Panel tuzilishi: sarlavha (X bilan) joyida turadi, ichi aylanadi; qor/yomg'ir va "yuqoriga" tugmasidan tepada.
   !important: panelning asosiy o'lchamlari fragmentda inline yozilgan. */
#a11yOffcanvas {
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    z-index: 100001 !important;
}
#a11yOffcanvas .a11y-oc-header { display: flex; align-items: center; gap: 12px; flex: none; }
#a11yOffcanvas .offcanvas-title { flex: 1; min-width: 0; margin: 0; line-height: 1.35; }
#a11yOffcanvas .offcanvas-title svg { flex: none; }
#a11yOffcanvas .a11y-oc-close { flex: none; margin-left: auto; }
#a11yOffcanvas .offcanvas-body { flex: 1; min-height: 0; padding: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
body.dark #a11yOffcanvas { background: #131c2b !important; }
#tbVoiceBar { z-index: 100002 !important; }

/* ================================================
   KO'ZI OJIZLAR REJIMI — body.tb-blind
   ================================================ */
body.tb-blind { background: #0a0a0a !important; color: #f0f0f0 !important; }
body.tb-blind a { color: #FFD700 !important; text-decoration: underline !important; }
body.tb-blind .top-bar   { background: #111 !important; border-bottom: 2px solid #FFD700 !important; }
body.tb-blind nav.navbar { background: #0d0d0d !important; }
body.tb-blind footer     { background: #111 !important; }
body.tb-blind .navbar-nav .nav-link { color: #FFD700 !important; }
body.tb-blind .dropdown-item        { color: #FFD700 !important; }
body.tb-blind .info h2  { color: #FFD700 !important; }
body.tb-blind .a11y-offcanvas   { background: #111; }
body.tb-blind .a11y-section     { background: #1a1a1a; border-color: #333; }
body.tb-blind .a11y-section-title { color: #FFD700; }
body.tb-blind .a11y-opt-btn     { background: #1a1a1a; border-color: #444; color: #FFD700; }
body.tb-blind .a11y-opt-btn.active { background: rgba(255,215,0,0.18); border-color: rgba(255,215,0,0.5); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .top-bar .container { justify-content: space-between; flex-wrap: wrap; }
    .holiday-marquee { font-size: 12px; }
    .holiday-marquee-item { padding: 0 28px; }
    .hm-icon { font-size: 15px; }
    .logo-overlay { transform: scale(0.82); }
    .season-badge { display: none; }
    .a11y-offcanvas { width: 100% !important; }
    .tb-voice-bar { bottom: 70px; font-size: 11px; padding: 8px 14px; gap: 7px; }
}
@media (max-width: 480px) {
    .top-bar { padding: 5px 0; font-size: 11px; }
    .top-bar-langs a { padding: 2px 7px; font-size: 10px; }
    .top-bar-socials a { width: 24px; height: 24px; font-size: 10px; }
    .a11y-toggle-btn { width: 28px; height: 28px; }
}

/* ================================================
   OFFCANVAS — Bootstrap .show klassini bekor qilish
   (vanilla JS inline style bilan boshqaradi)
   ================================================ */
#a11yOffcanvas {
    background: #f8f9fa;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    border-left: none;
}
/* Bootstrap .show klassi qo'shilsa ham ko'rinmasin */
#a11yOffcanvas.show,
#a11yOffcanvas.offcanvas.show {
    transform: translateX(100%) !important;
    visibility: hidden !important;
}
/* JS aria-hidden=false qo'yganida ochilsin */
#a11yOffcanvas[aria-hidden="false"] {
    transform: translateX(0) !important;
    visibility: visible !important;
}
body.dark #a11yOffcanvas {
    background: #1a2332;
}

/* ================================================================
   DAVLAT RAMZLARI — home.css ga qo'shing
   ================================================================ */

/* ── TUGMALAR ──────────────────────────────────────────────── */
.state-symbols {
    display: flex;
    align-items: center;
    gap: 4px;
}
.state-symbol-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 13px 4px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    box-shadow: 0 1px 3px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
    line-height: 1;
}
.state-symbol-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.state-symbol-btn:active { transform: translateY(0); }
.state-symbol-btn:focus-visible { outline: 3px solid #FFD54F; outline-offset: 2px; }
.state-symbol-btn > i, .state-symbol-btn > img {
    flex: none;
    width: 24px; height: 24px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    box-sizing: border-box;
}
.state-symbol-btn > svg { flex: none; width: 28px; height: 18px; border-radius: 3px; margin-left: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.35); }
.state-symbol-btn > i { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #FFD54F; }
.symbol-gerb-img { object-fit: contain; background: rgba(255,255,255,0.92) !important; padding: 2px !important; }
.symbol-label { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }

@media (max-width: 600px) {
    .symbol-label { display: none; }
    .state-symbol-btn { padding: 4px 8px; }
}

/* ── OVERLAY ───────────────────────────────────────────────── */
.sym-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 35, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}
.sym-overlay.open { opacity: 1; pointer-events: all; }

/* ── DRAWER ────────────────────────────────────────────────── */
.sym-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10001;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 60px rgba(0,0,0,0.2);
    transform: translateY(102%);
    transition: transform 0.42s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d0dae8 transparent;
}
.sym-drawer.open { transform: translateY(0); }
.sym-drawer::before {
    content: '';
    display: block;
    width: 44px; height: 5px;
    border-radius: 3px;
    background: #d0dae8;
    margin: 14px auto 0;
}
body.dark .sym-drawer { background: #1a2332; }
body.dark .sym-drawer::before { background: #2a3d55; }

/* Yopish tugmasi */
.sym-close {
    position: absolute;
    top: 16px; right: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f4fb;
    color: #5f738c;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.sym-close:hover { background: #e0e8f5; color: #1566B7; transform: scale(1.08); }
body.dark .sym-close { background: #253449; color: #94a3b8; }
body.dark .sym-close:hover { background: #1a3358; color: #90c4f8; }

/* ── LAYOUT: chap + o'ng ───────────────────────────────────── */
.sym-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 420px;
    padding-bottom: 32px;
}

/* ── CHAP USTUN ────────────────────────────────────────────── */
.sym-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 24px;
}

/* BAYROQ chap */
.sym-left-bayroq {
    background: linear-gradient(160deg, #0a1a3e 0%, #1565C0 60%, #1EB53A 100%);
}
.sym-flag-container {
    position: relative;
    width: 240px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.sym-flag-svg { display: block; width: 100%; height: 100%; }
/* CSS Bayroq */
.css-flag {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}
.css-flag-blue {
    flex: 2;
    background: #1565C0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 14px;
    gap: 1px;
}
.css-flag-crescent {
    font-size: 22px;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}
.css-flag-stars-row {
    font-size: 6px;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1.4;
}
.css-flag-stars-row.s4 { opacity: 0; }
.css-flag-line {
    height: 4px;
    background: #D32F2F;
}
.css-flag-white { flex: 1.2; background: #fff; }
.css-flag-green { flex: 2; background: #1EB53A; }

/* Haqiqiy rasm ustiga qo'yiladi */
.sym-real-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* GERB chap */
.sym-left-gerb {
    background: linear-gradient(160deg, #0a1628 0%, #0d3b66 50%, #1566B7 100%);
}
.sym-gerb-container {
    position: relative;
    width: 200px; height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sym-gerb-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,213,79,0.2);
    animation: gerbRingPulse 3s ease-in-out infinite;
}
.sym-gerb-glow-ring-1 { width: 160px; height: 160px; animation-delay: 0s; }
.sym-gerb-glow-ring-2 { width: 210px; height: 210px; animation-delay: 1s; opacity: 0.5; }
@keyframes gerbRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.06); opacity: 0.2; }
}
.sym-real-gerb {
    position: relative;
    width: 170px; height: auto;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
    animation: gerbFloat 4s ease-in-out infinite;
}
@keyframes gerbFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* MADHIYA chap */
.sym-left-madhiya {
    background: linear-gradient(160deg, #060d1e 0%, #0d2e6e 100%);
}
.sym-madhiya-art {
    position: relative;
    width: 160px; height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sma-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,213,79,0.18);
    animation: smaRing 3s ease-in-out infinite;
}
.sma-ring-1 { width: 90px;  height: 90px;  animation-delay: 0s; }
.sma-ring-2 { width: 130px; height: 130px; animation-delay: 0.7s; border-color: rgba(255,213,79,0.1); }
.sma-ring-3 { width: 165px; height: 165px; animation-delay: 1.4s; border-color: rgba(255,213,79,0.06); }
@keyframes smaRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.4; }
}
.sma-play-btn {
    position: relative;
    z-index: 2;
    width: 70px; height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FFD54F, #F9A825);
    color: #0a1628;
    font-size: 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 28px rgba(255,213,79,0.45);
    transition: transform 0.22s, box-shadow 0.22s;
}
.sma-play-btn:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(255,213,79,0.6); }
.sma-play-btn.playing {
    background: linear-gradient(135deg, #ef5350, #b71c1c);
    color: #fff;
    box-shadow: 0 8px 28px rgba(239,83,80,0.45);
}

/* To'lqin animatsiyasi */
.sym-audio-waves {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}
.sym-audio-waves span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: rgba(255,213,79,0.4);
    height: 6px;
    transition: height 0.1s;
}
.sym-audio-waves.playing span {
    animation: waveBar 0.7s ease-in-out infinite alternate;
}
.sym-audio-waves.playing span:nth-child(1)  { animation-delay: 0.00s; }
.sym-audio-waves.playing span:nth-child(2)  { animation-delay: 0.08s; }
.sym-audio-waves.playing span:nth-child(3)  { animation-delay: 0.16s; }
.sym-audio-waves.playing span:nth-child(4)  { animation-delay: 0.04s; }
.sym-audio-waves.playing span:nth-child(5)  { animation-delay: 0.12s; }
.sym-audio-waves.playing span:nth-child(6)  { animation-delay: 0.20s; }
.sym-audio-waves.playing span:nth-child(7)  { animation-delay: 0.06s; }
.sym-audio-waves.playing span:nth-child(8)  { animation-delay: 0.14s; }
.sym-audio-waves.playing span:nth-child(9)  { animation-delay: 0.10s; }
.sym-audio-waves.playing span:nth-child(10) { animation-delay: 0.18s; }
.sym-audio-waves.playing span:nth-child(11) { animation-delay: 0.02s; }
@keyframes waveBar {
    from { height: 4px;  background: rgba(255,213,79,0.35); }
    to   { height: 28px; background: rgba(255,213,79,1); }
}
.sym-madhiya-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Chap ustun umumiy info ────────────────────────────────── */
.sym-left-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.sym-left-info-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.sli-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── O'NG USTUN ────────────────────────────────────────────── */
.sym-right {
    padding: 36px 44px 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.sym-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sym-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1566B7;
    background: rgba(21,102,183,0.08);
    border: 1px solid rgba(21,102,183,0.18);
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}
body.dark .sym-badge { color: #90c4f8; background: rgba(144,196,248,0.1); border-color: rgba(144,196,248,0.2); }
.sym-badge-year {
    background: rgba(255,213,79,0.12);
    border-color: rgba(255,213,79,0.25);
    color: #b8860b;
}
body.dark .sym-badge-year { color: #FFD54F; }

.sym-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 900;
    color: #0d2e6e;
    line-height: 1.2;
    margin: 0;
}
body.dark .sym-title { color: #e8f0fe; }

.sym-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    line-height: 1.85;
    color: #4a5568;
    font-weight: 400;
    margin: 0;
}
body.dark .sym-desc { color: #94a3b8; }

/* ── FACTS GRID ────────────────────────────────────────────── */
.sym-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.sym-fact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f8faff;
    border: 1px solid #e5efff;
    border-radius: 12px;
    transition: border-color 0.2s;
}
.sym-fact:hover { border-color: rgba(21,102,183,0.3); }
body.dark .sym-fact { background: #1e2d42; border-color: rgba(255,255,255,0.06); }
.sym-fact > i {
    font-size: 14px;
    color: #1566B7;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
body.dark .sym-fact > i { color: #90c4f8; }
.sym-fact > div { display: flex; flex-direction: column; gap: 2px; }
.sf-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8899aa;
}
.sf-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}
body.dark .sf-val { color: #e2e8f0; }

/* ── AUDIO PLAYER ──────────────────────────────────────────── */
.sym-player {
    background: linear-gradient(135deg, #0d2e6e 0%, #1566B7 100%);
    border-radius: 14px;
    padding: 14px 18px;
}
.sym-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sym-player-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,213,79,0.92);
    color: #0d2e6e;
    font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255,213,79,0.4);
}
.sym-player-btn:hover { background: #FFD54F; transform: scale(1.07); }
.sym-player-btn.playing { background: rgba(239,83,80,0.92); color: #fff; box-shadow: 0 4px 16px rgba(239,83,80,0.4); }
.sym-player-track { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sym-progress-bg {
    position: relative;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
}
.sym-progress-fill {
    height: 100%;
    background: #FFD54F;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}
.sym-progress-dot {
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%, -50%);
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    transition: left 0.1s linear;
}
.sym-times {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}
.sym-vol-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.sym-vol-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sym-layout { grid-template-columns: 1fr; }
    .sym-left { min-height: 260px; padding: 28px 24px; }
    .sym-right { padding: 24px 24px 20px; }
    .sym-facts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .sym-drawer { border-radius: 20px 20px 0 0; max-height: 92vh; }
    .sym-title { font-size: 18px; }
    .sym-desc { font-size: 12.5px; }
    .sym-facts-grid { grid-template-columns: 1fr; }
    .sym-right { padding: 20px 18px 16px; }
    .sym-left { padding: 20px; }
    .sym-flag-container { width: 200px; height: 125px; }
}

/* Avvalgi saytga o'tish tugmasi */
.eski-sayt { display: flex; justify-content: center; padding: 20px 16px; }
.eski-sayt-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 50px;
    border: 2px solid #0d4a8f; color: #0d4a8f; background: #fff; font-weight: 600; text-decoration: none;
    text-align: center; transition: background .2s, color .2s; }
.eski-sayt-btn:hover, .eski-sayt-btn:focus-visible { background: #0d4a8f; color: #fff; }
.eski-sayt-ok { font-size: .8em; opacity: .75; }
body.dark .eski-sayt-btn { background: transparent; border-color: #7fb2ee; color: #cfe3fb; }
body.dark .eski-sayt-btn:hover, body.dark .eski-sayt-btn:focus-visible { background: #7fb2ee; color: #0b1a2e; }
