/*  */
.loader {
    width: 20px;
    margin: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid lightblue;
    border-right-color: white;
    animation: l2 1s infinite linear;
}

@keyframes l2 {
    to {
        transform: rotate(1turn)
    }
}

.custom-checkbox {
    transform: scale(1.5);
    margin-right: 10px;
    cursor: pointer;
}
/* Login  */
.toggle_password {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #888;
        background: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .toggle_password:hover {
        color: #333;
    }

    .toggle_password svg {
        width: 18px;
        height: 18px;
    }

#loginModal .text-danger {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 4px;
    padding-left: 14px;
}

/* =========================
   Profile Settings Page
   ========================= */
.settings-page {
    padding-block: 24px;
}

.settings-card {
    background: linear-gradient(180deg, #050023 0%, #050023 100%);
    border: 1px solid #2c3252;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
    overflow: hidden;
}

.settings-card__header {
    padding: 28px 32px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-card__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: 0.2px;
}

.settings-card__subtitle {
    font-size: 14px;
    color: #9aa3c7;
    margin: 4px 0 18px;
}

.settings-card__body {
    padding: 24px 32px 8px;
}

.settings-card__footer {
    padding: 18px 32px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 4px 0 16px;
    letter-spacing: 0.2px;
}

.settings-divider {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin: 28px 0 24px;
    opacity: 1;
}

/* Avatar */
.profile-avatar-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #4f6bff 0%, #8a5bff 100%);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1e2233;
    display: block;
}

.profile-avatar__edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #4f6bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #181c33;
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-avatar__edit:hover {
    background: #3a52e0;
    transform: scale(1.05);
}

.profile-avatar__hint {
    font-size: 12px;
    color: #8089b1;
    margin: 10px 0 0;
}

/* Form fields */
.settings-card .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #c6cbe6;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.settings-card .custom-input {
    background: #11152a;
    border: 1px solid #2c3252;
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    height: 46px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.settings-card .custom-input::placeholder {
    color: #6a719a;
}

.settings-card .custom-input:focus {
    background: #11152a;
    color: #fff;
    border-color: #4f6bff;
    box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.18);
    outline: none;
}

.settings-card .custom-input:disabled,
.settings-card .custom-input[disabled] {
    background: #161a31;
    color: #8b91b3;
    cursor: not-allowed;
    opacity: 1;
}

/* Password input groups - no outer box; style input + toggle individually */
.settings-card .custom-input-group {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    flex-wrap: wrap;
    box-shadow: none;
}

.settings-card .custom-input-group .custom-input {
    background: #11152a;
    border: 1px solid #2c3252;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    height: 46px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.settings-card .custom-input-group .custom-input:focus {
    background: #11152a;
    border-color: #4f6bff;
    box-shadow: none;
}

.settings-card .toggle-pass {
    background: #11152a;
    border: 1px solid #2c3252;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: #9aa3c7;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.settings-card .custom-input-group:focus-within .custom-input,
.settings-card .custom-input-group:focus-within .toggle-pass {
    border-color: #4f6bff;
}

.settings-card .toggle-pass:hover {
    color: #fff;
}

/* Validation error messages */
.settings-card .text-danger {
    display: block;
    color: #f87171;
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 6px;
    padding-left: 2px;
}

/* Inside input-group: wrap to a new line below; render as plain text */
.settings-card .custom-input-group > .text-danger {
    flex: 0 0 100%;
    width: 100%;
    order: 99;
    margin-top: 6px;
    padding-left: 2px;
    background: transparent;
    border: 0;
}

/* Fix Chrome / Edge autofill turning inputs white */
.settings-card .custom-input:-webkit-autofill,
.settings-card .custom-input:-webkit-autofill:hover,
.settings-card .custom-input:-webkit-autofill:focus,
.settings-card .custom-input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #11152a inset;
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit button */
.settings-save-btn {
    background: linear-gradient(135deg, #4f6bff 0%, #6a4bff 100%);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px 28px;
    font-weight: 500;
    font-size: 14px;
    min-width: 170px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 18px rgba(79, 107, 255, 0.35);
}

.settings-save-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.settings-save-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
    .settings-card__header,
    .settings-card__body {
        padding-left: 24px;
        padding-right: 24px;
    }
    .settings-card__footer {
        padding: 16px 24px 22px;
        justify-content: stretch;
    }
    .settings-save-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .settings-card {
        border-radius: 14px;
    }
    .settings-card__header,
    .settings-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }
    .settings-card__header {
        padding-top: 22px;
    }
    .settings-card__footer {
        padding: 14px 18px 20px;
    }
    .settings-card__title {
        font-size: 18px;
    }
    .profile-avatar {
        width: 102px;
        height: 102px;
    }
    .profile-avatar__edit {
        width: 30px;
        height: 30px;
    }
}