.content-form {
    display: grid;
    gap: 12px;
}

.content-language {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfcfa;
}

.content-language > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    cursor: pointer;
    list-style: none;
}

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

.content-language > summary span {
    padding: 4px 8px;
    border-radius: 20px;
    color: var(--green);
    background: #eaf2ed;
    font-size: .68rem;
    font-weight: 800;
}

.content-language-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.content-group {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
}

.content-group legend {
    padding: 0 7px;
    color: var(--green);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.content-group label {
    display: block;
    margin-bottom: 14px;
}

.content-group label:last-child {
    margin-bottom: 0;
}

.content-group label span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.content-group textarea {
    width: 100%;
    padding: 12px 13px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    outline: none;
}

.content-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11, 61, 46, .08);
}

.sticky-save {
    position: sticky;
    bottom: 16px;
    display: flex;
    justify-content: flex-end;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 15px 40px rgba(6, 39, 29, .12);
    backdrop-filter: blur(10px);
}

.account-panel {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .content-language-body {
        grid-template-columns: 1fr;
    }
}

html[dir="rtl"] body {
    font-family: "Noto Sans Arabic", sans-serif;
}

.admin-brand > img {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    object-fit: contain;
}

.sidebar .admin-brand > img {
    filter: brightness(0) saturate(100%) invert(91%) sepia(76%) saturate(682%) hue-rotate(28deg) brightness(96%);
}

html[dir="rtl"] .admin-body {
    grid-template-columns: 1fr 250px;
}

html[dir="rtl"] .sidebar {
    grid-column: 2;
    grid-row: 1;
}

html[dir="rtl"] .admin-main {
    grid-column: 1;
    grid-row: 1;
}

html[dir="rtl"] .sidebar nav small {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .inquiry-card.is-new {
    box-shadow: inset -4px 0 0 var(--lime);
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.media-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfcfa;
}

.media-card > img {
    width: 180px;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--cream);
}

.media-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.media-card p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: .75rem;
}

.media-card label span {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: .72rem;
    font-weight: 700;
}

.media-card input[type="file"] {
    width: 100%;
    font-size: .72rem;
}

.inquiry-actions {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.mini-inquiries article > * {
    min-width: 0;
}

.mini-inquiries article > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-card,
.inquiry-card > *,
.inquiry-card header > * {
    min-width: 0;
}

.inquiry-contact > *,
.inquiry-message,
.inquiry-card h3,
.inquiry-card header p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.danger-text {
    color: var(--red);
}

@media (max-width: 1100px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    html[dir="rtl"] .admin-body {
        grid-template-columns: minmax(0, 1fr);
    }

    html[dir="rtl"] .sidebar,
    html[dir="rtl"] .admin-main {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        min-width: 0;
    }

    html[dir="rtl"] .sidebar {
        overflow: hidden;
    }

    html[dir="rtl"] .sidebar nav {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
    }

    html[dir="rtl"] .sidebar nav a {
        min-width: 0;
        white-space: normal;
        line-height: 1.45;
    }
}

@media (min-width: 700px) and (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-grid article {
        min-height: 190px;
    }
}

@media (max-width: 620px) {
    html[dir="rtl"] .sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-card {
        grid-template-columns: 1fr;
    }

    .media-card > img {
        width: 100%;
        height: 190px;
    }
}
