.auth-section {
    padding: 60px 0 90px;
}

.auth-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px 34px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
}

.auth-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-sub {
    color: #777;
    margin-bottom: 26px;
    font-size: 14px;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-input {
    background: #f8f8f8;
    border: 1px solid transparent;
    border-radius: 8px;
    height: 52px;
    font-size: 15px;
}

.auth-input:focus {
    background: #fff;
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 .15rem rgba(194, 153, 88, .2);
}

.auth-input.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.auth-password .auth-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.auth-password .toggle-password {
    background: #f8f8f8;
    border: 1px solid transparent;
    color: #555;
    border-radius: 8px 0 0 8px;
}

.auth-card .invalid-feedback {
    font-size: 13px;
}

.auth-btn {
    height: 52px;
    border-radius: 8px;
    font-weight: 700;
}

.code-input {
    text-align: center;
    letter-spacing: 12px;
    font-size: 26px;
    font-weight: 700;
    direction: ltr;
}

.ltr {
    direction: ltr;
    text-align: right;
}

.auth-links {
    font-size: 14px;
}

.auth-links a {
    color: var(--fx-primary);
    font-weight: 600;
}

/* ---------- الدروب داون الخاص ---------- */
.fx-dd {
    position: relative;
}

.fx-dd-toggle {
    background: none;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: inherit;
}

.fx-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    z-index: 1060;
    overflow: hidden;
    text-align: right;
}

.fx-dd.open>.fx-dd-menu {
    display: block;
}

.fx-dd-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--fx-primary-soft);
}

.fx-dd-head img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.fx-dd-head small {
    color: #888;
    display: block;
    direction: ltr;
    text-align: right;
}

.fx-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: 0;
    color: #333;
    font-size: 14px;
    text-align: right;
}

.fx-dd-item:hover {
    background: #f6f6f6;
    color: var(--fx-primary);
}

.fx-dd-sep {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- الجرس والإشعارات ---------- */
.fx-bell {
    position: relative;
    margin-inline-end: 16px;
}

.fx-bell .fx-dd-toggle {
    font-size: 20px;
    position: relative;
}

.fx-badge {
    position: absolute;
    top: -6px;
    inset-inline-start: -8px;
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.fx-badge.d-none {
    display: none;
}

.fx-bell .fx-dd-menu {
    width: 360px;
    max-width: 92vw;
}

.fx-bell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.fx-bell-head button {
    background: none;
    border: 0;
    color: var(--fx-primary);
    font-size: 13px;
}

.fx-bell-list {
    max-height: 380px;
    overflow-y: auto;
}

.fx-bell-foot {
    display: block;
    text-align: center;
    padding: 11px;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: var(--fx-primary);
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f1f1;
}

.notif-item.unread {
    background: #fcf9f3;
}

.notif-item a.notif-body {
    flex: 1;
    min-width: 0;
    color: #333;
    text-decoration: none;
}

.notif-title {
    font-weight: 600;
    font-size: 14px;
}

.notif-text {
    color: #777;
    font-size: 13px;
}

.notif-time {
    color: #aaa;
    font-size: 12px;
}

.notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fx-primary);
    margin-inline-start: 6px;
}

.notif-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-ico.c-primary {
    background: #e8f0ff;
    color: #2563eb;
}

.notif-ico.c-success {
    background: #e6f7ee;
    color: #16a34a;
}

.notif-ico.c-info {
    background: #e3f6fb;
    color: #0891b2;
}

.notif-ico.c-warning {
    background: #fff4e0;
    color: #d97706;
}

.notif-ico.c-secondary {
    background: #eee;
    color: #666;
}

.notif-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-actions button {
    background: #f4f4f4;
    border: 0;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    color: #666;
}

.notif-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.notif-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.notif-tab {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
}

.notif-tab.active {
    background: var(--fx-primary);
    border-color: var(--fx-primary);
    color: #fff;
}

.notif-tab .cnt {
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    padding: 0 6px;
    margin-inline-start: 4px;
}

/* ---------- البروفايل ---------- */
.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--fx-primary-soft);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: opacity .2s;
}

.profile-avatar.uploading {
    opacity: .45;
}

.status-ok {
    color: #16a34a;
    font-size: 13px;
}

/* select2 يطابق الحقول */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 52px;
    border: 1px solid transparent;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-inline: 14px;
    color: #333;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    border-color: var(--fx-primary);
    background: #fff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--fx-primary);
}

.select2-dropdown {
    border-color: #e5e5e5;
    z-index: 1070;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    opacity: .6;
}

.is-invalid+.select2 .select2-selection {
    border-color: #dc3545;
}

/* intl-tel-input */
.iti {
    width: 100%;
    display: block;
}

.iti input.auth-input {
    direction: ltr;
    text-align: left;
}

.iti__country-list {
    direction: ltr;
    text-align: left;
    z-index: 1070;
}