.notification-nav {
    display: flex !important;
    align-items: center;
    justify-content: space-between
}

.notification-count,
.pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #9168ea;
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font: 700 10px Shaheen
}

.notification-link {
    position: relative;
    font-size: 18px;
    color: #6e4fdc
}

.notification-link .notification-count {
    position: absolute;
    top: -9px;
    right: -10px
}

.notifications-list {
    padding: 8px 22px
}

.notification-row {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0edf5
}

.notification-row:last-child {
    border-bottom: 0
}

.notification-row small,
.notification-row time {
    display: block
}

.notification-row small {
    color: #7b748d;
    font-size: 12px;
    margin-top: 5px
}

.notification-row time {
    color: #a099a9;
    font-size: 10px;
    margin-top: 8px
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9168ea;
    margin-top: 6px;
    flex: none
}

.notification-success {
    background: #37b978
}

.notification-warning {
    background: #e6a52e
}

.user-create-panel {
    margin-bottom: 20px
}

.user-role-form {
    flex-wrap: wrap
}

.password-reset {
    margin-top: 8px
}

.password-reset summary {
    cursor: pointer;
    color: #6e4fdc;
    font-size: 11px
}

.password-reset form {
    margin-top: 8px
}

.settings-section {
    border-top: 1px solid #f0edf5;
    padding-top: 16px
}

.settings-section h2 {
    margin-bottom: 14px
}

.landing {
    display: block;
    min-height: 100vh;
    position: relative;
    background-color: #0f0e0e;
    color: #fff;
    overflow: hidden;
}

/* WIDA Animated Background */
.landing::before {
    content: "";
    position: fixed;
    inset: -5%;

    background-image: url('../img/wida-flow-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
    pointer-events: none;

    animation: widaBackgroundMove 18s ease-in-out infinite alternate;
}

/* إبقاء المحتوى فوق الخلفية */
.landing > * {
    position: relative;
    z-index: 1;
}

/* حركة هادئة للخلفية */
@keyframes widaBackgroundMove {
    0% {
        transform: scale(1.03) translate3d(0, 0, 0);
    }

    50% {
        transform: scale(1.07) translate3d(-1%, -0.5%, 0);
    }

    100% {
        transform: scale(1.04) translate3d(1%, 0.5%, 0);
    }
}

/* إيقاف الحركة لمن يفضل تقليل المؤثرات */
@media (prefers-reduced-motion: reduce) {
    .landing::before {
        animation: none;
    }
}

.landing-top {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 76px);
    position: relative;
    z-index: 2
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 700 17px Asal
}

.landing-brand img {
    width: 54px;
    height: 42px;
    object-fit: contain
}

.landing-brand span {
    color: #c7c0d4
}

.landing-login-link {
    border: 1px solid #ffffff2b;
    border-radius: 999px;
    padding: 10px 18px;
    color: #e6c8fe;
    font-size: 13px
}

.landing-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 650px;
    padding: 52px clamp(24px, 5vw, 76px) 20px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    direction: ltr
}

.landing-copy {
    direction: rtl;
    max-width: 520px
}

.landing-copy .eyebrow {
    color: #b99cff
}

.landing-copy h1 {
    font: 700 clamp(42px, 5vw, 72px)/1.18 Asal;
    margin: 16px 0 18px;
    letter-spacing: -1px
}

.landing-copy p {
    font-size: 19px;
    line-height: 1.9;
    color: #c7c0d4;
    margin: 0 0 28px;
    max-width: 500px
}

.landing-copy .actions {
    justify-content: flex-start
}

.landing-copy .btn {
    min-width: 150px
}

.landing-copy .btn.primary {
    background: #9168ea
}

.landing-copy .btn.ghost {
    background: #fff;
    color: #40306f;
    border: 0
}

.security-note {
    margin-top: 24px;
    color: #a69bc2;
    font-size: 12px
}

.landing-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
    direction: rtl
}

.visual-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: #6e4fdc44;
    filter: blur(80px);
    border-radius: 50%
}

.visual-window {
    position: relative;
    width: min(580px, 100%);
    min-height: 390px;
    border: 1px solid #9168ea66;
    border-radius: 24px;
    background: linear-gradient(145deg, #211942e8, #121022f2);
    box-shadow: 0 25px 80px #6e4fdc38, inset 0 0 40px #9168ea12;
    padding: 26px;
    transform: perspective(1000px) rotateY(-5deg);
    animation: floatWindow 6s ease-in-out infinite
}

.visual-window-top {
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 6px;
    color: #aaa0c6;
    font-size: 12px
}

.visual-window-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9168ea
}

.visual-window-top b {
    margin-left: auto;
    font-weight: 400;
    direction: rtl
}

.visual-welcome {
    text-align: right;
    margin-top: 30px
}

.mini-eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9168ea
}

.visual-welcome h2 {
    font: 700 30px Asal;
    margin: 8px 0 0
}

.visual-welcome p {
    color: #aaa0c6;
    font-size: 12px;
    margin: 4px 0 18px
}

.visual-search {
    height: 39px;
    border-radius: 999px;
    border: 1px solid #ffffff1c;
    color: #8f86a7;
    padding: 10px 16px;
    font-size: 12px
}

.visual-search b {
    float: left;
    color: #9168ea;
    font-size: 18px;
    line-height: 15px
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px
}

.service-card {
    border: 1px solid #ffffff18;
    background: #ffffff08;
    border-radius: 14px;
    padding: 14px 10px;
    min-height: 112px
}

.service-card i {
    display: block;
    color: #b99cff;
    font-style: normal;
    font-size: 24px;
    margin-bottom: 10px
}

.service-card b {
    display: block;
    font: 700 13px Asal
}

.service-card small {
    display: block;
    color: #9188a9;
    font-size: 10px;
    line-height: 1.6;
    margin-top: 4px
}

.visual-ticket {
    position: absolute;
    left: -44px;
    top: 80px;
    width: 155px;
    padding: 14px;
    border: 1px solid #9168ea77;
    border-radius: 14px;
    background: #241953dd;
    box-shadow: 0 10px 30px #0005;
    transform: rotate(-8deg);
    display: grid;
    gap: 5px
}

.visual-ticket span,
.visual-ticket small {
    font-size: 10px;
    color: #b99cff
}

.visual-ticket b {
    font: 700 16px Asal
}

.visual-bell {
    position: absolute;
    right: -20px;
    top: 55px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid #b99cff;
    background: #6e4fdccc;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 0 30px #9168ea88
}

.visual-bell em {
    position: absolute;
    right: -3px;
    top: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9168ea;
    color: #fff;
    font: 700 11px Shaheen;
    display: grid;
    place-items: center;
    font-style: normal
}

.landing-features {
    max-width: 1120px;
    margin: -4px auto 0;
    padding: 0 24px 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.landing-features>div {
    border-top: 1px solid #ffffff1c;
    padding: 22px 8px;
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 13px
}

.landing-features span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border: 1px solid #9168ea66;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #b99cff;
    font-size: 20px
}

.landing-features b {
    font: 700 16px Asal
}

.landing-features small {
    color: #a69bc2;
    font-size: 12px;
    margin-top: 3px
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 20px
}

.report-filters .btn {
    height: 45px
}

.report-actions {
    display: flex;
    gap: 10px
}

.report-stats {
    grid-template-columns: repeat(6, 1fr)
}

.report-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.6fr;
    gap: 20px
}

.report-service-row {
    position: relative;
    padding: 13px 0;
    border-bottom: 1px solid #f0edf5;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    overflow: hidden
}

.report-service-row i {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #9168ea;
    border-radius: 4px
}

.ticket-conversation {
    margin-top: 20px
}

.message-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px
}

.ticket-message {
    background: #faf9fd;
    border: 1px solid #eeeaf5;
    border-radius: 12px;
    padding: 12px
}

.ticket-message.admin-message {
    background: #f0ebff;
    border-color: #dfd3ff
}

.ticket-message div {
    display: flex;
    justify-content: space-between
}

.ticket-message div b {
    font-size: 13px
}

.ticket-message div small {
    color: #8b8496;
    font-size: 10px
}

.ticket-message p {
    margin: 8px 0 0;
    line-height: 1.9;
    font-size: 13px
}

.message-form {
    border-top: 1px solid #f0edf5;
    padding-top: 16px;
    display: grid;
    gap: 12px
}

@keyframes floatWindow {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0)
    }

    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-8px)
    }
}

@media print {

    .sidebar,
    .top,
    .page-head .report-actions,
    .report-filters {
        display: none !important
    }

    .main {
        width: 100%
    }

    .container {
        padding: 0
    }

    .panel {
        box-shadow: none
    }

    .report-grid {
        grid-template-columns: 1fr
    }

    .report-stats {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:900px) {
    .landing-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 30px
    }

    .landing-copy {
        max-width: none;
        text-align: center;
        margin: 0 auto
    }

    .landing-copy .actions {
        justify-content: center
    }

    .landing-visual {
        order: -1;
        min-height: 390px
    }

    .landing-features {
        margin-top: 28px
    }

    .report-filters {
        grid-template-columns: repeat(3, 1fr)
    }

    .report-stats {
        grid-template-columns: repeat(3, 1fr)
    }

    .report-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:620px) {
    .landing-top {
        height: 70px;
        padding: 0 18px
    }

    .landing-brand span {
        display: none
    }

    .landing-login-link {
        font-size: 11px;
        padding: 8px 12px
    }

    .landing-shell {
        padding: 26px 18px 0
    }

    .landing-copy h1 {
        font-size: 40px
    }

    .landing-copy p {
        font-size: 16px
    }

    .landing-copy .actions {
        flex-direction: column
    }

    .landing-copy .btn {
        width: 100%
    }

    .landing-visual {
        min-height: 340px
    }

    .visual-window {
        padding: 18px;
        min-height: 320px
    }

    .visual-ticket {
        left: -8px;
        top: 40px;
        transform: scale(.8) rotate(-8deg)
    }

    .visual-bell {
        right: -5px;
        top: 20px;
        transform: scale(.8)
    }

    .service-card {
        padding: 9px 6px;
        min-height: 95px
    }

    .service-card b {
        font-size: 11px
    }

    .service-card small {
        font-size: 8px
    }

    .landing-features {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 18px 24px
    }

    .report-filters,
    .report-stats {
        grid-template-columns: 1fr 1fr
    }

    .report-actions {
        flex-direction: column
    }

    .report-actions .btn {
        width: 100%
    }
}

.landing-tools {
    display: flex;
    align-items: center;
    gap: 10px
}

.language-link {
    color: #b99cff;
    font-size: 12px;
    padding: 8px 10px
}

.landing-hero-image {
    position: relative;
    z-index: 1;
    width: min(580px, 100%);
    max-height: 480px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 25px 80px #6e4fdc38
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap
}

.list-row>div:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap
}

.list-row small {
    display: block;
    margin-top: 5px
}

.subscription-table {
    max-height: 680px
}

.subscription-table table {
    min-width: 2100px
}

.subscription-editor {
    margin-bottom: 20px
}

.translation-field {
    border-bottom: 1px solid #f0edf5;
    padding-bottom: 15px
}

.translation-field>b {
    display: block;
    margin-bottom: 8px;
    font-size: 14px
}

.auth-tools {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px
}

.auth-tools a {
    color: #6e4fdc;
    font-size: 12px
}

.field-add-form {
    flex-wrap: wrap;
    margin: 12px 0
}

.field-add-form input {
    max-width: 220px
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px
}

.check-label input {
    width: auto
}

.date-input {
    direction: ltr;
    text-align: right
}
/* =========================================
   LANGUAGE LAYOUT SYSTEM
   AR = RTL
   EN = LTR
========================================= */


/* =========================
   GLOBAL DIRECTION
========================= */

html[dir="rtl"] .landing {
    direction: rtl;
}

html[dir="ltr"] .landing {
    direction: ltr;
}


/* =========================
   HEADER
========================= */

html[dir="rtl"] .landing-top,
html[dir="rtl"] .landing-brand,
html[dir="rtl"] .landing-tools {
    direction: rtl;
}

html[dir="ltr"] .landing-top,
html[dir="ltr"] .landing-brand,
html[dir="ltr"] .landing-tools {
    direction: ltr;
}


/* =========================
   MAIN HERO TEXT
========================= */

html[dir="rtl"] .landing-copy {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .landing-copy {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .landing-copy h1,
html[dir="rtl"] .landing-copy p,
html[dir="rtl"] .landing-copy .eyebrow,
html[dir="rtl"] .security-note {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .landing-copy h1,
html[dir="ltr"] .landing-copy p,
html[dir="ltr"] .landing-copy .eyebrow,
html[dir="ltr"] .security-note {
    direction: ltr;
    text-align: left;
}


/* =========================
   BUTTONS
========================= */

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

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


/* =========================
   DASHBOARD MOCKUP
========================= */

html[dir="rtl"] .landing-visual,
html[dir="rtl"] .visual-window,
html[dir="rtl"] .visual-welcome {
    direction: rtl;
}

html[dir="ltr"] .landing-visual,
html[dir="ltr"] .visual-window,
html[dir="ltr"] .visual-welcome {
    direction: ltr;
}


/* =========================
   WELCOME AREA
========================= */

html[dir="rtl"] .visual-welcome {
    text-align: right;
}

html[dir="ltr"] .visual-welcome {
    text-align: left;
}


/* العربي */
html[dir="rtl"] .visual-welcome > .mini-eyebrow,
html[dir="rtl"] .visual-welcome > h2,
html[dir="rtl"] .visual-welcome > p {
    margin-right: 155px;
    margin-left: 0;
    text-align: right;
}


/* الإنجليزي */
html[dir="ltr"] .visual-welcome > .mini-eyebrow,
html[dir="ltr"] .visual-welcome > h2,
html[dir="ltr"] .visual-welcome > p {
    margin-left: 155px;
    margin-right: 0;
    text-align: left;
}


/* Search */
html[dir="rtl"] .visual-search {
    direction: rtl;
    text-align: right;
    margin-right: 0;
}

html[dir="ltr"] .visual-search {
    direction: ltr;
    text-align: left;
    margin-left: 0;
}


/* =========================
   SERVICE CARDS
========================= */

html[dir="rtl"] .service-cards {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

html[dir="ltr"] .service-cards {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

html[dir="rtl"] .service-card {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .service-card {
    direction: ltr;
    text-align: left;
}


/* =========================
   NEW REQUEST TICKET
========================= */

html[dir="rtl"] .visual-ticket {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .visual-ticket {
    direction: ltr;
    text-align: left;
}


/* =========================
   FEATURES
========================= */

html[dir="rtl"] .landing-features {
    direction: rtl;
}

html[dir="ltr"] .landing-features {
    direction: ltr;
}

html[dir="rtl"] .landing-features > div {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .landing-features > div {
    direction: ltr;
    text-align: left;
}


/* =========================
   EXTRA SECTIONS
========================= */

html[dir="rtl"] .landing-extra-sections {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .landing-extra-sections {
    direction: ltr;
    text-align: left;
}


/* =========================
   PUNCTUATION FIX
========================= */

html[dir="ltr"] .visual-window *,
html[dir="ltr"] .landing-copy *,
html[dir="ltr"] .landing-features *,
html[dir="ltr"] .landing-extra-sections * {
    unicode-bidi: plaintext;
}

html[dir="rtl"] .visual-window *,
html[dir="rtl"] .landing-copy *,
html[dir="rtl"] .landing-features *,
html[dir="rtl"] .landing-extra-sections * {
    unicode-bidi: plaintext;
}
