@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

body {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    margin: 0;
    padding: 0;
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 140;
    background:
        linear-gradient(135deg, rgba(255, 243, 233, 0.97), rgba(255, 233, 239, 0.95) 50%, rgba(239, 246, 255, 0.95));
    border-bottom: 1px solid rgba(228, 205, 208, 0.85);
    box-shadow: 0 14px 34px rgba(201, 171, 178, 0.18);
    backdrop-filter: blur(18px);
}

.top-navbar__inner {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 66px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.top-navbar__spacer {
    min-height: 1px;
}

.top-navbar__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-navbar__icon-set {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 18px 32px rgba(224, 191, 196, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.top-navbar__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 10px 18px rgba(224, 191, 196, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.top-navbar__icon-link:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 247, 249, 0.94));
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 18px 28px rgba(216, 178, 184, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.top-navbar__icon-link.is-active {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 248, 250, 0.96));
    box-shadow:
        0 16px 26px rgba(216, 178, 184, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.top-navbar__icon-link i {
    font-size: 18px;
}

.top-navbar__badge {
    position: absolute;
    top: -5px;
    left: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4577e, #d93668);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 18px rgba(217, 54, 104, 0.28);
    border: 2px solid #fff;
}

.top-navbar__icon-link--support {
    color: #3f7cf2;
}

.top-navbar__icon-link--survey {
    color: #d4833b;
}

.top-navbar__icon-link--links {
    color: #1e9a83;
}

.top-navbar__icon-link--messages {
    color: #db5f84;
}

.top-navbar__icon-link--portal {
    color: #a45dd2;
}

.top-navbar__icon-link.is-disabled {
    cursor: default;
    opacity: 0.96;
}

.top-navbar__logout,
.top-navbar__user {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #7c6168;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.top-navbar__logout:hover {
    color: #5f4950;
    background: rgba(255, 255, 255, 0.44);
}

.top-navbar__user {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

/* ===================== Cards ===================== */
.card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    padding: 28px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

/* ===================== Forms ===================== */
form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

form label {
    margin-bottom: 6px;
    font-weight: 500;
}

form input,
form textarea,
form select {
    background: #f9f9fb;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    transition: 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

form textarea {
    resize: vertical;
}

form button,
.btn-primary {
    background: #0071e3;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,113,227,0.3);
}

form button:hover,
.btn-primary:hover {
    background: #005ecb;
    transform: translateY(-1px);
}

/* ===================== Alerts ===================== */
.alert {
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    margin-bottom: 15px;
}

.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.error {
    background: #fff1f0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ===================== Drop Zone ===================== */
.drop-zone {
    border: 2px dashed #d2d2d7;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: #fbfbfd;
    cursor: pointer;
    transition: 0.3s;
}

.drop-zone:hover {
    border-color: #0071e3;
    background: #f0f7ff;
}

.drop-zone.dragover {
    border-color: #0071e3;
    background: #eaf3ff;
}

.drop-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.drop-text {
    font-size: 15px;
    color: #6e6e73;
}

.drop-text span {
    color: #0071e3;
    font-weight: 600;
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px;
    border-radius: 12px;
    margin-top: 8px;
    transition: 0.3s;
}

.file-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.file-remove {
    color: #ff3b30;
    font-weight: 500;
    cursor: pointer;
}

.file-remove:hover {
    text-decoration: underline;
}

/* ===================== Sidebar ===================== */
.sidebar {
    width: 250px;
    background: #ffffff;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    border-left: 1px solid #e5e5e5;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1d1d1f;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background: #f5f5f7;
    color: #0071e3;
}

.sidebar ul li a::before {
    content: "📌";
    margin-left: 8px;
}

/* ===================== Header ===================== */
.site-header {
    position: sticky;
    top: 52px;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #0f172a;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,247,255,0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-copy small {
    font-size: 13px;
    color: #64748b;
    line-height: 1.2;
}

.site-header .logo {
    display: flex;
    align-items: center;
}

.site-header .logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.site-nav ul,
.site-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.site-nav ul li,
.site-header nav ul li {
    margin: 0;
}

.site-nav ul li a,
.site-header nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: 0.25s ease;
    position: relative;
}

.site-nav ul li a:hover,
.site-header nav ul li a:hover {
    color: #005ecb;
    background: rgba(0, 113, 227, 0.08);
}

/* زر القائمة للموبايل */
.site-nav ul li a.is-active,
.site-header nav ul li a.is-active {
    color: #0b4aa8;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.14), rgba(66, 184, 131, 0.12));
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.1);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
    flex: 0 0 18px;
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.nav-icon-home::before {
    width: 14px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-top: none;
    border-radius: 0 0 3px 3px;
    right: 2px;
    bottom: 1px;
}

.nav-icon-home::after {
    width: 12px;
    height: 12px;
    border-top: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    transform: rotate(-45deg);
    right: 3px;
    top: 1px;
}

.nav-icon-plus::before {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.8px solid currentColor;
    inset: 0;
}

.nav-icon-plus::after {
    width: 10px;
    height: 10px;
    right: 4px;
    top: 4px;
    background:
        linear-gradient(currentColor, currentColor) center/1.8px 10px no-repeat,
        linear-gradient(currentColor, currentColor) center/10px 1.8px no-repeat;
}

.nav-icon-tickets::before {
    width: 16px;
    height: 12px;
    border: 1.8px solid currentColor;
    border-radius: 4px;
    inset: 3px 1px;
}

.nav-icon-tickets::after {
    width: 2px;
    height: 8px;
    background: currentColor;
    right: 8px;
    top: 5px;
    box-shadow: -4px 0 0 currentColor, 4px 0 0 currentColor;
}

.nav-icon-logout::before {
    width: 11px;
    height: 11px;
    border: 1.8px solid currentColor;
    border-left: none;
    border-radius: 0 3px 3px 0;
    left: 2px;
    top: 3px;
}

.nav-icon-logout::after {
    width: 10px;
    height: 10px;
    border-top: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;
    transform: rotate(-45deg);
    right: 2px;
    top: 4px;
    box-shadow: -4px 4px 0 -3px currentColor;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.menu-toggle:hover {
    background: #ffffff;
    border-color: rgba(0, 113, 227, 0.28);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== Footer ===================== */
footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
    text-align: center;
    color: #6e6e73;
    font-size: 14px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

/* ===================== Status ===================== */
.status-open { color: orange; font-weight: 600; }
.status-in-progress { color: #0071e3; font-weight: 600; }
.status-closed { color: green; font-weight: 600; }

/* ===================== Main Content ===================== */
.main-content {
    margin-right: 250px;
    margin-left: 24px;
    padding: 24px;
    min-height: calc(100vh - 64px);
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .main-content {
        margin-right: 220px;
        margin-left: 16px;
    }

    .site-header {
        padding: 14px 18px;
    }

    .site-header__inner {
        gap: 12px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .site-nav ul li a,
    .site-header nav ul li a {
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .top-navbar__inner {
        padding: 12px 16px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .top-navbar__meta {
        width: 100%;
        justify-content: center;
    }

    .top-navbar__icon-set,
    .top-navbar__spacer {
        width: 100%;
    }

    .top-navbar__icon-set {
        justify-content: center;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-header {
        padding: 12px 16px;
    }

    .site-header__inner {
        position: relative;
        flex-wrap: wrap;
    }

    .brand {
        flex: 1;
    }

    .site-header nav {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 10px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .site-header nav.active { display: block; }
    .site-header nav ul {
        flex-direction: column;
        gap: 8px;
    }
    .site-header nav ul li,
    .site-header nav ul li a {
        width: 100%;
    }
    .site-header nav ul li a {
        justify-content: flex-start;
        border-radius: 16px;
        padding: 14px 16px;
    }

    .sidebar {
        transform: translateX(100%);
        width: 220px;
        border-left: none;
    }
    .sidebar.active { transform: translateX(0); }

    .main-content { margin-right: 0; margin-left: 16px; padding: 16px; }
    .card { padding: 18px; border-radius: 14px; }
    .drop-zone { padding: 20px; }
}

@media (max-width: 480px) {
    .top-navbar__inner {
        padding: 10px 12px;
    }

    .top-navbar__icon-set {
        gap: 10px;
        padding: 8px 12px;
    }

    .top-navbar__logout,
    .top-navbar__user,
    .top-navbar__icon-set {
        width: 100%;
    }

    .top-navbar__logout,
    .top-navbar__user {
        justify-content: center;
    }

    .top-navbar__meta {
        gap: 8px;
    }

    .site-header {
        padding: 10px 12px;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .site-header .logo-img {
        height: 34px;
    }

    .brand-copy small {
        font-size: 12px;
    }

    .main-content {
        margin-left: 12px;
        padding: 14px 12px;
    }

    form button { width: 100%; }
}

/* ===================== Header Refresh ===================== */
.site-header {
    padding: 18px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at top right, rgba(0, 113, 227, 0.08), transparent 42%);
    border-bottom: 1px solid rgba(203, 213, 225, 0.78);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    max-width: 1320px;
    gap: 20px;
    position: relative;
}

.brand {
    gap: 16px;
    flex-shrink: 0;
}

.brand-mark {
    padding: 12px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,247,255,0.94));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.brand-copy {
    gap: 4px;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: -0.01em;
}

.site-header .logo-img {
    height: 46px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    color: #334155;
    white-space: nowrap;
}

.header-user-badge__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.9) 0 20%, transparent 21%),
        radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.9) 0 32%, transparent 33%),
        linear-gradient(135deg, #0071e3, #42b883);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    flex: 0 0 32px;
}

.header-user-badge__name {
    font-size: 14px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
}

.site-nav ul,
.site-header nav ul {
    gap: 12px;
}

.site-nav ul li a,
.site-header nav ul li a {
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
}

.site-nav ul li a:hover,
.site-header nav ul li a:hover {
    border-color: rgba(0, 113, 227, 0.12);
    transform: translateY(-1px);
}

.site-nav ul li a.is-active,
.site-header nav ul li a.is-active {
    border-color: rgba(0, 113, 227, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.06);
}

.main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 24px 18px 28px;
    }

    .header-user-badge {
        padding: 9px 12px;
    }
}

@media (max-width: 768px) {
    .brand {
        min-width: 0;
    }

    .brand-copy small,
    .header-user-badge {
        display: none;
    }

    .site-header nav {
        margin-top: 14px;
        padding: 12px;
        border-radius: 24px;
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
        margin-inline-start: 0;
    }

    .main-content {
        padding: 18px 16px 24px;
    }
}

@media (max-width: 480px) {
    .brand-mark {
        padding: 9px 12px;
        border-radius: 16px;
    }

    .site-header .logo-img {
        height: 38px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .main-content {
        padding: 16px 12px 22px;
    }
}

/* ===================== Login Page ===================== */
.login-page {
    background:
        radial-gradient(circle at top right, rgba(0, 113, 227, 0.18), transparent 32%),
        radial-gradient(circle at bottom left, rgba(66, 184, 131, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f9ff 0%, #f4f6fb 45%, #eef2f8 100%);
}

.login-page .main-content {
    margin: 0;
    padding: 40px 24px 56px;
    min-height: calc(100vh - 150px);
}

.login-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
}

.login-intro {
    color: #16324f;
    padding: 28px 16px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 113, 227, 0.14);
    color: #005ecb;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(0, 44, 95, 0.08);
}

.login-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #10233b;
}

.login-intro p {
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #4a6078;
    max-width: 620px;
}

.login-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.login-highlight {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(16, 35, 59, 0.08);
    box-shadow: 0 18px 36px rgba(16, 35, 59, 0.08);
    backdrop-filter: blur(10px);
}

.login-highlight strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #10233b;
}

.login-highlight span {
    display: block;
    color: #60748a;
    line-height: 1.7;
    font-size: 14px;
}

.login-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 60px rgba(19, 47, 76, 0.15);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0071e3 0%, #1ea7ff 50%, #42b883 100%);
}

.login-card-head {
    margin-bottom: 22px;
}

.login-card-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.login-card-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.login-alert {
    text-align: center;
}

.login-form .form-row {
    margin-bottom: 16px;
}

.login-form label {
    font-size: 15px;
    color: #243b53;
}

.login-form input {
    min-height: 52px;
    font-size: 15px;
}

.login-form button {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    font-size: 16px;
}

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

    .login-intro {
        padding: 8px 4px;
    }

    .login-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .login-page .main-content {
        padding: 24px 16px 40px;
        min-height: auto;
    }

    .login-intro h1 {
        font-size: 32px;
    }

    .login-intro p {
        font-size: 16px;
    }

    .login-highlights {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .login-page .main-content {
        padding: 18px 12px 32px;
    }

    .login-badge {
        font-size: 13px;
    }

    .login-intro h1 {
        font-size: 28px;
    }

    .login-card-head h2 {
        font-size: 24px;
    }
}

/* ===================== Dashboard Page ===================== */
.dashboard-page {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 22%),
        linear-gradient(180deg, #f7f9fc 0%, #eff4fa 100%);
}

.dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.dashboard-card {
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    padding: 32px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 54px;
    padding: 13px 22px;
    border-radius: 18px;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    box-shadow: 0 16px 30px rgba(0, 113, 227, 0.2);
}

.dashboard-action__icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex: 0 0 32px;
}

.dashboard-action__icon::before,
.dashboard-action__icon::after,
.dashboard-action__icon-core::before,
.dashboard-action__icon-core::after {
    content: "";
    position: absolute;
    display: block;
    box-sizing: border-box;
}

.dashboard-action__icon::before {
    inset: 7px 6px 7px 10px;
    border: 1.8px solid currentColor;
    border-radius: 7px;
    border-top-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-action__icon::after {
    width: 10px;
    height: 1.8px;
    top: 15px;
    left: 15px;
    background: currentColor;
    border-radius: 999px;
}

.dashboard-action__icon-core::before {
    width: 1.8px;
    height: 10px;
    top: 11px;
    left: 19px;
    background: currentColor;
    border-radius: 999px;
}

.dashboard-action__icon-core::after {
    width: 5px;
    height: 5px;
    top: 7px;
    left: 9px;
    border-top: 1.8px solid rgba(255, 255, 255, 0.82);
    border-right: 1.8px solid rgba(255, 255, 255, 0.82);
    transform: rotate(-45deg);
}

.dashboard-stats {
    gap: 18px;
    margin-top: 0;
}

.dashboard-stats--full {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 22px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-stat-card::before {
    display: none;
}

.dashboard-stat-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
    color: #516274;
}

.dashboard-stat-card p {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
}

.dashboard-panel {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-panel h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.dashboard-next-ticket {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.03)),
        #ffffff;
}

.dashboard-next-ticket--full,
.dashboard-history-panel {
    margin-top: 28px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08)),
        #ffffff;
    border: 1px solid rgba(191, 219, 254, 0.7);
}

.dashboard-hero__content {
    display: grid;
    gap: 6px;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.dashboard-stat-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    background: #eef6ff;
    color: #2563eb;
}

.dashboard-stat-card.is-open .dashboard-stat-card__icon {
    background: rgba(245, 158, 11, 0.14);
    color: #b7791f;
}

.dashboard-stat-card.is-progress .dashboard-stat-card__icon {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.dashboard-stat-card.is-closed .dashboard-stat-card__icon {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.dashboard-stat-card__body {
    min-width: 0;
}

.dashboard-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-panel__head h3 {
    margin: 0;
}

.dashboard-ticket-stack {
    display: grid;
    gap: 12px;
}

.dashboard-ticket-stack--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-ticket-item {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-ticket-item span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-ticket-item strong {
    color: #1e293b;
    line-height: 1.9;
    font-weight: 600;
}

.dashboard-ticket-item.is-description strong {
    font-weight: 500;
}

.dashboard-ticket-item--wide {
    grid-column: 1 / -1;
}

.dashboard-ticket-item.is-highlight {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.08));
    border-color: rgba(125, 170, 255, 0.5);
}

.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-history-panel {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.94) 100%);
}

.dashboard-history-list {
    display: grid;
    gap: 16px;
}

.dashboard-history-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-history-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-history-card__id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 700;
}

.dashboard-history-card__body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    gap: 14px;
}

.dashboard-history-meta {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-history-meta span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-history-meta strong {
    color: #1e293b;
    line-height: 1.85;
    font-weight: 600;
}

.dashboard-history-meta--wide {
    min-width: 0;
}

@media (max-width: 1024px) {
    .dashboard-card {
        margin: 0;
        padding: 26px;
    }

    .dashboard-stats--full,
    .dashboard-ticket-stack--full,
    .dashboard-history-card__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
    }

    .dashboard-action {
        width: 100%;
        justify-content: center;
    }

    .dashboard-panel,
    .dashboard-history-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .dashboard-history-card {
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-history-card__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stat-card {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        margin: 0;
        padding: 16px 14px;
        border-radius: 20px;
    }

    .dashboard-stat-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .dashboard-panel,
    .dashboard-history-panel {
        margin-top: 18px;
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-history-card__id {
        min-width: 52px;
        font-size: 13px;
    }

    .dashboard-history-meta {
        padding: 12px 14px;
        border-radius: 16px;
    }
}

/* ===================== New Ticket Page ===================== */
.ticket-page {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
}

.ticket-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 0 12px;
}

.ticket-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 24px;
}

.ticket-hero__content,
.ticket-hero__stats {
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ticket-hero__content {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 30px;
}

.ticket-hero__content::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 68%);
    pointer-events: none;
}

.ticket-kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.12);
    color: #005ecb;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ticket-hero__content h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #10233b;
}

.ticket-hero__content p {
    margin: 0;
    max-width: 640px;
    color: #5f7288;
    font-size: 17px;
    line-height: 1.9;
}

.ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.ticket-form-card {
    margin: 0 auto 24px;
    width: 100%;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
    color: #1d1d1f;
}

.ticket-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ticket-card-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #10233b;
}

.ticket-form {
    display: grid;
    gap: 20px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ticket-grid--top {
    margin-bottom: 2px;
}

.ticket-form .form-row {
    margin-bottom: 0;
}

.ticket-form label {
    color: #1f3b57;
    font-size: 15px;
    font-weight: 600;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #d7e1eb;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    color: #1d1d1f;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ticket-form textarea {
    min-height: 180px;
    padding-top: 14px;
    line-height: 1.8;
}

.ticket-form input::placeholder,
.ticket-form textarea::placeholder {
    color: #8aa0b7;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ticket-upload-panel {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
}

.ticket-upload-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ticket-upload-panel__head label {
    margin: 0;
}

.ticket-upload-panel__head span {
    color: #0071e3;
    font-size: 13px;
    font-weight: 700;
}

.ticket-drop-zone {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border-radius: 28px;
    border: 2px dashed #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, #fafdff 0%, #f1f7ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.ticket-drop-zone__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 113, 227, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 92%);
    pointer-events: none;
}

.ticket-drop-zone .drop-icon {
    position: relative;
    font-size: 52px;
    margin-bottom: 18px;
}

.ticket-drop-zone .drop-text {
    position: relative;
    font-size: 16px;
    line-height: 1.9;
    color: #486179;
}

.ticket-drop-zone__types {
    position: relative;
    margin-top: 14px;
    color: #7a91a9;
    font-size: 12px;
    letter-spacing: 0.18em;
}

.ticket-file-preview {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ticket-file-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ticket-file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ticket-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.1);
}

.ticket-file-copy {
    min-width: 0;
}

.ticket-file-copy strong {
    display: block;
    color: #10233b;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-file-copy small {
    display: block;
    color: #7a8fa5;
    font-size: 12px;
    margin-top: 3px;
}

.ticket-submit-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 2px;
}

.ticket-submit-row .btn-primary {
    min-width: 240px;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #38bdf8 100%);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ticket-success-card {
    display: grid;
    gap: 8px;
}

.ticket-aside {
    display: grid;
    gap: 18px;
    padding-top: 0;
}

.ticket-panel {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    color: #16324f;
}

.ticket-panel--glow {
    position: relative;
    overflow: hidden;
}

.ticket-panel--glow::before {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
}

.ticket-panel__eyebrow {
    color: #0071e3;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ticket-panel__stack {
    display: grid;
    gap: 12px;
}

.ticket-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 248, 253, 0.92);
    border: 1px solid rgba(214, 226, 238, 0.95);
}

.ticket-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(59, 130, 246, 0.1));
    color: #0b63ce;
    font-size: 13px;
    font-weight: 800;
}

.ticket-step strong {
    color: #16324f;
    font-size: 14px;
}

.ticket-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.12);
    color: #0b63ce;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

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

    .ticket-form-card {
        margin: 0 auto 20px;
        padding: 28px;
    }

    .ticket-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ticket-shell {
        padding-top: 18px;
    }

    .ticket-hero__content {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .ticket-form-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

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

    .ticket-drop-zone {
        min-height: 200px;
        border-radius: 20px;
    }

    .ticket-submit-row .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .ticket-aside {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .ticket-form-card {
        margin: 0 auto 14px;
        padding: 16px 14px;
        border-radius: 20px;
    }

    .ticket-hero__content h1 {
        font-size: 30px;
    }

    .ticket-card-head h2 {
        font-size: 28px;
    }

    .ticket-form input,
    .ticket-form select,
    .ticket-form textarea {
        min-height: 50px;
        border-radius: 14px;
    }

    .ticket-form textarea {
        min-height: 140px;
    }

    .ticket-drop-zone {
        min-height: 180px;
        padding: 22px 16px;
    }

    .ticket-file-item {
        padding: 12px 14px;
        border-radius: 14px;
    }

}

/* ===================== New Ticket Refresh ===================== */
.ticket-page {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.ticket-shell--full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 16px;
}

.ticket-hero--wide {
    margin-bottom: 26px;
}

.ticket-shell--full .ticket-hero__content {
    padding: 34px 36px;
    border-radius: 32px;
}

.ticket-form-card--full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px;
    border-radius: 32px;
}

.ticket-form-card--full .ticket-form {
    gap: 22px;
}

.ticket-form-card--full .ticket-grid--top {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
}

.ticket-form-card--full .ticket-upload-panel {
    padding: 24px;
    border-radius: 26px;
}

.ticket-form-card--full .ticket-drop-zone {
    min-height: 250px;
    border-radius: 30px;
}

.ticket-form-card--full .ticket-submit-row {
    margin-top: 6px;
}

.ticket-form-card--full .ticket-submit-row .btn-primary {
    min-width: 260px;
}

@media (max-width: 1024px) {
    .ticket-shell--full .ticket-hero__content,
    .ticket-form-card--full {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .ticket-shell--full {
        padding-top: 14px;
    }

    .ticket-shell--full .ticket-hero__content,
    .ticket-form-card--full {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .ticket-form-card--full .ticket-grid--top {
        grid-template-columns: 1fr;
    }

    .ticket-form-card--full .ticket-upload-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .ticket-form-card--full .ticket-drop-zone {
        min-height: 200px;
        border-radius: 20px;
    }

    .ticket-form-card--full .ticket-submit-row .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .ticket-shell--full .ticket-hero__content,
    .ticket-form-card--full {
        padding: 16px 14px;
        border-radius: 20px;
    }
}

/* ===================== Tickets Page ===================== */
.tickets-page {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #edf3fb 100%);
}

.tickets-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.tickets-shell--full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 16px;
}

.tickets-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 26px 28px;
    border-radius: 30px;
    border: 1px solid rgba(191, 219, 254, 0.74);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08)),
        #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.tickets-hero__content {
    display: grid;
    gap: 8px;
}

.tickets-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.tickets-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #10233b;
}

.tickets-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.tickets-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.tickets-overview__card {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.tickets-overview__card span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.tickets-overview__card strong {
    color: #10233b;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
}

.tickets-overview__card.is-open strong {
    color: #b45309;
}

.tickets-overview__card.is-progress strong {
    color: #0b63ce;
}

.tickets-overview__card.is-closed strong {
    color: #15803d;
}

.tickets-card {
    max-width: 1120px;
    margin: 24px auto;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
}

.tickets-card--full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px;
}

.tickets-empty {
    padding: 28px 24px;
    border-radius: 22px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    text-align: center;
}

.tickets-empty p {
    margin: 0;
    color: #516274;
    font-size: 16px;
}

.tickets-list {
    display: grid;
    gap: 18px;
}

.tickets-item {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.tickets-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tickets-item__body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px 220px;
    gap: 14px;
}

.tickets-meta {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
}

.tickets-meta span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.tickets-meta strong {
    color: #1e293b;
    line-height: 1.85;
    font-weight: 600;
}

.tickets-meta--wide,
.tickets-meta--description {
    min-width: 0;
}

.tickets-meta--description {
    grid-column: 1 / -1;
}

.tickets-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tickets-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.tickets-table th,
.tickets-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e9eef5;
    text-align: right;
    vertical-align: top;
}

.tickets-table th {
    background: #f7fbff;
    color: #425466;
    font-weight: 700;
    white-space: nowrap;
}

.tickets-table tbody tr {
    transition: background-color 0.2s ease;
}

.tickets-table tbody tr:hover {
    background: #f9fbff;
}

.tickets-table tbody tr:last-child td {
    border-bottom: none;
}

.tickets-link {
    color: #005ecb;
    text-decoration: none;
    font-weight: 600;
}

.tickets-link:hover {
    text-decoration: underline;
}

.tickets-link-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(14, 165, 233, 0.08));
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.tickets-description {
    min-width: 250px;
    max-width: 340px;
    color: #334155;
    line-height: 1.8;
}

.tickets-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.08);
}

.tickets-status.status-open {
    color: #b45309;
    background: rgba(251, 191, 36, 0.16);
}

.tickets-status.status-in-progress {
    color: #0b63ce;
    background: rgba(59, 130, 246, 0.14);
}

.tickets-status.status-closed {
    color: #15803d;
    background: rgba(34, 197, 94, 0.14);
}

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

    .tickets-item__body {
        grid-template-columns: 1fr 1fr;
    }

    .tickets-card,
    .tickets-card--full {
        margin: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .tickets-shell--full {
        padding-top: 14px;
    }

    .tickets-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 24px;
    }

    .tickets-hero__action {
        width: 100%;
    }

    .tickets-item {
        padding: 16px;
        border-radius: 18px;
    }

    .tickets-item__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tickets-item__body {
        grid-template-columns: 1fr;
    }

    .tickets-card,
    .tickets-card--full {
        padding: 18px;
        border-radius: 24px;
    }

    .tickets-table-wrap {
        border-radius: 18px;
    }

    .tickets-table th,
    .tickets-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .tickets-link-id {
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .tickets-card,
    .tickets-card--full {
        margin: 0;
        padding: 14px;
        border-radius: 20px;
    }

    .tickets-hero h1 {
        font-size: 28px;
    }

    .tickets-meta {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .tickets-empty {
        padding: 22px 16px;
        border-radius: 18px;
    }
}

/* ===================== Ticket Detail Page ===================== */
.ticket-detail-page {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.11), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #edf3fb 100%);
}

.ticket-detail-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 16px;
}

.ticket-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 26px 28px;
    border-radius: 30px;
    border: 1px solid rgba(191, 219, 254, 0.74);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08)),
        #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ticket-detail-hero__content {
    display: grid;
    gap: 8px;
}

.ticket-detail-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.ticket-detail-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #10233b;
}

.ticket-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.ticket-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.ticket-detail-main,
.ticket-detail-side {
    min-width: 0;
}

.ticket-detail-card {
    margin: 0 0 24px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
}

.ticket-detail-card--side {
    position: sticky;
    top: 110px;
}

.ticket-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ticket-detail-section-head h2 {
    margin: 0;
    font-size: 24px;
    color: #10233b;
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ticket-detail-meta {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
}

.ticket-detail-meta span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ticket-detail-meta strong {
    color: #1e293b;
    line-height: 1.9;
    font-weight: 600;
}

.ticket-detail-meta--wide {
    grid-column: 1 / -1;
}

.ticket-detail-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ticket-detail-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
    color: #0b63ce;
    text-decoration: none;
    font-weight: 600;
}

.ticket-detail-attachment__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.1));
    position: relative;
    flex: 0 0 40px;
}

.ticket-detail-attachment__icon::before,
.ticket-detail-attachment__icon::after {
    content: "";
    position: absolute;
    display: block;
    box-sizing: border-box;
}

.ticket-detail-attachment__icon::before {
    inset: 9px 10px 9px 12px;
    border: 1.8px solid currentColor;
    border-radius: 6px;
}

.ticket-detail-attachment__icon::after {
    width: 6px;
    height: 6px;
    top: 9px;
    left: 10px;
    border-top: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    transform: rotate(-45deg);
}

.ticket-detail-attachment__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-detail-timeline {
    display: grid;
    gap: 14px;
}

.ticket-detail-reply {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
}

.ticket-detail-reply__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ticket-detail-reply__head strong {
    color: #16324f;
}

.ticket-detail-reply__head span {
    color: #64748b;
    font-size: 12px;
}

.ticket-detail-reply__body {
    color: #334155;
    line-height: 1.9;
}

.ticket-detail-empty {
    padding: 22px 16px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    color: #516274;
    text-align: center;
}

.ticket-detail-form {
    display: grid;
    gap: 16px;
}

.ticket-detail-form textarea {
    min-height: 180px;
    border-radius: 18px;
}

.ticket-detail-form .btn-primary {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
}

@media (max-width: 1024px) {
    .ticket-detail-layout {
        grid-template-columns: 1fr;
    }

    .ticket-detail-card--side {
        position: static;
    }
}

@media (max-width: 768px) {
    .ticket-detail-shell {
        padding-top: 14px;
    }

    .ticket-detail-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 24px;
    }

    .ticket-detail-back {
        width: 100%;
    }

    .ticket-detail-card {
        padding: 20px;
        border-radius: 22px;
    }

    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }

    .ticket-detail-reply__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ticket-detail-card {
        padding: 16px;
        border-radius: 18px;
    }

    .ticket-detail-hero h1 {
        font-size: 28px;
    }

    .ticket-detail-meta,
    .ticket-detail-reply,
    .ticket-detail-attachment {
        border-radius: 16px;
    }
}
