/* ==================== */
/*  Accessibility Toolbar */
/* ==================== */
.a11y-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #FFC107;
    border: 3px solid #FFC107;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.a11y-toggle:hover,
.a11y-toggle:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

.a11y-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    padding: 24px;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    border: 2px solid #1a1a2e;
    direction: rtl;
    text-align: right;
}

.a11y-panel.active {
    display: block;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.a11y-panel-header h3 {
    margin: 0 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.a11y-panel-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #4a5568;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
}

.a11y-panel-close:hover,
.a11y-panel-close:focus {
    background: #f0f0f0;
    color: #1a202c;
}

.a11y-section {
    margin-bottom: 18px;
}

.a11y-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: block;
}

.a11y-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.a11y-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    background: #fff;
    color: #1a202c;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    white-space: nowrap;
}

.a11y-btn:hover,
.a11y-btn:focus {
    border-color: #c7243a;
    background: #fff5f5;
    outline: none;
}

.a11y-btn.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.a11y-btn i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.a11y-reset {
    width: 100%;
    padding: 12px;
    border: 2px solid #c7243a;
    border-radius: 10px;
    background: #fff;
    color: #c7243a;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    margin-top: 8px;
}

.a11y-reset:hover,
.a11y-reset:focus {
    background: #c7243a;
    color: #fff;
    outline: none;
}

/* ==================== */
/*  Accessibility Modes  */
/* ==================== */
html.a11y-font-large {
    font-size: 22px !important;
}

html.a11y-font-xlarge {
    font-size: 26px !important;
}

html.a11y-high-contrast {
    filter: contrast(1.4);
}

html.a11y-high-contrast body {
    background: #fff !important;
    color: #000 !important;
}

html.a11y-high-contrast .card-header,
html.a11y-high-contrast .hero,
html.a11y-high-contrast .price-card-header,
html.a11y-high-contrast .accessibility-footer {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-high-contrast .card,
html.a11y-high-contrast .info-card,
html.a11y-high-contrast .price-card {
    border: 2px solid #000 !important;
}

html.a11y-high-contrast a {
    color: #0000cc !important;
}

html.a11y-grayscale {
    filter: grayscale(100%);
}

html.a11y-underline-links a {
    text-decoration: underline !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M4 4l16 40 6-16 16-6z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.a11y-highlight-focus *:focus {
    outline: 4px solid #FFC107 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.3) !important;
}

html.a11y-line-height body {
    line-height: 2.2 !important;
}

html.a11y-line-height .card-body ul li,
html.a11y-line-height p,
html.a11y-line-height .info-card p {
    line-height: 2.2 !important;
}
