/* ============================
   HEADER TUGMASI
============================ */
.header-emblem-link.header-special-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    color: #4a4a5e !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.header-emblem-link.header-special-icons:hover {
    background: rgba(72, 37, 194, 0.08) !important;
    color: #4825c2 !important;
}

.header-emblem-link.header-special-icons.a11y-active {
    background: #4825c2 !important;
    color: #fff !important;
}

/* ============================
   PANEL
============================ */
.a11y-panel {
    display: none;
    position: fixed;
    top: 90px;
    left: 14px;
    z-index: 99999;
    width: 340px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(72, 37, 194, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, top 0.2s ease;
}

.a11y-panel.a11y-open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.a11y-panel::-webkit-scrollbar {
    width: 3px;
}

.a11y-panel::-webkit-scrollbar-thumb {
    background: #ecebf5;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .a11y-panel {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

/* ============================
   PANEL HEADER
============================ */
.a11y-panel .a11y-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecebf5;
}

.a11y-panel .a11y-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
}

.a11y-panel .a11y-header-title i {
    color: #4825c2;
    font-size: 13px;
}

.a11y-panel .a11y-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.a11y-panel .a11y-reset {
    border: none;
    background: rgba(72, 37, 194, 0.08);
    color: #4825c2;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.a11y-panel .a11y-reset:hover {
    background: #4825c2;
    color: #fff;
}

.a11y-panel .a11y-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.a11y-panel .a11y-close:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.08);
}

/* ============================
   BO'LIMLAR
============================ */
.a11y-panel .a11y-section {
    margin-bottom: 12px;
}

.a11y-panel .a11y-section:last-child {
    margin-bottom: 0;
}

.a11y-panel .a11y-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a6a5b8;
    margin: 0 0 8px;
}

/* ============================
   IKKI USTUNLI QATOR
============================ */
.a11y-panel .a11y-row {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}

.a11y-panel .a11y-col {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.a11y-panel .a11y-col + .a11y-col {
    padding-left: 14px;
    border-left: 1px solid #ecebf5;
}

/* ============================
   KO'RINISH REJIMI
============================ */
.a11y-panel .a11y-modes {
    display: flex;
    gap: 6px;
}

.a11y-panel .a11y-mode-item {
    flex: 1;
}

.a11y-panel .a11y-mode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid #ecebf5;
    color: #4a4a5e;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.a11y-panel .a11y-mode-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(72, 37, 194, 0.12);
}

.a11y-panel .a11y-mode-box.active {
    border-color: #4825c2;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(72, 37, 194, 0.1);
}

.a11y-panel .a11y-mode-icon {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.a11y-panel .a11y-mode-name {
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.a11y-panel .a11y-mode-box.spcNormal { background: #fff; color: #1a1a2e; }
.a11y-panel .a11y-mode-box.spcWhiteAndBlack { background: #f4f2fb; color: #4a4a5e; }
.a11y-panel .a11y-mode-box.spcNoImage { background: #fdf4fa; color: #d4537e; }

/* ============================
   SLAYDERLAR
============================ */
.a11y-panel .a11y-slider-block {
    margin-bottom: 8px;
}

.a11y-panel .a11y-slider-block:last-child {
    margin-bottom: 0;
}

.a11y-panel .a11y-slider-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #6b6b85;
    font-weight: 500;
    margin-bottom: 5px;
}

.a11y-panel .a11y-range-val {
    font-weight: 700;
    color: #4825c2;
}

.a11y-panel .a11y-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #ecebf5;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.a11y-panel .a11y-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4825c2, #6a3fd8);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(72, 37, 194, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.a11y-panel .a11y-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.a11y-panel .a11y-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4825c2, #6a3fd8);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(72, 37, 194, 0.4);
    cursor: pointer;
}

/* ============================
   TOGGLE QATORLAR
============================ */
.a11y-panel .a11y-toggle-row--vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.a11y-panel .a11y-toggle-row--vertical:last-child {
    margin-bottom: 0;
}

.a11y-panel .a11y-toggle-label {
    font-size: 11px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.3;
}

.a11y-panel .a11y-toggle {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #ecebf5;
    border: none;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
    padding: 0;
}

.a11y-panel .a11y-toggle.on {
    background: #4825c2;
}

.a11y-panel .a11y-toggle-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.a11y-panel .a11y-toggle.on .a11y-toggle-dot {
    transform: translateX(16px);
}

/* ============================
   BELGILANGAN MATNNI O'QISH
============================ */
.a11y-selection-btn {
    position: fixed;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4825c2, #6a3fd8);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(72, 37, 194, 0.3);
    transition: transform 0.15s ease;
}

.a11y-selection-btn:hover {
    transform: scale(1.1);
}

.a11y-selection-btn.reading {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ============================
   OQ-QORA REJIM — rasmlar ta'sirlanmaydi
============================ */
body.spcWhiteAndBlack {
    background: #f0f0f0 !important;
}

body.spcWhiteAndBlack *:not(.a11y-panel):not(.a11y-panel *):not(.header-emblem-link):not(.header-emblem-link *):not(.a11y-selection-btn):not(.a11y-selection-btn *):not(img):not(picture):not(svg) {
    color: #1a1a1a !important;
    background-color: #e8e8e8 !important;
    background-image: none !important;
    border-color: #999 !important;
    box-shadow: none !important;
}

body.spcWhiteAndBlack .blog-single-wrap,
body.spcWhiteAndBlack .blog-sidebar .widget,
body.spcWhiteAndBlack .auth-form,
body.spcWhiteAndBlack .header {
    background-color: #fff !important;
}

body.spcWhiteAndBlack img,
body.spcWhiteAndBlack picture,
body.spcWhiteAndBlack svg:not(.a11y-icon) {
    filter: grayscale(100%) !important;
    display: revert !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.spcWhiteAndBlack .a11y-panel,
body.spcWhiteAndBlack .a11y-panel * {
    background-color: revert !important;
    color: revert !important;
    border-color: revert !important;
    box-shadow: revert !important;
}

body.spcWhiteAndBlack .a11y-panel {
    background-color: #fff !important;
}

body.spcWhiteAndBlack .header-emblem-link.header-special-icons {
    background-color: revert !important;
    color: revert !important;
}

body.spcWhiteAndBlack .header-emblem-link.header-special-icons.a11y-active {
    background: #4825c2 !important;
    color: #fff !important;
}

body.spcWhiteAndBlack .a11y-selection-btn {
    background: revert !important;
    color: revert !important;
}

/* ============================
   RASMSIZ REJIM
============================ */
body.spcNoImage img,
body.spcNoImage picture,
body.spcNoImage svg:not(.a11y-icon),
body.spcNoImage .blog-thumb-img,
body.spcNoImage .recent-post-img,
body.spcNoImage .blog-img {
    display: none !important;
}

body.spcNoImage *,
body.spcNoImage *::before,
body.spcNoImage *::after {
    background-image: none !important;
}

/* ============================
   O'QISH CHIZIG'I
============================ */
#a11yReadingLine {
    position: fixed;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(72, 37, 194, 0.06);
    border-top: 2px solid rgba(72, 37, 194, 0.4);
    border-bottom: 2px solid rgba(72, 37, 194, 0.4);
    pointer-events: none;
    z-index: 9998;
    display: none;
}

body.a11y-reading-guide-active #a11yReadingLine {
    display: block;
}

/* ============================
   KATTA KURSOR
============================ */
body.a11y-big-cursor,
body.a11y-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path fill="%234825c2" stroke="white" stroke-width="1" d="M4 2l14 8-6 2 4 6-3 2-4-6-4 5z"/></svg>') 4 4, auto !important;
}