* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f4f7fb;
    color: #1d2939;
    line-height: 1.6;
}

/* =========================
   Header
   ========================= */

.site-header {
    text-align: center;
    padding: 16px 15px;
    background: linear-gradient(135deg, #123c69, #1d70a2);
    color: white;
    border-bottom: 3px solid ;
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

/* =========================
   Advertisement
   ========================= */

.ad-banner {
    width: 320px;
    height: 50px;
    margin: 20px auto;
}

.ad-placeholder {
    width: 320px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    color: #8a94a6;
    font-size: 12px;
}

/* =========================
   Information Notice
   ========================= */

.notice {
    max-width:  1100px;
    margin: 0 auto 32px;
    padding: 13px 18px;
    background: #fff8e6;
    border-right: 4px solid #f4b400;
    border-radius: 8px;
    color: #5f4b18;
    font-size:16px;
}

.notice a {
    color: #c62828;
    font-weight: 600;
    text-decoration: none;
}

.notice a:hover {
    text-decoration: underline;
}

/* =========================
   States Section
   ========================= */

.states-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 50px;
}


.states-list h2 {
    text-align: center;
    margin: 0 0 24px;
    font-size: 26px;
    color: #123c69;
}

/* =========================
   State Cards
   ========================= */

.states-list details {
    position: relative;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(18, 60, 105, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.states-list details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 60, 105, 0.12);
}

/* =========================
   State Name
   ========================= */

.states-list summary {
    position: relative;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 18px 24px 18px 65px;
    list-style: none;
    font-size: 23px;
    font-weight: 700;
    color: #123c69;
    transition: background 0.2s ease;
}

.states-list summary::-webkit-details-marker {
    display: none;
}

/* Colored line */
.states-list summary::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #1769aa;
}

/* Plus / Minus */
.states-list summary::after {
    content: "+";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5fb;
    color: #1769aa;
    font-size: 22px;
    font-weight: 400;
}

.states-list summary:hover {
    background: #f5faff;
}

.states-list details[open] summary {
    background: #f2f8fd;
}

.states-list details[open] summary::before {
    background: #d62839;
}

.states-list details[open] summary::after {
    content: "−";
    background: #fff0f1;
    color: #d62839;
}

/* =========================
   Description
   ========================= */

.states-list details p {
    margin: 0;
    padding: 18px 22px 10px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================
   Learn More
   ========================= */

.states-list details a {
    display: inline-block;
    margin: 4px 22px 19px;
    padding: 8px 15px;
    background: #1769aa;
    color: #ffffff;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.states-list details a:hover {
    background: #d62839;
    transform: translateY(-1px);
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {

    .site-header {
        padding: 10px 10px;
    }

    .site-header h1 {
        font-size: 17px;
        line-height: 1.25;
    }

    .ad-banner {
        margin: 17px auto;
    }

    .notice {
        margin: 0 10px 25px;
        padding: 11px 14px;
        font-size: 13px;
    }

    .states-list {
        padding: 0 10px 40px;
    }

    .states-list h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .states-list details {
        margin-bottom: 9px;
        border-radius: 10px;
    }

    .states-list summary {
        min-height: 56px;
        padding: 14px 18px 14px 52px;
        font-size: 16px;
    }

    .states-list summary::after {
        left: 16px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .states-list details p {
        padding: 14px 18px 8px;
        font-size: 14px;
    }

    .states-list details a {
        margin-right: 18px;
        margin-bottom: 16px;
    }
}

.alphabetical-note {
    text-align: center;
    margin: 5px 0 35px;
    color: #667085;
    font-size: 20px;
}
.parts-box {
    margin: 0 20px 12px;
    background: #ffffff;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(18, 60, 105, 0.06);
}

.parts-box summary {
    position: relative;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 18px 24px 18px 65px;
    list-style: none;
    font-size: 22px;
    font-weight: 700;
    color: #1769aa;
    background: #f3f8fc;
}

.parts-box summary::-webkit-details-marker {
    display: none;
}

/* السهم */
.parts-arrow {
    margin-right: 10px;
    font-size: 13px;
    transition: transform 0.2s ease;
}

/* علامة + */
.parts-plus {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e3f0fa;
    color: #1769aa;
    font-size: 22px;
    font-weight: 400;
}

/* عند الفتح */
.parts-box[open] .parts-arrow {
    transform: rotate(180deg);
}

.parts-box[open] .parts-plus {
    font-size: 0;
}

.parts-box[open] .parts-plus::after {
    content: "−";
    font-size: 22px;
}

/* الخط الجانبي */
.parts-box summary::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #1769aa;
}

.parts-box p {
    margin: 0;
    padding: 20px 24px 10px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 600px) {

    .parts-box {
        margin: 0 10px 9px;
        border-radius: 10px;
    }

    .parts-box summary {
        min-height: 60px;
        padding: 14px 18px 14px 52px;
        font-size: 19px;
    }

    .parts-arrow {
        font-size: 11px;
    }

    .parts-plus {
        left: 16px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .parts-box p {
        padding: 15px 18px 8px;
        font-size: 17px;
        line-height: 1.65;
    }
}
/* Special sections */
.special-section {
    margin-top: 35px;
}

.special-section h2 {
    max-width: 1400px;
    margin: 0 auto 18px;
    padding: 0 20px;
    color: #123c69;
    font-size: 28px;
}

.special-list details summary {
    color: #7a3e00;
}

.special-list details summary::before {
    background: #d97706;
}

.special-list details summary::after {
    background: #fff4df;
    color: #d97706;
}

.special-list details[open] summary::after {
    background: #fff0f1;
    color: #d62839;
}

.special-list details a {
    background: #d97706;
}

.special-list details a:hover {
    background: #b45309;
}


/* Regions */
.region-list details summary {
    color: #00695c;
}

.region-list details summary::before {
    background: #00897b;
}

.region-list details summary::after {
    background: #e6f7f4;
    color: #00897b;
}

.region-list details a {
    background: #00897b;
}

.region-list details a:hover {
    background: #00695c;
}


/* Mobile */
@media (max-width: 600px) {
    .special-section {
        margin-top: 28px;
    }

    .special-section h2 {
        font-size: 22px;
        padding: 0 10px;
        margin-bottom: 18px;
    }
}

.about-usa-section {
    max-width: 1400px;
    margin: 35px auto 0;
    padding: 0 20px 40px;
}

.about-usa-section h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #123c69;
}

.about-usa-section .parts-box {
    margin: 0 0 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .about-usa-section {
        margin-top: 28px;
        padding: 0 10px 30px;
    }

    .about-usa-section h2 {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .about-usa-section .parts-box {
        margin-bottom: 9px;
    }
}
.states-title {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto 18px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    text-align: right !important;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #123c69;
}
@media (max-width: 600px) {
    .states-title {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto 18px !important;
        text-align: right !important;
        font-size: 22px;
    }
}
.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 30px 20px 25px;
    background: #123c69;
    box-sizing: border-box;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.footer-divider {
    width: 100%;
    max-width: 1000px;
    height: 1px;
    margin: 22px auto 18px;
    background: rgba(255, 255, 255, 0.25);
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 35px;
        padding: 25px 15px 22px;
    }

    .footer-links {
        gap: 12px 18px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-divider {
        margin: 20px auto 15px;
    }

    .copyright {
        font-size: 13px;
    }
}
.footer-ad {
    width: 468px;
    height: 60px;
    max-width: 100%;
    margin: 0 auto 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-label {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.about-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-box {
    background: #ffffff;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 3px 10px rgba(18, 60, 105, 0.07);
}

.about-box h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #123c69;
    font-size: 26px;
}

.about-box p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.about-box .about-note {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #667085;
}

@media (max-width: 600px) {
    .about-page {
        margin: 25px auto;
        padding: 0 10px;
    }

    .about-box {
        padding: 20px 18px;
    }

    .about-box h2 {
        font-size: 22px;
    }

    .about-box p {
        font-size: 16px;
        line-height: 1.7;
    }
}
.home-link {
    display: inline-block;
    color: #123c69 !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    margin-top: 10px;
}

.home-link:hover {
    color: #1769aa !important;
    text-decoration: underline;
}

.top-ad {
    width: 320px;
    height: 50px;
    max-width: calc(100% - 30px);
    margin: 20px auto 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.page-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 16px;
}

.page-navigation .page-label {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
}

.page-navigation .page-label:hover {
    text-decoration: underline;
}

.page-separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
}

.current-page {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* =========================
   Bottom Page Navigation
   ========================= */

.bottom-navigation {
    max-width: 1100px;
    margin: 50px auto 30px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    box-sizing: border-box;
}

.bottom-navigation .page-nav-previous,
.bottom-navigation .page-nav-home,
.bottom-navigation .page-nav-next {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid #cbd5df;
    border-radius: 9px;
    background: #eef3f7;
    color: #3f566b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.bottom-navigation .page-nav-previous:hover,
.bottom-navigation .page-nav-home:hover,
.bottom-navigation .page-nav-next:hover {
    background: #e3ebf2;
    border-color: #b8c7d4;
    color: #2f465a;
}

.bottom-navigation .page-nav-home {
    min-width: 160px;
    font-weight: 700;
}

.bottom-navigation .page-nav-previous {
    justify-content: flex-start;
}

.bottom-navigation .page-nav-next {
    justify-content: flex-end;
}

@media (max-width: 700px) {

    .bottom-navigation {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bottom-navigation .page-nav-previous,
    .bottom-navigation .page-nav-home,
    .bottom-navigation .page-nav-next {
        width: 100%;
        justify-content: center;
    }

}


/* ==============================
   State Overview Table
   ============================== */

.state-overview {
    max-width: 900px;
    margin: 25px auto 30px;
    padding: 0 15px;
}

.state-overview h2 {
    margin: 0 0 15px;
    padding: 14px 18px;
    background: #123c69;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
    text-align: right;
}

.overview-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.95rem;
}

.overview-table th,
.overview-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e6ea;
    text-align: right;
    vertical-align: top;
    line-height: 1.5;
}

.overview-table th {
    width: 34%;
    background: #f4f7fa;
    color: #123c69;
    font-weight: 700;
}

.overview-table td {
    color: #333333;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
    border-bottom: none;
}

.overview-table tr:hover th,
.overview-table tr:hover td {
    background: #f8fafc;
}

/* Mobile */
@media (max-width: 600px) {

    .state-overview {
        margin: 20px auto 25px;
        padding: 0 10px;
    }

    .state-overview h2 {
        font-size: 1.15rem;
        padding: 12px 14px;
    }

    .overview-table {
        font-size: 0.9rem;
    }

    .overview-table th,
    .overview-table td {
        padding: 10px 11px;
    }

    .overview-table th {
        width: 40%;
    }
}

/* =========================================
   Copy Button
   ========================================= */

.parts-plus {
    display: none !important;
}

.parts-box summary {
    padding-right: 24px;
    padding-left: 55px;
}

.parts-copy-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 7px;

    background: #e3f0fa;
    color: #1769aa;

    cursor: pointer;
    z-index: 5;

    transition: all 0.2s ease;
}

.parts-copy-btn:hover {
    background: #1769aa;
    color: #ffffff;
}

.parts-copy-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parts-copy-btn.copied {
    background: #e8f7ee;
    color: #198754;
}

@media (max-width: 600px) {

    .parts-box summary {
        padding-left: 48px;
    }

    .parts-copy-btn {
        left: 12px;
        width: 27px;
        height: 27px;
        border-radius: 6px;
    }

    .parts-copy-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* =========================================
   Remove arrows from all details titles
   ========================================= */

.parts-arrow {
    display: none !important;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::marker {
    display: none;
}



body {
    font-family: "Cairo", Arial, sans-serif;
}







/* =========================================================================
   ألوان داكنة أنيقة (Navy/Slate) — إضافة نهائية (ضعها في نهاية ملف CSS)
   لا تغيّر أي شيء آخر، فقط الألوان
   ========================================================================= */

:root {
  --cm-ink:      #d6e2ee !important;   /* نص فاتح مائل للأزرق */
  --cm-ink-soft: #7d8fa3 !important;   /* نص ثانوي رمادي مزرق */
  --cm-line:     #22303d !important;   /* حدود داكنة مزرقة */
  --cm-surface:  #111922 !important;   /* سطح البطاقات */
  --cm-bg:       #0d151d !important;   /* خلفية الصفحة */
  --cm-green:    #356f9e !important;   /* الأزرق الأساسي */
  --cm-green-d:  #2a5878 !important;   /* أزرق داكن */
  --cm-sand:     #17222d !important;   /* خلفية فاتحة قليلاً */
  --cm-amber:    #d9a441 !important;   /* ذهبي للنقاط */
  --cm-red:      #c0392b !important;   /* أحمر للتنبيهات */
  --cm-radius:   10px !important;
}

/* ===== الخلفية العامة والنصوص ===== */
body {
  background: #0d151d !important;
  color: #d6e2ee !important;
}

/* ===== الهيدر ===== */
.site-header {
  background: linear-gradient(135deg, #0d151d, #17222d) !important;
  color: #d6e2ee !important;
  border-bottom-color: #22303d !important;
}

/* ===== البطاقات والحاويات ===== */
.states-list details,
.parts-box,
.about-box,
.overview-table-wrapper,
.overview-table {
  background: #111922 !important;
  border-color: #22303d !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.state-overview h2 {
  background: #0d151d !important;
  color: #d6e2ee !important;
  border: 1px solid #22303d !important;
}

/* ===== عناوين الأقسام ===== */
.states-list h2,
.states-title,
.special-section h2,
.about-usa-section h2,
.about-box h2,
.site-header h1 {
  color: #d6e2ee !important;
}

/* ===== عناوين البطاقات ===== */
.states-list summary,
.parts-box summary {
  color: #a8c0d6 !important;
}

.parts-box summary {
  background: #17222d !important;
}

.states-list summary::before,
.parts-box summary::before {
  background: #356f9e !important;
}

.states-list summary::after {
  background: #17222d !important;
  color: #356f9e !important;
}

.states-list summary:hover,
.parts-box summary:hover {
  background: #17222d !important;
}

.states-list details[open] summary {
  background: #17222d !important;
}

.states-list details[open] summary::before {
  background: #c0392b !important;
}

.states-list details[open] summary::after {
  background: #2a1c1c !important;
  color: #e07a6a !important;
}

/* ===== النصوص الوصفية ===== */
.states-list details p,
.parts-box p,
.about-box p,
.about-usa-section p,
.overview-table td {
  color: #8fa4b8 !important;
}

/* ===== الروابط والأزرار ===== */
.states-list details a {
  background: #356f9e !important;
  color: #ffffff !important;
}

.states-list details a:hover {
  background: #2a5878 !important;
}

/* ===== التنبيهات ===== */
.notice {
  background: #17222d !important;
  border-right-color: #d9a441 !important;
  color: #c8b88c !important;
}

.notice a {
  color: #e07a6a !important;
}

/* ===== الأقسام الخاصة ===== */
.special-list details summary {
  color: #d9a441 !important;
}
.special-list details summary::before {
  background: #d9a441 !important;
}
.special-list details summary::after {
  background: #2a2218 !important;
  color: #d9a441 !important;
}
.special-list details a {
  background: #b8862f !important;
  color: #ffffff !important;
}
.special-list details a:hover {
  background: #966d24 !important;
}

/* ===== أقسام المناطق ===== */
.region-list details summary {
  color: #6fb8a8 !important;
}
.region-list details summary::before {
  background: #4a9488 !important;
}
.region-list details summary::after {
  background: #1a2a28 !important;
  color: #6fb8a8 !important;
}
.region-list details a {
  background: #4a9488 !important;
  color: #ffffff !important;
}
.region-list details a:hover {
  background: #3a7568 !important;
}

/* ===== الجداول ===== */
.overview-table th {
  background: #17222d !important;
  color: #a8c0d6 !important;
  border-bottom-color: #22303d !important;
}
.overview-table td {
  border-bottom-color: #22303d !important;
}
.overview-table tr:hover th,
.overview-table tr:hover td {
  background: #17222d !important;
}

/* ===== التنقل السفلي ===== */
.bottom-navigation .page-nav-previous,
.bottom-navigation .page-nav-home,
.bottom-navigation .page-nav-next {
  background: #17222d !important;
  border-color: #22303d !important;
  color: #a8c0d6 !important;
}
.bottom-navigation .page-nav-previous:hover,
.bottom-navigation .page-nav-home:hover,
.bottom-navigation .page-nav-next:hover {
  background: #1f2d3a !important;
  border-color: #356f9e !important;
  color: #d6e2ee !important;
}

/* ===== الفوتر ===== */
.site-footer {
  background: #0a1119 !important;
  border-top: 1px solid #22303d !important;
}
.footer-links a,
.copyright,
.page-label,
.page-navigation .page-label {
  color: #a8c0d6 !important;
}
.footer-divider {
  background: rgba(53, 111, 158, 0.3) !important;
}

/* ===== الحقول والقوائم المنسدلة ===== */
.cm-select,
.cm-field input,
.cm-field textarea,
.cm-field select,
.cm-form textarea,
.cm-replyform textarea {
  background: #17222d !important;
  border-color: #22303d !important;
  color: #d6e2ee !important;
}
.cm-form textarea:focus {
  background: #1f2d3a !important;
  border-color: #356f9e !important;
}

/* ===== عنوان التعليقات ===== */
.cm-title {
  border-inline-start-color: #356f9e !important;
}
.cm-title.cm-title-inline {
  background: linear-gradient(135deg, #0d151d 0%, #17222d 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid #22303d !important;
}
.cm-title.cm-title-inline .cm-title-main {
  color: #d6e2ee !important;
}
.cm-title.cm-title-inline .cm-title-sub {
  color: #7d8fa3 !important;
}

.cm-bar.cm-bar-compact {
  background: #111922 !important;
  border-color: #22303d !important;
  border-inline-start-color: #356f9e !important;
}

/* ===== شريط الحساب في الهيدر ===== */
#cm-account-slot .cm-bar.cm-bar-compact {
  background: rgba(53, 111, 158, 0.12) !important;
  border-color: rgba(53, 111, 158, 0.35) !important;
}
#cm-account-slot .cm-bar-who,
#cm-account-slot .cm-name {
  color: #d6e2ee !important;
}
#cm-account-slot .cm-avatar {
  background: #356f9e !important;
  border-color: rgba(214, 226, 238, 0.25) !important;
}
#cm-account-slot .cm-btn {
  background: #356f9e !important;
  color: #ffffff !important;
  border-color: #356f9e !important;
}
#cm-account-slot .cm-btn:hover {
  background: #2a5878 !important;
  border-color: #2a5878 !important;
}
#cm-account-slot .cm-btn.ghost,
#cm-account-slot .cm-btn.quiet,
#cm-account-slot .cm-btn.small {
  background: transparent !important;
  color: #a8c0d6 !important;
  border-color: rgba(168, 192, 214, 0.35) !important;
}
#cm-account-slot .cm-btn.ghost:hover,
#cm-account-slot .cm-btn.quiet:hover {
  background: rgba(53, 111, 158, 0.25) !important;
  color: #ffffff !important;
}

/* ===== بطاقات التعليقات ===== */
.cm-item {
  background: #111922 !important;
  border-color: #22303d !important;
  border-inline-start-color: #356f9e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
.cm-item:hover {
  box-shadow: 0 4px 14px rgba(53, 111, 158, 0.25) !important;
  border-color: #2a5878 !important;
}
.cm-item.deleted {
  background: #17222d !important;
  border-inline-start-color: #3a4a58 !important;
}
.cm-name {
  color: #a8c0d6 !important;
}
.cm-name:hover {
  color: #4a8ab8 !important;
}
.cm-meta {
  color: #6b7c8f !important;
}
.cm-body {
  color: #d6e2ee !important;
}
.cm-body.gone {
  color: #6b7c8f !important;
}
.cm-tag {
  color: #4a8ab8 !important;
  background: #17222d !important;
}
.cm-act {
  background: #17222d !important;
  border-color: #22303d !important;
  color: #8fa4b8 !important;
}
.cm-act:hover {
  background: #1f2d3a !important;
  border-color: #356f9e !important;
  color: #d6e2ee !important;
}
.cm-act.on {
  color: #4a8ab8 !important;
  background: #1a2733 !important;
  border-color: #356f9e !important;
}
.cm-act.on.down {
  color: #e07a6a !important;
  background: #2a1c1c !important;
  border-color: #5a3530 !important;
}
.cm-actions {
  border-top-color: #1f2d3a !important;
}

/* ===== التصنيفات ===== */
.cm-cat {
  background: #111922 !important;
  border-color: #22303d !important;
  color: #8fa4b8 !important;
  box-shadow: none !important;
}
.cm-cat:hover {
  background: #17222d !important;
  border-color: #356f9e !important;
  color: #d6e2ee !important;
}
.cm-cat[aria-pressed="true"] {
  background: #356f9e !important;
  border-color: #356f9e !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(53, 111, 158, 0.4) !important;
}
.cm-cats::before {
  color: #d6e2ee !important;
}

/* ===== زر النشر ===== */
.cm-compose-toggle .cm-btn {
  background: #356f9e !important;
  border-color: #2a5878 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(53, 111, 158, 0.4) !important;
}
.cm-compose-toggle .cm-btn:hover {
  background: #2a5878 !important;
  box-shadow: 0 5px 16px rgba(53, 111, 158, 0.5) !important;
}

/* ===== الردود ===== */
.cm-replies {
  border-inline-start-color: #22303d !important;
}
.cm-reply {
  background: #17222d !important;
  border-color: #22303d !important;
}
.cm-reply .cm-actions {
  border-top-color: #1f2d3a !important;
}

/* ===== الأفاتار ===== */
.cm-item .cm-avatar,
.cm-reply .cm-avatar,
.cm-avatar,
.cm-bar.cm-bar-compact .cm-avatar {
  background: #356f9e !important;
  color: #ffffff !important;
}
.cm-item .cm-avatar:hover,
.cm-reply .cm-avatar:hover {
  background: #2a5878 !important;
}

/* ===== النوافذ ===== */
.cm-modal {
  background: rgba(5, 10, 16, 0.85) !important;
}
.cm-modal-card {
  background: #111922 !important;
  color: #d6e2ee !important;
  border: 1px solid #22303d !important;
}
.cm-modal-head h3 {
  color: #d6e2ee !important;
}
.cm-field label {
  color: #a8c0d6 !important;
}
.cm-hint {
  color: #6b7c8f !important;
}
.cm-ok {
  background: #12261e !important;
  border-color: #1e4a38 !important;
  color: #6fd4a8 !important;
}
.cm-error {
  background: #2a1618 !important;
  border-color: #5a2a2c !important;
  color: #e07a6a !important;
}
.cm-idcard {
  background: #356f9e !important;
  color: #ffffff !important;
}
.cm-toast {
  background: #1f2d3a !important;
  color: #d6e2ee !important;
  border: 1px solid #356f9e !important;
}
.cm-toast.bad {
  background: #c0392b !important;
  color: #ffffff !important;
}
.cm-x {
  color: #7d8fa3 !important;
}
.cm-x:hover {
  color: #d6e2ee !important;
}

/* ===== النقاط والشارات ===== */
.cm-points {
  color: #d9a441 !important;
  background: #2a2218 !important;
  border-color: #5a4a2a !important;
}
.cm-badge-admin {
  background: #2a5878 !important;
  color: #d6e2ee !important;
}

/* ===== wilaya-hero ===== */
.wilaya-num {
  color: #4a8ab8 !important;
  background: #17222d !important;
}
.wilaya-hero h2 {
  color: #d6e2ee !important;
}
.wilaya-hero p {
  color: #8fa4b8 !important;
}

/* ===== التناسق العام ===== */
.cm-bar.cm-bar-compact,
.cm-title.cm-title-inline {
  background: #111922 !important;
  border-color: #22303d !important;
  border-inline-start-color: #356f9e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.cm-bar.cm-bar-compact .cm-bar-who {
  color: #a8c0d6 !important;
}
.cm-bar.cm-bar-compact .cm-points {
  color: #d9a441 !important;
  background: #2a2218 !important;
  border-color: #5a4a2a !important;
}

/* ===== تمييز التعليق ===== */
.cm-highlight {
  outline-color: #356f9e !important;
  box-shadow: 0 0 0 6px rgba(53, 111, 158, 0.3) !important;
}

/* ===== عدّادات ===== */
.cm-notify-count,
.cm-chat-count {
  background: #c0392b !important;
  color: #ffffff !important;
}

/* ===== الملف الشخصي ===== */
.cm-profile-item,
.cm-profile-item.cm-profile-link {
  background: #111922 !important;
  border-color: #22303d !important;
  color: #d6e2ee !important;
}
.cm-profile-item.cm-profile-link:hover {
  border-color: #356f9e !important;
  box-shadow: 0 2px 10px rgba(53, 111, 158, 0.25) !important;
}
.cm-profile-head {
  border-bottom-color: #22303d !important;
}

/* ===== شاشة التحميل ===== */
.cm-loading,
.cm-loading-text {
  color: #6b7c8f !important;
}
.cm-empty {
  background: #111922 !important;
  border-color: #22303d !important;
  color: #6b7c8f !important;
}

/* ===== الأزرار العامة ===== */
.cm-btn {
  background: #356f9e !important;
  border-color: #356f9e !important;
  color: #ffffff !important;
}
.cm-btn:hover {
  background: #2a5878 !important;
}
.cm-btn.ghost {
  background: transparent !important;
  color: #4a8ab8 !important;
  border-color: #356f9e !important;
}
.cm-btn.ghost:hover {
  background: #17222d !important;
}
.cm-btn.quiet {
  background: transparent !important;
  color: #8fa4b8 !important;
  border-color: #22303d !important;
}
.cm-btn.quiet:hover {
  background: #17222d !important;
  color: #d6e2ee !important;
}
.cm-btn.danger {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
}
.cm-btn.danger:hover {
  background: #a02c20 !important;
}

/* ===== الإشعارات ===== */
.cm-notification-item {
  border-bottom-color: #22303d !important;
  color: #d6e2ee !important;
}
.cm-notification-item:hover {
  background: #17222d !important;
}
.cm-notification-item.unread {
  background: #17222d !important;
}
.cm-notification-text {
  color: #a8c0d6 !important;
}

/* ===== التركيز ===== */
.cm :focus-visible {
  outline-color: #356f9e !important;
}

/* ===== زر إظهار كلمة المرور ===== */
.cm-pw-toggle {
  color: #7d8fa3 !important;
}
.cm-pw-toggle:hover {
  color: #d6e2ee !important;
  background: rgba(53, 111, 158, 0.15) !important;
}

/* ===== أزرار النسخ ===== */
.parts-copy-btn {
  background: #17222d !important;
  color: #4a8ab8 !important;
}
.parts-copy-btn:hover {
  background: #356f9e !important;
  color: #ffffff !important;
}
.parts-copy-btn.copied {
  background: #12261e !important;
  color: #6fd4a8 !important;
}