/* إعداد عام يطبق على كل عناصر الصفحة. */
* {
    box-sizing: border-box;
}

/* تنسيق جسم الصفحة والخلفية العامة. */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #241c44;
    min-height: 100vh;
    color: #fff;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #241c44, #3b215f);
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card {
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card h1 {
    margin: 0 0 8px;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.72);
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card label {
    display: block;
    margin: 14px 0 6px;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form select option {
    color: #111;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card button,
.admin-form button,
.secondary-btn {
    width: 100%;
    border: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #6f3db8;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-card a,
.admin-header a,
.sidebar-links a,
.admin-card a {
    display: inline-block;
    margin-top: 16px;
    color: #d7c4ff;
    text-decoration: none;
}

/* تنسيق العنصر أو المجموعة: .error-box */
.error-box {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 80, 80, 0.18);
    border: 1px solid rgba(255, 80, 80, 0.35);
    margin-bottom: 14px;
}

/* تنسيق العنصر أو المجموعة: .app-layout */
.app-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

/* تنسيق القائمة الجانبية للمحادثات والروابط. */
.sidebar {
    background: rgba(20, 16, 46, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* تنسيق القائمة الجانبية للمحادثات والروابط. */
.sidebar-top h2 {
    margin: 0;
    font-size: 22px;
}

/* تنسيق القائمة الجانبية للمحادثات والروابط. */
.sidebar-top p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-list {
    flex: 1;
    overflow-y: auto;
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-row {
    display: grid;
    grid-template-columns: 1fr 34px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-item {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-row.active .conversation-item {
    background: rgba(111, 61, 184, 0.58);
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-delete {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 65, 65, 0.72);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-delete:hover {
    background: rgba(255, 65, 65, 0.95);
}

/* تنسيق القائمة الجانبية للمحادثات والروابط. */
.sidebar-links {
    display: flex;
    gap: 16px;
}

/* تنسيق جزء عام من الصفحة. */
.page-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(36, 28, 68, 0.582);
    overflow: hidden;
}

/* تنسيق جزء عام من الصفحة. */
.page-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(48vw, 520px);
    pointer-events: none;
    z-index: 0;
}

/* تنسيق جزء عام من الصفحة. */
.page-watermark img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.06;
}

/* تنسيق واجهة الشات والرسائل. */
.chat-wrapper {
    position: relative;
    z-index: 1;
    width: 620px;
    height: 820px;
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* تنسيق واجهة الشات والرسائل. */
.chat-header {
    padding: 28px 26px 22px;
    background: rgba(52, 35, 114, 0.856);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* تنسيق العنصر أو المجموعة: .brand-text h1 */
.brand-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
}

/* تنسيق العنصر أو المجموعة: .brand-text p */
.brand-text p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

/* تنسيق واجهة الشات والرسائل. */
.messages {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    background: transparent;
}

/* تنسيق واجهة الشات والرسائل. */
.messages::-webkit-scrollbar {
    width: 10px;
}

/* تنسيق واجهة الشات والرسائل. */
.messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

/* تنسيق واجهة الشات والرسائل. */
.message {
    max-width: 82%;
    padding: 15px 18px;
    margin: 12px 0;
    border-radius: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 16px;
}

/* تنسيق العنصر أو المجموعة: .user */
.user {
    margin-left: auto;
    color: #ffffff;
    background: linear-gradient(135deg, #3f7cff 0%, #2f5be9 100%);
    border-bottom-right-radius: 6px;
}

/* تنسيق العنصر أو المجموعة: .bot */
.bot {
    margin-right: auto;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 6px;
}

/* تنسيق حقول الإدخال والنماذج. */
.input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: rgba(52, 35, 114, 0.856);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* تنسيق حقول الإدخال والنماذج. */
.input-area input {
    flex: 1;
    border: none;
    outline: none;
    padding: 17px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 16px;
}

/* تنسيق حقول الإدخال والنماذج. */
.input-area input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

/* تنسيق الأزرار وحالات التفاعل معها. */
.input-area button {
    border: none;
    padding: 17px 24px;
    border-radius: 16px;
    background: rgb(38, 99, 179);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

/* تنسيق الأزرار وحالات التفاعل معها. */
.input-area button:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-page {
    min-height: 100vh;
    padding: 28px;
    background: #1f183b;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-header h1 {
    margin: 0;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-header p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* تنسيق واجهة الشات والرسائل. */
.admin-chat-btn {
    display: inline-block;
    margin-top: 0 !important;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgb(38, 99, 179);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
}


/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 20px;
    overflow-x: auto;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-card h2 {
    margin-top: 0;
}

/* تنسيق العنصر أو المجموعة: table */
table {
    width: 100%;
    border-collapse: collapse;
}

/* تنسيق العنصر أو المجموعة: th, td */
th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
}

/* تنسيق العنصر أو المجموعة: th */
th {
    color: rgba(255, 255, 255, 0.75);
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form {
    display: grid;
    gap: 12px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* تنسيق الأزرار وحالات التفاعل معها. */
.danger-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 65, 65, 0.82);
    color: white;
    cursor: pointer;
}

/* تنسيق عناصر قائمة المحادثات وأزرارها. */
.conversation-view {
    max-width: 900px;
}

/* تنسيق واجهة الشات والرسائل. */
.admin-message {
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
}

/* تنسيق واجهة الشات والرسائل. */
.admin-message p {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* تنسيقات خاصة بتجاوب الصفحة مع أحجام الشاشات المختلفة. */
@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* تنسيقات خاصة بتجاوب الصفحة مع أحجام الشاشات المختلفة. */
@media (max-width: 640px) {
    .page-bg {
        padding: 16px;
    }

    .page-watermark {
        width: min(70vw, 360px);
    }

    .chat-wrapper {
        width: 100%;
        height: 88vh;
    }

    .brand-text h1 {
        font-size: 22px;
    }

    .brand-text p,
    .message,
    .input-area input,
    .input-area button {
        font-size: 14px;
    }
}

/* تنسيق العنصر أو المجموعة: .category-columns */
.category-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* تنسيق العنصر أو المجموعة: .category-column */
.category-column {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 16px;
    min-width: 0;
}

/* تنسيق العنصر أو المجموعة: .category-title-row */
.category-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* تنسيق العنصر أو المجموعة: .category-title-row h3 */
.category-title-row h3 {
    margin: 0;
    text-transform: capitalize;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.small-add-btn,
.edit-btn,
.admin-form button {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    background: rgb(38, 99, 179);
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

/* تنسيق العنصر أو المجموعة: .hidden */
.hidden {
    display: none !important;
}

/* تنسيق حقول الإدخال والنماذج. */
.compact-add-form {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* تنسيق العنصر أو المجموعة: .knowledge-list */
.knowledge-list {
    display: grid;
    gap: 12px;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.knowledge-item-card {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.knowledge-item-card strong {
    display: block;
    margin-bottom: 6px;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.knowledge-item-card p,
.empty-note {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin: 0 0 10px;
}

/* تنسيق حقول الإدخال والنماذج. */
.item-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* تنسيق حقول الإدخال والنماذج. */
.item-actions form {
    margin: 0;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.edit-item-card {
    max-width: 820px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form label {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    outline: none;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.admin-form select option {
    color: #111111;
}

/* تنسيقات خاصة بتجاوب الصفحة مع أحجام الشاشات المختلفة. */
@media (max-width: 1000px) {
    .category-columns {
        grid-template-columns: 1fr;
    }
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-open-btn {
    margin-top: 0;
    background: #5d3bc0;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-requests-box {
    max-height: 230px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-requests-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-requests-list {
    display: grid;
    gap: 8px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-request-card {
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-request-card.answered {
    background: rgba(37, 137, 84, 0.22);
    border-color: rgba(37, 137, 84, 0.50);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.user-request-card.pending {
    background: rgba(255, 190, 60, 0.12);
    border-color: rgba(255, 190, 60, 0.35);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-status {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
    margin-bottom: 4px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-title,
.request-answer,
.empty-request-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-answer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    z-index: 50;
    padding: 22px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-card {
    width: min(520px, 100%);
    background: #241c44;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-header h2 {
    margin: 0;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-header button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-card p {
    color: rgba(255, 255, 255, 0.72);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-card textarea {
    width: 100%;
    min-height: 130px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 14px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    outline: none;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-modal-card button[type="submit"] {
    width: 100%;
    border: none;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #6f3db8;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.request-admin-list {
    display: grid;
    gap: 14px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.request-admin-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.request-admin-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.request-admin-meta strong {
    color: #ffffff;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-question {
    margin: 0 0 12px;
    line-height: 1.6;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.requests-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.requests-title-row h3 {
    margin: 0;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.requests-title-row a {
    font-size: 12px;
    color: #9ec5ff;
    text-decoration: none;
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.user-request-card.status-answered,
.history-card.status-answered,
.request-admin-card.status-answered {
    background: rgba(37, 137, 84, 0.20);
    border-color: rgba(37, 137, 84, 0.45);
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.user-request-card.status-pending,
.user-request-card.status-open,
.history-card.status-pending,
.history-card.status-open,
.request-admin-card.status-pending,
.request-admin-card.status-open {
    background: rgba(255, 190, 60, 0.12);
    border-color: rgba(255, 190, 60, 0.35);
}

/* تنسيق لوحة الأدمن ونماذج إدارة البيانات. */
.user-request-card.status-ignored,
.history-card.status-ignored,
.request-admin-card.status-ignored {
    background: rgba(120, 120, 135, 0.15);
    border-color: rgba(160, 160, 175, 0.28);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-edit-form {
    display: grid;
    gap: 8px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-edit-form textarea {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 8px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 12px;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-edit-form button,
.request-mini-btn,
.request-mini-danger {
    border: none;
    border-radius: 9px;
    padding: 7px 9px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-edit-form button,
.request-mini-btn {
    background: rgba(92, 117, 255, 0.72);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-mini-danger {
    width: 100%;
    margin-top: 6px;
    background: rgba(190, 55, 70, 0.84);
}

/* تنسيق العنصر أو المجموعة: .muted-answer, .ignored-note, .section-note */
.muted-answer,
.ignored-note,
.section-note {
    color: rgba(255, 255, 255, 0.68);
}

/* تنسيق العنصر أو المجموعة: .status-pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* تنسيق العنصر أو المجموعة: .status-pill.pending, .status-pill.open */
.status-pill.pending,
.status-pill.open {
    background: rgba(255, 190, 60, 0.22);
}

/* تنسيق العنصر أو المجموعة: .status-pill.answered */
.status-pill.answered {
    background: rgba(37, 137, 84, 0.38);
}

/* تنسيق العنصر أو المجموعة: .status-pill.ignored, .status-pill.muted */
.status-pill.ignored,
.status-pill.muted {
    background: rgba(255, 255, 255, 0.12);
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-action-row form {
    margin: 0;
}

/* تنسيق نظام طلبات المستخدم والنوافذ المرتبطة به. */
.request-action-row button {
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    background: #6f3db8;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

/* تنسيق صفحة سجل الطلبات. */
.history-list {
    display: grid;
    gap: 14px;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.history-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* تنسيق صفحة سجل الطلبات. */
.history-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

/* تنسيق الكروت المستخدمة لعرض المحتوى. */
.history-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

/* تنسيق صفحة سجل الطلبات. */
.history-answer {
    margin: 0;
    line-height: 1.6;
}


.highlight-text {
    color: #8b47eb;
}
/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    background: linear-gradient(135deg, #241c44, #3b215f);
    overflow-x: hidden;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-body::before,
.welcome-body::after {
    display: none;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-header,
.welcome-hero,
.welcome-section {
    position: relative;
    z-index: 1;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 7%;
    background: #1c1430;
    border-bottom: 1px solid #342353;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-brand {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-nav a {
    color: #d9d0ee;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: #6f3db8;
    color: #ffffff !important;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero {
    width: min(1180px, 90%);
    margin: 0 auto;
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero-text {
    animation: welcomeFadeUp 0.75s ease both;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-kicker {
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #efe7ff;
    background: #32214f;
    border: 1px solid #4a3470;
    font-weight: 700;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero h1 {
    margin: 18px 0;
    font-size: clamp(34px, 5vw, 59px);
    line-height: 1.15;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero p {
    max-width: 650px;
    color: #d6cce9;
    line-height: 1.9;
    font-size: 18px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #4a3470;
    transition: transform 0.18s ease, background 0.18s ease;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-btn:hover {
    transform: translateY(-2px);
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-btn.primary {
    background: #6f3db8;
    color: #ffffff;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.welcome-btn.primary:hover,
.welcome-nav-cta:hover,
.auth-card button:hover,
.admin-form button:hover,
.secondary-btn:hover,
.request-action-row button:hover {
    background: #8050c7;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-btn.secondary {
    background: #2b1d49;
    color: #ffffff;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero-card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeLogoDrop 0.9s ease-out both;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-hero-card img {
    width: min(460px, 92%);
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.26));
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-section {
    width: min(1180px, 90%);
    margin: 0 auto 46px;
    padding: 36px;
    border-radius: 28px;
    background: #211739;
    border: 1px solid #342353;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-section h2 {
    margin: 0 0 20px;
    font-size: 30px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-card {
    padding: 22px;
    border-radius: 20px;
    background: #2b1d49;
    border: 1px solid #3e2a62;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-card:hover {
    transform: translateY(-3px);
    border-color: #6f3db8;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-card h3 {
    margin: 0 0 10px;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-card p,
.welcome-about p {
    margin: 0;
    color: #d6cce9;
    line-height: 1.8;
}

/* تنسيق صفحة الترحيب ومكوناتها. */
.welcome-about .welcome-btn {
    margin-top: 22px;
}

/* تنسيق صفحات تسجيل الدخول وإنشاء الحساب. */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* تعريف حركة الأنميشن المستخدمة في الواجهة. */
@keyframes welcomeFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تعريف حركة الأنميشن المستخدمة في الواجهة. */
@keyframes welcomeLogoDrop {
    from {
        opacity: 0;
        transform: translateY(-44px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات خاصة بتجاوب الصفحة مع أحجام الشاشات المختلفة. */
@media (max-width: 850px) {
    .welcome-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-hero {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   تنسيقات صفحة الترحيب - welcomepage.html
   تم فصلها من ملف HTML حتى يبقى الربط من خلال static/style.css فقط.
===================================================== */

/* تفعيل الانتقال السلس عند الضغط على روابط الأقسام داخل صفحة الترحيب. */
html {
    scroll-behavior: smooth;
}

/* خلفية صفحة الترحيب وألوانها العامة. */
body.welcome-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Tajawal', sans-serif;
    color: #f7f1ff;
    background:
        radial-gradient(circle at top right, rgba(157, 92, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #1f1438 0%, #2a174b 48%, #3b2169 100%);
    overflow-x: hidden;
}

/* الحاوية العامة لمحتوى صفحة الترحيب. */
.welcome-page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* شريط الهيدر العلوي في صفحة الترحيب. */
.welcome-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px min(6vw, 70px);
    background: rgba(31, 20, 56, 0.90);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* اسم المنصة في الهيدر. */
.welcome-brand {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.4px;
}

/* روابط التنقل في الهيدر. */
.welcome-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* شكل روابط الهيدر. */
.welcome-nav a {
    color: #efe5ff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

/* تأثير بسيط عند تمرير المؤشر على روابط الهيدر. */
.welcome-nav a:hover {
    color: #d8c0ff;
    transform: translateY(-1px);
}

/* زر إنشاء الحساب في الهيدر وزر البدء الرئيسي. */
.welcome-nav-cta,
.welcome-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #7b4fd6;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(123, 79, 214, 0.25);
    transition: 0.25s ease;
}

/* تأثير أزرار صفحة الترحيب. */
.welcome-nav-cta:hover,
.welcome-btn.primary:hover {
    background: #8b63e6;
    transform: translateY(-2px);
}

/* منطقة البداية التي تحتوي على النص والشعار. */
.welcome-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    min-height: calc(86vh - 76px);
    padding: 70px 0 54px;
}

/* حركة دخول نص المقدمة بشكل خفيف. */
.welcome-hero-text {
    animation: welcomeFadeUp 0.8s ease both;
}

/* النص الصغير أعلى العنوان. */
.welcome-kicker {
    display: inline-block;
    margin: 0 0 16px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #d7c4ff;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

/* عنوان صفحة الترحيب. */
.welcome-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(1.35rem, 2.7vw, 2.25rem);
    line-height: 1.45;
    font-weight: 900;
    color: #ffffff;
}

/* الجملة المميزة داخل العنوان. */
.highlight-text {
    display: block;
    margin-top: 8px;
    color: #d8b8ff;
}

/* وصف صفحة الترحيب أسفل العنوان. */
.welcome-hero p {
    max-width: 620px;
    margin: 0 0 30px;
    color: #dfd2f5;
    font-size: 1.10rem;
    line-height: 1.9;
}

/* مجموعة أزرار البداية. */
.welcome-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* الشكل العام لأزرار صفحة الترحيب. */
.welcome-btn {
    text-decoration: none;
    font-weight: 800;
}

/* زر تسجيل الدخول الثانوي. */
.welcome-btn.secondary {
    color: #efe5ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.06);
    transition: 0.25s ease;
}

/* تأثير زر تسجيل الدخول الثانوي. */
.welcome-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* مساحة الشعار في صفحة الترحيب بدون مربع خارجي. */
.welcome-hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* الشعار مع حركة من الأعلى للأسفل عند فتح الصفحة. */
.welcome-hero-card img {
    width: min(420px, 90%);
    height: auto;
    border: 0;
    box-shadow: none;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.26));
    animation: welcomeLogoDrop 0.85s ease both;
}

/* المربعات الخارجية للأقسام مثل الخدمات ونبذة عن المنصة. */
.welcome-section {
    width: min(1180px, 100%);
    margin: 0 auto 46px;
    padding: 42px 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

/* عنوان كل قسم. */
.section-header {
    text-align: center;
    margin-bottom: 28px;
}

/* عنوان الأقسام مثل الخدمات الأساسية ونبذة عن المنصة. */
.section-header h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 900;
}

/* الوصف المختصر تحت عنوان القسم. */
.section-header p {
    margin: 0 auto;
    max-width: 720px;
    color: #d8c9f0;
    line-height: 1.8;
}

/* صندوق شرح الخدمات الأساسية. */
.welcome-feature-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    color: #eadfff;
    text-align: center;
    line-height: 1.9;
}

/* شبكة بطاقات نبذة عن المنصة داخل المربع الخارجي. */
.about-grid {
    width: min(780px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* بطاقات نبذة عن المنصة مصغرة بدون تصغير المربع الخارجي. */
.about-card {
    padding: 14px 12px;
    min-height: 145px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
    transition: 0.25s ease;
}

/* تأثير بسيط عند تمرير المؤشر على بطاقات النبذة. */
.about-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.10);
}

/* أيقونة بطاقة النبذة. */
.about-icon {
    margin-bottom: 8px;
    color: #d8b8ff;
    font-size: 1.25rem;
}

/* عنوان بطاقة النبذة. */
.about-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1rem;
}

/* نص بطاقة النبذة. */
.about-card p {
    margin: 0;
    color: #d8c9f0;
    line-height: 1.55;
    font-size: 0.84rem;
}

/* فوتر صفحة الترحيب. */
.welcome-footer {
    padding: 38px 0;
    text-align: center;
    color: #cbbce7;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(20, 11, 38, 0.28);
}

/* روابط التواصل في الفوتر. */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* شكل روابط التواصل. */
.footer-socials a {
    color: #e6d9ff;
    transition: 0.25s ease;
}

/* تأثير روابط التواصل. */
.footer-socials a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* حركة ظهور الشعار من أعلى إلى أسفل. */
@keyframes welcomeLogoDrop {
    from {
        opacity: 0;
        transform: translateY(-42px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حركة ظهور نص المقدمة. */
@keyframes welcomeFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيق صفحة الترحيب على الشاشات المتوسطة والصغيرة. */
@media (max-width: 900px) {
    .welcome-header {
        flex-direction: column;
        padding: 16px 20px;
    }

    .welcome-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 26px;
        padding-top: 44px;
    }

    .welcome-hero p,
    .welcome-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .welcome-hero-card {
        order: -1;
        min-height: auto;
    }

    .welcome-hero-card img {
        width: min(270px, 80%);
    }

    .about-grid {
        grid-template-columns: 1fr;
        width: min(420px, 100%);
    }
}

/* تنسيق صفحة الترحيب على الجوال. */
@media (max-width: 620px) {
    .welcome-page-shell {
        width: min(100% - 24px, 1180px);
    }

    .welcome-nav {
        gap: 10px;
        justify-content: center;
    }
    /* الأنماط الجديدة المضافة لدعم الأمان والدخول عبر Google */

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider:not(:empty)::before {
    margin-right: .25em;
}

.auth-divider:not(:empty)::after {
    margin-left: .25em;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    color: #1f193d;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.google-btn svg {
    flex-shrink: 0;
}
}


/* زر تبديل لغة الواجهة فقط؛ لا يغير لغة رسائل الشات. */
.language-toggle {
    margin-top: 0;
    background: rgba(38, 99, 179, 0.88);
}

/* دعم اتجاه عربي لعناصر الواجهة بدون تغيير منطق الشات. */
.rtl-ui .sidebar,
.rtl-ui .brand-text,
.rtl-ui .request-modal-card,
.rtl-ui .user-requests-box {
    direction: rtl;
    text-align: right;
}

.rtl-ui .conversation-item {
    text-align: right;
}

.rtl-ui .sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.knowledge-meta-list {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.86rem;
    color: #555;
}

.knowledge-meta-list span {
    font-weight: 700;
}

/* رسالة تطابق كلمة المرور في صفحة إنشاء الحساب. */
.password-match-message {
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    color: #bcaada;
}

.password-match-message.match {
    color: #4caf50;
}

.password-match-message.mismatch {
    color: #ff8a80;
}

/* زر تبديل اللغة في صفحة الترحيب. */
.welcome-nav .language-toggle {
    width: auto;
    margin-top: 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    transition: 0.25s ease;
}

.welcome-nav .language-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

html[dir="ltr"] .welcome-hero-text,
html[dir="ltr"] .welcome-section,
html[dir="ltr"] .welcome-footer {
    direction: ltr;
}

html[dir="ltr"] .welcome-hero h1,
html[dir="ltr"] .welcome-hero p {
    text-align: left;
}

html[dir="ltr"] .welcome-actions {
    justify-content: flex-start;
}

@media (max-width: 900px) {
    html[dir="ltr"] .welcome-hero h1,
    html[dir="ltr"] .welcome-hero p {
        text-align: center;
    }

    html[dir="ltr"] .welcome-actions {
        justify-content: center;
    }
}

/* صفحة إعدادات المستخدم. */
.settings-page {
    align-items: flex-start;
    padding-top: 48px;
}

.settings-card {
    width: min(620px, 100%);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-back-link {
    white-space: nowrap;
    margin-top: 4px !important;
}

.success-box {
    padding: 12px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.18);
    border: 1px solid rgba(76, 175, 80, 0.35);
    margin-bottom: 14px;
}

.profile-box {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-row span {
    color: rgba(255, 255, 255, 0.68);
}

.profile-row strong {
    text-align: left;
    overflow-wrap: anywhere;
}

.settings-form h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

@media (max-width: 620px) {
    .settings-header,
    .profile-row {
        flex-direction: column;
    }

    .settings-back-link {
        white-space: normal;
    }
}
